392
Interrupt Functions
Section 8-1
High-speed Counter
Memory Areas
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
next page.
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.
Content
High-speed counter
0
1
PV
Leftmost 4 digits
A271
A273
Rightmost 4 digits
A270
A272
Range Comparison Condi-
tion Met Flags
ON for match in range 1
A274.00
A275.00
ON for match in range 2
A274.01
A275.01
ON for match in range 3
A274.02
A275.02
ON for match in range 4
A274.03
A275.03
ON for match in range 5
A274.04
A275.04
ON for match in range 6
A274.05
A275.05
ON for match in range 7
A274.06
A275.06
ON for match in range 8
A274.07
A275.07
Comparison In-progress
Flags
ON while the comparison is in
progress.
A274.08
A275.08
Overflow/Underflow Flags
ON if a PV overflow or under-
flow occurred while operating
in linear mode.
A274.09
A275.09
Count Direction Flags
0: Decrementing
1: Incrementing
A274.10
A275.10
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
Содержание CP1L-EL20DR-D
Страница 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Страница 4: ...iv...
Страница 10: ...x...
Страница 22: ...xxii...
Страница 34: ...xxxiv Software Licenses and Copyrights 7...
Страница 178: ...144 Connecting the CX Programmer Section 5 1 Click the Connect button to connect and then connection online is completed...
Страница 192: ...158 Trial Operation and Debugging Section 5 3...
Страница 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Страница 666: ...632 Trouble Shooting Section 11 7...
Страница 696: ...662 Standard Models Appendix A...
Страница 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Страница 836: ...802 PLC Setup Appendix G...
Страница 838: ...804 TCP Status Transitions Appendix H...
Страница 840: ...806 Ethernet Network Parameters Appendix I...
Страница 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Страница 844: ...810 Ethernet Specifications Appendix K...
Страница 851: ...Index 817 work words 118 write protection 447...
Страница 852: ...818 Index...
Страница 854: ...820 Revision History...
Страница 855: ......