Modbus Agile
47
02/2011
Modbus Message Examples
9.1.1.2
Function Code 6, Write 16-Bit Parameter
Example 1:
Writing parameter
Rated Mech. Power
376 (0x0178) in data set 4 to the frequency inverter with ad-
dress 3.
The rated mechanical power is to be set to 1.5 kW. Parameter
Rated Mech. Power
376 has one de-
cimal place.
Therefore the value to be sent is 15 = 0x000F.
Request: Master
Frequency Inverter
Field:
Addr.
Funk.
DSatz/Par-Nr.
Par-Wert
CRC
Hex
03
06
41
78
00
0F
5C
09
Response: Frequency Inverter
Master
Field:
Addr.
Func.
DSet/Par-No.
Par-Value
CRC
Hex
03
06
41
78
00
0F
5C
09
The response is an echo of the request message.
Example 2:
Writing out of range value 0 to parameter 376 (0x0178) in data set 2 to the frequency inverter with
address 3.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
DSet/Par-No.
Par-Value
CRC
Hex
03
06
21
78
00
00
02
0D
Error Response: Frequency Inverter
Master
Field:
Addr.
Func. Except.
CRC
Hex
03
86
04
E2
63
The exception code sent is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
9.1.1.3
Function Code 16, Write 16-Bit Parameter
Example 1:
Writing parameter
Rated Mech. Power
376 (0x0178) in data set 4 to the frequency inverter with ad-
dress 1.
The rated mechanical power is to be set to 1.5 kW. Parameter
Rated Mech. Power
376 has one de-
cimal place.
Therefore the value to be sent is 15 = 0x000F.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
DSatz/Par-Nr.
No. of registers No. of
bytes
Par-value
CRC
Hex
01
10
41
78
00
01
02
00
0F
BD
28
Response: Frequency Inverter
Master
Field:
Addr.
Func.
DSet/Par-No.
No. of registers
CRC
Hex
01
10
41
78
00
01
95
EC
The response contains the no. of registers written.
Example 2:
Writing out of range value 0 to parameter
Rated Mech. Power
376 (0x0178) in data set 2 to the fre-
quency inverter with address 1.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
DSatz/Par-Nr.
No. of registers
No. of
bytes
Par-value
CRC
Hex
03
10
41
78
00
01
02
00
00
E4
4C
Error Response: Frequency Inverter
Master
Field:
Addr.
Func.
Except.
CRC
Hex
03
90
04
EC
03
The exception code sent is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
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: ......