12
(4) Message format for Write Single Register (Function code: 0x06)
●
Write a content in the Holding Register to reflect it in the IJ Printer.
●
The number of bytes that can be written in the Holding Register per time is fixed to 2 bytes.
Request message configuration
No. Name Size
Range
Description
1 Device address
1 byte
0x01 to 0x03
Sets device address.
2 Function code
1 byte
0x06
Sets function code (Write Single
Register).
3 Writing address
2 bytes
0x0000 to
0xFFFF
Sets writing address. Address is set
in word units.
4 Data to be written
2 bytes
0x0000 to
0xFFFF
Sets data to be written.
Response message data configuration (normal)
No. Name Size
Range
Description
1 Device address
1 byte
0x01 to 0x03
Sets device address received as it is.
2 Function code
1 byte
0x06
Sets function code received as it is.
3 Writing address
2 bytes
0x0000 to
0xFFFF
Sets writing address received as it is.
4 Data to be written
2 bytes
0x0000 to
0xFFFF
Sets data to be written received as it
is.
Response message data configuration (abnormal)
No. Name Size
Range
Description
1 Device address
1 byte
0x01 to 0x03
Sets device address received as it is.
2 Function code
1 byte
0x86
Adds 0x80 to function code received.
3 Error code
1 byte
0x01 to 0x03
Sets error code. Error code differs
according to cause.