199
Interrupt Functions
Section 5-1
High-speed Counter
Memory Areas
(All CP1H CPU Units)
Note
The comparison table and comparison conditions 1 to 8 are different for tar-
get-value comparison and range comparison operations. For details, refer to
5-2 High-speed Counters.
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.
Content
High-speed counter
0
1
2
3
PV
Leftmost 4 digits
A271
A273
A317
A319
Rightmost 4 digits
A270
A272
A316
A318
Range Compari-
son Condition Met
Flags
ON for match in range 1
A274.00 A275.00 A320.00 A321.00
ON for match in range 2
A274.01 A275.01 A320.01 A321.01
ON for match in range 3
A274.02 A275.02 A320.02 A321.02
ON for match in range 4
A274.03 A275.03 A320.03 A321.03
ON for match in range 5
A274.04 A275.04 A320.04 A321.04
ON for match in range 6
A274.05 A275.05 A320.05 A321.05
ON for match in range 7
A274.06 A275.06 A320.06 A321.06
ON for match in range 8
A274.07 A275.07 A320.07 A321.07
Comparison In-
progress Flags
ON while the compari-
son is in progress.
A274.08 A275.08 A320.08 A321.08
Overflow/Under-
flow Flags
ON if a PV overflow or
underflow occurred
while operating in linear
mode.
A274.09 A275.09 A320.09 A321.09
Count Direction
Flags
0: Decrementing
1: Incrementing
A274.10 A275.10 A320.10 A321.10
Operand
Settings
P
High-speed
counter number
#0000
High-speed counter 0
#0001
High-speed counter 1
#0002
High-speed counter 2
#0003
High-speed counter 3
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
Содержание CP1H-CPU - 05-2006
Страница 1: ...OPERATION MANUAL CP1H CPU Unit SYSMAC CP Series CP1H X40D CP1H XA40D CP1H Y20DT D Cat No W450 E1 02...
Страница 2: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised May 2006...
Страница 3: ...iv...
Страница 11: ...xii TABLE OF CONTENTS...
Страница 15: ...xvi...
Страница 19: ...xx...
Страница 31: ...xxxii Conformance to EC Directives 6...
Страница 71: ...40 Function Blocks Section 1 5...
Страница 133: ...102 Computing the Cycle Time Section 2 7...
Страница 169: ...138 CPM1A Expansion I O Unit Wiring Section 3 6...
Страница 411: ...380 Clock Section 6 8...
Страница 519: ...488 Replacing User serviceable Parts Section 10 2...
Страница 527: ...496 Standard Models Appendix A...
Страница 535: ...504 Dimensions Diagrams Appendix B...
Страница 628: ...597 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 629: ...598 Connections to Serial Communications Option Boards Appendix F...
Страница 659: ...628 PLC Setup Appendix G...
Страница 665: ...634 Index work words 159 write protection 370...
Страница 667: ...636 Revision History...