Panasonic FP7 User Manual page 59

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

Advertisement

 Time chart
In the case of
normal
processing
The output delays by the scan time.
In the case of
interrupt
processing
The signal is output with a slight delay.
 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 input (X108) is INTPG10.
R1
DF
R0
DF
R101
DF
R100
DF
R0
DF
R100
DF
S3:OT0
TMX0
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.
IMASK.US
Enable INTPG 0-7.
IMASK.US
Disable INTPG 0-7.
ICLR.US
Clear INTPG 0-7.
U5
6.2 Execution Example of Interrupt Function
EI
DI
HFF
U1
Slot No.
H0
U1
Slot No.
HFF00
U1
Slot No.
S3:OT0
<
>
RST
ED
INTPG10
S3:OT0
<
>
SET
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.
Output reset
End
Interrupt program
10
Return
6-7

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents