94
ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
CAN in the ecomatmobile controller
ifm CANopen library
Network states
Here you read how to interpret the states of the CANopen network and how to react.
For the start-up (
→
page
) of the CANopen network and during operation the individual functions of
the library pass different states.
NOTE
In the monitor mode (online mode) of CoDeSys the states of the CAN network can be seen in the
global variable list "CANOpen implicit variables". This requires exact knowledge of CANopen and the
structure of the CoDeSys CANopen libraries.
To facilitate access the function CANx_MASTER_STATUS (
→
page
) from the library
ifm_CRnnnn_CANopenMaster_Vxxyyzz.LIB
is available.
Boot up of the CANopen master
During boot-up of the CAN network the master passes different states which can be read via the
output NODE_STATE of the function CANx_MASTER_STATUS (
→
).
State
Description
0, 1, 2
These states are automatically passed by the master and in the first cycles after a PLC
start.
3
State 3 of the master is maintained for some time. In state 3 the master configures its
slaves. To do so, all SDOs generated by the configurator are transmitted to the slaves
one after the other.
5
After transmission of all SDOs to the slaves the master goes to state 5 and remains in this
state. State 5 is the normal operating state for the master.
Whenever a slave does not respond to an SDO request (upload or download), the request is repeated.
The master leaves state 3, as described above, but not before all SDOs have been transmitted
successfully. So it can be detected whether a slave is missing or whether the master has not correctly
received all SDOs. It is of no importance for the master whether a slave responds with an
acknowledgement or an abort. It is only important for the master whether he received a response at
all.
An exception is a slave marked as "optional". Optional slaves are asked for their 1000
h
object only
once. If they do not respond within 0.5 s, the slave is first ignored by the master and the master goes
to state 5 without further reaction of this slave.
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: ......