Modbus Agile
59
02/2011
Modbus Message Examples
9.2.2.3
Function Code 100, Read 32-Bit Parameter
Example 1:
Reading parameter
Fixed Frequency 2
481 in data set 0 from the frequency inverter with address 1.
Request: Master
Frequency Inverter
Field: SoF Addr. Fct.Code
DSet/Par-No.
LRC
EoF
ASC
:
0 1 6
4
0
1
E
1
B
9 CR LF
Hex
3A 30 31 36
34
30 31 45 31 42 39 0D 0A
Response: Frequency Inverter
Master
Field: SoF Addr.
Fct.Code
Para-Value
LRC
EoF
ASC
:
0
1
6
4
0
0
0
0 0 3 E 8 B
0 CR LF
Hex
3A 30 31
36
34
30 30 30 30 30 33 45 38 42 30 0D 0A
The hexadecimal value sent is 0x000003E8 = 1000. Parameter
Fixed Frequency 2
481 has 2 decimal
places.
Therefore, fixed frequency 2 = 10.00 Hz.
Example 2:
Reading unknown parameter 1600 (0x0640) in data set 2 from the frequency inverter with address 1.
Request: Master
Frequency Inverter
Field: SoF Addr. Fct.Code
DSet/Par-No.
LRC
EoF
ASC
:
0 1 6
4
2
6
4
0
3
5 CR LF
Hex
3A 30 31 36
34
32 36 34 30 33 35 0D 0A
Error Response: Frequency Inverter
Master
Field: SoF Addr. Fct.Code Except.
Code
LRC
EoF
ASC
:
0 1 E
4
0
2
1
9 CR LF
Hex
3A 30 31 45
34
30 34 31 37 0D 0A
The exception code sent is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
9.2.2.4
Function Code 101, Write 32-Bit Parameter
Example 1:
Writing parameter
Rated Frequency
375 (0x0177) in data set 2 to frequency inverter with address 1.
The rated frequency is to be set to 10.00 Hz. Parameter
Rated Frequency
375 has two decimal plac-
es.
Therefore the value to be sent is 1000 = 0x03E8.
Request: Master
Frequency Inverter
Field: SoF
Addr.
Fct.Cod DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0
1
6
5 2 1 7 7 0 0 0 0 0 3 E 8 1 7 CR LF
Hex
3A
30 31 36 35 32 31 37 37 30 30 30 30 30 33 45 38 31 37 0D 0A
Response: Frequency Inverter
Master
Field: SoF
Addr.
Fct.Cod DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0
1
6
5 2 1 7 7 0 0 0 0 0 3 E 8 1 7 CR LF
Hex
3A
30 31 36 35 32 31 37 37 30 30 30 30 30 33 45 38 31 37 0D 0A
The response is an echo of the request message.
Example 2:
Writing out of range value to 9.00 Hz to parameter
Rated Frequency
375 (0x0177) in data set 2 of
the frequency inverter with address 1.
Parameter
Rated Frequency
375 has 2 decimal places. The value to be sent is 900 = 0x0384
Request: Master
Frequency Inverter
Field: SoF
Addr.
Fct.Cod
DSet/Par-No.
Para-Value
LRC
EoF
ASC
:
0
1
6
5 2 1 7 7 0 0 0 0 0 3 8 4 7 B CR LF
Hex
3A
30 31 36 35 32 31 37 37 30 30 30 30 30 33 38 34 37 42 0D 0A
Error Response: Frequency Inverter
Master
Field: SoF
Addr.
Fct.Code
Except.
Code
LRC
EoF
ASC
:
0
1
E
5
0
4
1
6
CR
LF
Hex
3A
30
31
45
35
30
34
31
36
0D
0A
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: ......