User`s manual
IA261/262 WinCE User’s Manual  CANopen Library 
5.  moxa_masterSendNMTstateChange 
The function is used to change the state of a slave. 
y  Syntax 
UNS8 moxa_masterSendNMTstateChange (CO_Data* d, UNS8 Node_ID, UNS8 cs) 
y  Parameters 
d: [input] Node handle pointer. 
ID: [input] Slave device Node-ID (1~127). Set this parameter to 0 to indicate all slave devices. 
cs: [input] NMT command specifier. 
0x01: Start  
0x02: Stop 
0x80: PRE-OPERATIONAL 
0x81: Reset_Node 
0x82: Reset_Communication 
y  Return Values 
1: success, 0: Fail. 
6.  moxa_masterSendNMTnodeguard 
Master sends the Guarding message to slave device. 
y  Syntax 
UNS8 moxa_masterSendNMTnodeguard(CO_Data* d, UNS8 nodeId) 
y  Parameters 
d: [input] Node handle pointer. 
nodeId: [input] Slave device Node-ID (1~127). Set this parameter to 0 to indicate all slave devices. 
y  Return Values 
1: success, 0: Fail. 
7.  moxa_masterRequestNodeState 
Use the function to indicate that the master is waiting for a Node_Guard frame from the slave. 
B-11










