Mitsubishi Melsec A User Manual page 79

Table of Contents

Advertisement

7. COMMUNICATION WITH PROGRAMMABLE CONTROLLER CPU
/MELSEC
7.4
lnterrupt from PC CPU t o A D 5 1
The interrupt signal from the PC CPU t o the AD51 is valid on its rise
(i.e. the AD51 waits for the leading edge o f the signal).
[How t o use]
T o enable the interrupt facility, the relevant task should be set t o
"start at interrupt from PC CPU" on the multi task setting screen.
The AD51 will then run that task when it receives the interrupt
signal. Once it has been started the interrupt task w i l l operate
until
the END instruction is executed. The interrupt is re-enabled after
the END instruction is executed.
[Program example]
The following P.C. program will call the designated interrupt task
.
-
when X01 turns on.
Fig. 7.5 Unit Configuration and Sequence Program
AD51 OS
interrupt flag
(Ured
by
0,s.
only1
Interrupt task vrocerring
Fig. 7.6 Timing Chart
(1) A n y interrupt signal given t o the A D 5 1 while an interrupt
program is running (i.e. interrupt flag is ON) w i l l be
ignored (See area A i n Fig.
7.6.)
(2) Only one task may be specified as "interrupt start".
Setting any more generally leads t o ORST error.

Advertisement

Table of Contents
loading

Table of Contents