10
ifm
Programming Manual (supplement) CAN module RTC CR3020
2017-10-26
System description
Software description
>
Define time and date
21812
RTC_SET
Set the real-time clock to the current time and the current date:
Message to the real-time clock:
COB ID
Message
Notes
0x300 + node ID
DLC = 6
Byte 0 = calendar day
Byte 1 = month
Byte 2 = year
Byte 3 = hour
Byte 4 = minute
Byte 5 = day of the week
---
The real-time clock sets the internal value for second to zero.
Response of the real-time clock:
COB ID
Message
Notes
0x280 + node ID
DLC = 6
Byte 0 = calendar day
Byte 1 = month
Byte 2 = year
Byte 3 = hour
Byte 4 = minute
Byte 5 = day of the week
---
>
Request time and date
21815
RTC_REQUEST
Request the current time and the current date:
Message to the real-time clock:
COB ID
Message
Notes
0x200 + node ID
DLC = 0
no data bytes available at DLC=0
Response of the real-time clock:
COB ID
Message
Notes
0x180 + node ID
DLC = 8
Byte 0 = calendar day
Byte 1 = month
Byte 2 = year
Byte 3 = hour
Byte 4 = minute
Byte 5 = seconds
Byte 6 = day of the week
Byte 7 = battery charging level
Battery charging level
0 = sufficient
1 = too low