Panasonic FP7 User Manual page 64

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

Advertisement

Interrupt Function
 Program example
• Describe the interrupt enable instruction before the ED instruction, and describe a program
to be executed by the interrupt processing after the ED instruction.
• The interrupt program number corresponding to the match output CMP0 (EQ0) is INTPG10.
R1
DF
R0
DF
R101
DF
R100
DF
R0
DF
R100
DF
S3:OT0
S2: IN0
(Note 1): The input (X140) corresponds to (X2:IN0) on the program, and the output (X160) corresponds to (S3: OT0).
(Note 2): For the unit which uses the direct input (IN) and direct output (OT), set "Exclude this unit from the target for
I/O refresh." in the I/O map.
REFERENCE
For more information about how to use the counter function, refer to "7
Counter Function"
For more information about how to use the comparison output function ,
refer to "8 Comparison Output Function".
6-12
IMASK.US
HFF
Enable INTPG 0-7.
IMASK.US
H0
Disable INTPG 0-7.
ICLR.US
HFF00
Clear INTPG 0-7.
CPU
EI
Interrupt is enabled.
Interrupt is disabled.
DI
Multi I/O unit
U1
Interrupt is enabled.
Slot No.
Interrupt is disabled.
U1
Slot No.
Multi I/O unit
U1
Interrupt request is
cleared.
Slot No.
ED
End
Interrupt program
INTPG10
10
S3:OT0
<
>
RST
S3:OT0
<
SET >
Return
IRET

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents