page 68
Function
NMM_GET_NODE_STATE
Library COB.LIB
Function symbol
Purpose
Returns the network status of a CANopen node.
Parameters
Function inputs
Function outputs
Description
NMM_GET_NODE_STATE returns the current network status
(pre-operational, operational, prepared) of one or all nodes. The
value results from the CANopen specification.
Name Data type Description
ENABLE BOOL TRUE: The function is processed.
FALSE: The function is not processed.
NODE BYTE All initialized nodes: 0
Initialized node: 1 ... 127
Name Data type Description
STATE BYTE Status to the CANopen specification
RESULT BYTE Result: 0 = successful
2 = invalid parameters
255 = NMT master not active
127 State pre-operational
5 State operational
4 State prepared