75
6
. Detailed settings for communications
6.2 Modbus (continued)
■
Variable area writing (16: H’10)
Writing to the variable areas is conducted by setting the required data in the following command frame.
The parameter area can be written to. Before writing, you need to first move to the setting mode with a command.
The content written is reflected by moving to the measuring mode in response to an instruction after writing of the
parameters. Measuring continues even while in the setting mode.
Command frame
• Start writing address
Specify the address for setting data you want to write. Refer to "6.4 Address map
)
" for the address.
• Number of elements
Specify the number of pieces of data that you want to write times 2 as the number of elements.
Range: H’0002 to 0032 (2 to 50).
• Byte counter
Specify the number of bytes for written data.
• CRC-16
This is a check code calculated from the communication address until the data immediately preceding.
Refer to "An example for CRC-16 calculation" for the calculation. (
Commu
nication
address
Function
code
Start writing
address
Number of
elements
Byte
Counter
Data 1
Data 1
H’10
Upper
Lower
1
1
2
2
1
4 bytes worth of the number
of elements
Data n
Data n
CRC-16
Upper
Lower