
42
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
Winter starting date
2 BYTE
0101010X XXXYYYYY
bit Y (0ßà4) first winter day
bit X (5ßà8) month of the first winter day
Winter finish date
2 BYTE
0101010X XXXYYYYY
bit Y (0ßà4) last winter day
bit X (5ßà8) month of the last winter day
The summer season is defined automatically, after setting the winter one.
Holiday starting date
2 BYTE
0101010X XXXYYYYY
bit Y (0ßà4) first holiday day
bit X (5ßà8) month of the first holiday day
Holiday finish date
2 BYTE
0101010X XXXYYYYY
bit Y (0ßà4) last holiday day
bit X (5ßà8) month of the last holiday day
Day periods finish hour (Winter, Summer, Holiday).
2 BYTE
010WWXXX XXYYYYYY 010 check bit, bit Y Minutes, bit X Hours, bit W Tariff
WARNING: to read the RTC RAM, the bytes are to be addressed two by two starting only from the
even addresses.
NOTE: when the time is updated by serial commands, the AM-PM coding is not allowed
Example 24: RTC data read command
4-word read command frame (8 byte):
01 04h 40h 00h 00h 04h E4h 09h
read command answer frame (13 byte):
Sec.
Min.
Hour
Week
day .
Month
day
Month
Year
01h
04h 08h 12h 08h 11h
01h 08h 0Ah 01h
00h 30h 6Bh
Seconds: 12h = 18
Minutes: 08h = 8
Hour: 11h = 17
Day of the week 01h = 1 (Monday)
Day of the month: 08h = 8
Month: 0Ah = 10
Year: 0001h= 1 (2001)
Komentáře k této Příručce