
27
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
ifm function elements
ifm functional elements, POUs (Classic)
>
3.3.2
RTC_INITIALIZE
21855
Unit type = function block (FB)
Unit is contained in the library
ifm_RTC_Classicx_V01yyzz.LIB
(x = 1...n = number of the CAN interface (depending on the device,
→ data sheet))
Symbol in CODESYS:
>
Description
21858
22111
This must be the first communication with the real-time clock!
RTC_INITIALIZE initialises the connection between the controller and the real-time clock.
Without this POU, no connection between the controller and the real-time clock is established.
With the COB-ID 0x7FFT, the controller sends an empty message (without data) to the bus until the
real-time clock responds.
The real-time clock recognises the CAN baud rate and responds under the COB-ID 0x7FE with its
node ID.
The controller defines the received node ID as output parameter CURRENT_ID.
With the INIT2 output, the RTC POUs following in the project can be initialised.
The output parameter RESULT informs about the current operating status of the POU.
>
Parameters of the inputs
21859
Parameter
Data type
Description
INIT
BOOL
TRUE (only for 1 cycle):
Function block is initialised
FALSE:
during further processing of the program