334
Interrupt Functions
Section 6-1
REGISTER
COMPARISON TABLE
Instruction:
CTBL(882)
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.
Contents of the
Comparison Table
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.
Range Comparison Table
The range comparison table requires a continuous block of 40 words because
comparison conditions 1 to 8 require 5 words each (2 words for the upper
range value, 2 words for the lower range value, and one word for the interrupt
task number).
Operand
Settings
P
High-speed
counter number
#0000
High-speed counter 0
#0001
High-speed counter 1
C
Control data
#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.
TB
First comparison
table word
Specifies the leading word address of the comparison
table, which is described below.
@CTBL(882)
P
C
TB
Execution condition
P: High-speed counter number
TB: First comparison table word
C: Control data
Number of target values
Target value 1 (rightmost digits)
Target value 1 (leftmost digits)
Task number for target value 1
0001 to 0030 hex (1 to 48 target values)
0000 0000 to FFFF FFFF hex
Target value 48 (rightmost digits)
Target value 48 (leftmost digits)
Task number for target value 48
0000 0000 to FFFF FFFF hex
Interrupt task number
Direction
0: Incrementing
1: Decrementing
Interrupt task number
00 to FF hex (0 to 255)
Summary of Contents for CP1L - 12-2007
Page 3: ...iv...
Page 9: ...x...
Page 13: ...xiv TABLE OF CONTENTS...
Page 21: ...xxii...
Page 33: ...xxxiv Conformance to EC Directives 6...
Page 65: ...32 Function Blocks Section 1 5...
Page 428: ...395 Clock Section 6 9...
Page 429: ...396 Clock Section 6 9...
Page 523: ...488 Troubleshooting Unit Errors Section 9 4...
Page 531: ...496 Replacing User serviceable Parts Section 10 2...
Page 563: ...528 Auxiliary Area Allocations by Function Appendix C...
Page 611: ...576 Auxiliary Area Allocations by Address Appendix D...
Page 638: ...603 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 639: ...604 Connections to Serial Communications Option Boards Appendix F...
Page 669: ...634 Index...
Page 671: ...636 Revision History...