EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Interrupt Control Instructions

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
134
Interrupt Control Instructions
Section 3-18
3-18 Interrupt Control Instructions
GLOBAL SUB-
ROUTINE CALL
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
GSBS
750
Calls the subroutine with the specified subroutine number and exe-
cutes that program.
Output
Not required
GLOBAL SUB-
ROUTINE ENTRY
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
GSBN
751
Indicates the beginning of the subroutine program with the specified
subroutine number.
Output
Not required
GLOBAL SUB-
ROUTINE
RETURN (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
GRET
752
Indicates the end of a subroutine program. Output
Not required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
SET INTERRUPT
MASK
(Not supported
by CS1D CPU
Units for Duplex-
CPU Systems.)
MSKS
@MSKS
690
Output
Required
READ
INTERRUPT
MASK
(Not supported
by CS1D CPU
Units for Duplex-
CPU Systems.)
MSKR
@MSKR
692
Reads the current interrupt processing settings that were set with
MSKS(690).
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
GSBS(750)
N
N: Subroutine
number
GSBN(751)
N
N: Subroutine
number
GRET(752)
MSKS(690)
N
C
N: Interrupt number
C: Control data
Set scheduled interrupt
time interval.
Mask (1) or unmask (0)
interrupt inputs 0 to 7.
Time interval
Scheduled
interrupt
I/O
interrupt
Interrupt Input Unit 0 to 3
Sets up interrupt processing for I/O interrupts or scheduled interrupts.
Both I/O interrupt tasks and scheduled interrupt tasks are masked
(disabled) when the PC is first turned on. MSKS(690) can be used to
unmask or mask I/O interrupts and set the time intervals for
scheduled interrupts.
MSKR(692)
N
D
N: Interrupt number
D: Destination word

Table of Contents

Related product manuals