Omron CP1H CPU Operation Manual page 232

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Interrupt Functions
Writing the Scheduled
Interrupt Task's Program
Input Interrupt
Settings and
Operation
Settings
1,2,3...
Operation
198
MSKS(690) Operands
Operand
N
Scheduled interrupt
number
Scheduled interrupt 0
(interrupt task 2)
14: Reset start
4: Start without reset
Create the program for interrupt task 2 (scheduled interrupt 0), which is exe-
cuted by the input interrupt. Always put an END(001) instruction at the last
address of the program.
Selecting the Scheduled Interrupt Task
This example shows how to execute interrupt task 2 at 30.5 ms intervals.
1. Use the CX-Programmer to set the scheduled interrupt time units to 0.1
ms.
2. Use the CX-Programmer to create the interrupt program allocated to inter-
rupt task 2.
W0.00
(Execution condition)
@MSKS(690)
&305
When execution condition W0.00 goes ON, MSKS(690) is executed to enable
the scheduled interrupt with the reset start specified. The timer is reset and
timing starts.
Interrupt time interval (period)
S
Time units set in
PLC Setup
Interrupt time
#0000 to #270F
10 ms
(0 to 9999)
1 ms
0.1 ms
Specifies scheduled interrupt 0 (reset start).
14
Sets the scheduled time interval to 30.5 ms
(305 x 0.1 ms = 30.5 ms)
Section 5-1
Scheduled time
interval
10 to 99,990 ms
1 to 9,999 ms
0.5 to 999.9 ms

Advertisement

Table of Contents
loading

Table of Contents