Basic Instructions
2 − 99
Precautions during programming for all types
If either the INT instruction or IRET instruction is missing, a syntax error will result.
When an interrupt is issued, the operation memory corresponding to the interrupt input contact does not
undergo I/O refreshing. Therefore, contacts other than the interrupt input contact, such as the constantly−on
relay R9010, should be specified by the input conditions in the interrupt program.
INT 5
IRET
X5
F0 MV, K10, DT100
Specify R9010 or other
contact instead of X5.
A subroutine program cannot be used in an interrupt program.
SUB 21
RET
IRET
INT 1
Subroutine
An interrupt program cannot be used in a subroutine program.
Interrupt program
INT 0
IRET
RET
SUB 21
Subroutine
Interrupt programs with multiple entrances and one exit can be written.
Example:
When the interrupt of the interrupt program 11 is issued,
1
to
3
are executed. When the interrupt of No. 13 is issued,
3
is
executed.
INT 12
RET
INT 11
INT 13
1
2
3
Interrupt 11 is issued
Interrupt 13 is issued
FP2/FP2SH/FP10SH