Specifications

Table Of Contents
10 - 37
(3) SFC program
Calculate the axis 1 and axis 2 addresses from the digital switch value, and store
in the D4006, D4007, D4008 and D4009.
Execute the servo program No.25 using the calculated addresses.
[Real mode main] program
The "Address
indirect designa
-
tion" is started
when X7 is
turned ON and
M2001 and
M2002 are
turned OFF.
SFC program
No. 0
Real mode main
Address
Indirect address designation
The digital switches (X10 to X17)
are stored in D0.
SFC program No. 100
Store in D4006, D4007 (axis 1
address), D4008 and D4009 (axis
2 address).
The servo program No.25 is
executed.
Shift to END when the final
designated position is reached,
and to the right otherwise.
'1' is added to #0
to move to the
next designated
position.
G1000 G1002
(#0>=K0)*(#0<=K99) (#0 == K99)+PXD+PXE
G1004
[Transition]
TIME K1500
F1000 F1001
DIN D4000L,PX10
D4000L=D4000L&HFF
D4000L=BIN(D4000L)
#0L=D4000L-K1
#8L=#0L/K10
#6L=#0L%K10
D4006L=K100000*#6L
D4008L=K1800000-(#8L*K200000)
F1002
[Operation control
step]
#0=#0+K1
K25: REAL
[Motion control step]
1 ABS-2
AXIS 1, D 4006µm
AXIS 2, D 4008µm
COMPOSITE VELOCITY 5000.00mm/min
PX7 : Indirect address designation command PX10 to PX17: Digital switch input device
D4000 : Value of digital switch (designated point)
#0 : Storage of address calculation value (designated point-1)
#8, #9 : For calculation of axis 1 address #6, #7 : For calculation of axis 2 address
D4006, D4007: Storage of axis 1 address D4008, D4008: Storage of axis 2 address