HRX-OM-S010
Chapter 5 Simple communication protocol function
HRS100/150 Series
5.5
Message configuration
5-13
Table 5.5-1
Format data
NO
Item
Explanation
1
STX(02h)
Start text
The code to specify the head of the message. Added to the head of the characters to
be sent.
2
ETX(03h)
End text
The code to specify the end of the message. Added to the end of the characters to be
sent. Other than BCC.
3
Slave
Address
Slave address which is set to each product. Can be changed by setting.
The address to identify the device.
4
Request
Request identifier. R (reading) or W (writing)
5
Command
Command to reading or writing.
6
Writing
Reading
To request writing, write the data in this area to the object data.
To request reading, set the object data in this area.
7
BCC
EXOR algorithm of all characters from STX to ETX is read with the check code for
error detection.
This code (BCC) is not included in “response” if BCC check is not selected when
setting the communication.
8
ACK(06h)
Acknowledge code.
This is included in the response from the product when there is no error in the
received request.
9
NAK(15h)
Negative acknowledge code.
This is included in the response from the product when there is an error in the
received request.
10
Exception
code
Error content is included in the response when there is an error in the received
request. Refer to the table below for exception codes.
Exception
code
Exception
0
Equipment malfunction
Memory error
1
Out of set range
Value data is out of “set range specified independently by set
parameter”
2
Setting not allowed.
Changing of requested communication parameter is prohibited. Or
communication parameter to read does not exist.
Writing of the communication mode is requested while the
communication mode change is set to RO (read only)
Writing to PV (measured value) is requested.
3
Abnormal code
ASCII code other than numerical data is requested (specified) to the
location for numerical data.
ASCII code other than “0” or”-” is requested (specified) to the
location for symbol.
4
Format error
5
BCC error
6
Overrun error
7
Fleming error
8
Parity error
1 :
Exception code “0” is included in the response regardless of the presence of the
request error because memory error is present.
2 : The exception with the highest number is included in the response when two or
more errors have occurred.