5. SEQUENCE PROGRAMS AND SFC PROGRAMS
5
−
7
Make the following setting to designate the number of the servo program to be
started with the data stored in data register D50:
•
Designation with a word device
SVST
J1J2J3
D50
2) An index register (Z, V) can be used for index designation of the indirectly
set word device.
•
For details on index registers (Z, V), see the ACPU Programming
Manual (Fundamentals) (IB-66249).
[Error Details]
In the following cases, an operation error occurs and the SVST instruction is not
executed.
•
When the setting for (D) is for 5 or more axes (A171SHCPUN).
•
When the setting for (D) is for 8 or more axes (A172SHCPUN).
•
When the axis number given in any digit of (D) is a number other than J1 to J4
(A171SHCPUN).
•
When the axis number given in any digit of (D) is a number other than J1 to J8
(A172SHCPUN).
•
When the same axis number is set twice in (D).
•
When the setting for n is outside the applicable range.
[Program example]
Start accept flags
PLC READY flag turned ON
All axes servo start command turned ON
When X100 comes ON, the start
command flag (M1) for servo program
No.50 comes ON.
Execution request for servo program No.50.
On completion of the request for execution
of servo program No.50, M1 is turned OFF.
0
2
4
11
13
CIRCUIT END
M9039
M9074
M0100
M0
M1
M9074
M9074
M2009 M9076
M2001 M2002 M2003 M2004
M2000
M2042
PLS M0
SET M1
RST M1
SVST J1J2J3J4 50
K
Example
Downloaded from