112
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
CANOPEN_GETSYNCSTATE
7871
= Get SYNC state
Unit type = function block (FB)
Unit is contained in the library
ifm_CANopen_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7872
CANOPEN_GETSYNCSTATE reads...
• the setting of the SYNC functionality (active / not active),
• the error state of the SYNC functionality (SyncError).
If the PLC CAN runs as CANopen slave, it is signalled via this FB whether SYNC signals are absent or
appear regularly.
Synchronous PDOS etc. are handled in the CAN stack. CANOPEN_GETSYNCSTATE, however,
provides the error state so that the application program can react accordingly.
>
Parameters of the inputs
7874
Parameter
Data type
Description
EXECUTE
BOOL := FALSE
FALSE
TRUE (edge):
execute function element once
otherwise: function element is not active
A function element already started is processed.
CHANNEL
BYTE
CAN interface (1...n) depending on the device