EasyManuals Logo

Automationdirect.com DL05 User Manual

Automationdirect.com DL05
480 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #288 background imageLoading...
Page #288 background image
Standard
RLL Instructions
5–104
Standard RLL Instructions
Interrupt Instructions
A Disable Interrupt instruction in the main
body of the application program (before
the End instruction) will disable the
interupt (either extenal or timed). The
interrupt remains disabled until the
program executes an Enable Interrupt
instruction.
DISI
In the following example, we do some initialization on the first scan, using the
first-scan contact SP0. The interrupt feature is the HSIO Mode 40. Then we
configure X0 as the external interrupt by writing to its configuration register, V7634.
See Chapter 3, Mode 40 Operation for more details.
During program execution, when X2 is on the interrupt is enabled. When X2 is off the
interrupt will be disabled. When an interrupt signal (X0) occurs the CPU will jump to
the interrupt label INT O 0. The application ladder logic in the interrupt routine will be
performed. The CPU will return to the main body of the program after the IRT
instruction is executed.
DirectSOFT
INT O 0
X2
ENI
DISI
S
S
S
X2
END
Y5
SETI
X1
Y7
SETI
X3
IRT
Handheld Programmer Keystrokes
S
S
8
I
ORN
R
MLR
T
STR
$
SHFT
8
I
1
B
ENT
SHFT
8
I
5
F
ENT
STR
$
SHFT
8
I
3
D
ENT
SHFT
8
I
ENT
7
H
SHFT
4
E
TMR
N
3
D
ENT
STR
$
ENT
2
C
SHFT
4
E
TMR
N
8
I
ENT
STRN
SP
ENT
2
C
SHFT
8
I
TMR
N
MLR
T
0
A
ENT
SHFT ENT
SHFT
ENT
3
D
8
I
RST
S
8
I
SET
X
SET
X
LD
K40
SP0
Load the constant value
(K40) into the lower 16 bits
of the accumulator
OUT
V7633
Copy the value in the lower
16 bits of the accumulator to
V7633
LD
K4
Load the constant value (K4)
into the lower 16 bits of the
accumulator
OUT
V7634
Copy the value in the lower
16 bits of the accumulator to
V7634
STR
$
SHFT
ANDST
L
3
D
SHFT
OUT
GX
SHFT
AND
V
ENT
JMP
K
ENT
7
H
6
G
3
D
4
E
SHFT
ANDST
L
3
D
SHFT
0
A
OUT
GX
SHFT
AND
V
ENT
JMP
K
4
E
ENT
7
H
6
G
3
D
3
D
4
E
SHFT
ENT
STRN
SP
0
A
Disable Interrupts
(DISI)
External Interrupt
Program Example

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DL05 and is the answer not in the manual?

Automationdirect.com DL05 Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDL05
CategoryController
LanguageEnglish

Related product manuals