Modbus Agile
55
02/2011
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.
9.2.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 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.Co
de
DSet/Par-No.
No. Registers
No.
Byte
Para-Value
LRC
EoF
ASC
:
0 1 1 0 4 1 7
8
0 0 0 1 0 2 0 0 0 F
2 4 CR
LF
Hex
3A 30 31 31 30 34 31 37 38 30 30 30 31 30 32 30 30 30 46 32 34 0D
0A
Response: Frequency Inverter
Master
Field SoF Addr.
Fct.Co
de
DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0 1 1 0 4 1 7
8
0 0 0 F
3 5 CR
LF
Hex
3A 30 31 31 30 34 31 37 38 30 30 30 46 33 35 0D
0A
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.Co
de
DSet/Par-No.
No. Registers
No.
Byte
Para-Value
LRC
EoF
ASC
:
0 1 1 0 2 1 7
8
0 0 0 1 0 2 0 0 0 0 5 3 CR
LF
Hex
3A 30 33 30 36 32 31 37 38 30 30 30 31 30 32 30 30 30 30 35 33 0D
0A
Error Response: Frequency Inverter
Master
Field: SoF Addr.
Fct.Code
Except.
Code
LRC
EoF
ASC
:
0
1
9
0
0
4
6
B CR LF
Hex
3A 30 31
39 30 30 34 36 42 0D 0A
The sent exception code is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
Содержание Agile
Страница 1: ...Agile Modbus Communication manual Frequency inverter 230V 400V ...
Страница 2: ......
Страница 5: ...Modbus Agile 5 02 2011 13 2 Warning Messages Application 76 13 3 Error Messages 76 INDEX 77 ...
Страница 44: ...Modbus Agile 02 2011 44 Handling of Data Sets Cyclic Writing ...
Страница 69: ...Modbus Agile 69 02 2011 10 2 1 Statemachine diagram ...
Страница 78: ......
Страница 79: ......