HRX-OM-Q033
Chapter 5 Simple communication protocol function
5.5
Message configuration
HRSH Series
5-12
5.5 Message configuration
The message
configuration
is shown in the following. The explanation of
data in message is shown in the Table 5.5-1.
This product communicates in ASCII mode. ASCII mode is used from STX
to ETX. Hexadecimal value is used for BCC.
5.5.1
Message format
1) Request message format
1-1) Request message (Request to read)
STX
Slave Address
Request
Command
ETX
BCC
[STX]
XX
XX
[R]
XX
XX
XX
[ETX]
XX
1-2) Request message (Request to write)
STX
Slave Address
Request
Command
Writing data
ETX
BCC
[STX]
XX
XX
[W]
XX
XX
XX
XX
XX
XX
XX
XX
[ETX]
XX
1-3) Request message (Request to store the data
)
STX
Slave Address
Request
Command
ETX
BCC
[STX]
XX
XX
[W]
XX
XX
XX
[ETX]
XX
2) Response message format
2-1) Response message (Normal response to request to write)
STX
Slave Address
ACK
Command
Reading data
ETX
BCC
[STX]
XX
XX
[ACK]
XX
XX
XX
XX
XX
XX
XX
XX
[ETX]
XX
2-2) Response message (Normal response to request to write or store the data)
STX
Slave Address
ACK
ETX
BCC
[STX]
XX
XX
[ACK]
[ETX]
XX
2-3) Response message (Response when a receiving error occurred)
STX
Slave Address
NAK
ETX
BCC
[STX]
XX
XX
[NAK]
XX
[ETX]
XX
Response is not returned unless STX and ETX (BCC) are included in the request. This product clears all
previously received code when STX is received.
Exception code
Содержание HRSH Series
Страница 5: ...HRX OM Q033 Contents HRSH Series 6 3 2 Setting and checking 6 3...
Страница 6: ......
Страница 56: ......
Страница 83: ......