Mitsubishi Electronics Q172HCPU Home Security System User Manual


 
4 - 45
4 AUXILIARY AND APPLIED FUNCTIONS
<Program example>
(1) Connect/disconnect program for servo amplifier after axis 5 of self CPU
Disconnect procedure: After checking the LED display "AA" of servo
amplifier, turn the power supply of servo amplifier
OFF.
Reconnect procedure: After checking the servo ready (M2415+20n) of re-
connected servo amplifier, resume operation of
servo amplifier.
QY40
System configuration
Q61P Q172
LX
Q172H
CPU
QY40 QY40
Disconnect processing
Reconnect processing
Q02H
CPU
AMP
AMP AMP AMP AMP AMP
Shut off (Axis 5 or later)
MMM
MM
Axis 1 Axis 2 Axis 3 Axis 4 Axis 5 Axis 8
M
(a) Motion SFC program (SV13/SV22)
Disconnect operation Reconnect operation
[G10]
[F10]
[G20]
[F20]
[G30]
[G10]
[F10]
[G20]
[F20]
[G30]
D9112==0
D9112=5
D9112==-1
D9112==-2
D9112==0
END
D9112==0
D9112=-10
D9112==-1
D9112==-2
D9112==0
END
Check the disconnect
command accept state.
Store "5" in D9112.
Set disconnect command.
(Disconnect after axis 5.)
Disconnect execute waiting
Store "-2" in D9112.
Set disconnect execute
command.
Check the completion of
disconnect processing.
Check the reconnect
command accept state.
Store "-10" in D9112.
Set reconnect command.
Reconnect execute waiting
Store "-2" in D9112.
Set reconnect execute
command.
Check the completion of
reconnect processing.
N10 IF[#D9112 EQ 0] GOTO20; Check the disconnect command accept state.
(b) Motion program (SV43)
Disconnect operation Reconnect operation
GOTO10;
N20 #D9112=5; Store "5" in D9112. Set disconnect command.
(Disconnect after axis 5.)
N30 IF[#D9112 EQ-1] GOTO40; Disconnect execute waiting
GOTO30;
N40 #D9112=-2; Store "-2" in D9112. Set disconnect execute command.
N50 IF[#D9112 EQ 0] GOTO60; Check the completion of disconnect processing.
GOTO50;
N60;
N10 IF[#D9112 EQ 0] GOTO20; Check the reconnect command accept state.
GOTO10;
N20 #D9112=-10; Store "-10" in D9112. Set reconnect command.
N30 IF[#D9112 EQ-1] GOTO40; Reconnect execute waiting.
GOTO30;
N40 #D9112=-2; Store "-2" in D9112. Set reconnect execute command.
N50 IF[#D9112 EQ 0] GOTO60; Check the completion of reconnect processing.
GOTO50;
N60;