Modbus Agile
49
02/2011
Modbus Message Examples
9.1.2
32 Bit Zugriff
9.1.2.1
Function Code 3, Read 32-Bit Parameter
Example 1:
Reading parameter
Fixed Frequency 2
481 (0x01E1) in data set 1 from the frequency inverter with
address 1.
Request: Master
Frequency Inverter
Field:
Addr.
Func.
DSet/Par-No.
No. of Regs
CRC
Hex
01
03
11
E1
00
02
91
01
Response: Frequency Inverter
Master
Field:
Addr.
Func.
No.Bytes
Par-Value
CRC
Hex
01
03
04
00
00
03
E8
FA
8D
The hexadecimal value sent is 0x03E8 = 1000. Parameter
Fixed Frequency
481 has two decimal
places.
Therefore, the frequency is 10.00 Hz.
Example 2:
Reading parameter
Fixed Frequency 2
481 (0x01E1) in data set 0 from the frequency inverter with
address 1 and No. of Regs field set to 1 (invalid value).
Request: Master
Frequency Inverter
Field:
Addr.
Func.
DSet/Par-No.
No. of Regs
CRC
Hex
01
03
01
E1
00
01
D5
C0
Error Response: Frequency Inverter
Master
Field:
Addr.
Func.
Except.
CRC
Hex
01
83
04
40
F3
The exception code sent is hexadecimal value 0x04 = SLAVE DEVICE FAILURE.
9.1.2.2
Function Code 16, Write 32-Bit Parameter
Example 1:
Writing parameter
Fixed Frequency 3
482 (0x01E2) in data set 9 (= RAM for data set4) to the fre-
quency inverter with address 1.
The frequency is to be set to 44.50 Hz. Parameter
Fixed Frequency 3
482 has two decimal places.
Therefore the value to be sent is 4450 = 0x00001162.
Request: Master
Frequency Inverter
Field
:
Addr.
Funk.
DSatz/Par-Nr. No. Registers
No.
Bytes
Par-Wert
CRC
Hex
01
10
91
E2
00
02
04
00
00
11
62
50
11
Response: Frequency Inverter
Master
Field:
Addr.
Func.
DSet/Par-No.
No. Registers
CRC
Hex
01
10
91
E2
00
02
CD
02
The response contains the no. of registers written.
Example 2:
Writing parameter
Fixed Frequency 3
482 (0x01E2) in data set 9 (= RAM for data set4) to the fre-
quency inverter with address 1.
The frequency is to be set to the invalid value 2000.00 Hz. Parameter
Fixed Frequency 3
482 has two
decimal places.
Therefore the value to be sent is 20000 = 0x00030D40.
Request: Master
Frequency Inverter
Field
:
Addr.
Funk.
DSatz/Par-Nr. No. Registers
No.
Bytes
Par-Wert
CRC
Hex
01
10
91
E2
00
02
04
00
03
0D
40
28
C8
Error Response: Frequency Inverter
Master
Field:
Addr.
Func.
Except.
CRC
Hex
03
90
04
4D
C3
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: ......