Overview Of Interrupt Program - Panasonic FP7 User Manual

Multi input/output unit
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

Interrupt Function

6.1.4 Overview of Interrupt Program

Use the following instructions to execute the activation of an interrupt program.
 Instructions used for interrupt program activation
Described
Instruction
area
EI
DI
IMASK
Main program
ICLR
INTPG
Interrupt
program
IRET
 Programming method (Main program)
The interrupt for the CPU and the interrupt activation of the multi I/O unit are allowed in the
main program. If the interrupt becomes disabled, clear the interrupt activation request signal
that is not processed in the unit as necessary.
R1
DF
R0
DF
R101
DF
R100
DF
R0
DF
R100
DF
 Programming method (Interrupt program)
• Describe the program to be executed at the time of interrupt process in the interrupt program.
6-4
Function
Allows the interrupt process for the CPU.
Prohibits the interrupt process for the CPU.
Allows or prohibits the interrupt process of each unit.
Clears the interrupt activation request signal that has not been processed
on the unit side when the interrupt program activation is prohibited by DI or
IMASK instruction.
It is described at the beginning of the interrupt program.
It is described at the end of the interrupt program.
IMASK.US
Enable INTPG 0-7.
IMASK.US
Disable INTPG 0-7.
ICLR.US
Clear INTPG 0-7.
(Arbitrary program)
EI
DI
HFF
U1
Slot No.
H0
U1
Slot No.
HFF00
U1
Slot No.
ED
INTPG10
IRET
CPU
Interrupt is enabled.
Interrupt is disabled.
Multi I/O unit
Interrupt is enabled.
Interrupt is disabled.
Multi I/O unit
Interrupt request is
cleared.
End
Interrupt program
10
Return

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents