223
Timer and Counter Instructions Section 5-15
There are flags in the AR area which indicate when a high-speed counter’s PV
falls within one or more of the 8 ranges. The flags turn ON when a PV is within
the corresponding range.
Note CPM1/CPM1A PCs are equipped with high-speed counter 0 only.
The following diagram shows the structure of a range comparison table for
use with high-speed counter 0, or high-speed counters 1 or 2 in linear mode.
The following diagram shows the structure of a range comparison table for
use with high-speed counters 1 or 2 in ring mode (CQM1 only). 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 diagram shows the structure of a range comparison table for
use with absolute high-speed counters 1 and 2 (CQM1-CPU44-E/-EV1 only).
Counter AR area flags
High-speed counter 0 AR 1100 to AR 1107 correspond to ranges 1 to 8.
High-speed counter 1 AR 0500 to AR 0507 correspond to ranges 1 to 8.
High-speed counter 2 AR 0600 to AR 0607 correspond to ranges 1 to 8.
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 Subroutine number (See note 1.)
TB+35 Lower limit #8, lower 4 digits (BCD)
TB+36 Lower limit #8, upper 4 digits (BCD)
TB+37 Upper limit #8, lower 4 digits (BCD)
TB+38 Upper limit #8, upper 4 digits (BCD)
TB+39 Subroutine number (See note 1.)
First range setting
Eighth 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 Subroutine number (See note 1.)
TB+37 Lower limit #8, lower 4 digits (BCD)
TB+38 Lower limit #8, upper 4 digits (BCD)
TB+39 Upper limit #8, lower 4 digits (BCD)
TB+40 Upper limit #8, upper 4 digits (BCD)
TB+41 Subroutine number (See note 1.)
First range setting
Eighth range setting
Ring value setting
TB Lower limit #1(BCD)
TB+2 Upper limit #1 (BCD)
TB+4 Subroutine number (See note 2.)
TB+21 Lower limit #8 (BCD)
TB+22 Upper limit #8 (BCD)
TB+23 Subroutine number (See note 2.)
First range setting
Eighth range setting