Mitsubishi Electric MELSEC Q Series Programming Manual page 358

Motion controller, real mode
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 POSITIONING CONTROL
Sequence program
SM400
0
X0
3
X1
12
M10
16
M1
38
M20
42
M2441
M30
52
67
(b) Sequence program
Sequence program example for position follow-up control is shown below.
M0
M2
M3
M2442
D=
D1200 D1000
M4
(Note): The automatic refresh setting example for position follow-up control is shown next page.
MOVP
DMOV
DMOV
DP.DDWR H3E1
D0
D1000
DP.SFCS
H3E1
K150
DMOV
DP.DDWR H3E1
D0
D1300
6 - 171
Substitute 2 for D1 after program
K2
D1
start.
Starts by turning X0 on.
PLS
M10
Substitute 150000 for D1000 .
K150000 D1000
K0
D1300
Substitute 0 for D1300 .
M3240
RST
M20
RST
M30
Reads data of D1000 of self CPU for
Multiple CPU system by turning M10 on,
D4000 M0
and writes to D4000 of CPU No.2.
Starts the Motion SFC program No.150.
M2
D1100
SET
M20
Substitutes the value of D40 for D1200.
D40
D1200
RST
M20
Resets M20 and sets M30 at the axis 3
positioning completion and D1200 =
D1000.
SET
M30
Reads data of D1300 of self CPU for
D4000 M4
Multiple CPU system by turning M30 on,
and writes to D4000 of CPU No.2.
RST
M30
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents