122
5. PARAMETERS
5.7 (N) Communication operation parameters
• Details of protocol
The following table explains the four message fields.
Function code list
Read holding register (reading data of holding registers) (H03 or 03)
• Query message
Start
Address
Function
Data
CRC check
End
T1
8 bits
8 bits
n × 8 bits
L
8 bits
H
8 bits
T1
Message field
Description
Address field
"0 to 247" can be set in the single-byte (8-bit) length field. Set "0" when sending broadcast messages
(instructions to all addresses), and "1 to 247" to send messages to individual slaves.
The response from the slave also contains the address set by the master. The value set in
Pr.331 RS-485
communication station number
is the slave address.
Function field
"1 to 255" can be set as the function code in the single-byte (8-bit) length filed. The master sets the function to
be sent to the slave as the request, and the slave performs the requested operation. Refer to the function code
list for details of the supported function codes. An error response is generated when a function code other than
those in the function code list is set.
The normal response from the slave contains the function code set by the master. The error response contains
H80 and the function code.
Data field
The format changes according the function code. (Refer to
.) The data, for example, includes the byte
count, number of bytes, and accessing content of holding registers.
CRC check field
Errors in the received message frame are detected. Errors are detected in the CRC check, and the 2 bytes length
data is appended to the message. When the CRC is appended to the message, the lower bytes of the CRC are
appended first, followed by the upper bytes.
The CRC value is calculated by the sender that appends the CRC to the message. The receiver recalculates
the CRC while the message is being received, and compares the calculation result against the actual value that
was received in the error check field. If the two values do not match, the result is treated as an error.
Function name
Read/
write
Code
Outline
Broadcast
communication
Message
format
reference
page
Read holding register
Read
H03
The data of the holding registers is read.
The various data of the converter unit can be read from MODBUS
registers.
System environmental variable (Refer to
Real time monitor (Refer to
.)
Fault history (Refer to
.)
Model information monitor (Refer to
Converter unit parameters (Refer to
.)
Not available
Preset single register
Write
H06
Data is written to a holding register.
Data can be written to MODBUS registers to output instructions
to the converter unit or set parameters.
System environmental variable (Refer to
Converter unit parameters (Refer to
.)
Available
Diagnostics
Read
H08
Functions are diagnosed. (Communication check only)
A communication check can be made since the query message
is sent and the query message is returned as it is as the return
message (subfunction code H00 function).
Subfunction code H00 (Return query data)
Not available
Preset multiple
registers
Write
H10
Data is written to multiple consecutive holding registers.
Data can be written to consecutive multiple MODBUS registers to
set converter unit parameters.
System environmental variable (Refer to
Converter unit parameters (Refer to
.)
Available
Read holding register
access log
Read
H46
The number of registers that were successfully accessed by the
previous communication is read.
Queries by function codes H03 and H10 are supported.
The number and start address of holding registers successfully
accessed by the previous communication are returned.
"0" is returned for both the number and start address for queries
other than function code H03 and H10.
Not available
a. Slave address
b. Function
c. Starting address
d. No. of points
CRC check
(8 bits)
H03
(8 bits)
H
(8 bits)
L
(8 bits)
H
(8 bits)
L
(8 bits)
L
(8 bits)
H
(8 bits)