![background image](http://html1.mh-extra.com/html/ifm/cr3020/cr3020_supplement-manual_3902019019.webp)
19
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
ifm function elements
ifm functional elements, POUs (Basic)
>
3.2.4
RTC_REQUEST
21861
Unit type = function block (FB)
Unit is contained in the library
ifm_RTC_Basic_V01yyzz.LIB
Symbol in CODESYS:
>
Description
21864
RTC_REQUEST enables to request the current time, date and day of the week of the real-time clock
(RTC). Additionally, this POU warns about a low battery level.
With the identifier (0x200 + 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 (0x180 + node ID).
For this, the real-time clock sends a matrix with the following content:
calendar day, month, year, hour, minute, second as well as day of the week and battery status
The function assigns this data to the corresponding output parameters.
The output parameter RESULT informs about the current operating status of the POU.
We recommend executing this POU e.g. at 200 ms intervals. This is how it is ensured that your
application always has up-to-date data.
>
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