Section 7. Installation
206
FIGURE 47: Bool8 Data from Bit Shift Example (PC Data File)
Bool8 and a Bit Shift Operator
'This program example demonstrates the use of the Bool8 data type and the ">>" bit-shift
'operator.
Public
Alarm(32)
Public
Flags
As Long
Public
FlagsBool8(4)
As Long
DataTable
(Bool8Data,True,-1)
DataInterval
(0,1,Sec,10)
'store bits 1 through 16 in columns 1 through 16 of data file
Sample
(2,FlagsBool8(1),Bool8)
'store bits 17 through 32 in columns 17 through 32 of data file
Sample
(2,FlagsBool8(3),Bool8)
EndTable
BeginProg
Scan
(1,Sec,3,0)
'Reset all bits each pass before setting bits selectively
Flags = &h0
'Set bits selectively. Hex is used to save space.
'Logical OR bitwise comparison
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......