Specifications

Table Of Contents
10 - 19
10.5.2 Main routine SFC program (real mode operation)
This a SFC program executed in the main routine when the real mode is selected.
It is used to start other SFC programs (from this main routine SFC program) to execute
various operations in the real mode.
(1) SFC program started from main routine SFC program
SFC program No. Program name Description section
20 Waiting point positioning 10.5.3
30 Servo program execution 10.5.3
50 Current value change 10.5.6
80 Servo program continuation 10.5.9
110 Indirect address designation 10.5.10
(2) Program example
SFC program No. 0
Real mode main
Waiting position
Servo Pro.
Current value change
Servo Pro.
Address
Start of real mode
operation
"Servo program continuation"
is started when X2 is turned
ON, and M2001, M2002,
M3200, M3220, M3201 and
M3221 are turned OFF
The "Waiting point
positioning" is started
when X0 is turned ON
and M2001 and M2002
are turned OFF.
The "Servo program
execution " is started
when X1 is turned ON.
The "Current value
change command" is
started when X9 is turned
ON and M2001 is turned
OFF.
The "Indirect address
designation" is started when
X7 is turned ON and
M2001 and M2002 are
turned OFF.
G0 G1
PX19 PX0*!M2001*!M2002
G3 G5
PX1 PX09*!M2001
G7 G9
PX2*!M2001*!M2002*!M3200*!M3220*!M3201
*!M3221
PX7 * !M2001 * !M2002
G4095
[Transition]
NOP
M2001 : Axis 1 start accept flag M2002 : Axis 2 start accept flag
M3200 : Axis 1 stop command M3201 : Axis 1 sudden stop command
M3220 : Axis 2 stop command M3221 : Axis 2 sudden stop command
PX0 : Positioning start command PX1 : Servo program execution command
PX2 : Positioning start command PX7 : Indirect setting address receiving command
PX9 : Current value change command