ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
CAN in the ecomatmobile controller
ifm CANopen library
127
Detailed description of the functionalities of the CANopen master and the mechanisms
→
chapter
CANopen master (
→
page
Using the controller CR0020 as an example the following code fragments show the use of the function
CANx_MASTER_STATUS (
→
page
Example with function CANx_MASTER_STATUS
Slave information
To be able to access the information of the individual CANopen nodes, an array for the corresponding
structure must be generated. The structures are contained in the library. You can see them under
"Data types" in the library manager.
The number of the array elements is determined by the global variable MAX_NODEINDEX which is
automatically generated by the CANopen stack. It contains the number of the slaves minus 1 indicated
in the network configurator.
NOTE
The numbers of the array elements do
not
correspond to the node ID. The identifier can be read from
the corresponding structure under NODE_ID.
Structure node status
Summary of Contents for Ecomat 100 ecomatmobile SmartController CR2500
Page 1: ...System Manual SmartController CR2500 CR2502 CoDeSys V2 3 Target V05 7390667 00 03 2009 ...
Page 6: ......
Page 282: ......