EasyManua.ls Logo

IFM Electronic CR0451 - Page 153

IFM Electronic CR0451
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
153
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
CAN in the PDM360 CAN POUs to CANopen
Start the network
8029
Here you find information about how to start the CANopen network.
After downloading the project to the controller or a reset of the application the master starts up the
CAN network again. This always happens in the same order of actions:
All slaves are reset unless they are marked as "No initialization" in the configurator. They are reset
individually using the NMT command "Reset Node" (81
16
) with the node ID of the slave. If the flag
GLOBALSTART was set via CANOPEN_SETSTATE (→ page 188
), the command is used once
with the node ID 0 to start up the network.
All slaves are configured. To do so, the object 1000
16
of the slave is polled.
If the slave responds within the monitoring time of 0.5 s, the next configuration SDO is
transmitted.
If a slave is marked as "optional" and does not respond to the polling for object 1000
16
within
the monitoring time, it is marked as not available and no further SDOs are transmitted to it.
If a slave responds to the polling for object 1000
16
with a type other than the configured one (in
the lower 16 bits), it is configured but marked as a wrong type.
All SDOs are repeated as long as a response of the slave was seen within the monitoring time.
With the flag CFGTIMEOUT of the FB CANOPEN_SETSTATE you can set, after which time the
master breaks the initialisation. Via CANOPEN_GETSTATE (→ page 190
) you can read the
status of the initialisation.
If the master configured a heartbeat time unequal to 0, the heartbeat is generated immediately
after the start of the master controller.
After all slaves have received their configuration SDOs, guarding starts for slaves with configured
nodeguarding.
If the master was configured to [Automatic startup], all slaves are now started individually by the
master. To do so, the NMT command "Start Remote Node" (1
16
) is used. If the flag
GLOBALSTART was set via CANOPEN_SETSTATE, the command is used with the node ID 0
and so all slaves are started with "Start all Nodes".
All configured TX-PDOs are transmitted at least once (for the slaves RX-PDOs).
If [Automatic startup] is deactivated, the slaves must be started as follows:
Starting separately:
In CANOPEN_NMTSERVICES (→ page 185
) set NODEID=node number and
NMTSTARTNODE=TRUE.
Starting globally:
In CANOPEN_NMTSERVICES set NODEID=0 and NMTSTARTNODE=TRUE.

Table of Contents