7. APPLICATION INSTRUCTIONS
7 − 142
MELSEC-A
Operation Errors In the following cases, operation error occurs and the DSFRP instruction is not
executed.
• (D) is set with 4 digits.
• Set value of (D) is other than 1 to 8.
• Two same axis numbers are set at (D).
• Set value of "n" is outside of 0 to 4095 or 30000 to 30799.
• Axes not specified at (D) are used in the servo program specified with "n".
• Index qualification is used for specification of (D) and "n".
Program Example (1) A program to execute a specified servo program only once when X80 is ON.
• Coding
0 LD M9036
1 OUT M2000
2 LD X080
3 PLS M0
6 LD M0
7 SET M1
8 LD M1
9 ANI M2001
10 ANI M2002
11 DSFRP D12 K1
18 RST M1
19 END
ABS-2
AXIS 1, 10000
AXIS 2, 27000
SPEED 1000
Servo program
( K1 )
2-axis linear interpolation
of axes 1 and 2
When execution of the DSFRP instruction
is completed, the start request storage
flag is reset.
()
PC READY is ON.
After X80 is turned on, the start reques
storage flag (M1) is set.
If the specified axis is not started, the
DSFRP instruction is executed.
0
2
6
8
M9036
X080
M0
M1 M2001 M2002
M2000
PLS M0
SET M1
RST M1
P K
DSFR D12 1