High-Speed Counter Interrupt Instruction - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

11-3-3 High-speed Counter Interrupt Instruction

COMPARISON TABLE LOAD Instruction: CTBL
The CTBL instruction compares the PV of a high-speed counter (0 to 5) to target values or ranges and
executes the corresponding interrupt task (0 to 15) when the specified condition is met.
Execution condition
Operand
C1
Port specifier
C2
Control data
S
First compari-
son table word
Contents of the Comparison Table
• Target-value Comparison Table
Depending on the number of target values in the table, the target-value comparison table requires
a continuous block of 4 to 19 words.
15
S
Number of target values
Lower word of target value 1
S+1
S+2
Upper word of target value 1
Interrupt task number for target value 1
S+3
S+16
Lower word of target value 6
Upper word of target value 6
S+17
Interrupt task number for target value 6
S+18
Interrupt Task Number
15
14
12
0 0 0
Direction
OFF: Incrementing,
ON: Decrementing
CP1E CPU Unit Software User's Manual(W480)
@CTBL
C1: Port specifier
C1
C2: Control data
C2
S: First comparison table word
S
#0000
High-speed counter 0
#0005
High-speed counter 5
#0000
Registers a target-value comparison table and starts the com-
parison 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 first word address of the comparison table, which is described
below.
0
0001 to 0006 hex (1 to 6 target values)
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
11
8
7
4
3
0
0
Interrupt task number
00 to 0F hex (0 to 15)
11 High-speed Counters
Settings
11
11-21

Advertisement

Table of Contents
loading

Table of Contents