Delta AH500 Programming Manual page 710

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 0 0 P r o g r a m m i n g M a n u a l
6.25.2 Explanation of Task Control Instructions
API
Instruction code
2500
SFCRUN
Device
X
Y
M
S
S
2
S
3
Symbol:
Explanation:
1.
The designated SFC program of S
2.
When the instruction is executed, the SFC POU designated by S
the SFC POU is being scanned.
3.
Operand:
S
defines the name of the SFC POU.
1
When the designated SFC POU of S
SFC/STEP/ACTION/TRANSITION of the SFC program will be cleared when S
and the execution will start according to the value specified in S
S
=0, the system will execute the SFC POU from the initial Step.
2
S
=1, the system will execute the SFC POU from the designated Step of S
2
S
=2, the status and the parameters such as SFC/STEP/ACTION/TRANSITION of the
2
SFC will NOT be cleared and the system will start executing from where it pauses.
S
designates the step to be started in the SFC program of S
3
4.
The range of S
is 0 to 2. When it is out of range, it will be seen as 0.
2
5.
When the state of the SFC POU is RUN, executing this instruction is invalid.
Example:
Set up one LD(ladder) POU and specify its POU name as Main, and 2 SFC POUs with the names of
TestSFC1 and TestSFC2.
1. When the program is executed (RUN), TestSFC1 and TestSFC2 will execute the SFCSTP, and
2 SFC POUs will stop executing.
2. When M0 is set from OFF to ON, TestSFC1/ TestSFC2 POU will execute the SFCRUN*
instructions. Refer to the contents of TestSFC1 and TestSFC2 for execution details of the 2
POUs. When S
is set to 0, the status and the parameters of the SFC will be cleared and will
2
6 - 5 4 2
Operand
S
, S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps)
S
Name of the SFC POU
1
S
Function code
2
S
Device address
3
will be activated according to the setups of S
1
is executed, the parameters such as
1
3
L
SM
SR
E
AH500
Word
will be activated only when
1
2.
.
1
Function
SFC Run
K
16#
"$"
DF
32-bit
-
.
2
=0 or 1,
2
.
3

Advertisement

Table of Contents
loading

Table of Contents