81
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
>
CANOPEN_ENABLE
7785
Unit type = function block (FB)
Unit is contained in the library
ifm_CANopen_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7787
CANOPEN_ENABLE allows to switch the CANopen master on or off.
►
In the application program always call an own instance of the FB
CANOPEN_ENABLE
(
for every CAN interface!
To avoid guarding or heartbeat errors the nodes must be "shut down" via an appropriate sequence
first.
If the master is restarted after a stop, all other connected nodes also have to be re-initialised.
Without CANOPEN_ENABLE, the CANopen master is started automatically, as far as this has been
selected in the configuration.
The configured baud rate is only adopted if
CAN_ENABLE
(
) has not been activated before.
>
Parameters of the inputs
7788
Parameter
Data type
Description
ENABLE
BOOL := TRUE
TRUE:
• Enable CANopen for the selected channel
• Start CANopen manager or CANopen device
according to the configuration settings
FALSE:
• Disable CANopen for the selected channel
• Terminate CANopen manager or CANopen device
CHANNEL
BYTE
CAN interface (1...n) depending on the device
Baud rate
(optional use of the parameter)
WORD := 0
Baud rate [kbits/s]
permissible values = 20, 50, 100, 125, 250, 500, 800, 1 000
0 = use setting from the PLC configuration