SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-4
TABLE 9-3. Execution and Counter Reset Intervals and Maximum Input Frequencies
User
Programmed
Counter
Counter
Maximum
Execution
Reset
Reset
Input
Interval (s)
Interval (s)
Frequency (Hz)
Frequency (kHz)
0.01
0.01
100
25.5
0.02
0.02
50
12.75
0.03
0.01
100
25.5
0.04
0.02
50
12.75
0.05
0.05
20
5.10
0.10
0.10
10
2.55
0.15
0.05
20
5.10
0.80
0.10
10
2.55
≥
1.0
0.10
10
2.55
Control Port Details: Coprocessor and
Accumulators
Counts on Control Ports C5..C8 are measured
by a coprocessor. The coprocessor transfers
counts into 16 bit accumulators. The
accumulators accumulate up to 65,535 counts.
Counts accumulate in the accumulators until the
program table containing Pulse Count
Instruction 3 is executed.
The execution
interval of the table must be short enough
that the accumulator does not overflow.
At
the beginning of the execution, totals in the
accumulators are transferred to a temporary
RAM buffer. The accumulator is then zeroed.
When the execution reaches Pulse Count
Instruction 3, the value in the RAM buffer is
multiplied by the multiplier, added to the offset,
then placed into the designated input location.
CAUTION:
The RAM buffer does not
accumulate counts; it is zeroed each time the
table is executed regardless of whether or not
the pulse instruction is executed. If all counts
are necessary, it is imperative that the Pulse
Count Instruction be executed (not branched
around) every time the table is executed.
When the execution interval is < 4.0 s, ports
C5..C8 measure the actual time between edges
of the pulse with a 0.5
µ
s resolution. The
resulting frequency resolution is
(0.5)*(Frequency). Therefore, for execution
intervals < 4.0 second, ports C5..C8 yield more
accurate frequency measurements, especially
for low-frequency signals, than do pulse
counters P1..P4.
For execution intervals
≥
4.0 s, ports C5..C8
simply accumulate pulses similar to pulse
counter channels P1..P4.
Using ports C5..C8 to count pulses increases
the quiescent current of the CR23X by 8 mA.
Maximum input frequency on ports C5..C8 is
2.5 kHz.
Table Overruns / Executions
Table overruns occur when a program is too
long for its programmed execution interval, the
CR23X clock is reset, or a table of higher
priority is still running. When a table overrun
occurs, the value in the accumulator is the
result of a longer than normal interval. This
value can either be used or it can be discarded.
If pulse counts are being totalized, a missing
count could be significant and the value from
the erroneously long interval should NOT be
discarded. If the pulse count is being
processed in a way in which the resultant value
is dependent upon the sampling interval (e.g.,
speed, RPM), the value from the excessive
interval should be discarded. If the value is
discarded the value in the RAM buffer from the
previous measurement will be used.
Frequency Result
An option to output the count as a frequency
(Hz or Hertz) is also available. At Execution
Intervals less than four seconds, control ports
C5..C8 measure the time element in the
frequency calculation, whereas pulse channels
P1..P4 simply use the programmed Execution
Interval. Consequently, at Execution Intervals
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Page 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...