User`s manual
IA261/262 WinCE User’s Manual CANopen Library
B-9
8) Generating the object Dictionary
Once object dictionary has been edited and saved, you have to generate object dictionary C code
for your CANopen node. Select Menu entry “File/Build Dictionary”.
Choose C file to create or overwrite. Header file will be also created with the same prefix as C file.
Function Description
All the functions provided by CANopen library are listed in the following. The detail information
for each function is presented in this section.
1. moxa_getNodeState
Call this function to get node state of slave.
y Syntax
e_nodeState moxa_getNodeState (CO_Data* d, UNS8 nodeId)
y Parameters
d: [input] Node handle pointer. This structure contains all necessary information for a CANopen
node.
nodeId: [input] Specified slave’s node ID.
y Return Values
Return specified state of node.
2. moxa_heartbeatInit
Initial Producer/Consumer Heartbeat time.
y Syntax
void moxa_heartbeatInit(CO_Data* d)