![background image](http://html1.mh-extra.com/html/ifm/cr3020/cr3020_supplement-manual_3902019009.webp)
9
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
System description
Software description
>
2.5
Software description
CAN messages via COB-ID and node ID.............................................................................................. 9
21807
► The CODESYS libraries of version 2 are absolutely required.
>
2.5.1
CAN messages via COB-ID and node ID
Initialise real-time clock (RTC) .............................................................................................................. 9
Define time and date ........................................................................................................................... 10
Request time and date ........................................................................................................................ 10
Define alarm date ................................................................................................................................ 11
Request the remaining time till the alarm ............................................................................................ 11
21810
Choose this method if you do not configure or consult the real-time clock with an
ifm
controller (RTC).
>
Initialise real-time clock (RTC)
21811
This must be the first communication with the real-time clock (RTC)!
RTC_INITIALIZE
Initialise the real-time clock (RTC) in the CAN system:
Message to the real-time clock:
COB ID
Message
Notes
0x7FF
DLC = 0
no data bytes available at DLC=0
The real-time clock (RTC) adjusts the baud rate on your CAN interface to the baud rate of the sending
controller.
Response of the real-time clock:
COB ID
Message
Notes
0x7FE
DLC = 1
Byte 0 = distinct node ID
---