Interrupt Functions
High-speed Counter
Memory Areas
Note
REGISTER
COMPARISON TABLE
Instruction:
CTBL(882)
Contents of the
Comparison Table
PV
Range Comparison Condi-
tion Met Flags
Comparison In-progress
Flags
Overflow/Underflow Flags
Count Direction Flags
The comparison table and comparison conditions 1 to 8 are different for tar-
get-value comparison and range comparison operations. For details, refer to
next page.
CTBL(882) compares the PV of a high-speed counter (0 to 3) to target values
or target value ranges and executes the corresponding interrupt task (0 to
255) when the specified condition is met.
Execution condition
@CTBL(882)
TB
Operand
P
High-speed
counter number
C
Control data
TB
First comparison
table word
Target-value Comparison Table
Depending on the number of target values in the table, the target-value com-
parison table requires a continuous block of 4 to 145 words.
Content
Leftmost 4 digits
Rightmost 4 digits
ON for match in range 1
ON for match in range 2
ON for match in range 3
ON for match in range 4
ON for match in range 5
ON for match in range 6
ON for match in range 7
ON for match in range 8
ON while the comparison is in
progress.
ON if a PV overflow or under-
flow occurred while operating
in linear mode.
0: Decrementing
1: Incrementing
P
P: High-speed counter number
C
C: Control data
TB: First comparison table word
Settings
#0000
High-speed counter 0
#0001
High-speed counter 1
#0000
Registers a target-value comparison table and
starts the comparison operation.
#0001
Registers a range comparison table and starts
the comparison operation.
#0002
Registers a target-value comparison table.
#0003
Registers a range comparison table.
Specifies the leading word address of the comparison
table, which is described below.
Section 6-1
High-speed counter
0
1
A271
A273
A270
A272
A274.00
A275.00
A274.01
A275.01
A274.02
A275.02
A274.03
A275.03
A274.04
A275.04
A274.05
A275.05
A274.06
A275.06
A274.07
A275.07
A274.08
A275.08
A274.09
A275.09
A274.10
A275.10
357