![background image](http://html1.mh-extra.com/html/ifm/cr3020/cr3020_supplement-manual_3902019011.webp)
11
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
System description
Software description
>
Define alarm date
21813
RTC_SET_ALARM
Define the date on which the alarm output of the real-time clock (RTC) is to be set:
(max. target time till the alarm: 7 days, 23 hours, 59 minutes)
Message to the real-time clock:
COB ID
Message
Notes
0x500 + node ID
DLC = 6
Byte 0 = target time till the alarm: days (max. 7)
Byte 1 = target time till the alarm: hours (max. 23)
Byte 2 = target time till the alarm: minutes (max. 59)
Byte 3 = (new) node ID
Byte 4 = (new) node ID
Byte 5 = (new) baud rate
If required: change the node ID of the real-
time clock: max. value = 0x3F
byte 5 = 02
baud rate = 500 kBd
byte 5 = 03
baud rate = 250 kBd
byte 5 = 04
baud rate = 125 kBd
The real-time clock (RTC) sets the internal value for the second to zero.
Response of the real-time clock:
COB ID
Message
Notes
0x480 + node ID
DLC = 6
Byte 0 = target time till the alarm: days
Byte 1 = target time till the alarm: hours
Byte 2 = target time till the alarm: minutes
Byte 3 = (new) node ID
Byte 4 = (new) node ID
Byte 5 = (new) baud rate
---
>
Request the remaining time till the alarm
21816
RTC_REQUEST_ALARM
Request the remaining time till the setting of the alarm output:
Message to the real-time clock:
COB ID
Message
Notes
0x400 + node ID
DLC = 0
no data bytes available at DLC=0
Response of the real-time clock:
COB ID
Message
Notes
0x380 + node ID
DLC = 6
Byte 0 = remaining time in days
Byte 1 = remaining time in hours
Byte 2 = Remaining time in minutes
Byte 3 = node ID
Byte 4 = node ID
Byte 5 = (new) baud rate
Byte 5 = 02
baud rate = 500 kBd
Byte 5 = 03
baud rate = 250 kBd
Byte 5 = 04
baud rate = 125 kBd
>