Section 7. Installation
'Define Data Table
DataTable
(Signatures,1,1000)
DataInterval
(0,1,Day,10)
Sample
(1,ProgSig,FP2)
Sample
(1,RunSig,FP2)
Sample
(2,ExeSig(),FP2)
EndTable
'Program
BeginProg
ExeSig() =
Signature
'initialize executable code signature
'function
Scan
(1,Sec,0,0)
ProgSig = Status.ProgSignature
'Set variable to Status table entry
'"ProgSignature"
RunSig = Status.RunSignature
'Set variable to Status table entry
'"RunSignature"
x = 24
ExeSig(1) = Signature
'signature includes code since initial
'Signature instruction
y = 43
ExeSig(2) = Signature
'Signature includes all code since
'ExeSig(1) = Signature
CallTable
Signatures
NextScan
7.9.1.8 Use of Multiple Scans
CRBasic example
Use of Multiple Scans
(p. 179)
demonstrates the use of multiple
scans. Some applications require measurements or processing to occur at an
interval different from that of the main program scan. Secondary, or slow
sequence, scans are prefaced with the
SlowSequence
instruction.
CRBasic Example 28.
Use of Multiple Scans
'This program example demonstrates the use of multiple scans. Some applications require
'measurements or processing to occur at an interval different from that of the main
'program scan. Secondary scans are preceded with the SlowSequence instruction.
'Declare Public Variables
Public
PTemp
Public
Counter1
'Declare Data Table 1
DataTable
(DataTable1,1,-1)
'DataTable1 is event driven.
'The event is the scan.
Sample
(1,PTemp,FP2)
Sample
(1, Counter1, fp2)
EndTable
'Main Program
BeginProg
'Begin executable section of program
Scan
(1,Sec,0,0)
'Begin main scan
PanelTemp
(PTemp,250)
Counter1 = Co 1
CallTable
DataTable1
'Call DataTable1
NextScan
'End main scan
179
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......