
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
5
−
1
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
This section explains how to start a servo program using a sequence program or
SFC program for positioning control, and gives other information.
5.1
Cautions on Creating a Sequence Program or SFC Program
The following cautions should be observed when creating a sequence program or
SFC program.
(1) Positioning control instructions
The servo program start request instruction (DSFRP)/(SVST) (see Section 5.2)
and the current value change/speed change instructions (DSFLP)/(CHGA/CHGV)
instructions (see Section 5.3) are used as positioning instructions.
(2) Unusable instructions
It is not possible to use the DSFL (word data 1 word shift to left) or DSFR (word
data 1 word shift to right) instruction.
If a DSFL instruction of DSFR instruction is executed, an operation error occurs
and the following happens:
(a) Operation error flag (M9010, M9011) is turned ON.
(b) 50(OPERATION ERROR) is stored in the self-diagnosis error code register
(D9008)
(c) The step in which the DSFR or DSFL instruction was executed is stored in
the error step register (D9010, D9011).
In order to shift word data, use the BMOV instruction (see Appendix 4).
(3) Dedicated devices for the PCPU
Of the servo system CPU devices, those shown in Table 5.1 are exclusively for
use with the PCPU.
Check the applications of devices before using them in the sequence program
(for details, see Section 3).
Table 5.1 Dedicated Devices for the PCPU
Device Name
Device No.
Internal relays
M1600 to M2047
Data registers
D800 to D1023
Special relays
M9073 to M9079
Special registers
D9180 to D9199
Note that internal relays (M1600 to M2047) and data registers (D800 to D1023)
will not be latched even if a latch range setting is made for them. (The device
symbols for M1600 to M2047 are displayed as M, L, and S by the GPP device
in accordance with the M, L, and S settings in the parameters.)
(4) SFC programs
Refer to the manuals below for details on the SFC programming method.
MELSAP II Programming Manual (IB-66361)
SW2SRX-GSV13PE/SW0IX-CAMPE Operating Manual (IB-67398)
SW2SRX-GSV22PE/SW0IX-CAMPE Operating Manual (IB-67399)
Downloaded from