Modbus Agile
29
02/2011
Protocol
7.3.2
Function Code 6, Write 16-Bit-Parameter
This function code is used to write the value of an integer or unsigned integer parameter in the inver-
ter.
Request 16 Bit parameter write:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Function Code
1 Byte
0x06
Start Address (Data Set / Para-No.)
2 Bytes
0x0000 – 0x963F
Register Value (Parameter Value)
2 Bytes
0 – 0xFFFF
CRC or LRC & Endframe
Response:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Function Code
1 Byte
0x06
Start Address (Data Set / Para-No.)
2 Bytes
0x0000 – 0x963F
Register Value (Parameter Value)
2 Bytes
0 – 0xFFFF
CRC or LRC & Endframe
Exception Response:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Error Code
1 Byte
0x86
Exception Code
1 Byte
2, 3 or 4
CRC or LRC & Endframe
Start Address
This field is used to store the parameter number and data set number. The parameter number ranges
from 0 – 1599 and is stored in the lower 12 bits; the data set number ranges from 0 – 9 and is stored
in the upper 4 bits.
e.g.: Parameter 372 (hex. 0x174), data set 2 (hex. 0x2) is stored as hex. 0x2174.
Start Address
Data Set
Parameter number
Bits
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
For the above example:
Hex.
0
0
1
0
0
0
0
1
0
1
1
1
0
1
0
0
Bin.
2
1
7
4
Register Value
This field is used to store the 16-bit parameter value.
Note:
Parameter values with decimal places are transferred without the decimal point. Depending on the
number of decimal places, the values are multiplied by 10, 100 or 1000.
Example:
A current value of 10.3A is to be transmitted. The numerical value actually transmitted is 103, which
corresponds to 0x67 in HEX format.
Exception Code
The following exception codes can occur:
2
ILLEGAL DATA ADDRESS
−
Parameter unknown
3
ILLEGAL DATA VALUE
−
No. of bytes in the data field too small or too large
4
SLAVE DEVICE FAILURE
−
Error on writing the parameter
Exception Codes are described in detail in Chapter 7.3.9 "Exception Codes".
Example of a Modbus ASCII telegram: see chapter 9.2.1.2.
Example of a Modbus RTU telegram: see chapter 9.1.1.2.
7.3.3
Function Code 16, Write 16-Bit-Parameter
Function code 16 can be used to to write the value of 16 Bit parameter in the inverter.
Request 16 Bit parameter write:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Function Code
1 Byte
0x10
Start Address (Data Set / Para-No.)
2 Bytes
0x0000 – 0x963F
No. of Registers
2 Bytes
0x0001
No. of Bytes
1 Byte
0x02
Register Value (Parameter Value)
2 Bytes
0 – 0xFFFF
CRC or LRC & Endframe
Response:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Function Code
1 Byte
0x10
Start Address (Data Set / Para-No.)
2 Bytes
0x0000 – 0x963F
No. of Registers
2 Bytes
0x0001
CRC or LRC & Endframe
Exception Response:
Start Frame (RTU oder ASCII mode)
Address
1 Byte
1 – 0xF7 (=247)
Error Code
1 Byte
0x90
Exception Code
1 Byte
2, 3 or 4
CRC or LRC & Endframe
Start Address
This field is used to store the parameter number and data set number. The parameter number ranges
from 0 – 1599 and is stored in the lower 12 bits; the data set number ranges from 0 – 9 and is stored
in the upper 4 bits.
e.g.: Parameter 372 (hex. 0x174), data set 2 (hex. 0x2) is stored as hex. 0x2174.
Start Address
Data Set
Parameter number
Bits
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
For the above example:
Hex.
0
0
1
0
0
0
0
1
0
1
1
1
0
1
0
0
Bin.
2
1
7
4
Summary of Contents for Agile
Page 1: ...Agile Modbus Communication manual Frequency inverter 230V 400V ...
Page 2: ......
Page 5: ...Modbus Agile 5 02 2011 13 2 Warning Messages Application 76 13 3 Error Messages 76 INDEX 77 ...
Page 44: ...Modbus Agile 02 2011 44 Handling of Data Sets Cyclic Writing ...
Page 69: ...Modbus Agile 69 02 2011 10 2 1 Statemachine diagram ...
Page 78: ......
Page 79: ......