Modbus services
Write Single Register (6)
The Write Single Register function permits to write value of one parameter. Not all Altivar 212 parameters can be written.
Request and response:
Slave no. | Function code | Register address | Register value | CRC16 | ||||||
| 06 | Hi |
| Lo | Hi |
| Lo | Lo |
| Hi |
|
|
|
| |||||||
1 byte | 1 byte |
| 2 bytes |
| 2 bytes | 2 bytes |
Error response:
Slave no. | 86 | Exception code | CRC16 | |
Lo | Hi | |||
|
|
|
|
|
1 byte | 1 byte | 1 byte | 1 byte |
Example: Write value 60 Hz to the parameter [Frequency reference from serial comm.] (FA01) in Altivar 212 slave 1.
Request and response:
01
06
FA01
1770
E6C6
Example: Error response due to invalid register address.
Request:
01 | 06 | FFFF | 0000 | 89EE |
Error response:
01
86
02
C3A1
36 | S1A53844 01/2011 |