Mitsubishi MELSEC-A Series Programming Manual page 345

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
(2) A program to execute only once the servo program of which number is specified
with the BCD data at X90 to X9F when X80 is ON.
(This servo program is to perform 2-axis linear interpolation of axes 1 and 2.)
M9036
0
X080
2
M0
11
M1
M2001 M2002
13
• Coding
0
LD
M9036
1
OUT
M2000
2
LD
X080
3
BINP
K4X090 D10
8
PLS
M0
11
LD
M0
12
SET
M1
13
LD
M1
14
ANI
M2001
15
ANI
M2002
16
DSFRP D12
23
RST
M1
24
END
Servo program
( K0 )
ABS-2
AXIS 1,
AXIS 2,
SPEED
( K1 )
ABS-2
AXIS 1,
AXIS 2,
SPEED
( K2 )
ABS-2
AXIS 1,
AXIS 2,
SPEED
(
M2000
)
PC READY is ON.
P
K4
BIN
X090
D10
After X80 is turned on, the BCD data
of X90 to X9F are stored in D10 and
the start request storage flag (M1) is
PLS
M0
set.
SET
M1
If the specified axis is not started, the
P
K4
DSFRP instruction is executed spe-
DSFR D12
30010
cifying the servo program number
stored in D10.
When execution of the DSFRP
RST
M1
instruction is completed, the start
request storage flag is reset.
K30010
1000
1000
1000
500
5000
2000
3000
500
200
7 − 143
MELSEC-A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents