Step 4: Writing the Control Program
There are only a few simple instructions that
are necessary for proper module operation.
This section shows how to:
The program shown to the right is an example
of the instructions needed to build a simple
interrupt solution. Of course, if you are using
more than one interrupt point in your
application, then you would have interrupt
subroutines for interrupt 1, interrupt 2, etc.
The following paragraphs discuss each of
these instructions in more detail.
Enable and Disable interrupts
Enter an interrupt subroutine for each
interrupt point you are using
Understand the types of instructions you
can use in an interrupt subroutine
Set the condition(s) for a return from the
interrupt subroutine. (You can have
conditional and/or unconditional returns.)
Direct SOFT Display
INT
Conditional Return
Unconditional Return
INT
Unconditional Return
19
19
19
Enable/Disable
X40
ENI
X42
DISI
END
X0 Interrupt
O 0
Subroutine
X20
Y5
OUTI
X35
IRTC
X35
Y0
Y1
RSTI
IRT
X1 Interrupt
O 1
Subroutine
FOR
K5
X101
Y51
OUTI
X102
Y52
OUTI
NEXT
IRT
Need help?
Do you have a question about the DL405 and is the answer not in the manual?
Questions and answers