4.2.5 REGISTERS MAPPING
Reg
Addr
Data
1
0x0000
AbsoluteDecAngle
2
0x0001
AbsoluteDecAngle
3
0x0002
NumberOfTurns (MSW) F03
4
0x0003
NumberOfTurns (LSW)
...
...
...
30
0x001D Battery Status
...
...
...
39
0x0026
Cam Index
40
0x0027
Cam position index
41
0x0028
Cam Position state
42
0x0029
Reserved
43
0x002A
Reserved
44
0x002B
Reserved
45
0x002C
Cam ON angle (MSW)
46
0x002D Cam ON angle (LSW)
47
0x002E
Cam OFF angle (MSW)
48
0x002F
Cam OFF angle (LSW)
49
0x0030
Command
4.2.6 COMMUNICATION EXAMPLES
4.2.6.1 Read multiple Holding Registers
Following is an example of reading several holding registers, from register 0x0000 to 0x0003 for the
SlaveID 0x18.
In the example:
• AbsoluteDecAngle = 5982 (598.2°)
• NumberOfTurns = 1 revolutions
Func
Type
Measures
F03
Int32
F03
Int32
F03
...
...
F03
Uint16
...
...
F03/F16 Uint16
F03/F16 Uint16
F03
Uint16
...
...
...
...
...
...
F03/F16 Uint16
F03/F16 Uint16
F03/F16 Uint16
F03/F16 Uint16
F16
Uint16
Format
Notes
Bit 16-31
-
Bit 00-15
-
Bit 16-31
-
Bit 00-15
-
...
...
Bit 00-15
0: ALARM
1: WARNING
2: OK
...
...
Bit 00-15
Range : [0÷5]
Bit 00-15
Range : [0÷4]
Bit 00-15
1: ON /0: OFF
...
...
...
...
...
...
Bit 16-31
Bit 00-15
Bit 16-31
Bit 00-15
- 0x0100: to save cams config
- 0x02xy: to clear cam config,
where "xy" represents the cam
index (in the range 0÷5)
- 0x0600: to reset position
R/W
R
R
R
R
...
R
...
R/W
R/W
R
...
...
...
R/W
R/W
R/W
R/W
W
13