SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-3
Every 0.125 seconds, the CR510 processor
transfers the values from the 8 (or 16) bit pulse
counters into 16 bit accumulators (max count is
65,535) and the counters are hardware reset to
zero. The pulses accumulate in these 16 bit
accumulators until the program table containing
the Pulse Count Instruction is executed. At the
beginning of the execution of the Table containing
the Pulse Count Instruction, the total in the 16 bit
accumulator is transferred to a temporary RAM
buffer. The 16 bit accumulator is then zeroed.
When the table execution reaches the Pulse
Count Instruction, the value in the RAM buffer is
multiplied by the multiplier and added to the offset
and placed into the designated input location. A
ramification of this is that the excitation interval of
the table must be short enough that the 16 bit
accumulator does not overflow.
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.
If a table execution was skipped because the
processor was executing the previous table
(Section 1.1.1) or if the user resets the time, the
value in the 16 bit 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.
There is also an option to output the count as a
frequency (i.e., counts/execution interval in
seconds = Hz) as well as discard the result from
an excessive interval. This allows the use of a
conversion factor that is independent of the
execution interval.
The options of discarding counts from long
intervals, pulse input type, and using a 16 bit
counter are selected by the code entered for the
3rd parameter (Table 9-2).
NOTE:
All pulse count instructions must be
kept in the same table. If the Pulse Count
Instruction is contained within a subroutine,
that subroutine must be called from Table 2.
TABLE 9-2. Pulse Count Configuration Codes
Code
Configuration
0
High frequency pulse (Index (--) to
change from 8 Hz to 64 Hz reset)
1
Low level AC (Index (--) to
change from 8 Hz to 64 Hz reset)
2
Switch closure
3
High frequency pulse, sixteen
bit counter
4
Low level AC, sixteen bit counter
1X
Long interval data discarded
2X
Long interval data discarded,
frequency (Hz) output
where X is the configuration code
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Repetitions
02:
2
Pulse channel or
Control Port number for
first measurement
03:
2
Configuration code
(from above table)
04:
4
Input location for first
measurement
05:
FP
Multiplier
06:
FP
Offset
Input locations altered: 1 per instruction
Intermediate storage locations altered: 1 per
repetition
*** 4 EXCITE, DELAY, AND MEASURE ***
FUNCTION
This instruction is used to apply an excitation
voltage, delay a specified time, and then make
a single-ended voltage measurement. A 1
before the excitation channel number (1X)
causes the channel to be incremented with
each repetition.
The 50 and 60 Hz rejection ranges (Section
13.1) do not have enough time between
integrations to allow a delay.
Summary of Contents for CR510
Page 2: ...This is a blank page ...
Page 4: ...This is a blank page ...
Page 10: ...This is a blank page ...
Page 44: ...SECTION 1 FUNCTIONAL MODES 1 14 This is a blank page ...
Page 56: ...SECTION 3 INSTRUCTION SET BASICS 3 8 ...
Page 104: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 8 This is a blank page ...
Page 128: ...SECTION 10 PROCESSING INSTRUCTIONS 10 8 This is a blank page ...
Page 144: ...SECTION 12 PROGRAM CONTROL INSTRUCTIONS 12 10 This is a blank page ...
Page 172: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 10 This is a blank page ...
Page 176: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 184: ...This is a blank page ...
Page 188: ...APPENDIX D DATALOGGER INITIATED COMMUNICATIONS D 4 This is a blank page ...
Page 196: ...APPENDIX F MODBUS ON THE CR10 X AND CR510 F 4 This is a blank page ...
Page 197: ...APPENDIX G TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 198: ...This is a blank page ...
Page 200: ...This is a blank page ...
Page 206: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 222: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 238: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 240: ...This is a blank page ...