12
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
ifm function elements
ifm libraries for the device CRnnnn
3
ifm function elements
ifm libraries for the device CRnnnn ..................................................................................................... 12
ifm functional elements, POUs (Basic) ................................................................................................ 14
ifm functional elements, POUs (Classic) ............................................................................................. 25
13586
All CODESYS function elements (FBs, PRGs, FUNs) are stored in libraries. Below you will find a list of
all the
ifm
libraries you can use with this device.
This is followed by a description of the function elements, sorted by topic.
>
3.1
ifm libraries for the device CRnnnn
Library ifm_RTC_Basic_V02yyzz.LIB ................................................................................................. 12
Library ifm_RTC_Classicx_V02yyzz.LIB ............................................................................................. 13
14235
>
3.1.1
Library ifm_RTC_Basic_V02yyzz.LIB
21827
Only ONE real-time clock may be installed in each project!
The POUs of this library are designed for the following
ifm
devices:
• BasicController: CR040n, CR041n, CR043n
• BasicDisplay: CR045n
• SmartController: CR253n
This
ifm
library contains the following function blocks:
Function element
Short description
CONCAT_DATE_TIME
(→ p.
converts the received data that describe the time and the date from bytes into coherent strings
RTC_INITIALIZE
(→ p.
initialises the connection between the controller and the real-time clock
RTC_REQUEST
(→ p.
initialises the connection between the controller and the real-time clock
RTC_REQUEST_ALARM
(→ p.
asks the real-time clock about the following current values:
• the remaining time till the setting of the alarm output
• the current node ID
RTC_SET
(→ p.
Set new time, date and day of the week of the real-time clock
RTC_SET_ALARM
(→ p.
configures the delay after which the real-time clock sets the alarm output