7. APPLICATION INSTRUCTIONS
7 − 143
MELSEC-A
(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.)
• 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 K30010
23 RST M1
24 END
ABS-2
AXIS 1, 1000
AXIS 2, 1000
SPEED 1000
ABS-2
AXIS 1, 500
AXIS 2, 5000
SPEED 2000
ABS-2
AXIS 1, 3000
AXIS 2, 500
SPEED 200
( K0 )
Servo program
( K1 )
( K2 )
When execution of the DSFRP
instruction is completed, the start
request storage flag is reset.
After X80 is turned on, the BCD data
of X90 to X9F are stored in D10 and
the start request storage flag (M1) is
set.
()
PC READY is ON.
If the specified axis is not started, the
DSFRP instruction is executed spe-
cifying the servo program number
stored in D10.
0
2
11
13
M9036
X080
M0
M1 M2001 M2002
M2000
P K4
BIN X090 D10
P K4
DSFR D12 30010
PLS M0
SET M1
RST M1