EasyManua.ls Logo

IFM Electronic CR0451 - Page 157

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...
157
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
CAN in the PDM360 CAN POUs to CANopen
Start-up of the network without [Automatic startup]
Starting the network with GLOBAL_START ............................................................................. 157
Starting all nodes of the network via CAN telegram ................................................................. 157
Reset all nodes of the network via CAN telegram .................................................................... 157
Access to the status of the CANopen master ........................................................................... 158
8034
Sometimes it is necessary that the application determines the instant to start the CANopen slaves. To
do so, you must use the FB CANOPEN_NMTSERVICES.
Starting the network with GLOBAL_START
8035
In a CAN network with many participants (in most cases more than 8) it often happens that NMT
messages in quick succession are not detected by all (mostly slow) IO nodes (e.g. CompactModules
CR2013). The reason for this is that these nodes must listen to all messages with the ID 0. NMT
messages transmitted at too short intervals overload the receive buffer of such nodes.
A help for this is to reduce the number of NMT messages in quick succession.
► To do so, set the input GLOBALSTART of CANOPEN_SETSTATE (→ page 188
) to TRUE (with
[Automatic startup]).
> The CANopen master library uses the command "Start All Nodes" instead of starting all nodes
individually using the command "Start Node".
> GLOBALSTART is executed only once when the network is initialised.
> If this input is set, the controller also starts nodes with status 98 (see above). However, the PDOs
for these nodes remain deactivated.
Starting all nodes of the network via CAN telegram
8036
If the network is not automatically started with GLOBALSTART of CANopen_SETSTATE, it can be
started at any time, i.e. every node one after the other. If this is not requested, the option is as follows:
► In CANopen_NMTSERVICES set the input NODEID=FALSE and the input
NMTSTARTNODE=TRUE.
> The call is typically done by the application program at runtime.
> During this call, nodes with status 98 (see above) are started also. However, the PDOs for these
nodes remain deactivated.
Reset all nodes of the network via CAN telegram
8037
The same reasons which apply to a NMT command for starting of all nodes in an network, there are
cases you better should use a NMT command to reset all nodes (instead of a NMT command for every
individual node).
► To do so, in CANOPEN_NMTSERVICES set NODEID=0 and NMTRESETNODE=TRUE.
> This resets all nodes once at the same time.

Table of Contents