23
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
ifm function elements
ifm functional elements, POUs (Basic)
>
3.2.6
RTC_REQUEST_ALARM
21883
Unit type = function block (FB)
Unit is contained in the library
ifm_RTC_Basic_V01yyzz.LIB
Symbol in CODESYS:
>
Description
21886
RTC_REQUEST_ALARM requests the real-time clock (RTC) for the following current values:
• the remaining time till the setting of the alarm output
• the current node ID
With the identifier (0x400 + node ID), the controller sends an empty message (without data) to the bus
in order to request the current data.
The real-time clock responds to this with the identifier (0x380 + node ID).
For this, the real-time clock sends a matrix with the following content:
remaining days, hours and minutes as well as the current node ID
The function assigns this data to the corresponding output parameters.
The output parameter RESULT informs about the current operating status of the POU.
>
Parameters of the inputs
21865
Parameter
Data type
Description
REQUEST
BOOL
TRUE:
execute this function element
Request data
FALSE:
unit is not executed
CHANNEL
BYTE
CAN interface (1...n) depending on the device
NODE_ID
BYTE
Node number of the addressed CAN participant