Modbus Agile
02/2011
54
Modbus Message Examples
9.2.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.
Thus the value to be sent is 15 = 0x000F.
Request: Master
Frequency Inverter
Field: SoF Addr. Fct.Code
DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0 3 0
6
4 1 7 8 0
0
0
F
2
F
CR LF
Hex
3A 30 33 30
36
34 31 37 38 30 30 30 46 32 46 0D 0A
Response: Frequency Inverter
Master
Field: SoF Addr. Fct.Code
DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0 3 0
6
4 1 7 8 0
0
0
F
2
F
CR LF
Hex
3A 30 33 30
36
34 31 37 38 30 30 30 46 32 46 0D 0A
The response is an echo of the request message.
Example 2:
Writing out of range value 0 to parameter
Rated Mech. Power
376 (0x0178) in data set 2 of the fre-
quency inverter with address 3.
Request: Master
Frequency Inverter
Field: SoF Addr. Fct.Code
DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0 3 0
6
2 1 7 8 0
0
0
0
5
E CR LF
Hex
3A 30 33 30
36
32 31 37 38 30 30 30 30 35 45 0D 0A
Error Response: Frequency Inverter
Master
Field: SoF Addr.
Fct.Code
Except.
Code
LRC
EoF
ASC
:
0
3
8
6
0
4
7
3 CR LF
Hex
3A 30 33
38
36
30 34 37 33 0D 0A
The sent exception code 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: ......