EasyManua.ls Logo

Mitsubishi Electric Melsec QJ71LP21 - Interrupts by the Link Devices (LB;LW;LX) for Cyclic Transmission

Mitsubishi Electric Melsec QJ71LP21
488 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 - 114 7 - 114
MELSEC-Q
7 APPLICATION FUNCTIONS
7.5.3 Interrupts by the link devices (LB/LW/LX) for cyclic transmission
The specified interrupt sequence program can be executed from other stations when
the conditions of "rise/fall" of the link devices (LB/LW) and "equal to/not equal to" of the
link register (LW) are matched.
The following figure shows the comparison between the conventional and new
interrupt sequence programs.
Interrupts generated by the link devices (LB/LW/LX) can be used for normal cyclic
transmission and direct access destinations.
In the example below, the link device LB100 of station number 15 is turned on (1)
using direct access (specify outside the set refresh range but within the host's send
range) to the link device of station number 3. Also, the interrupt setting parameters are
set for station number 15 so that the interrupt program is started when LB100 of station
number 15 turns on.
[Interrupt setting parameters]
Device code Device No.
Detection
method
Interrupt
condition
Word device
setting value
Channel No./
connection No.
Interrupt (SI) No.
LB 100 Edge detection On
0
[Interrupt pointer settings]
CPU side
Intelligent module side
Interrupt pointer start
No.
Interrupt pointer count Start I/O No. Start SI No.
50 1
0000 0
Reception
processing 1
K256
Reception
processing 2
Execution conditions
B100
END
FEND
Reception
processing 1
SM400
IRET
Reception
processing 2
SM400
IRET
END
Conventional sequence program
Set the execution
conditions using the
interrupt setting parameters
I50
I51
C
o
n
v
e
r
t
e
d
t
o
a
n
i
n
t
e
r
r
u
p
t
p
r
o
g
r
a
m
Parameters are used
=W100

Table of Contents

Related product manuals