Clear Latched Di - DAE INSTRUMENT CC1000a06 Reference

Smart lighting control system modbus gateway
Table of Contents

Advertisement

Clear Latched DI

Example 1 - Clear Some Latched DIs For One LT
✦ CC1000 Address 1
✦ LT address 57
➡ Register Address = 57 + 95 = 152
➡ RH = 152 div 256 = 0
➡ RL = 152 mod 256 = 152
✦ Data mask for the Latched DIs to be cleared:
16
15
DI
---
Clr
State
1
0
Data
Data
0xA
0xA
0xA
0xA
Bit #
7
6
Byte
Query
Register Address
Register Address
CC1000
CC1000
Function
Function
Address
Address
Code
Code
high (RH)
1
16
Reply
CC1000
CC1000
Function
Function
Address
Address
Code
Code
1
16
Example 2 - Clear All Latched DIs For 4 LTs
✴ Note that 4 is the maximum number of Latched DIs that can be cleared at a time.
✦ CC1000 Address 1
✦ LT 21 to 24
➡ Starting Register Address = 21 + 95 = 116
➡ RH = 116 div 256 = 0
➡ RL = 116 mod 256 = 116
➡ Number of Registers = 4
➡ Byte Count = 8
✦ Clearing a latched DI sets its bit to zero, so clearing all DIs would set the entire data mask to zero.
➡ D1, D2, D3, D4, D5, D6, D7, D8 = 0
Query
CC1000
CC1000
Function
Function
Address
Address
Code
Code
1
16
D3
D4
. . .
0
0
Reply
CC1000
CC1000
Function
Function
Address
Address
Code
Code
1
16
CC1000 Modbus Reference 2.10e!
14
13
12
11
---
Clr
---
Clr
1
0
1
0
0xB
0xB
0xB
0xB
5
4
3
2
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
Number of Registers
Number of Registers
low (RL)
high
0
152
0
Register Address
Register Address
high (RH)
low (RL)
0
152
Register Address
Register Address
Number of Registers
Number of Registers
high (RH)
low (RL)
0
116
Write Data
Write Data
Write Data
Write Data
Write Data
Write Data
D5
D6
0
Register Address
Register Address
high (RH)
low (RL)
0
116
10
9
8
7
---
---
---
---
1
1
1
1
0xC
0xC
0xC
0xC
1
0
7
6
Byte
Byte
Count
Count
low
1
2
Number of Registers
Number of Registers
high
low
0
Byte Count
Byte Count
high
low
0
4
D7
0
0
Number of Registers
Number of Registers
high
low
0
6
5
4
3
Clr
Clr
---
---
0
0
1
1
0xD
0xD
0xD
0xD
5
4
3
2
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
Write Data
Write Data
high (DH)
low (DL)
0xAB
0xCD
CRC
CRC
low
1
128
Write Data
Write Data
D1
D2
8
0
0
CRC
CRC
D8
low
0
6
CRC
CRC
low
4
20
2
1
Clr
---
0
1
1
0
CRC
CRC
low
high
4
237
high
38
. . .
high
202
high
18
39/122

Advertisement

Table of Contents
loading

Table of Contents