Flow Of Operation - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

10-3-2 Flow of Operation

Interrupt task
Create
ladder
Execute MSKS
program
instruction in a cyclic
task
Writing the Ladder Program
Writing the Interrupt Task Program
Create the program for interrupt task 1, which is executed for the scheduled interrupt. Right-click a
program in the CX-Programmer and select Properties. Select Interrupt Tasks 01 (scheduled inter-
rupt) in Task Type Field of the Program Properties Dialog Box.
Execute MSKS in a Cyclic Task
The MSKS instruction must be executed from the ladder program in a cyclic task in order to use
scheduled interrupts.
Execution condition
The MSKS instruction must be executed only once to make the settings, so in general execute
MSKS in just one cycle using the upwardly differentiated variation of the instruction.
CP1E CPU Unit Software User's Manual(W480)
Write the program for the corresponding interrupt task 1 (fixed).
Use MSKS to specify the scheduled interrupt interval.
The setting can be 1 ms or longer.
Set N to 4 or 14 in the MSKS instruction.
@MSKS
Specifies scheduled interrupt (interrupt task 1)
N
Sets the scheduled interrupt interval and starts timing
C
10 Interrupts
10
10-11

Advertisement

Table of Contents
loading

Table of Contents