Section 9. Program Control Instructions
9-19
SubScan (SubInterval, Units, SubRatio)
The SubScan instruction is used to control an AM16/32 multiplexer or to
measure some analog inputs at a faster rate than the program scan.
Syntax
SubScan (SubInterval, Units, SubRatio)
Measurements and processing
Next SubScan
Remarks
The SubScan/NextSubScan instructions are placed within the Scan/NextScan
instructions of a program.
SubScans cannot be nested or placed in a SlowSequence. Pulse
Count or SDM measurements cannot be used within a SubScan.
Parameter
& Data Type
Enter
SubInterval
Constant
The time interval between subscans. Enter 0 for no delay between subscans.
Units
The unit of time for the SubInterval.
Constant
Alpha Code
Numeric Code
Units
usec
0
microseconds
msec
1
milliseconds
sec
2
Seconds
SubRatio
Constant
The number of times to loop through the subscan each time the scan runs.
The maximum number is 65,535.
Example program:
‘CR5000
'Example Program showing the use of the SubScan instruction to measure
'16 100 ohm Platinum Resistance Thermometers connected to an AM16/32 multiplexer
' used in the 4x16 configuration. The program also measures 6 copper constantan
'thermocouples.
'Wiring:
'CR5000
AM16/32
PRT(4 Wires)
' Control/Common
Sensor Terminals
'C1 ------------------------- Reset
1H -----------------Excitation
'C2 ------------------------- Clock
1L ---------------- Excitation Return
'IX1 ------------------------- COM 1H
2H ---------------- Sense wire excitation side
'IXR ------------------------- COM 1L
2L -----------------Sense wire return side
'7H ------------------------- COM 2H
'7L ------------------------- COM2L
NOTE
Summary of Contents for CR5000
Page 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Page 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Page 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Page 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Page 206: ......
Page 236: ...Index Index 4 This is a blank page ...
Page 237: ...This is a blank page ...