(65/104)
12.2 Weekend Write
This command is used in order to write the setting of Weekend.
1) The controller requests the monitor to write the setting of Weekend.
Header Message Check code
SOH-'0'-Monitor ID-
'0'-'A'-'0'-'A'
STX-'C'-'A'-'1'-'A'-'0'-'1'-
WEEK-ETX
BCC CR
Header
SOH (01h): Start of Header
'0' (30h): Reserved
Monitor ID: Specify the Monitor ID of which you want to change the setting.
Ex.) If Monitor ID is '1', specify 'A'.
'0' (30h): Message sender is the controller.
'A' (41h): Message type is "Command".
'0'-'A'(31h, 41h): Message length
Message
STX (02h): Start of Message
'C'-'A'-'1'-'A' (43h, 41h, 31h, 41h):
Weekend
command
'0'-'1' (30h, 30h): write request
WEEK: Weekend
'0'-'0'(30h, 30h): None
bit assignment of a day of the week.
bit0: Monday
bit1: Tuesday
bit2: Wednesday
bit3: Thursday
bit4: Friday
bit5: Saturday
bit6: Sunday
Example:
Weekend setting is “Saturday” and “Sunday”.
'2'-'0' OR '4'-'0' = '6'-'0'
ETX (03h): End of Message
Check code
BCC: Block Check Code
Refer to the section 4.3 “ Check code” for a BCC calculation.
Delimiter
CR (0Dh): End of packet
2) The monitor replies a data for confirmation.
Header Message Check code
SOH-'0'-'0'-Monitor ID-
'B'-'0'-'C'
STX-'C'-'B'-'1'-'A'-'0'-'1'-ST-
WEEK-ETX
BCC CR
Header
SOH (01h): Start of Header
'0' (30h): Reserved
'0' (30h): Message receiver is the controller.
Monitor ID: Indicate a replying Monitor ID.
Ex.) When this byte is set to 'A', the replying Monitor ID is '1'.
'B' (42h): Message type is "Command reply".
'0'-'C'(30h, 43h): Message length
Message
STX (02h): Start of Message
'C'-'B'-'1'-'A' (43h, 33h, 31h, 41h): Weekend reply command
'0'-'1' (30h, 30h): write request
ST: Status
'0'-'0'(30h, 30h): No error