Manual Programming SFC Eng
Manual Programming SFC Eng
TOYOPUC
SFC
i
History of Revision of Operation Manual
Revision Code of the Operation Manual is affixed to the Operation Manual No. indicated at the front and back
covers.
Operation
Manual No.
T–350*E
E : English, N : Japanese, F : French
Series No. Revision Code
ii
Contents
5. PROCESS CONTROL.................................................................................................................................................. 13
6. MONITOR....................................................................................................................................................................... 17
8. SFC RESTRICTIONS.................................................................................................................................................... 24
ii
1. SFC Outline
SFC is the IEC 1131-3 standard Programming Language which expresses various production
processes using different types of Graphic objects in a simple manner.
It is a tool which enables visual representation of “Operation improvements in each process of an
equipment” in flow chart form, that could not be understood with earlier Ladder Logic.
ST Initial Step
TR1
ST2 Step
Transition
TR2
ST3 ST4
Action (Ladder Diagram)
TR3
X1 M1
ST5
ST1
1
1.1.SFC Terminology
1.1.1.Step
It is one of the program elements in SFC and denotes 1 process in the program.
It expresses in box-like symbols and always a step No. is added.
Step has active / inactive logical states and the active state shifts to next step based on transition state.
Actual operation within in the process of one step is programmed based on action setting in the action
block. (Refer separate Action Execution state for 1.1.5 Action, 3.3 steps, 4AQ (Action Qualifier)).
Step without action is called Dummy Step and it only waits for the establishment of next transition
without carrying out any operation.
In case of Sub SFC step, Dummy Step can not be used.
1.1.3.Transition
Active state of a step of SFC implies transition to the next step.
2
1.1.4.Transition
It is one of the program elements in SFC and denotes transition conditions between processes in the
program.
It is described with 1 character symbol and always a transition number is affixed.
It implies transition conditions between processes and always one is needed between 2 steps.
Further only one step is needed between 2 transitions also.
o X X
Usually, one step is connected against one transition but at the time of branching and Confluence,
multiple steps are connected against one transition.
Transition of active state of a step based on transition, is carried out when the following 2 conditions
are established.
1. Step immediately above the transition is in active state.
2. Transition is established.
1.1.5.Action
It denotes each processing in a process (Step).Action must always correspond to the step.
Action list that corresponds to a step is called action block and actual operation procedure in a process
of one step is set with this actin block. Action is set with Action No. (AC n n n) or bit device address
(Relay).Number of settings against one step is 0~16.
When setting is carried out with Action No., its contents are separately programmed with the Ladder
Program.
All actions in 1 step are executed simultaneously and parallely when that step is in execution state,
unless otherwise specified and they all end simultaneously when that step reaches inactive state.
AQ Value Action
N AC000
S AC010
D 100 M000
N AC100
3
Transition to the subsequent step is made when the step before branching is in active state and the
conditions for transition after branching are established. Always only one step is selected.
When the establishment of conditions of transition for 2 steps is simultaneous, left side step is given
preference.
Selection branch line is single horizontal line.
Step
Step Step
1.1.6.2.Selection Confluence
Among multiple processes, when conditions of any one are established, shift to next processing is
made.
It implies the state where 1 step is connected after multiple transitions.
Transition to the step for Confluence is made when one of the steps before Confluence is in active
state and the conditions for the transition next to that step are established.
Selection Confluence line is single horizontal line.
Step Step
Step
4
1.1.7.Parallel Branching / Confluence
1.1.7.1.Parallel Branching
Multiple processes can be processed simultaneously.
It implies the state where multiple steps are connected after 1 transition.
When step prior to transition is in active state and the conditions for transition are established,
transition to all the subsequent steps is simultaneously made.
Parallel branch lines is indicated with double horizontal lines.
Step
Step Step
1.1.7.2.Parallel Confluence
Processes that have been parallely processed are synchronized.
It implies the state where 1 transition is connected after multiple steps.
If all the connected steps before the subsequent (lower) transition are in active state and the transition
conditions have been established, simultaneous transition to steps continuing after the transition is
made from all the steps connected before transition.
Parallel Confluence line is indicated with double horizontal line.
Step Step
Step
1.1.8.Jump
Execution is jumped from the transition on SFC to the specified step.
Step
ST0
5
2.Graphic Symbols (for SFC)
Component Graphic Function
Denotes the step which becomes active at the time of start of
Initial Step ST**** operation.
At least one is required in the program.
Sub-SFC Start
Sub-SFC End
6
3.SFC Structure Components
3.1.Process (PROC)
Process is registered in SFC Folder (“A” in the fig. on right) of each
Program (PROGRAM 1-3).
A
Object that creates chart (Process Diagram) with the concept of a
sheet is regarded as a process (PROC).
Number of processes that can be registered in 1 program may be
....
any number in the range of 0~100.
No. that can be registered No, that can be used
---
PROC : 100 00~99
3.2.Sub-Process (SUB-PROC)
Sub-process, unlike process, is registered in a Process. Object that A
creates chart (Process Diagram) with the concept of a sheet is
regarded as a sub-process (SUB-PROC).
Chart (Process Diagram) that indicates the contents of Sub SFC A
steps laid-out in Process or sub-process is created.
The number of sub-processes (SUB-PROC) that can be registered in 1 Process may be any number
in the range of 0~256.
Laying (Nesting : Maximum 256) separate sub-process in a sub-process is also possible.
No. that can be registered No, that can be used
SUB-PROC : 256 000~255
It is not possible to use sub SFC registered in other process (PROC) in the self process (PROC).
Duplicate use (laying out of multiple similar Sub-SFC Step No.) is possible if within the same process,.
However, it is necessary not to make them active simultaneously.
When sub-process (Sub SFC) is created, automatically 1 Action No. is consumed. Action
Nos. are consumed from 999 in the reverse order.
Consequently, while using 10 Sub SFC, it must be noted that the user can use Action No.
from 0 ~ 899.
Avoid using Action No. starting with 800 or 900 to the maximum possible extent.
7
3.3.Step
In Initial step and Step, there are Action Block and Action Ladder (when carrying out “AC n n n”
specification of Action with Action Block) as related setting.
Here their flow is indicated.
* While using Initial step and step as dummy step, only laying of their graphic symbols is enough.
SFC Window
Action Block
Ladder Window
8
3.4.Sub SFC Step
In case of Sub SFC Step, related setting is carried out with Sub SFC dialog.
Chart (Process Diagram) which forms the contents of the Sub SFC Step is created in the sub-
process.
Sub SFC
Sub SFC step no. can be set freely in the range of 000 ~ 255.
Duplicate use of Sub SFC Step No. is possible between processes but not within the same
process. (Saving to the project is impossible.) Laying of the symbol is possible.
Sub processes (SUB-PROC) that can be registered in 1 program may be any number in the range of
0 ~ 256.
It is not possible to use Sub SFC registered in other process (PROC) in the Self Process (PROC).
If within the same process, duplicate use (multiple layout of same Sub SFC Step No.) is possible.
However, it is necessary that they do not become active simultaneously.
9
3.5.Action Process
Execution Operation in the Step is created with Ladder Sequence Program.
Number of Actions that can be registered in one step can be any number within the range of 0 ~ 16.
While specifying Action with Direct Address (Bit Device Address), creation of Ladder Sequence
Program is not necessary.
Specification of Actions in
|--------------------------------------------------[LABEL AC*** ]---| multiple Step Processes
is possible, if they are
within the same program.
|--------------------------------------------------[RET ]---| However, they are not
operated at the same
Cursor Action Program Ladder Program written here time.
Insertion Area is executed
Since [LABLE AC ***] and {RET } are created automatically in the system, creation by the
user is not required.
Action No. can be used in the range of 000 ~ 999 and it tallies with the Label No. of Ladder Sequence
Program.
Action No. uses Extension Label “EL***” but in case of Ladder display of SFC Program, “AC***” is
displayed.
When Sub SFC is created, 1 Action No. is automatically consumed. Action No. is consumed
from 999 in the reverse order.
Consequently , when using 100 Sub SFC, Action No. that can be used by the user is 0 ~ 899.
10
3.6.Transition Conditions Program
Transition conditions are created with the Ladder Sequence Program.
As for Transition, there are Transition Dialog and Transition Conditions Ladder Sequence Program as
related setting. Below their flow is indicated.
Transition Program
Transition Condition
SFC Window
Transition
Ladder Window
Transition controls the shift of active state of the step and shift conditions are specified with the
Transition Program.
TR***(R580-0~R5BE-7Is allocated automatically)
|-----||-------||----+---||-------------------------------------------------[ ]---|PROC**-SUB***-TR****
|
|-----||-------|/|----+ Ladder Circuit of 1 Block
Transition Condition
Transition condition Program has 1 to 1 correspondence with each transition of SFC and one
Transition Program can be used simultaneously as other Transition Conditions Program.
11
4.AQ (Action Qualifier)-wise Action Execution
AQ (Action Qualifier) is the symbol that defines the timing of execution / non-execution of each Action.
AQ is set in Action Block and always set 1 AQ against each action.
AQ is of following 9 types :
Holding of action does not imply holding of output but continuation of execution of action.
However, when relay is directly specified in action, output is held.
Active State R
N ¯
S ¯
L ¯
: Execution of Action
D ¯
¯ : Indicates resetting of Action
P ¯
SD ¯
DS ¯
SL ¯
SL ¯
®
® S
®
® Further, when Hold System AQ is set, execution of same
®
Continuation of active
12
5.Process Control
Maximum 1 Processes (SFC Program) can be simultaneously executed against 1 Program.
Further, there is the function to control each process as a whole.
For details of handling of signals, vide separate “Deigning of SFC control circuit Manual”.
**Process |--||---------------JPI
**Process
|--||---------------DGR
|--||---------------MOR
|--||---------------STP
|--||---------------RDY
|--||---------------RUN
|--||---------------RES
DGR : By making DGR = ON, output of step diagnosis error is turned OFF and the current value of
the timer for diagnosed processing is cleared.
By controlling only Process 0 (R5C 0-5), it becomes valid against all steps of all processes.
MOR : Executed flag is automatically controlled at each step so that execution route during Selection
branching etc. can be monitored.
By making MOR = ON, this flag is cleared. Usually, at the start of 1 cycle of an equipment,
execution route of the previous cycle is cleared.
STP : When STP=ON, execution is continued till the step currently under execution is completed and
execution is stopped just when the shift to the next step is made. However, execution of held
action is continued.
When STP = OFF, SFC is executed in accordance with RUN input.
Usually, STP = OFF is used.
RDY : It is the function implying that the equipment is ready for operation.
When RDY = OFF, all soils and Timers executed in the process are turned OFF.
Further, action where hold is specified is also released.
By using this function, operation conditions for each Action Program (Ladder) can be reduced.
13
In case of Process that requires regular output such as Lamp for state display etc. RDY = ON
is always used.
When power supply is turned on, all these inputs, excluding “PROCOO” (Process O) become OFF.
Since each process becomes operative only when “RUN = RDY = ON” , it is necessary to control
these process control inputs in the Ladder Sequence Program, different from “PROCOO or SFC.
“PROCOO” is a special process. It does not have input of RUN / RDY and it always has the operation
similar to that when RUN = DEY = ON. (only process where immediate operation is possible with the
switching on of power).
(Even SFC of the initial step will do)
14
5.1.Area Data Memory Allocation for Process Control.
16
6.Monitor
6.1.Symbol during Monitoring
6.1.1.Process Monitor
State of Signals for Process Control set in each process can be monitored.
(Yellow) : ON
(Grey) : OFF
6.1.2.SFC
Below, symbols during monitoring have been indicated. Depending on the state of step, 3 types of
expressions are made.
(Symbol of Transition does not change)
6.1.3.Ladder
Monitor of Ladder Sequence Program Created as Action Program or Transition condition Program
can be seen along with SFC.
17
6.1.3.1.Action
SFC Window
Action Block
Ladder Window
6.1.3.2.Transition
Ladder Window
6.1.3.3.Sub SFC
18
6.2.Step Diagnosis
In this function, processing time of a step is measured and compared with set value. And in case
processing time > set value, it is detected as processing timer error.
Jump Close
Error Data of Step diagnosis can be reset by turning ON “DGR” in the Process Control Area of
PROCOO (Process O).
In case it is reset, this buffer area is also cleared.
19
6.3.Step Active Elapsed Time
By using Step Active Elapsed Time, detection of error process of the equipment or adjustment /
curtailment etc. of Tact Cycle Time can be made.
When step Elapsed Time output is set in the Action Block of each step, current value of the timer for
6.6.1 Step Active Elapsed Time is shown.
Output timing is scanned only during active state and there is no output during the inactive state.
Note that sometimes this timer value and that of step diagnosis are different.
Even when Step Elapsed Time Setting is not carried out, if monitored with SFC Programmer, Step
active Elapsed Time of all the Steps can be monitored.
Step Active Elapsed Time Display
ST0001 ST0001
2.3S
ST0002
ST0002
5.8S
Program1 PROC05
ST0001
0.5S Glow On the step with
Color which is executed
TR0000
ST0002
0.6S Step elapsed time
ST0003 ST0004
0.0S 20.0S
TR0002 TR0004
20
6.5.Multiple Execution of Sub SFC
Several similar Sub SFC can be operated in the same process.
However, those steps can not be executed simultaneously.
In case timing-wise they become simultaneous, Sub SFC from the second one becomes wait state
and they are executed afresh the moment that sub SFC is fully executed.
In case there are multiple Sub SFC in wait state, always left side one gets priority from the
positioning of symbol point of view.
Wait
ST0010 ST0030
ST0011 ST0031
Later Execution
SUB010 SUB010
Executed after the completion of A.
A : First Execution
ST0012
21
6.6.Timer Control
Each step carries out 3 independent timer controls.
6.6.1.Timer for Active Elapsed Time
It is Elapsed Time Timer conforming to SFC Standard of IEC.
It is cleared at the beginning of activation and measures time during active state.
When inactive state is reached, measured value is held at it is.
Monitoring from peripheral equipment is possible.
This data can be extracted in specified register in accordance with setting in each step.
Timer Value
Timer Value
Reset
Error Detection
Inactive Active Inactive Active
(1) Elapsed
RUN (Continuous)
DGR Resetting
22
7.Ladder Sequence Program
Last BIN Code
|-----[PEND]
|-----[START ]
Main Sequence BIN Code
|-----[END ]
Sub Routine BIN Code
|----[PEND ]
23
8.SFC Restrictions
When SFC is used, since below mentioned Data area is used for SFC control work, it can not be used
for user Program.
Irrespective of the operation mode, it occupies for the SFC control about special relay "V58-
V5D"·"EV800-EVBFF", too.
24
The contents of this document may be changed for product improvement
without prior notice.
Sufficient care has been taken about the contents but in case of any doubts or
mistakes, please contact us.
No part of this document may be reproduced without prior written permission.
2
Machine Tools and Mechatronics Business Headquarters
Higashi Kariya Plant, Kita-Chizoyama 1-7, Noda-machi, Kariya-shi, Aichi-Ken – 448-0803 TEL 0566-21-8611
Manual No.
T – 3503E
©
JTEKT CORPORATION 1999-2006.