Download CANopen Slave Software Manual (PDF-File)
Transcript
CANopen-Slave canOpenGetNodeInfo() Name: canOpenGetNodeInfo() - Return current node state Synopsis: int Description: canOpenGetNodeInfo ( HNODE HNode, int * State, int * LastErr ) /* Handle of the CANopen node */ /* Current node state */ /* Last error state */ This call returns the current state of the node referenced by Hnode. Valid values for State are: NodeInit NodeStopped NodePreOperational NodeOperational In LastErr the error number of the last error is returned. Return: 0 or an error code described in the appendix. canOpenResetNode() Name: canOpenResetNode() - resetting CANopen node. Synopsis: int canOpenDeleteNode ( HNODE HNode ) /* handle of the CANopen node */ Description: The slave is reset to state NodeOffline. Nodeguarding and SDO-server processes are terminated. All used COB identifiers are freed and all entries in the object directory are reset to default values. Return: 0 or an error code described in the appendix. Page 26 of 65 Software Manual • Doc. No.: C.2002.21 / Rev. 2.2 CANopen Slave