6
• Response to ‘Read multiple pieces of data’
Header
(06H)
Address
Sub
address
(20H)
Command
type
(24H)
Data
item
1 1 1 1 4
Data Checksum
Delimiter
(03H)
4 x n 2 1
n: Amount of data
(4) Acknowledgement
Header
(06H)
Address Checksum
Delimiter
(03H)
1 1 2 1
(5) Negative acknowledgement
Header
(15H)
Address
Error
code
Checksum
Delimiter
(03H)
1 1 1 2 1
Header: Control code to represent the beginning of the command or the response.
ASCII is used.
Write command, Read command: STX (02H) fixed
Response with data, Acknowledgement: ACK (06H) fixed
Negative acknowledgement: NAK (15H) fixed
Instrument number (Address): Numbers by which the master discerns each slave.
Instrument number 0 to 94 and Global address 95.
ASCII (20H to 7FH) is used by adding 20H to instrument numbers 0 to 95 (00H to 5FH).
95 (7FH) is called Global address, which is used when the same command is sent to
all the slaves connected. However, the response is not returned.
Sub address: 20H fixed
Command type: Codes for Write command and Read command.
Command
Type
Contents Description
20H Read (A single piece of data) Reads a single piece of data.
24H Read (Multiple pieces of data) Reads consecutive multiple pieces
of data. (Amount of data: Max. 100)
50H Write (A single piece of data) Writes a single piece of data.
54H Write (Multiple pieces of data) Writes consecutive multiple pieces
of data. (Amount of data: Max. 100)
Notes about Read/Write multiple pieces of data
When reading or writing multiple pieces of data, as it takes time until slave sends
response data, the master determines no response based on the timeout period below
after sending a command.
Timeout period calculation: 6 ms x Amount of data
Data item: Classification of the command object.
Composed of 4-digit hexadecimal numbers, using ASCII.
Refer to Section ‘7. Communication Command Table’ (pp.23 - 38).
Data: The contents of data (values) differ depending on the Write command.
Composed of 4-digit hexadecimal numbers, using ASCII.
Refer to Section ‘7. Communication Command Table’ (pp.23 - 38).
Checksum: 2-character data to detect communication errors.