253
Timer and Counter Instructions
Section 5-16
The following diagram shows the structure of a range comparison table for
use with high-speed counters 1 to 4 when set for linear counting.
The following diagram shows the structure of a range comparison table for
use with high-speed counters 1 to 4 when set for ring counting. The ring value
specifies the number of points in the ring and the maximum count value (ring
value = max. count value+1). Do not change the ring value while a compari-
son is in progress.
The following table shows the possible values that can be set for high-speed
counters 1 to 4 for target values, lower limit values, and upper limit values.
The hexadecimal value F in the most significant digit indicates that the value
is negative (a negative 7-digit value.)
Range Comparison Operation
The following diagram illustrates the operation of range comparisons for range
settings 1 through 4 set consecutively in the comparison table.
As illustrated above, the current count is compared against all the comparison
ranges at the same time and the result for each range is output.
Data format
Possible values
Linear counting
Ring counting
BCD
F838 8608 to 0838 8607
0000 0001 to 0838 8607
Hexadecimal
F800 0000 to 07FF FFFF
0000 0001 to 07FF FFFF
TB Lower limit #1, lower 4 digits (BCD)
TB+1 Lower limit #1, upper 4 digits (BCD)
TB+2 Upper limit #1, lower 4 digits (BCD)
TB+3 Upper limit #1, upper 4 digits (BCD)
TB+4 Bit pattern #1
TB+75 Lower limit #16, lower 4 digits (BCD)
TB+76 Lower limit #16, upper 4 digits (BCD)
TB+77 Upper limit #16, lower 4 digits (BCD)
TB+78 Upper limit #16, upper 4 digits (BCD)
TB+79 Bit pattern #16
First range setting
Sixteenth range setting
TB Ring value, lower 4 digits (BCD)
TB+1 Ring value, upper 4 digits (BCD)
TB+3 Lower limit #1, lower 4 digits (BCD)
TB+4 Lower limit #1, upper 4 digits (BCD)
TB+5 Upper limit #1, lower 4 digits (BCD)
TB+6 Upper limit #1, upper 4 digits (BCD)
TB+7 Bit pattern #16
TB+77 Lower limit #16, lower 4 digits (BCD)
TB+78 Lower limit #16, upper 4 digits (BCD)
TB+79 Upper limit #16, lower 4 digits (BCD)
TB+80 Upper limit #16, upper 4 digits (BCD)
TB+81 Bit pattern #16
First range setting
Sixteenth range setting
Ring value setting
Count
Range
1
0
Range
4
Range
3
Range
2