![Yamatake SDC35 User Manual Download Page 207](http://html.mh-extra.com/html/yamatake/sdc35/sdc35_user-manual_905228207.webp)
7-5
• How to calculate a checksum
(1) Add the character codes in the message from STX through ETX in single
byte units.
(2) Take two's complement of the low-order one byte of the addition result.
(3) Convert the obtained two's complement to a two-byte ASCII code.
The following is a sample checksum calculation:
[Sample message]
STX: 02H
'0':
30H (first byte of the station address)
'1':
31H (second byte of the station address)
'0':
30H (first byte of the sub-address)
'0':
30H (second byte of the sub-address)
'X':
58H (device code)
'R':
52H (first byte of the command)
'S':
53H (second byte of the command)
(omitted)
ETX: 03H
(1) Add the character codes in the message from STX through ETX in single
byte units.
The add operation in single byte units is as follows:
02H + 30H + 31H + 30H + 30H + 58H + 52H + 53H + • • • + 03H.
Assume that the result is 376H.
(2) The low-order one byte of the addition result 376H is 76H. The two's
complement of 76H is 8AH.
(3) Convert the obtained 8AH to a two-byte ASCII code.
The result is:
'8': 38H
'A': 41H,
and the two bytes, '8'(38H) and 'A'(41H), are the checksum.
• CR/LF
This indicates the end of the message. Immediately after LF is received, the
device enters a state allowed to process the received message.
■
Application layer
The table below shows the configuration of the application layer.
Chapter 7. CPL COMMUNICATION FUNCTION
Item
Description
Command
"RS" (decimal number format continuous address data read command)
"WS" (decimal number format continuous address data write command)
"RD" (hexadecimal number format continuous address data read command)
"WD" (hexadecimal number format continuous address data write command)
"RU" (hexadecimal number format random address data read command)
"WU" (hexadecimal number format random address data write command)
Data delimiter
RS, WS: "," (comma)
Other commands: None
Word address
RS, WS: "501W", etc.
Other commands: "01F5", etc.
Read count
Numerical value of characters expressed as "1" for example
Numerical value
RS, WS: Numerical value of characters expressed as "100" for example
to be written
Other commands: Numerical value of characters expressed in hexadecimal
as "0064" for example
Summary of Contents for SDC35
Page 16: ......
Page 17: ......
Page 19: ... display key para key or V key key enter key 2 second press hold of para key V ...
Page 32: ......
Page 46: ......
Page 58: ......
Page 71: ......
Page 84: ......
Page 95: ......
Page 172: ......
Page 174: ...6 2 Chapter 6 LIST OF DISPLAYS AND SETTING DATA ...
Page 211: ......
Page 230: ......
Page 240: ......
Page 248: ......
Page 260: ......
Page 268: ......
Page 270: ......
Page 279: ......