6. PROGRAMMING
MELSEGA
6.1.2 Precautions
when creating programs
(1)
Sequence program conditions
Use the AlSD71 to provide the program shown in Fig. 6.2 to the system.
.
-
AlSD71
sequence
program
+I
M9038
X1A (Battery error )
M9006 (CPU battery
error
)I
W
(cpu
RUN)
ting command for the
positioning mode and
M9039
wy
emergency
Interlock
n
__(I
stop
I y
IY
AI
A I
(Y2D)-
Deceleration
time
set-
W
ting command for the
xlsitioning mode and
W m e s emergency
stop
+I
M1
-I1
MOV Kif[:
DO
TO H1
K7889
DO K
F
TO H1
K7888
D l K1
L m 7 1 1
T O H1
K7908
D2 K1
x 1 1
-I+
+
X1 B
A1 SD71 ready
Provide start interlock.
Error detection
Can be used for stop, etc.
Resets an AlSD71 error by
initialization after CPU RUN.
Battery error
PC ready
Set
the
positioning mode.
'
Set the following values to 1.
0:
Positioning control mode
1: Speed/positioning switching
2: Deceleration control mode
control mode
Set the deceleration time for an
emergency stop of the X axis.
The setting range of 2 is from
64 to
50000.
(Setting unit: 1)
1
Set
the
deceleration time for an
emergency stop of the Y axis.
The setting range of 3 is from
64 to
50000.
(Setting unit: 1)
I
If the CPU is reset when AlSD71 is BUSY, the AlSD71 may detect an error.
Therefore, reset the error by using this ladder.
Fig. 6.2 Necessary Program
6-3