A-1-19 Interrupt Control Instructions - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

A-1-19
Interrupt Control Instructions
Instruction
Mnemonic
Code
SET INTER-
MSKS
690
RUPT MASK
@MSKS
READ
MSKR
692
INTERRUPT
@MSKR
MASK
CLEAR
CLI
691
INTERRUPT
@CLI
DISABLE
DI
693
INTER-
@DI
RUPTS
CJ2 CPU Unit Software User's Manual
Symbol/Operand
Sets up interrupt processing for I/O interrupts, input
MSKS(690)
interrupts, or scheduled interrupts. I/O interrupts, input
interrupts, and scheduled interrupts are masked (disabled)
N
when the PLC is first turned ON. MSKS(690) can be used
C
to unmask or mask interrupts and set the time intervals for
scheduled interrupts.
N: Interrupt number
C: Control data
Reads the current interrupt processing settings that were set with
MSKR(692)
MSKS(690).
N
D
N: Interrupt number
D: Destination word
Clears or retains recorded interrupt inputs for I/O interrupts
CLI(691)
or sets the time to the first scheduled interrupt for scheduled
interrupts.
N
C
N = 0 to 3
N: Interrupt number
Interrupt
C: Control data
input n
Internal
status
Recorded interrupt cleared
N = 4 to 5
MSKS(690)
Disables execution of all interrupt tasks except the power
DI(693)
OFF interrupt.
Function
Interrupt Input Unit 0 to 3
I/O
interrupt
Mask (1) or unmask (0)
interrupt inputs 0 to 7.
Time interval
Scheduled
interrupt
Set scheduled interrupt
time interval.
Interrupt
input n
Internal
status
Recorded interrupt retained
Execution of scheduled
interrupt task.
Time to first
scheduled interrupt
When CIO 0000.00 turns ON in
this example, all interrupt tasks
except for the power OFF
interrupt task are disabled.
Disables execution of
all interrupt tasks
(except the power OFF
interrupt).
Appendices
Execution
Location
condition
Output
Required
Output
Required
Output
Required
Output
Required
A-55

Advertisement

Table of Contents
loading

Table of Contents