
Section 7. Installation
258
'If bit in OR bit in The result
'Flags Is Bin/Hex Is Is
'---------- ---------- ----------
' 0 0 0
' 0 1 1
' 1 0 1
' 1 1 1
'Binary equivalent of Hex:
If
Alarm(1)
Then
Flags = Flags
OR
&h1
' &b1
If
Alarm(2)
Then
Flags = Flags
OR
&h2
' &b10
If
Alarm(3)
Then
Flags = Flags
OR
&h4
' &b100
If
Alarm(4)
Then
Flags = Flags
OR
&h8
' &b1000
If
Alarm(5)
Then
Flags = Flags
OR
&h10
' &b10000
If
Alarm(6)
Then
Flags = Flags
OR
&h20
' &b100000
If
Alarm(7)
Then
Flags = Flags
OR
&h40
' &b1000000
If
Alarm(8)
Then
Flags = Flags
OR
&h80
' &b10000000
If
Alarm(9)
Then
Flags = Flags
OR
&h100
' &b100000000
If
Alarm(10)
Then
Flags = Flags
OR
&h200
' &b1000000000
If
Alarm(11)
Then
Flags = Flags
OR
&h400
' &b10000000000
If
Alarm(12)
Then
Flags = Flags
OR
&h800
' &b100000000000
If
Alarm(13)
Then
Flags = Flags
OR
&h1000
' &b1000000000000
If
Alarm(14)
Then
Flags = Flags
OR
&h2000
' &b10000000000000
If
Alarm(15)
Then
Flags = Flags
OR
&h4000
' &b100000000000000
If
Alarm(16)
Then
Flags = Flags
OR
&h8000
' &b1000000000000000
If
Alarm(17)
Then
Flags = Flags
OR
&h10000
' &b10000000000000000
If
Alarm(18)
Then
Flags = Flags
OR
&h20000
' &b100000000000000000
If
Alarm(19)
Then
Flags = Flags
OR
&h40000
' &b1000000000000000000
If
Alarm(20)
Then
Flags = Flags
OR
&h80000
' &b10000000000000000000
If
Alarm(21)
Then
Flags = Flags
OR
&h100000
' &b100000000000000000000
If
Alarm(22)
Then
Flags = Flags
OR
&h200000
' &b1000000000000000000000
If
Alarm(23)
Then
Flags = Flags
OR
&h400000
' &b10000000000000000000000
If
Alarm(24)
Then
Flags = Flags
OR
&h800000
' &b100000000000000000000000
If
Alarm(25)
Then
Flags = Flags
OR
&h1000000
' &b1000000000000000000000000
If
Alarm(26)
Then
Flags = Flags
OR
&h2000000
' &b10000000000000000000000000
If
Alarm(27)
Then
Flags = Flags
OR
&h4000000
' &b100000000000000000000000000
If
Alarm(28)
Then
Flags = Flags
OR
&h8000000
' &b1000000000000000000000000000
If
Alarm(29)
Then
Flags = Flags
OR
&h10000000
' &b10000000000000000000000000000
If
Alarm(30)
Then
Flags = Flags
OR
&h20000000
' &b100000000000000000000000000000
If
Alarm(31)
Then
Flags = Flags
OR
&h40000000
' &b1000000000000000000000000000000
If
Alarm(32)
Then
Flags = Flags
OR
&h80000000
'&b10000000000000000000000000000000
'Note &HFF = &B11111111. By shifting at 8 bit increments along 32-bit 'Flags' (Long
'data type), the first 8 bits in the four Longs FlagsBool8(4) are loaded with alarm
'states. Only the first 8 bits of each Long 'FlagsBool8' are stored when converted
'to Bool8.
'Logical AND bitwise comparison
'If bit in OR bit in The result
'Flags Is Bin/Hex Is Is
'---------- ---------- ----------
' 0 0 0
' 0 1 0
' 1 0 0
' 1 1 1
Содержание CR6 Series
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 36: ......
Страница 38: ......
Страница 76: ...Section 5 Overview 76 FIGURE 20 Half Bridge Wiring Example Wind Vane Potentiometer ...
Страница 80: ...Section 5 Overview 80 FIGURE 23 Pulse Input Wiring Example Anemometer ...
Страница 136: ......
Страница 251: ...Section 7 Installation 251 FIGURE 46 Running Average Frequency Response FIGURE 47 Running Average Signal Attenuation ...
Страница 454: ...Section 8 Operation 454 FIGURE 104 Narrow Sweep High Noise ...
Страница 459: ...Section 8 Operation 459 FIGURE 106 Vibrating Wire Sensor Calibration Report ...
Страница 535: ...Section 8 Operation 535 8 11 2 Data Display FIGURE 121 CR1000KD Displaying Data ...
Страница 537: ...Section 8 Operation 537 FIGURE 123 CR1000KD Real Time Custom ...
Страница 538: ...Section 8 Operation 538 8 11 2 3 Final Storage Data FIGURE 124 CR1000KD Final Storage Data ...
Страница 539: ...Section 8 Operation 539 8 11 3 Run Stop Program FIGURE 125 CR1000KD Run Stop Program ...
Страница 541: ...Section 8 Operation 541 FIGURE 127 CR1000KD File Edit ...
Страница 542: ...Section 8 Operation 542 8 11 5 PCCard Memory Card Management FIGURE 128 CR1000KD PCCard Memory Card Management ...
Страница 546: ......
Страница 549: ...Section 9 Maintenance Details 549 FIGURE 133 Separate Back Shell from Module FIGURE 134 Disconnect Battery Connector ...
Страница 552: ......
Страница 610: ...Section 11 Glossary 610 FIGURE 137 Relationships of Accuracy Precision and Resolution ...
Страница 612: ......
Страница 648: ......
Страница 650: ......
Страница 688: ......
Страница 689: ......