6.0
SERIAL COMMANDS – RS-232 / USB
6.1
SERIAL INTERFACE PROTOCOL
Serial communications will use the following protocol:
<STX><CMD><,>ARG><,><CSUM><ETX>
Where:
<STX>
= 1 ASCII 0x02 Start of Text character
<CMD>
= 2 ASCII characters representing the command ID
<,>
= 1 ASCII 0x2C character
<ARG>
= Command Argument
<,>
= 1 ASCII 0x2C character
<CSUM>
= Checksum (see section 6.3 for details)
<ETX>
= 1 ASCII 0x03 End of Text character
6.2 COMMAND
ARGUMENTS
The format of the numbers is a variable length string. To represent the number
42, the string ‘42’, ‘042’, or ‘0042’ can be used. This being the case, commands
and responses that carry data are variable in length.
6.3 CHECKSUMS
The checksum is computed as follows:
•
Add the <CMD>, <,>, and <ARG> bytes into a 16 bit (or larger) word.
The bytes are added as unsigned integers.
•
Take the 2’s compliment (negate it).
•
Truncate the result down to the eight least significant bits.
•
Clear the most significant bit (bit 7) of the resultant byte, (bitwise AND with
0x7F).
•
Set the next most significant bit (bit 6) of the resultant byte (bitwise OR
with 0x40).
Using this method, the checksum is always a number between 0x40 and 0x7F.
The checksum can never be confused with the <STX> or <ETX> control
characters, since these have non-overlapping ASCII values.
If the DSP detects a checksum error, the received message is ignored – no
acknowledge or data is sent back to the host. A timeout will act as an implied
NACK.
118080-001 REV A
Page 67 of 95
Summary of Contents for SLM SERIES
Page 15: ...SLM MANUAL 6 118073 001 Rev C Figure 2 2 Unit Dimensions 1200W ...
Page 19: ...SLM MANUAL 10 118073 001 Rev C Figure 3 3 Local Programming via External Voltage Source ...
Page 20: ...SLM MANUAL 11 118073 001 Rev C Figure 3 4 Remote Monitoring ...
Page 40: ...Figure 9 Web Page 1 Contact Information 118080 001 REV A Page 13 of 95 ...
Page 98: ...Request Faults 68 20 ASCII 118080 001 REV A Page 71 of 95 ...