Read Authorization Mode
Example 1 - Read Authorization Mode for One DO
✦
CC1000 Address 1
✦
LT address 2, read mode for DO 8
➡
Register Address = (2 + 95) x 8 + (8 - 1) = 783
➡
RH = 783 div 256 = 3
➡
RL = 783 mod 256 = 15
Query
CC1000
Address
Function
Code
Register Address
Register Address
Number of Points
Number of Points
CRC
CRC
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
low
high
1
3
3
15
0
1
180
77
Reply
CC1000
Address
Function
Code
Byte
Count
Read Data
Read Data
CRC
CRC
CC1000
Address
Function
Code
Byte
Count
high
low (DL)
low
high
1
3
2
0
3
248
69
✦
DL = 3
➡
DO 8 Mode = Forced Off
Example 2 - Read Authorization Mode for Four DOs
✴
Note that a maximum of 4 authorization modes can be read at a time.
✦
CC1000 Address 1
✦
LT address 64, read modes for DO 5 to 8
➡
Register Address = (64 + 95) x 8 + (5 - 1) = 1276
➡
RH = 1276 div 256 = 4
➡
RL = 1276 mod 256 = 252
Query
CC1000
Address
Function
Code
Register Address
Register Address
Number of Points
Number of Points
CRC
CRC
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
low
high
1
3
4
252
0
4
133
9
Reply
CC1000
Address
Function
Code
Byte
Count
Read Data 1
Read Data 1
Read Data 2
Read Data 2
CC1000
Address
Function
Code
Byte
Count
high
low (D1)
high
low (D2)
1
3
8
0
1
0
2
. . .
Read Data 3
Read Data 3
Read Data 4
Read Data 4
CRC
CRC
high
low (D3)
high
low (D4)
low
high
. . .
0
3
0
4
13
20
✦
D1 = 1
➡
DO 5 Mode = Local Off
✦
D2 = 2
➡
DO 6 Mode = Local On
✦
D3 = 3
➡
DO 7 Mode = Forced Off
✦
D4 = 4
➡
DO 8 Mode = Forced On
CC1000 Modbus Reference 2.10e
!
34/122