Manual

53
Serial Communication (SCOM) Interface
Communication Interface
IND100084-1
Data Length (LEN)
This byte denes the length of DATA in the message in bytes. The maximum value for this eld shall be 74 bytes. The
minimum value is 0 bytes.
Inverse Header Checksum (IHCHK)
This is a simple 8-bit checksum of the header data, message bytes 0 to 5 on which a bit-wise inversion has been
performed. The checksum shall be initialised to 0. The 8-bit sum (without carry) of bytes 0, 1, 2, 3, 4, 5 and 6 shall be
0xF F.
To any message that fails the checksum, the receiver shall reply with the attention code set to NAK and no data eld.
This requirement does not apply to Broadcast messages in RS-485 (for units that support it) mode, in which case
there will be no reply.
Data Field (DATA)
The DATA eld shall only be transmitted if LEN is greater than 0. This eld is dependent upon the CMD transmitted.
Inverse Data Checksum (IDCHK)
These bytes shall only be transmitted if LEN is greater than 0. This is a simple 8-bit checksum of the data eld,
message bytes 7 to 7+(LEN-1) on which a bit-wise inversion has been performed. The checksum shall be initialized
to 0. The 8-bit sum (without carry) of bytes 7 through 7+LEN inclusive shall be 0xFF. The receiver will reply to any
message that the checksum has failed with the attention code set to NAK. This requirement does not reply to
broadcast messages in RS-485 (for units that support it) mode, in which case there will be no reply.
Message Commands
The following sections dene the message formats for each of the specic commands.
Brightness Command “BRT”
This command shall be sent to the unit to command the backlight brightness control setting.The brightness value shall
be sent as 1 byte in the DATA eld. A setting of 0x00 will indicate off. A setting of 0xFF will indicate maximum
brightness. Intermediate values will control brightness over the range from minimum to maximum luminance.
If the data checksum is valid and the brightness was set, the unit will reply to this command with an ACK attention
code. The DATA eld in the reply shall indicate the resulting brightness control setting. If an invalid checksum was
received and the message was not Broadcast and RS-485 (for units that support it), the unit will reply with an NAK
attention code. The DATA eld in the reply will indicate the current brightness control setting.
Examples:
Command 60% Brightness:
0x07 0xFF 0x42 0x52 0x54 0x01 0x10 0x99 0x66
Acknowledge 60% Brightness:
0x06 0xFF 0x42 0x52 0x54 0x01 0x11 0x99 0x66
Negative Acknowledge 40% Brightness:
0x15 0xFF 0x42 0x52 0x54 0x01 0x02 0x66 0x99