ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
CAN in the ecomatmobile controller
ifm CANopen library
125
Name
Data type
Description
NODE_STATE_SLAVE ARRAY
[0...MAX_NODEI
NDEX] STRUCT
NODE_STATE
To determine the status of a single network node the
global array "NodeStateList" can be used. The array
then contains the following elements:
•
NodeStateList[n].NODE_ID:
node number of the slave
•
NodeStateList[n].NODE_STATE:
current status from the master's point of view
•
NodeStateList[n].LAST_STATE:
the CANopen status of the node
•
NodeStateList[n].RESET_NODE:
TRUE: reset slave
•
NodeStateList[n].START_NODE:
TRUE: start slave
•
NodeStateList[n].PREOP_NODE:
TRUE: set slave to preoperation mode
•
NodeStateList[n].SET_TIMEOUT_STATE:
TRUE: set timeout for cancelling the configuration
•
NodeStateList[n].SET_NODE_STATE:
TRUE: set new node status
Example code
→
chapter Example with function
CANx_MASTER_STATUS (
→
page
Further information
→
chapter Master at runtime
(
→
page
EMERGENCY_OBJECT_SLAVES ARRAY
[0...MAX_NODEI
NDEX] STRUCT
EMERGENCY_M
ESSAGE
To obtain a list of the most recent occurred error
messages of all network nodes the global array
"NodeEmergencyList" can be used. The array then
contains the following elements:
•
NodeEmergencyList[n].NODE_ID:
node number of the slave
•
NodeEmergencyList[n].ERROR_CODE:
error code
•
NodeEmergencyList[n].ERROR_REGISTER:
error register
•
NodeEmergencyList[n].MANUFACTURER_ERRO
R_FIELD[0..4]:
manufacturer-specific error field
Further information
→
chapter Access to the structures
at runtime of the application (
→
page
)
Содержание Ecomat Mobile Series
Страница 1: ...System Manual SmartController CR2500 CoDeSys V2 3 Target V05 7390675 00 10 2009...
Страница 6: ......