151
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
CAN in the PDM360 CAN POUs to CANopen
Master at runtime
Reset of all configured slaves on the bus at the system start................................................... 151
Polling of the slave device type................................................................................................. 151
Configuration of all correctly detected devices ......................................................................... 151
Automatic configuration of slaves ............................................................................................. 152
Start of all correctly configured slaves ...................................................................................... 152
Cyclical transmission of the SYNC message............................................................................ 152
Nodeguarding with lifetime monitoring...................................................................................... 152
Heartbeat from the master to the slaves................................................................................... 152
Reception of emergency messages.......................................................................................... 152
8019
Here you find information about the functionality of the CANopen master libraries at runtime.
The CANopen master library provides the CoDeSys application with implicit services which are
sufficient for most applications. These services are integrated for users in a transparent manner and
are available in the application without additional calls. In the following description the function blocks
for using the network diagnostic, status and EMCY functions are described. For this, the
libraryifm_CANopen_NT_Vxxyyzz.LIB is accessed.
Services of the CANopen master library:
Reset of all configured slaves on the bus at the system start
8020
To reset the slaves, the NMT command "Reset Remote Node" is used as standard explicitly for every
slave separately. (NMT stands for Network Management according to CANopen. The individual
commands are described in the CAN document DSP301.) In order to avoid overload of slaves having
less powerful CAN controllers it is useful to reset the slaves using the command "All Remote Nodes".
Reset all configured slaves:
► Call CANOPEN_NMTSERVICES (→ page 185
) with NODEID=0 and NMTRESETNODE=1.
Reset one slave individually:
► Call CANOPEN_NMTSERVICES with NODEID=(slave node number) and NMTRESETNODE=1.
Polling of the slave device type
8021
Polling of the slave device type using SDO (polling for object 100016) and comparison with the
configured slave ID:
Indication of an error status for the slaves from which a wrong device type was received. The request
is repeated after 0.5 s if ...
- no device type was received
- AND the slave was not identified as optional in the configuration
- AND the timeout has not elapsed.
Configuration of all correctly detected devices
8022
Every SDO is monitored for a response and repeated if the slave does not respond within the
monitoring time.