395
Interrupt Functions
Section 8-1
4.
Use CTBL(882) to start the comparison operation with high-speed counter
0 and interrupt task 10.
5.
Operation
When execution condition W0.00 goes ON, the comparison starts with
high-speed counter 0.
When the PV of high speed counter 0 reaches 30,000, cyclic task process-
ing is interrupted, and interrupt task 10 is processed. When interrupt task
10 processing is completed, processing of the interrupted cyclic task re-
sumes.
Example 2: High-speed
Counter (Ring Mode)
In this example, high-speed counter 1 operates in circular (ring) mode and
starts interrupt task 12 when the PV is between 25,000 (0000 61A8 hex) and
25,500 (0000 639C hex).
The maximum ring count is set at 50,000 (0000 C350 hex).
1,2,3...
1.
Set high-speed counter 1 in the PLC Setup’s Built-in Input Tab.
2.
Set the range comparison table starting at word D20000. Even though
range 1 is the only range being used, all 40 words must still be dedicated
to the range comparison table.
W0.00
@CTBL(882)
# 0000
# 0000
D100 00
Use high-speed counter 0.
First comparison table word
Register a target-value comparison table and
start comparison operation.
W0.00
CIO 0.01
0
Counting enabled
Cyclic task
processing
Interrupt task
10 processing
Processing
interrupted
Cyclic task
processing
Interrupt task
10 processing
Processing
interrupted
Cyclic task
processing
30,000 (7530 hex)
High-speed counter 0 PV
(in A270 and A271)
Item
Setting
High-speed counter 1
Use counter
Counting mode
Circular mode
Circular Max. Count
50,000
Reset method
Software reset (continue comparing)
Input Setting
Up/Down inputs
Word
Setting
Function
D20000
#61A8
Rightmost 4 digits of range 1 lower limit
Lower limit value:
25,000
D20001
#0000
Leftmost 4 digits of range 1 lower limit
D20002
#639C
Rightmost 4 digits of range 1 upper limit
Upper limit value:
25,500
D20003
#0000
Leftmost 4 digits of range 1 upper limit
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......