Section 7. Measurement Instructions
7-23
PulseCount (Dest, Reps, PChan, PConfig, POption, Mult, Offset)
Sensor
Pulse Channel
Ground
Parameter
& Data Type
Enter
Dest
Variable or
Array
The Variable in which to store the results of the instruction. When Reps are used the
results are stored in an array with the variable name. An array must be dimensioned
to have elements for all the Reps.
Reps
Constant
The number of repetitions for the measurement or instruction.
PChan
Constant
The number of the pulse channel (1 or 2) for the measurement.
PConfig
A code specifying the type of pulse input to measure.
Constant
Code Input
Configuration
0 High
Frequency
1
Low Level AC
2 Switch
Closure
POption
Constant
A code that determines if the raw result (multiplier = 1, offset = 0) is returned as
counts or frequency. The running average can be used to smooth out readings when
a low frequency relative to the scan rate causes large fluctuations in the measured
frequency from scan to another.
Code Result
0
Counts
1
Frequency (Hz) counts/scan interval in seconds
>1
Running average of frequency. The number entered is the time
period over which the frequency is averaged in milliseconds.
Mult, Offset
Constant,
Variable,
Array, or
Expression
A multiplier and offset by which to scale the raw results of the measurement. See the
measurement description for the units of the raw result; a multiplier of one and an
offset of 0 are necessary to output in the raw units. For example, the
TCDiff
instruction measures a thermocouple and outputs temperature in degrees C. A
multiplier of 1.8 and an offset of 32 will convert the temperature to degrees F.
The PulseCount instruction is used to measure counts or frequency on one of
the pulse channels.
The PulseCount instruction can not be used in a Slow Sequence
scan.
NOTE
Содержание CR5000
Страница 39: ...Section 1 Installation and Maintenance 1 15 S A N Y O FIGURE 1 11 6 Removal of band clamp and battery ...
Страница 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Страница 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Страница 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Страница 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Страница 206: ......
Страница 236: ...Index Index 4 This is a blank page ...
Страница 237: ...This is a blank page ...