224
High-speed Counters
Section 5-2
• When a high-speed counter is being used (enabled in the PLC Setup), the
input cannot be used as a general-purpose (normal) input, interrupt input,
or quick-response input.
Starting Interrupt Tasks based on Comparison Conditions
Data registered in advance in a comparison table can be compared with the
actual counter PVs during operation. The specified interrupt tasks (registered
in the table) will be started when the corresponding comparison condition is
met.
There are two comparison methods available: Target value comparison and
range comparison.
• Use the CTBL(882) instruction to register the comparison table.
• Use either the CTBL(882) instruction or INI(880) instruction to start the
comparison operation.
• Use the INI(880) instruction to stop the comparison operation.
Target Value Comparison
The specified interrupt task is executed when the high-speed counter PV
matches a target value registered in the table.
• The comparison conditions (target values and counting directions) are
registered in the comparison table along with the corresponding interrupt
task number. The specified interrupt task will be executed when the high-
speed counter PV matches the registered target value.
• Up to 48 target values (between 1 and 48) can be registered in the com-
parison table.
• A different interrupt task can be registered for each target value.
• The target value comparison is performed on all of the target values in the
table, regardless of the order in which the target values are registered.
• If the PV is changed, the changed PV will be compared with the target
values in the table, even if the PV is changed while the target value com-
parison operation is in progress.
Restrictions
A comparison condition (target value and count direction) cannot appear in
the table more than once. An error will occur if a comparison condition is
specified two or more times.
Note
When the count direction (incrementing/decrementing) changes at a PV that
matches a target value, the next target value cannot be matched in that direc-
tion.
No. 001 No. 015 No. 000
No. 020
High-speed counter PV
Comparison is
executed without
regard to the order
of the values in the
table.
Target value 1
Target value 2
Target value 3
Target value 4
Interrupt task that is started.
Time
Comparison table
Number of values = 4
Target value 1 (Incrementing)
Interrupt task = 000
Target value 2 (Incrementing)
Interrupt task = 001
Target value 3 (Decrementing)
Interrupt task = 020
Target value 4 (Incrementing)
Interrupt task = 015
Содержание CP1H CPU UNITS - PROGRAMMING 05-2007
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Страница 370: ...336 Analog I O XA CPU Units Section 5 5...
Страница 552: ...518 Trouble Shooting Section 8 7...
Страница 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 598: ...564 Sample Application Section 9 12...
Страница 642: ...608 Standard Models Appendix A...
Страница 643: ...609 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 652: ...618 Dimensions Diagrams Appendix B...
Страница 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Страница 776: ...742 PLC Setup Appendix G...
Страница 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Страница 786: ...752 Revision History...