Specifications

Table Of Contents
9 - 44
9.9 Program for operation
This operation sequence/SFC program has been prepared for the SW6RN-GSV22P
(for Q172).
The explanatory drawing of the practice machines operation panel, is shown in section
9.2.
9.9.1 Initialization
When the RUN/STOP switch of Q motion CPU is set to RUN, PLC READY (M2000)
will turn ON for the Q-PLC CPU.
Example of SFC program for when the all-axis servo is started upon reception of the
PCPU READY flag (M9074).
(1) Program example
Initialization
G2100
[Transition]
M9074*!M9075*M9076
F2100 F2101
SET M2042 RST M2042
F2102
[Operation control
step]
SET M200 = M2415*M2435
SET M201 = M2044
SET M205 = M2001
SET M206 = M2002
RST M200 = !M2415*!M2435
RST M201 = !M2044
RST M205 = !M2001
RST M206 = !M2002
M200 : M2415 and M2435 ON/OFF state M201 : M2044 ON/OFF state
M205 : M2001 ON/OFF state M206 : M2002 ON/OFF state
M2001 : Axis 1 start accept flag M2002 : Axis 2 start accept flag
M2042 : All-axis servo start command flag M2044 : Real/virtual mode changeover status
M2049 : All-axis servo ON accept flag M9074 : PCPU READY flag
M2415 : Axis 1 servo ready flag M2435 : Axis 2 servo ready flag
M9075 : Test mode flag M9076 : Emergency stop input flag
[Timing chart]
M2000
M9074
The parameters are checked.
The servo parameters are written to the servo amplifier.
The M code is cleared.
Set RUN/STOP switch to RUN
M2042 (all-axis servo start command flag) is
turned ON in the following cases.
M9074 (PCPU READY flag): ON
M9075 (Test mode flag): OFF
M9076 (Emergency stop input flag): ON
The following signals are output to the M200,
M201, M205 and M206 set by automatic refresh.
M2415 (Axis 1 servo ready flag) and M2435
(Axis 2 servo ready flag)
M2044 (Real/virtual mode changeover status)
M2001, M2002 (Axis 1, Axis 2 start accept
flag)
SFC program No.210