6. RKC COMMUNICATION
IMS01J02-E2
54
1.
STX
STX is the transmission control character which indicates the start of the text transmission
(identifier and data).
2.
Identifier (2 digits)
The identifier indicates the type of data (measured value, status and set value) sent to the host
computer.
See
6.2 Communication Identifier List (P. 65)
.
3.
Data
Data which is indicated by an identifier of this instrument, consisting of channel numbers, data,
etc. Each channel number and data are delimited by a space (20H). The data and the next channel
number are delimited by a comma.
•
Channel number: 2-digit ASCII code, not zero-suppressed. Channels without channel numbers
may exist depending on the type of identifier.
•
Data:
ASCII code, zero-suppressed with spaces (20H). The number of digits varies
depending on the type of identifier.
4.
ETB
Transmission control character indicating the end of the block.
5.
ETX
Transmission control character indicating the end of the text.
6.
BCC
BCC (Block Check Character) detects error using horizontal parity and is calculated by
horizontal parity (even number).
Calculation method of BCC:
Exclusive OR
all data and characters from STX through ETB or
ETX, not including STX.
Example:
STX
M 1 0 1 1 5 0 . 0
ETX BCC
4DH 31H 30H 31H 20H 20H 31H 35H 30H 2EH 30H 03H
BCC = 4DH
⊕
31H
⊕
30H
⊕
31H
⊕
20H
⊕
20H
⊕
31H
⊕
35H
⊕
30H
⊕
2EH
⊕
30H
⊕
03H = 54H
(
⊕
:
Exclusive OR
)
Value of BCC becomes 54H
Hexadecimal numbers