4 - 46
4 AUXILIARY AND APPLIED FUNCTIONS
(2) Connect/disconnect program for servo amplifier after axis 5 connected to the
Motion CPU (CPU No.2) from PLC CPU (CPU No.1).
Disconnect procedure: After turning X0 OFF to ON, check the LED display
"AA" of servo amplifier and then turn the power
supply of servo amplifier OFF.
Reconnect procedure: After turning X1 OFF to ON, check the servo ready
(M2415+20n) of re-connected servo amplifier and
then resume operation of servo amplifier.
0
SM400
SP.DDRD
H3E1 D100 M10
D9112D50
K-2
D104
MOV
18
K1
D51
MOV
5
M101
M100
M102
X0
K5 D102
MOV
M100
SET
K-10 D102MOV
D100
K0
=
M10
M11
39
M100
SET
X1
M10
M100
M12
M101
M12 M13
SP.DDWR
H3E1
D9112
M12
D102
D50
M100
RST
SET
M101
RST
M102
SET
SP.DDRD H3E1 D100
M10
D9112D50
57
D100 K-1
=
M10
M11
78
M10
M102
M12
M103
M12
M13
SP.DDWR H3E1 D9112 M12
D104
D50
M102
RST
M103
SET
M103
RST
M104SET
SP.DDRD H3E1
D100
M10
D9112
D50
96
D100 K0=
M10
M11
M10
M104
M104RST
M101
QY40
System configuration
Q61P Q172
LX
Q172H
CPU
QY40 QY40Q02H
CPU
AMP
AMP AMP AMP AMP AMP
Disconnection (Axis 5 or later)
MMM
MM
Axis 1 Axis 2 Axis 3 Axis 4 Axis 5 Axis 8
M
PLC program
Store "-2" in D104.
Set disconnect execute command.
Store "5" in D102.
Set disconnect command.
(Disconnect after axis 5.)
Store "-10" in D102.
Set reconnect command.
Read the data of D9112 for Multiple CPU
system (CPU No.2) by turning M102 ON,
and store it to the data area (D100) of self
CPU.
Write the data of D9112 for Multiple CPU
system (CPU No.2) to D102 by turning
M101 ON.
(Disconnect command/Reconnect command)
Read the data of D9112 for Multiple CPU
system (CPU No.2) by turning M100 ON,
and store it to the data area (D100) of self
CPU.
Write the data of D9112 for Multiple CPU
system (CPU No.2) to D104 by turning
M103 ON.
(Disconnect execute command)
Read the data of D9112 for Multiple CPU
system (CPU No.2) by turning M104 ON,
and store it to the data area (D100) of self
CPU.