196
Interrupt Functions
Section 5-1
When CIO 0.01 goes from OFF to ON 200 times, processing of the cyclic task
that is currently being executed will be interrupted and processing of interrupt
task 141 will start. When the interrupt task processing is completed, process-
ing of the interrupted ladder program will restart.
Restrictions
Inputs cannot be used for input interrupts when they are being used as gen-
eral-purpose (normal) inputs or quick-response inputs.
5-1-4
Scheduled Interrupts
This function executes an interrupt task at a fixed time interval measured by
the CPU Unit’s built-in timer. Interrupt task 2 is allocated to scheduled inter-
rupt.
Procedure
PLC Setup
Click the
Timings
Tab and set the input function to
Scheduled Interrupt Inter-
val
(the scheduled interrupt timer’s units). The timing units can be set to 10
ms, 1 ms, or 0.1 ms. The scheduled interrupt timer SV is calculated by multi-
plying this interval setting by the timer SV set with MSKS(690).
W0.00
0
0.01
Counter SV (in A533)
= 200 (00C8 hex)
Counting enabled.
Counter PV (in A537)
Interrupt task 141
executed.
Set the PLC Setup.
• Use the CX-Programmer to set the scheduled
interrupt timer units in the PLC Setup.
↓
Write the ladder program.
• Write the program allocated to interrupt task
2 (scheduled interrupt task).
• Use MSKS(690) to specify the timer SV.
Summary of Contents for CP1H CPU UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...