Download Operating Instructions - ACS-CONTROL

Transcript
Graphic Data Manager/Modbus Slave
__________________________________________________________________________________
3.2.4 Device -> Modbus master: maths channels result
The results of the mathematics channels are read via 03 Read Holding Register (4x).
Channel
Reg.
Dec.
316
319
322
325
328
331
334
337
736
740
744
748
Maths 1
Maths 2
Maths 3
Maths 4
Maths 5
Maths 6
Maths 7
Maths 8
Mathe 9
Mathe 10
Mathe 11
Mathe 12
Reg.
Hex.
13C
13F
142
145
148
14B
14E
151
2E0
2E4
2E8
2EC
Tab. 12: Register addresses of the mathematics channels, device -> Modbus master
Length
in bytes
6
6
6
6
6
6
6
6
6
6
6
6
The status of the floating point number transmitted in the 2nd and 3rd register is found in the first register (see
Section 3.2.12.3).
Example:
Reading maths 1 (result instantaneous value), slave address 5
Byte
0
00
1
80
Digital
status /
Off-limit
conditions
Status
floating
point
number
Register
316
317
318
Query:
Slave address
Function
Register
No. of registers
CRC
05
03
01 3C
00 03
C5 BF
Response:
Slave address
Function
No. of bytes
Status
FLP
CRC
05
03
06
00 80
41 A0 00 00
06 75
53
2
41
3
A0
4
00
5
00
Floating point number
= 20.0
Value (hex)
0080
41A0
0000
03: Read Holding Register
Register 316
3 registers
03: Read Holding Register
6 bytes
20.0
ACS-CONTROL-SYSTEM GmbH l Lauterbachstr. 57 l D-84307 Eggenfelden l www.acs-controlsystem.de l [email protected]
15