Workshop User Guide of Grafcet
Workshop User Guide of Grafcet
GRAFCET
to FAMIC to Technologies Inc.
document: AS5_GUI_SF02_003
REPRODUCTION
Any partial or total of this guide or program, reproduction is prohibited without the written consent
of FAMIC to Technologies Inc.
i
the SFC User's Manual Guide
ii
Summary
iii
the SFC User's Manual Guide
iv
List of figures
Figure 2-1: Main window SFC Editor ........................................ ..................... 2-1 Figure 2-2: Menu "Edit" .................
.................................................. ............................. 2-2 Figure 2-3: Options menu command "Select" "Edit" ..
Figure 2-5: Dialog box "Monitoring Sequence Time" ............................ 2-4 Figure 2-6 : Commands "GRAFCET" menu
........................................... ........................ 2-7 Figure 2-7: Options "verging and links" menu command
Figure 2-8: Options "Insert" menu "GRAFCET" command ............................ Figure 2-8 2- 9: Toolbar GRAFCET
............................................ .......................... 2-9 Figure 3-1: dialog "document Properties" ........ 3-2
Figure 3-3: electrical and pneumatic circuit .... .................................................. ...................... 3-7 Figure 3-4: Grafcet
............................... 3-9 Figure 3-7: dialog box "Properties stage» .. ............................................. 3-10 Figure 3 -8:
Figure 3-9: Dialog box "Stage guided mode" ................................... .......... 3-13 Figure 3-10: dialog box "Transitions up"
........................ .................... 3-15 Figure 3-11: dialog box "Transitions down" .............. 3-15 .............................. Figure
3-12: transition symbol ......... .................................................. ........................... 3-16 Figure 3-13: Inserting transition 1
.......... .................................................. ................. 3-17 Figure 3-14: dialog box "Properties transition" ................
..................... 3-17
v
the SFC User's Manual Guide
Figure 3-15: Dialog box "transition guided mode" ................................... 3-19 Figure 3-16: dialog box "Steps up"
.................................. ................... 3-19 Figure 3-17: dialog box "Steps down" ............... ....................................... 3-20
Figure 3-18: Defining a action ................................................. ............................... 3-21 Figure 3-19: transition 2, step 3
and transition 3 ... .................................................. ........... 3-21 Figure 3-20: Steps before divergence And
.......................... Figure 3-22 .............................................. 3-21: Steps following the creation of the divergence in Y
Figure 3-23: Status chart before creating a convergence O ................ 3-25 Figure 3-24: Status graph after creating a
convergence
OR................................................. .................................................. .................. 3-27
Figure 3-25: Structured Text ........................................... ............................................... 3-27 Figure 3-26: Status chart
after creating a structured text .............. 3-28 Figure 3-27: dialog box "Properties structured text" ... 3-29 ........................
Figure 3-28: free Comment ................ .................................................. ........................... 3-30 Figure 3-29: Status chart
after creating a free comment .... ............. 3-31 Figure 3-30: dialog box "Properties comment» ..................... ................
3-31 Figure 3-31: message window ....................... .................................................. ............. 3-32 Figure 4-1: Inserting a
step ......................... ................................................... ............ 4-2 Figure 4-2: Inserting a transition ..........................
...................................... 4-4 Figure 4-4: Inserting a comment free ................................................. ....................... 4-4
Figure 4-5: Schedule an action containing a rising edge .......... ............. 4-11 Figure 4-6: Assignment Boolean
continuous action ....................... 4-13 ............................ Figure 4-7: numerical Assignment ............
............................................... 4-15
saw
List of figures
5-1 ........................ Figure 5-2: Initial stage active ............... .................................................. ............................. 5-2
Figure 5-3: Step normal active .......... .................................................. ................................. 5-2 Figure 5-4: Macro-stage
active ..... .................................................. ....................................... 5-2 Figure 5-5: input stage active
................................................. ......................................... 5-3 Figure 5-7: Step with breakpoint and blocked number.
vii
the SFC User's Manual Guide
Figure 5-9: Arrangement of different windows ........................................ ..................... 5-10 Figure 5-10: deforzado Examples of a push button .............. NA
................................. 11.05 Figure 5-11: Rule 5 ..... GRAFCET .................................................. 5-13 ............................ Figure 5-12: SFC Rule 5 (continued)
....... .................................................. . 5-14 Figure 5-13: SFC Rule 5 (continued) .................................. 5-14 ........................ Figure 6-1: SFC circuit and control
a drill ........... .................................................. 6-1 Figure 6-2: Cell drilling ....................................... .................................................. . 6-4 Figure 6-3:Since
feeding pieces of the drilling unit 6-6 .......................... Figure 6-4: Since fixing and drilling unit ................................................ Figure 6-5 .... 6-7: test stand and
evacuation of the drilling unit ............................ 6-8 .. Figure 6-6: Indexed table of the drilling unit ............................... 06.09 ................ Figure 6-7: control Panel
....................... .................................................. ....................... 6-10 Figure 6-8: Scheme control operating part ............ Figure 6 .............................................
6-17 -9: control scheme operating part (continued) 6-18 ................................ Figure 6 -10: control scheme, signaling .................................6-19
.................................. Figure 6-11: Scheme control, signal ... .................................................. .............. 6-20 Figure 6-12: hierarchical structure of graphics
automation ..................... .............. 6-21 Figure 6-13: hierarchical structure of graphics automation ..................... .............. 6-23 Figure 6-14: Figure DEFAIL,
processing defects ...................... .......................... 6-24 Figure 6-15: Figure DEFAIL, controls initialization of the graphics ....... ................. 6-25 Figure 6-16:
Figure DEFAIL, controls up graphics ................ .................. 6-26 Figure 6-17: Figure START_STOP ...................... .................................................. Figure 6-18
6-27 ...........: Figure START_UP ............................................................... 6-28 ........................ Figure 6-19: Chart mechanical initialization INIT_MEC .............
................................ 6-29 Figure 6-20: operational diagram NORMAL ...... .................................................. ... 6-30 Figure 6-21: Figure macro step
.................................. FEEDER ..................................... 6-31 Figure 6-22: Figure macro step DRILL .................................................. 6-32 ........................ Figure
6-23: Figure macro step EVAC ............. .................................................. ............ 6-33 Figure 6-24: Figure SHUTDOWN ............................
.................................................. ...... 6-34Figure 6-19 6-28: Chart mechanical initialization INIT_MEC ..................................... ........ 6-29 Figure 6-20:
operational diagram NORMAL .............................. ............................. 6-30 Figure 6-21: Figure macro step ........ FEEDER ..................................................
............. 6-31 Figure 6-22: Figure macro step DRILL ........................ .................................................. 6-32 Figure 6-23: Figure macro step EVAC
..................................... ...................................... 6-33 Figure 6-24: Figure SHUTDOWN .. .................................................. ................................ 6-34Figure 6-19
6-28: Chart mechanical initialization INIT_MEC ..................................... ........ 6-29 Figure 6-20: operational diagram NORMAL ..............................
............................. 6-30 Figure 6-21: Figure macro step ........ FEEDER .................................................. ............. 6-31 Figure 6-22: Figure macro step DRILL
........................ .................................................. 6-32 Figure 6-23: Figure macro step EVAC ..................................... ...................................... 6-33 Figure 6-24:
Figure SHUTDOWN .. .................................................. ................................ 6-34.................................................. ... 6-30 Figure 6-21: Figure macro step
.................................. FEEDER ..................................... 6-31 Figure 6-22: Figure macro step DRILL .................................................. 6-32 ........................ Figure
6-23: Figure macro step EVAC ............. .................................................. ............ 6-33 Figure 6-24: Figure SHUTDOWN ............................
.................................................. ...... 6-34.................................................. ... 6-30 Figure 6-21: Figure macro step .................................. FEEDER
..................................... 6-31 Figure 6-22: Figure macro step DRILL .................................................. 6-32 ........................ Figure 6-23: Figure macro step EVAC
............. .................................................. ............ 6-33 Figure 6-24: Figure SHUTDOWN ............................ .................................................. ...... 6-34Figure macro step EVAC .........................
viii
1. Introduction
Is the SFC User's Manual Guide It presents the necessary for use of this information workshop with Automation
Studio. This information includes descriptions of the components, the adjusting method thereof, and performing
circuit simulation and practical examples.
Automation Studio is a modular simulation program. It consists of a core to which is attached different simulation
modules.
Modules called "workshops" comprise component libraries that allow you to make circuits of different nature -
GRAFCET, electrical, etc. - independently or in combination.
The core comprises the editing, simulation, file management, printing and display.
1-1
2. Description of the SFC Editor's Menus
This chapter describes the SFC Editor menus that are not addressed in the User's guide. For the description of items
whose functionality is shared by the other workshops, see User's guide .
2-1
the SFC User's Manual Guide
Select
Select the following: all stages, transitions, structured text, comments, links, everything that is below the
transition / selected stage and finally, all of the graphic element.
2-2
Description of the SFC Editor's Menus
· Then: Select all that is below the transition / selecting step including the selected item.
Component Properties
Gives access to the properties of the selected element (see 3.6 the SFC).
Document Properties
It gives access to the document properties: Page Setup, Summary Information, Grafcet, Summary.
This command gives access to the dialog box of the properties of the selected component. Les properties of the
Grafcet components are described in the following chapters (see 3.6 Inserting the Grafcet).
This command gives access to the dialog "Document Properties." The properties of a document grafcet are
grouped into four branches:
· Page Setup;
· summary information;
· Grafcet;
· Review.
The "Page Setup", "Summary Information" and "Overview" properties are similar for all documents Automation
Studio, refer to the User's Guide to get more details.
When this dialog box opens, the SFC branch is selected by default.
2-3
the SFC User's Manual Guide
AB ED
C G
I
H
Section Description
TO First name In this area the name of the default chart appears. You can modify this field. It
synchronized with the document name in the "Project Explorer".
2-4
Description of the SFC Editor's Menus
Section Description
B hierarchical level in this area is possible to register the graph jerárquicodel level,
default the graph is 0 level (top level). Extending levels must be between 0 and 999.
C Class In the drop-down list in this area you can specify whether the graph is the execution of
a macro-step or a normal chart. By default the graphic is defined as NORMAL.
D step source In this area, the SFC editor displays the name of the step defined as macro step in the
graphic source and enables the graphic macro-step.
AND Step This box checked by default, lets you specify whether the execution of the graph is
Unconditional unconditional.
Grafcet
If the box is unchecked, a structured text must contain the condition graph execution.
Eg SFC_Name.RUN IF CONDITION.
F Commentary In this area you can register the general comment of the chart. This button accesses
the dialog "Monitoring Sequence Time." The time sequence is calculated between the
G Supervision
Weather start and the return to the initial stage.
Time of
minimum sequence in this area
minimum
may register
sequence.a time
If the sequence is activated by a
lower period, the default minimum sequence time this
graphic set to TRUE (eg. GRA_001.SEQ_MIN_FAULT).
Time of
maximum sequence in this maximum
area may register
sequence.a time
If the sequence is active for a higher
period, the default maximum time sequence of this graph
is set to TRUE (eg. GRA_001.SEQ_MAX_FAULT)
2-5
the SFC User's Manual Guide
Section Description
Phrasing (action,
transition), Level 2 whetheroperational
to display the
(stocks,
statements
receptivity) of the Grafcet components
(level 2).
I Simulation boolean When the name of the Boolean variables true state this
animation preference is selected, it is displayed in reverse video
during a simulation.
2-6
Description of the SFC Editor's Menus
It gives access to actions on links and Branches (convergence / divergence Y or O). Options "Links and Branches"
· Reset link allows redraw the selected vergente and links that are associated with it according to the shortest
path between the elements.
· Adjust vergente: allows setting a vergente shipments containing selected as the shortest path.
· Convert link shipping / convert shipping link: Converts a link in shipping and inversely depending on the
context.
Convert stage
block number
Command to block the number of the selected item to prevent it attributed a new number.
02.07
the SFC User's Manual Guide
unlock number
Command to unlock the number of the selected item to allow it attributed a new number.
renumber
Renumber allows selected items except those whose number has been previously blocked.
Insert
It allows access tools insertion elements in the Grafcet. Items can also be inserted from the toolbar. Options
02.08
Description of the SFC Editor's Menus
Mistakes
Erores detects all the graph. Error messages and / or warning messages appear in the message window (see Message
window in the User Guide).
BA CD AND F GH I
KJ
Tool Description
2-9
the SFC User's Manual Guide
Tool Description
2-10
3. Conduct a first SFC
This example wants to familiarize the user with program commands. Step presents a method that allows you to
build SFC.
The Schema Editor window presents the menus and commands management schemes. The new window
created is a folder containing the list of all the schemes that project. To create a new Grafcet.
4. Press "OK".
The dialog "Document Properties" containing the properties of the graphic appears on the screen.
5. For this graph, register GRA_001 in the "Name", the hierarchical level and class field are defined by default in "0"
and "standard". List Performing a first grafcet as a comment.
7. Click "Close" to close the dialog box and return to the schema.
3-1
the SFC User's Manual Guide
Grafcet Editor adds to the menu bar and the toolbar all the necessary commands for performing the
Grafcet. The status bar provides useful information when you browse an outline.
· Part Control (PC): the logical drive, depending on the inputs, outputs prepares orders aimed at the
operative part or outside elements. SFC is a graphical representation of a model using the basic elements of
SFC to represent an automated system. The basic elements of the SFC are:
3-2
Performing a first grafcet
· Structured texts that correspond to autonomous actions not associated with a stage;
3-3
the SFC User's Manual Guide
3-4
Performing a first grafcet
active steps An active phase is identified with a red tab at the symbol
center stage during the simulation.
3-5
the SFC User's Manual Guide
3-6
Performing a first grafcet
1. Create a new project, arrange the pneumatic / hydraulic components like the file you have open. Assign the same
names to the components.
The above circuit allows to move a load from level 1 to level 2 for deposit in the container left or right depending on
their mass. The rise of the load is carried out
3-7
the SFC User's Manual Guide
the output of the cylinder rod is then A. The load level 2 pushed by the advancement of the cylinder rod B. The rotation
of the motor in one direction or another simulated deposit cargo containers.
03.08
Performing a first grafcet
3. In the new scheme, move the cursor to the location where you want to insert the stage and click the left mouse
button.
The dialog box containing the properties of the stage appears on the screen (see Figure 3-7: Dialog box "Properties
6. Press "OK".
Grafcet status:
3-9
the SFC User's Manual Guide
TO
D
F AND
J
KB
OR
NMLIH
areas Description
L Name of In this area the name of the graph containing the step appears. This field is not
graphic modifiable. However, this name can be changed in the "Name" field of the branch
"Grafcet" window "Document Properties" dialog.
3-10
Performing a first grafcet
areas Description
M Number A number is automatically attribuido each stage. You can modify this number but
should always be between 1 and 999. Two stages can have the same number in
the same scheme.
N Number If the user chooses this option, the number of stage is not modified during the
locked automatic renumbering of a graphic or selected items. When the number is blocked,
the symbol "*" appears in the center of the left outer frame of the stage.
OR Kind In this area the user can select from a dropdown list from a macro, normal, early
stage, input or output.
P graphic macro-
the
If step associado stage is name macro
defined of the graph active macro-step.
step, specify in this area This field is disabled if the step is not
defined as a macro step.
Q Actions This area allows you to edit the actions of the stage. It shows the action or actions
associated with the stage. This field is greyed out for macro-stages and output
stages. The user can:
· Enter multiple actions under the same condition with a comma separating them
(eg. Action1, Action 2, Action 3 Condition1 IF);
Composing the action to execute using the variables and operators presented as a
calculator window guided mode.
R Guided Mode This button gives access to the guided mode window to edit the stage action. This
button is greyed out for macro-stages and output stages.
S New Variable This button gives access to the window creating internal variables.
To learn more about creating variables, see the Variables Manager in the
User's Guide.
T External links giving access to the selection window This button technology for
creating external links (OPC, etc.). For more information about creating external links,
see the Variables Manager in the User's Guide.
11.03
the SFC User's Manual Guide
areas Description
OR Actions
Stage
unconditional tick box that shares
allows is notthat
specified conditional on the stateof
the implementation ofthe
operation of the chart (see 4.18
Management states and defects of a graphic section).
V Point of Tick box which allows to determine the suspension of the simulation when the stage is
interruption triggered.
W Supervision This button gives access to the definition window monitoring time activation stage.
Weather Minimum activation time
Maximum activation time This area can enter a maximum activation time step. If
the stage is activated for a longer period, the default
maximum step time of this graph becomes TRUE (ex.
GRA_001.STEP_MAX_FAULT).
X transitions This button provides access to the window containing the list of transitions
up preceding stage.
Y transitions This button gives access to the window containing the list of transitions that
down follow the stage.
3-12
Performing a first grafcet
areas Description
TO F
C
D HG
AND
The list of "tags" on the previous dialog box contains the variables of the project in which you build the
Grafcet. See Variables Manager in the User's Guide.
3-13
the SFC User's Manual Guide
areas Description
F The stages are numbered according to the first free number between 1
999.
B Instruction This text zone is used to register the stage action. Actions must conform to the syntax
defined SFC in Chapter 4 SFC Syntax.
C variables This combo box lets you select global or local variables of the project outline.
D Label This table contains the list of variables corresponding to the selected affiliation.
AND Syntax Description of the selected operator with a pulse of the left mouse button on the list of
examples or calculator section.
3-14
Performing a first grafcet
areas Description
F Syntax This box allows you to activate syntax analysis during editing.
(Tick box)
G New This button gives access to the window creating internal variables. To learn more about
variable creating variables, see Variables Manager in the User's Guide.
H links This button gives access to the selection window technology to create external links
external (OPC, etc.). To learn more about creating external links, see the Variables Manager in
the User's Guide.
I operators These buttons allow an operator to enroll in the title of the action. Press the operator
button to insert in the calculator section.
3-15
the SFC User's Manual Guide
areas Description
Up transitions Validated transitions above step are displayed with the color of the active components.
You can select a transition in which they are displayed. The list can not be changed.
Transitions down Validated transitions down step are displayed with the color of the active components.
You can select a transition in which they are displayed. The list can not be changed.
3. Once the two connectors are associated (the connector and the lower connector transition stage), click the left
mouse button.
The dialog "Properties transition" appears on the screen (see Figure 3- 14: Dialog box "Properties of Transition"). For
5. Register. 1-1S1.A_IN AND .1-1S3.B_IN AND .1-1PBNO1.BP_1 in the "Instruction" field of the window "Guided Mode"
(you have to respect the syntax).
For faster and avoid mistakes registration, you can use the "Guided Mode", the list of "Variables" and
calculator buttons located at the bottom of the window:
· Double-click " A_IN 'In the list of labels. The variable " . 1- 1S1.A_IN "Appears in the"
Conditions ".
3-16
Performing a first grafcet
Grafcet status:
TO BC
D
G
IH
AND
areas Description
TO Name of The graph name containing stage is displayed in this area. You can not modify this field.
graphic
B Number A number is automatically attributed to each transition. You can modify this number
but must be between 1 and
999. Two transitions may not have the same number in the same scheme.
3-17
the SFC User's Manual Guide
areas Description
C Number When this box is checked, the number of transition is protected against any automatic
locked update or renumbering of a graphic or selected items. When a number is blocked, an
asterisk (*) appears to the right of the transition number.
F Guided Mode This button opens the dialog Stage in guided mode
allowing you to edit the receptivity of the transition. The receptivity must comply with the
SFC syntax described in Chapter 4 SFC Syntax.
G New This button gives access to the window creating internal variables. To learn more
variable about creating variables, refer to
Variable Manager in the User's Guide.
H links This button gives access to the window to create external links (OPC, etc.). To
external learn more about creating external links, see the Variable Manager in the User's
Guide.
I Steps up This button gives access to the dialog "Steps Up" which contains the list of steps
preceding the transition.
J stages This button gives access to the dialog "Steps down" containing the list of the steps that
down follow the transition.
A smooth transition receptivity is considered false. Only the context menu of the transition simulation
allows a smooth transition pass receptivity.
3-18
Performing a first grafcet
In the calculator window area of dialogue, no operators available for transitions appear locked in gray.
3-19
the SFC User's Manual Guide
2. In the scheme (where is the Grafcet), move the mouse cursor to the connector 1 transition.
Once the top connector of step 2 and the lower connector 1 are aligned transition press once on the left mouse
button.
The dialog box containing the properties of the stage appears on the screen. For this "action"
5. OUT_A register as a variable name, choose "Boolean" as a variable and press the "OK" button. The variable
appears in the "Instruction" field of the window "Guided Mode".
6. Tap the "IF" calculator button. The "IF" statement appears in the "Instruction" field.
7. Then choose the variable 1-1PBNO2.COM_A in the list of variables with a double pulse
mouse. The variable appears in the "Instruction" field.
8. Click the "OK" button in the window "guided mode" and in the dialog box of the properties of the stage.
Grafcet status:
3-20
Performing a first grafcet
After inserting a symbol (step or transition) of the SFC, it can modify its properties. That simply double
click on the symbol. The Symbol dialog box appears on the screen.
To facilitate the task of inserting the links, the connectors of the components are shown. It circles around the
connection points of the components and links. These circles change color when the connection is made
correctly. When the cursor is positioned at one of those points, the connection tool appears. (For more
detail, see Inserting links in the User's guide).
one. Insert transition 2, step 3 and transition 3. Create the OUT_B variable.
3-21
the SFC User's Manual Guide
1. Create step 4.
2. In the "Action" field of Step 4, create and register the variable. IN_A.
3. Create step 5.
4. In the "Action" field of Step 5, create and register the variable. IN_B.
5. In the diagram, move the cursor over the connector to where you want to create the link (transition 3) and click
the left mouse button. Keeping the left button, move the cursor to the next connection point (step 4) and
release the button.
6. Restart to the following link (between the transition 3 and step 5).
Y divergence is created if a transition is linked to more than one stage. An AND convergence is created if
more than one stage is linked with a transition.
3-22
Performing a first grafcet
To enlarge an AND link, simply add a link on another step / transition. You can also move a step or
transition and adjust the link using the option "Reset vergente" link context menu.
To move an AND link, just click on the link with the left mouse button and move the hold down
the key.
To reset an AND link, simply select the link and choose "GRAFCET"
to "Links and Branches" to "Reset vergente." The link is redrawn as the shortest path between components.
To facilitate the creation of successive links, deselect the link above before creating a new one.
8. Add transition 4 and, for receptivity associated with the transition 4, register
T / X4.X / T # 1s /.
3-23
the SFC User's Manual Guide
Grafcet:
3.6.6. O link
To create a convergence or divergence of O, first create steps / transitions in the scheme.
3-24
Performing a first grafcet
3. In the diagram, move the cursor over the connector to where you want to insert the link and click the left mouse
button. Hold the left mouse button, move the cursor to the next connection point and release the button. A link is
located in the scheme.
6. Add the transition 8 and add T / X7.X / T # 300ms / in the "Responsiveness" field.
3-25
the SFC User's Manual Guide
10. In another scheme, the workshop electrical control JIC choose to form the five-button control unit and Designate
them respectively PB_1, COM_A, COM_B, M_A Y
M_b. These buttons let you control the Grafcet.
An OR divergence is created if a stage is linked to more than one transition. An OR convergence is created
if more than a transition linked to a stage.
To enlarge an OR link, simply add a link in another step / transition. You can also move a step or
transition and adjust the link via the "Reset vergente" context menu option link.
To move a link in O, just click on a link with the left mouse button and move the mouse while
keeping the button pressed.
To set an OR link containing shipments, simply select the link and choose "GRAFCET" to "Links and
Branches" to "Adjust vergente." The link is thus redrawn according to the shortest path. Grafcet status:
3-26
Performing a first grafcet
3-27
the SFC User's Manual Guide
2. In Scheme 2, move the mouse cursor to the right of step 1 and click the left mouse button.
The dialog box containing the properties of Structured Text appears on the screen.
3-28
Performing a first grafcet
TO
C F
D
G
AND H
areas Description
TO Name of In this area the name of the graph containing the structured text appears. You
graphic can not modify this field.
B Number A number is automatically assigned to each structured text. You can change this
number but this must be between 1 and 999. Two structured texts may not have the
same number in the same scheme.
C Number If the user chooses this option, the number of structured text is not modified during an
locked automatic renumbering of a graphic or selected items. When the number is blocked,
the * symbol appears to the right of the number of structured text.
D Text Register the statement of structured text directly in this area. Structured texts must be
structured written according to the syntax GRAFCET GRAFCET Chapter 4 Syntax.
3-29
the SFC User's Manual Guide
areas Description
F Guided Mode This button gives access to the window to edit the guided mode
statement of structured text.
G New Variable This button gives access to the window creating internal variables.
To learn more about creating variables, refer to
Variable Manager in the User's guide
H External This button gives access to the window creating external links
(OPC, etc.). To learn more about creating external links, see the Variable Manager in the User's
guide
The dialog box containing the properties of free comment appears on the screen.
4. To this comment, register Performing a first grafcet as a comment. Grafcet state scheme:
3-30
Performing a first grafcet
TO
C
B
3-31
the SFC User's Manual Guide
areas Description
TO Name of In this area the name of the graphic containing the free comment appears. You can not
graphic modify this field.
B Number A number is automatically assigned to every free comment. You can change this number
but it should be between 1 and 999. Two free comments can not have the same number
in the same scheme.
C Number If the user chooses this option, the number of free Comment is not modified during an
locked automatic renumbering of a graphic or selected items. When the number is blocked, the
symbol
* It appears to the right of the number of free comment.
The "Errors" "GRAFCET" menu command allows you to identify components that are not connected, transitions
without receptivity, erroneous equations, etc. These errors appear in the message window.
3-32
4. Usage GRAFCET
4.1. Introduction
A Grafcet works contains one or more compound expressions of variables, constants, operators and numbers. The
precise syntax rules that must be respected in identifying symbols and writing expressions. This chapter presents in
detail for the declaration of symbols and processes using workshop GRAFCET syntax. Addresses the following topics:
· List of identifiers;
· variables;
· constants;
· relational operators;
· Operator priority;
· Applications;
· Syntax checking;
· Example Steps-actions;
· Example transition;
· Structured texts;
· Free comments;
· timing;
· Forced.
4-1
the SFC User's Manual Guide
· They are constructed from alphanumeric characters '' az, AZ, 0-9, _, +, - '';
· Variable identifiers and components may be composed of various elements, the elements are separated by
the symbol (.) Used as separator elements. For example, the state of a stage of a graph is designated either
. SFC_Name.X18.X. Except for local variables of the graph, labels must be preceded variables of character ". ";
· The characters may be in lowercase or uppercase. Once it is recognized by Automation Studio, the name of
the entity is capitalized.
4.2.1. stages
When a new stage is inserted, software will automatically assign a value in the interval [1, 999] number. Each stage
will thus have a unique number (ranging from 1 to 999) in a given graph.
4-2
syntax GRAFCET
By convention, if n represents the number of step of a given graphic, then the variable Xn.X designates the ({inactive,
active} or {0,1}) logic state of the stage that graph. For example, X2.X designates the logical state of step 2 of the current
graph. The logic state of a stage can be used in a logical expression by using its name Xn.X. In another picture, the
state of this same variable will be given by SFC_Name.
Xn.X.
4.2.2. Transition
When a new transition is inserted, software will automatically assign a number in the interval [1, 999]. Each
transition will thus have a unique number (ranging from 1 to 999) in a given graph.
By convention, if n represents the number of the transition, then the variable Y nY designates the logic state (validated
or not validated and frangible {1,0}) transition. For example Y2.Y
designates the logical state of the transition 2. Notes:
· The notation "= 1" associated with a transition indicates a receptiveness always true;
· If responsiveness is not required, then this means that is always false (equivalent to '= 0').
04.03
the SFC User's Manual Guide
By convention, the structured text is designated STn, n It represents the sequential number of structured text.
· Structured texts are processed in numerical simulation in the following order processing actions of the
stages of the graph.
By convention, the comment is designated Cn, n It represents the sequential number of reviews.
· Keywords OR, XOR, AND Y NOT They are reserved for the operators of Boolean expressions in words or
Boolean variables variables;
· Keywords MOD, ABS, SQRT, LN, LOG, EXP, SHL, SHR, ROL, ROR, Inc. DEC, SIN, COS, TAN, ASIN,
ACOS, ATAN, RAD_DEG, DEG_RAD, DEC_BCD, BCD_DEC, SEL, MIN, MAX, LIMIT Y MUX They are
reserved for mathematical operators;
4-4
syntax GRAFCET
4.3. variables
Variable Description
BOOLEAN boolean Variable where its value may be only 0 or 1, TRUE (ON), FALSE (OFF).
variable
whole integer Variable where its value is an integer between: -2,147,483,648 et +2,147,483,647.
variable
Variable Real Variable where its value is a real number defined as the IEC 559 standard.
REAL
Variable time Constant used for timers and whose value is a period T # 3d_18h_4m_15s_23ms
where d = day h = hour s = seconds
ms = milliseconds
4-5
the SFC User's Manual Guide
4.4. constants
Constants are fixed values. They can be the same type as the variables.
These operators allow operations on integer variables and / or real. The expressions giving a result of type integer or
real variable depending on its intended result of the operation. Type conversion is done automatically when required.
The table below gives the operator category, type of operands when necessary and a brief description of operators in
expressions.
4-6
syntax GRAFCET
Estosoperadores allow operations on variables and / or real. The expressions giving a result of integer or real type as
the variable to which the operation result is intended. Type conversion is done automatically when required. The table
below gives the operator category, type of operands when necessary and a brief description of operators in
expressions.
4-7
the SFC User's Manual Guide
4-8
syntax GRAFCET
output = Min threshold if the input is smaller than threshold Min, Max output = threshold
if the input is greater than threshold Max, output = IN if the input threshold is between
Min and Max threshold.
. Ls1: = LIMIT (.LS2, .LS3, .LS4),
4-9
the SFC User's Manual Guide
Operator Description
XOR
XOR .ls2
And logic between words or boolean values. Eg. .Ls1 .ls2 AND
NOT
A flank is assimilable to a particular operator indicating the passage of a boolean variable or a boolean expression of
the value 0 to the value 1 and the value 1 to the value 0. The edge of the variable to It may be a rising or falling edge is
defined as in the table below.
4-10
syntax GRAFCET
Operator Description
^ B or rising edge.
R_TRIG (.B) Rising edge operator. Expression flank it TRUE when passing from FALSE to TRUE in the
observed variable. Example: IF ^ .A .B.
A takes the value TRUE if the variable B changes from FALSE to TRUE. ! or F_TRIG (.B)
falling edge.
Operator falling edge. Expression TRUE edge when moving from TRUE to FALSE in the
observed variable. Example: IF .A .B!.
A takes the value TRUE if the variable B changes from TRUE to FALSE.
The result is Boolean: if the comparison is checked, the result is TRUE; otherwise the result is FALSE.
Operator Description
> Expression A> B is true if the value of A is greater than the value of B.
>= Expression A> = B is true if the value of A is greater than or equal to the value of B. =
11.04
the SFC User's Manual Guide
< Expression A <B is true if the value of A is less than the value of B. <>
Operator Priority
() Parenthesis
* ,/ multiplicative operators.
+, - Operators addition
OR Operators addition
You can change the order by using parentheses. In that case, the terms are within the highest number in
parentheses take precedence.
4.11. assignments
Assignment operators define the types of actions and their effects. They apply to whole, real words and real
variables. They are employed in equities and structured texts. The different types of assignment are presented
below. The execution of an action is determined by the active state of the stage and the operating status of the chart
action unless the unconditional option has been selected for that stage. In the latter case, the execution of an action
is solely determined by the active state of the stage.
4-12
syntax GRAFCET
The syntax of a continuous boolean assignment summarizes the number of the variable. No assignment operator is
used in this case.
In this example:
· When step 4 is activated variable COIL takes the value TRUE and retained while step 4 is active;
· Once step 4 is deactivated the variable COIL takes the value FALSE.
In this example:
· When step 4 is active, variable A takes the value of the expression (.B + .C) / .D;
· Variable A retains the last value of (B + C) / D when the step 4 is turned off;
4-13
the SFC User's Manual Guide
In this example:
· When step 4 is active, the state of the state variable COIL expression
R_TRIG (X1.X);
In this example:
· When step 6 is active, the variable B takes the value 3 if the expression NOT TRUE BOBINE is evaluated;
4-14
syntax GRAFCET
In this example:
· Variable A becomes TRUE state activation step 5 and retains this value after deactivation of step 5;
· A variable acquires FALSE state activation stage 10 and retains this value after deactivation step 10.
4-15
the SFC User's Manual Guide
If the option "Apply colors to elements of the syntax" is not checked, then no syntax checking will be done during
editing. However, if the syntax is incorrect, it is displayed with the same color as that which is associated with the
missing components within its SFC.
2. Click on "core".
4-16
syntax GRAFCET
When several actions are associated with a stage, they are separated with a semicolon. When several actions are
conditioned by the same condition, they are separated by a comma.
4-17
the SFC User's Manual Guide
You can insert up to 999 texts structured into a Grafcet and can locate anywhere. When a scheme involves several
structured texts, they are executed in numerical order (ST3, ST9, ST14).
4-18
syntax GRAFCET
4.17. timings
There are four (4) types of timers:
Timings are prosecutions Boolean result. Allow to consider the time (lapse, wait, delay, etc.). They are written
generally with one of the following ways: "T / In / duration /" "TON / In / duration /", "TOF / In / duration / ',' TP / In /
duration /» where:
· In designates the input variable, the name of the stage or variable that initializes the timing;
· Duration It is a variable of type time that determines the length of the time; former. : T # 3d21h45m30s454ms.
4-19
the SFC User's Manual Guide
Timebase Symbol
day d/
hour h/
minute m/
second s/
Thousandth of a second MS /
If, in the course of the simulation, the variable Rod It is activated, the timer is started, the Boolean formula "T / a_var / T
# 3s /" takes FALSE and Boolean formula "NOT (T / a_var / T # 3s /)" takes the value TRUE. Three seconds after
activation of the variable Rod, Boolean formula "T / a_var / T # 3s / 'becomes FALSE to TRUE state and" NOT (T /
a_var / T # 3s /)' TRUE to FALSE. They retain the values until the next deactivation of the variable Rod.
If in the course of timing, variable Rod is off, the timer is stopped and Boolean formulas "T / a_var / T # 3s /" and "NOT
(T / a_var / T # 3s /) 'respectively take the values TRUE and FALSE.
4-20
syntax GRAFCET
· In step 2: STOP variable is TRUE if the variable is b_var activated for 3 seconds. Once stage 2 is
deactivated STOP variable value takes FAUX;
· In Step 3: The STOP variable is TRUE if the variable is b_var off for 3 seconds. Once stage 3 is deactivated, the
variable STOP takes value FALSE.
4-21
the SFC User's Manual Guide
ENGINE IS TRUE until the a_var variable is disabled for three seconds. MOTOR then passes FALSE. When a_var
is disabled, motor returns TRUE.
When the timer stops being fed, the accumulation of time grows until its value equals the duration.
When the accumulated time reaches the duration value, the timing is off and the accumulation of time ceases to
grow. If the timing is fed back before the duration is matched, the timing remains active.
From the moment the timing is fed (a_var), the timing is off and the accumulation of time returns to zero.
4-22
syntax GRAFCET
even if the a_var input is deactivated before the accumulation of equal time duration.
When the cluster of time equal duration, timing is disabled and the accumulation of time ceases to grow.
When the timing ceases to be fed (a_var), the timing is off only if the accumulated time duration equals. The
accumulation time is returned to zero (0) if the timing is off and if no more fed.
The example of the figure shows the evolution of the cluster of activation time of a stage. If during simulation step X1
is activated, the accumulated time is reset to 0.
When step X1 is deactivated, the cumulus time ceases and remains fixed until the next activation of X1.
4-23
the SFC User's Manual Guide
The accumulated time step can be used to define delayed actions, actions limited in time, or conditions
receptivities actions using the relational operators. Eg.:
Graphics can be understood as "black boxes" that receive information input and provide output results.
Variables and commands serve as inputs to the graphics. The latter generate output internal states and new
states of variables.
Commands and graphic states are internal variables graphics. The table below describes.
internal variables
Description
the graphics
Tickets :
4-24
syntax GRAFCET
internal variables
Description
the graphics
outputs:
GEN_FAULT general defect graph indicates the presence of a defect or external security
condition.
Signaling STEP_MAX_FAULT default step time too long. Signaling STEP_MIN_FAULT default step time too
4-25
the SFC User's Manual Guide
· INIT: Initializes the chart in its initial stages and disables all other when put to logic TRUE. For example: IF
GRA_003.INIT EM_STOP.
· RUN: Authorizes the evolution of graphic and execution of the actions associated with steps when put to logic
TRUE. For example: GRA_003.RUN IF INITIAL_CONDITIONS. You can define a stage so that their actions are
not conditioned by the authorization (RUN) of the graph.
· RUNNING: Indicates that the graph is being executed (accessible only in reading). A graph is running if one
of its initial stages is not active. For macro-step charts, the chart is running if the source macro-step is active.
GRA_003.RUNNING. This variable is implicitly addressed by the program according to the following
equations:
Return to Zero memorization graph if the minimum running time sequence is monitored:
SFC_Name.RUNNING: = 0 IF ((SFC_Name.SEQ_TMIN_Q OR
SFC_Name.SEQ_MIN_FAULT) AND
SFC_Name X01.X)
OR
SFC_Name.INIT
Return to Zero memorization graph if the minimum running time sequence is not monitored:
4-26
syntax GRAFCET
· FORCED: Indicates that the graphic is forced by another (accessible only in reading).
GRA_003.FORCED.
· GEN_FAULT: General Default chart indicates a defect present or unresolved graphic (accessible only in
reading). This state goes to logic TRUE if there is a defect present or not resolved graph. You will pass the
false logic state when all defects have disappeared and graphics will have been solved (see the next section).
· SEQ_MIN_FAULT: Default monitoring time too short sequence (return too fast of a graph to the initial
stage). GRA_001.SEQ_MIN_FAULT
· SEQ_MAX_FAULT: Default time monitoring sequence too long (too slow return a graphic to the initial stage).
GRA_001.SEQ_MAX_FAULT
· STEP_MIN_FAULT: Default Monitoring time too short stage (output stage too fast).
GRA_001.STEP_MIN_FAULT
· STEP_MAX_FAULT: Default time monitoring stage too long (step activated for too long).
GRA_001.STEP_MAX_FAULT
· ESC: External security condition. The latter condition may consist of meeting various conditions and does not
generate any new defect. GRA_001.ESC If one of these defects occurs and is not resolved or if the external safety
condition is present, the simulation engine does automatically pass the general defect graphic state
(GRA_001.GEN_FAULT) to logic TRUE following the equation detailed below: GEN_FAULT: =
It should be noted that the overall defect will not generate default graphic.
In this way the user can use these states and to manage defects (RUN), initialization (INIT) and / or forced
graphics. For example :
4-27
the SFC User's Manual Guide
IF GRA_001.ESC EMRGENCY_STOP
If these defects are used, there should be a mechanism to alert the user of a defect and receive the same
resolution. You can use an indicator light to signal the defect and a push button to make resolutions. For example,
two texts structured in a graph can perform these actions: Signaling faults:
PB_ACK
4.19. Macro-stages
In this section we address the use of macro-stages. A macro-step is a section of the graph whose graph is condensed
in the form of a single step. For each macro-step, there is a macro-step graph executes the macro-phase source. The
name of this chart will be enrolled in action box to the right of the macro-step. The input stage of the graphic macro
step is activated while the macro-step drawing that the active source (in fact it is a divergence and implicit). The output
stage of the graphic macro step is deactivated while the macro-stage source graph active to cross the transition
following the macro-stage source graph (actually it is a convergence and implicit ).
4-28
syntax GRAFCET
.GRA_001.FORCED: (.GRA_001.X01.FORCED,
. GRA_001.X10.FORCED).
4-29
the SFC User's Manual Guide
· F / operator is forced;
· () Is the list of steps to be enforced, this corresponds to the desired location within the graph. You can specify
one or more stages of the graph. If several stages are specified, they must be separated by commas. If any
step () is not specified, all stages of the drawing are deactivated.
During the forced displacement of a graph, they are activated the steps mentioned in the instruction and all others are
disabled.
In this example, the graph is forced into the situation in which only steps 4 and 10 are active.
In this example, the graph is forced into the situation in which only steps 4 and 10 are active while
GRA_001 STOP variable is TRUE.
In this example, the graphic GRA_001 is forced into empty situation, all stages are deactivated. Only graphic
initialization to reactivate the initial stage (GRA_001.INIT).
4-30
syntax GRAFCET
· Two charts of the same hierarchical level can not force the same graph.
· If the same graphic is forced by two superior graphics and different level, all the steps specified in both directions
will be enforced. The last instruction activated, the disabled, set the status of the graph.
· You can force a chart even if it is not running. The following figures show the
4-31
the SFC User's Manual Guide
4-32
5. Simulation
This chapter brings together the particular issues associated with Grafcet simulation. It is proposed to start the
simulation mode this workshop. For different simulation related to a project or a scheme commands, see Simulation
functions menu in the User's guide.
States graph
simulation
5-1
the SFC User's Manual Guide
This is the representation of the states of the stages in simulation. An active stage is
Active macro step is signaled by a red rectangle in the top of the stage.
Active macro step having activates the output stage graphic macro-step, it is signaled by a red rectangle in the
bottom of the stage.
F The input stage of the graphic macro step is activated while the
macro step graphic source that enables (in fact it is a divergence implicitly Y).
5-2
Simulation
F The output stage of the graphic macro step is deactivated while the
macro step graphic source that enabled when the transition following the macro-stage graphic source (in
fact it is a convergence and implicit) is franked.
5-3
the SFC User's Manual Guide
Variable Manager allows viewing the states and current values of the variables of the current project. View Variable
Manager in the User's guide.
These supervisions be generated automatically if defined and monitoring times sequence in the graph
properties.
F Only the time sequence graphs with one initial stage (stage
Input case of macro steps) can be monitored. The initial step must necessarily be step # 1.
· SEQ_TMIN: minimum timing sequence whose duration is adjustable in the dialog box of the chart properties.
5-4
Simulation
The following equations are generated automatically and implicitly processed by the program. They represent
monitoring time too short sequence: Memorizing defect resolution time minimum sequence.
SFC_Name.SEQ_MIN_ACK_MEM IF SFC_Name.SEQ_MIN_ACK
OR ( SFC_Name.SEQ_MIN_ACK_MEM
AND SFC_Name.SEQ_MIN_FAULT)
5-5
the SFC User's Manual Guide
The following equations are generated automatically and implicitly processed by the program. They represent time
monitoring too long sequence: Memorizing maximum defect resolution time sequence
SFC_Name.SEQ_MAX_ACK_MEM IF SFC_Name.SEQ_MAX_ACK
OR ( SFC_Name.SEQ_MAX_ACK_MEM
AND SFC_Name.SEQ_MAX_FAULT)
SFC_Name.SEQ_MAX_FAULT IF SFC_Name.SEQ_TMAX_Q
OR
(SFC_Name.SEQ_MAX_FAULT AND NOT
SFC_Name.SEQ_MAX_ACK_MEM)
The activation time of a step corresponds to the time between activation and deactivation time.
5-6
Simulation
These supervisions are generated automatically if they have been defined above in the properties of the stage.
For each monitored step, if the step is active and if the graph has authorization (RUN) time elapses. The elapsed time
is reset to zero if the step is disabled or if the defect is resolved. If one of the supervised stage is not active for a
sufficient time, the defect is signaled internally and maintained until resolution. For this monitoring, we use the
following internal variables:
· Xxx.TMIN: Timing minimum step time (one for each monitored step)
· STEP_MIN_FAULT: Default minimum time step (one defect for all supervised stages).
The following equations are generated automatically and implicitly processed by the program. They represent time
monitoring stage too short: Memorizing the minimum defect resolution time stage
SFC_Name.STEP_MIN_ACK_MEM IF SFC_Name.STEP_MIN_ACK
OR ( SFC_Name.STEP_MIN_ACK_MEM
AND SFC_Name.STEP_MIN_FAULT)
OR
(SFC_Name.STEP_MIN_FAULT AND NOT
SFC_Name.STEP_MIN_ACK_MEM)
5-7
the SFC User's Manual Guide
For each monitored step, if the step is active and if the graph has authorization (RUN), time passes. The elapsed time
is reset to zero if the step is disabled or if the defect is resolved. If one of the supervised stage remains active for too
long, the fault is signaled internally and maintained until resolution. For this monitoring, we use the following internal
variables:
· Xxx.TMAX: Timing maximum step time (one for each monitored step)
· STEP_MAX_FAULT: Default maximum step time (one defect for all supervised stages).
The following equations are generated automatically and implicitly processed by the program. Represent time
monitoring stage too long: Memorizing the maximum defect resolution stage
SFC_Name.STEP_MAX_ACK_MEM IF SFC_Name.STEP_MAX_ACK
OR ( SFC_Name.STEP_MAX_ACK_MEM
AND SFC_Name.STEP_MAX_FAULT)
SFC_Name.STEP_MAX_FAULT IF SFC_Name.Xxx.TMAX_Q
5-8
Simulation
OR
SFC_Name.Xyy.TMAX_Q
OR
SFC_Name.Xzz.TMAX_Q
OR
(SFC_Name.STEP_MAX_FAULT AND NOT
SFC_Name.STEP_MAX_ACK_MEM)
SFC_Name.GEN_FAULT: SFC_Name.STEP_MAX_FAULT
OR
SFC_Name.STEP_MIN_FAULT
OR
SFC_Name.SEQ_MIN_FAULT
OR
SFC_Name.SEQ_MAX_FAULT
OR
SFC_Name.ESC
5-9
the SFC User's Manual Guide
launched.
1. To observe the behavior of each calculation cycle simulation, choose the "Step by Step" command
"Simulation" menu. or
5-10
Simulation
The simulation advances one step (one cycle) with each pulse of the left mouse button. For each cycle, and it performs
a calculation to determine the new state of the components. Here, the active steps and actions in process are framed
in red.
To illustrate, if you want to activate the switch S1 button or the multiposition switch when you are in Simulation:
The cursor takes the shape of a hand. The hand symbolizes the possibility of intervening during
simulation.
2. Press the push button component. Simulation mode allows the component to react to the gesture of the
cursor.
3. Release the mouse button, the component returns to its original appearance. Procedure for accessing the
1. Once the simulation is started, place the mouse cursor on a step or transition.
4. Choose the function "Forcing stage" or "Forcing transition" as appropriate. The stage is then activated or franked
transition regardless of the normal evolution of SFC. For postage transition activate the next stage, the previous
stage must be active, if not the postage transition will have no effect.
11.05
the SFC User's Manual Guide
activated.
3. Tap COM_A.
4. Tap COM_B.
5. During steps 4 and 5, the two cylinders perform their respective input race.
6. Tap to send m_b M_A or load the container on the left or right.
The problem will arise when it comes to pilot or simulate the Grafcet. This is absolutely necessary that the Grafcet
created by the editor is in accordance with the standard. When launching a simulation, error messages and / or
warning in the message window but the simulation is executed anyway by applying the five rules of evolution of the
Grafcet. These rules are as follows:
1. The initial situation of the SFC characterized the initial behavior of the control part with respect to the operating
part, the operator and / or outer elements. The initial situation corresponds to the active stages at the
beginning of operation: such stages are the initial stages.
05.12
Simulation
2. Said of a transition that has been validated when all stages up (immediately above and connected to the
transition) are active. POSTAGE a transition occurs:
3. Shipping of a transition simultaneously causes activation of all siguentes stages and deactivating all preceding
stages.
5. If, during the same stage of operation is activated and deactivated simulataneamente, the step is active. The
following figures illustrate this rule are:
5-13
the SFC User's Manual Guide
5-14
Simulation
When launching a simulation, error messages and / or warning in the message window, but the simulation is
executed all ways. If one of the actions of one stage is flawed, such actions are ignored. If a receptivity of a transition
is wrong or absent, it is considered invariably false. If a structured text is wrong, it ignores it.
5-15
6. Exercise
ESTEC chapter presents two exercises that will familiarize you with the realization and simulation of circuits with
different Grafcet.
6-1
the SFC User's Manual Guide
· . EXT_A +;
· . RET_A-;
· . EXT_B +;
· . RET_B-.
6.1.2. grafcet
The drill operating cycle is represented by the Grafcet. The latter is composed of:
1. Five stages (X1, X2, X3, X4 and X5). Each stage of this graph has an associated action except the initial
stage.
2. Five transitions (Y1, Y2, Y3, Y4 and Y5). Each transition of this graph has an associated receptivity.
1. Choose the "Project" command "Simulation" menu and the "Normal" command in the same menu. or
6-2
Exercises
Click on the "Simulate the project" button on the toolbar to select the whole project.
Click on the "Simulation in normal mode" button on the toolbar. Simulation mode is launched.
This allows to place the SFC in its initial stage, stage X1. The circuit is put under tension for the first time.
When PB_1 pushbutton is pressed, the transition Y1 switches to TRUE and control proceeds to step X2,
the output of the cylinder rod A. occurs
2. LM_A1 is activated at the end of the piston stroke and allow the passage to step X3. The action associated
with this stage is the output of the cylinder rod B. The limit switch is detected by the proximity sensor is
activated PR_B1.
3. At that time, the stage is activated and X4 occurs the return of the cylinder rod
B.
4. The activation step X5 is possible when the proximity sensor is activated PR_B0, indicating the complete
return of the cylinder rod B. When the X5 step is active, the cylinder rod makes its return to the operator
and returns at the initial stage X1.
5. The activation of switch PB_1 is necessary to restart another cycle of operation. If this button is held
down, the cycle operates continuously.
6-3
the SFC User's Manual Guide
This exercise combines all the features offered by the SFC workshop. It offers a structured programming approach
based on GEMMA ( Guide d'Etude et des Modes de Marche Arrêt). It is aimed at students who assimilate advanced
concepts and experienced programmers who want to delve into the issue of GRAFCET automation.
Exercise first presents the operational part of the automation. Then the operator control unit and wiring to complete
the structure and Grafcet it.
6-4
Exercises
The simulation will allow you to follow closely the course of the evolution of automation and introduce defects to
properly understand the use of graphic defects and control instructions.
The EXER_2_PNEU_FR.PR5 (tire) or EXER_2_HYDRO_FR.PR5 (hydraulic) file containing this example is in the
folder EXERCICES this program.
· A control panel;
· A feeding parts;
The feed may contain 25 parts. A display tells the operator the number of remaining pieces. A yellow LED is lit when
the feeder is empty. In that case, the system is underway but it stops at the end of the cycle waiting for new parts. A
push button allows the operator to reset the counter after making the load feeder.
The punching station sets the workpiece to be worked, the drill floor at high speed towards and then at slow speed.
Drill up then slow speed to free up space and then continues at a rapid rate. Finally, the part is free. The last place
checks whether the piece has been perforated correctly. and evacuates the well punched parts. If a defective part, the
position is located so that the operator can remove and generates an alarm to signal the defect. During that period of
time, the system is stationary and the engine shaft rotation is stopped. After removal of the defective part, the operator
can start again command the system or full system shutdown in the position in which it is located.
When the three positions have completed their operations, the turntable is indexed from one position.
The system can operate in, semi-automatic (cicle by cicle) or automatic manual mode. After a default, you can
resume production where it had been interrupted or order the immediate and complete system shutdown in the
position in which it is located. Unless the production after a defect is resumed, all system reboot operates a
6-5
the SFC User's Manual Guide
The operator may at any time impose pause the system, this is then fixed in position and the motor stops rotating
shaft.
An operation confirmation indicator lights up and the normal stop, pause or treatment of a defect shuts down during
startup. It will be lit during normal operation.
This station comprises a horizontal cylinder F. The role of this first cylinder comprises feeding pieces system.
Uprooting generates a resultant movement of the cylinder rod F. This makes one piece out of a distributor. The cycle
ends with the return of the cylinder rod F to its original position. The cylinder control is assumed by a 5/3 valve
controlled by two solenoids each side (OUT_F and IN_F) with spring return to the center position. The movements of
the cylinder rod F are detected by two sensors mechanical position: F_IN and F_OUT.
6-6
Exercises
This station comprises two cylinders, D and C. a restriction is introduced into the circuit through the solenoid
activation D_SLOW_SPEED to allow slow speed of roll D. The role of the horizontal cylinder C is to secure the
workpiece. The cylinder D is responsible for piercing.
When starting a movement out of the cylinder rod movement C. rapid decrease of the cylinder rod D_SLOW_SPEED
D. When the solenoid is activated in the SFC as the effect of activation D_SLOW sensor produces occurs Then the
cylinder rod D continues its movement but at slow speed. Then the cylinder D performs a movement of slow ascent.
This movement is accelerated when the solenoid is deactivated by D_SLOW_SPEED Grafcet because D_SLOW
sensor is deactivated during ascent.
The cycle is completed by return to the starting position of the cylinder rod C. The control of each cylinder is borne by
a 5/3 valve, each being controlled on both sides by two solenoids (OUT_C, IN_C, OUT_D, IN_D) with spring return to
6-7
the SFC User's Manual Guide
center position. The movements of the cylinder rod C are detected by two proximity sensors: C_IN and C_OUT. The
cylinder rod D are detected by three proximity sensors: D_IN, D_OUT and D_SLOW.
The third valve is used to introduce a restriction in the circuit for the slow speed. It is a 4/2 valve controlled by a
solenoid side with a spring return.
This station comprises two cylinders, T and E. The role of the vertical cylinder T is to check whether the piece is
correctly perforated in order to detect the rupture of the fuse. The horizontal cylinder E is responsible for the
evacuation of the workpiece to the exit conveyor.
When starting, there is a downward movement and after ascent of the cylinder rod T. Then a resultant movement of
the cylinder rod is produced E to evacuate the part. The cycle ends with the return to the starting position of the
cylinder rod E. The control of each cylinder is taken over by a valve controlled both sides 5/3 solenoid. The
movements of the cylinder rod T are detected by two sensors
6-8
Exercises
Proximity: T_in and T_OUT. The cylinder rod E are detected by two proximity sensors: E_IN and E_OUT.
This station comprises a turntable driven by a horizontal cylinder with spring return INDEX, locked in position by a
second cylinder LOCK departing spring. The role of the cylinder INDEX is a position index to the table. To give the
order of implementation, there is a return movement of the cylinder LOCK to clear the table, followed by the output of
the cylinder rod INDEX. The cycle ends with the return to the starting position of the cylinder rod and the cylinder LOCK
INDEX, which confirms a position indexing table. Control cylinder is secured by a 3/2 valve controlled sided solenoid
spring return. The movements of the cylinder rod INDEX are detected by two proximity sensors: INDEX_IN and
INDEX_OUT,
09.06
the SFC User's Manual Guide
This control is implemented in the form of a simulated electric schematic. It comprises the following elements:
6-10
Exercises
ELEMENTS DESCRIPTION
PUSH BUTTONS:
Emergency stop.
PB_OUT_E (NO) Outfeed E to evacuate a part (manual mode), this cylinder should
not leave if the cilindroT is deployed.
PB_OUT_T (NO) T cylinder outlet to verify that the piece is perforated (manual mode), this
cylinder should not leave if the cylinder E is deployed.
PB_INDEX (NO) INDEX cylinder outlet to index the table (manual mode).
6-11
the SFC User's Manual Guide
ELEMENTS DESCRIPTION
SELECTORS:
Sel_mode (3 positions) Selecting the run mode, manual (left position), semi-automatic
(center position) and automatic (right position).
SEL_MOT (2 positions) Manual start motor rotating shaft, left at rest position, position right up).
SEL_SLOW_SPEED (2 Selecting the slow speed of the cylinder D Manual start: left position,
positions) normal speed; right position, slow speed.
COUNTER :
FEED_COUNTER Parts counter. Count the number of parts introduced into the system to
each cylinder outlet F. adjusts according to the number of pieces that
can be loaded into the feeder.
AUXILIARY RELAYS
SOLENOIDS
OUT_F Outfeed F.
OUT_C Outfeed C.
OUT_D Outfeed D.
12.06
Exercises
ELEMENTS DESCRIPTION
OUT_E Outfeed E.
OUT_T Outfeed T.
LEDS
6-13
the SFC User's Manual Guide
ELEMENTS DESCRIPTION
ENGINES
TICKETS
Start up.
6-14
Exercises
ELEMENTS DESCRIPTION
DEPARTURES
6-15
the SFC User's Manual Guide
ELEMENTS DESCRIPTION
6-16
Exercises
6.2.2.2. controls
The control scheme processes the emergency stops and operating modes. Feed control solenoids according to
the controls and operation mode.
6-17
the SFC User's Manual Guide
6-18
Exercises
6.2.2.3. Signaling
This scheme comprises the signaling of system states: position of the cylinders, number of parts available at
the supply station, alarms.
6-19
the SFC User's Manual Guide
also it contains push buttons for alarm resolution and the counter reset pieces after loading a new set of pieces.
6.2.2.4. Cards / O
This diagram shows the wiring card inputs / outputs. Shipments can locate the components connected to the
inputs / outputs in the schemes.
6-20
Exercises
6.2.3. grafcet
The operating cycle of the drilling unit is represented by the Grafcet. The latter is composed of graphs, each graph
represents a task automation. These graphs are related hierarchically according to a functional pyramid whose top
level is the level 0.
This example could be much simpler case of a particular application. Our proposal allows familiar with the use of
all the functionality of the workshop GRAFCET.
6-21
the SFC User's Manual Guide
6. INIT_MEC: Chart mechanical initialization, hierarchical level 3. This graphic is executed each time it is started in
the automatic mode before executing a first cycle in semi-automatic mode.
6-22
Exercises
6-23
the SFC User's Manual Guide
6-24
Exercises
6-25
the SFC User's Manual Guide
6-26
Exercises
6-27
the SFC User's Manual Guide
START_STOPadministra graphic modes up and stop the automation according to the operator's choice. During a
defect, does not lose its authorization evolution. The automatic reset when switching to manual mode.
6-28
Exercises
6-29
the SFC User's Manual Guide
6-30
Exercises
6-31
the SFC User's Manual Guide
6-32
Exercises
6-33
the SFC User's Manual Guide
6-34
Exercises
6.2.4. Simulation
When complete the circuit, you can switch to simulation mode to verify proper operation.
The program scans to detect residual errors graphics. If there are, the corresponding messages appear in
message windows.
Graphics can be simulated even if there are errors. However, the behavior of the automated system can be altered.
Indeed, absent or erroneous transition conditions of the transitions are always considered false. To negotiate these
transitions simulation must use the context menu of the transition to force your postage. In addition, erroneous actions
and structured texts are ignored.
After analysis, the program initializes the initial stages of graphics and project variables.
FIRST_CYCLE_SIM the internal variable is given the value TRUE during the first cycle simulation while the
ACTIVE_SIMULATION variable is given the same value for the duration of the simulation.
2. annul alarm emergency stop and reset the system with the push button PB_RESET.
4. Put the system in automatic mode and supports PB_START the push button to put the system in place. The L_RUN
light flashes during start which is on during the passage of the system to its production phase.
5. Pass the manual mode, the system stops and is reset. Use the manual controls to complete the movement of the
cylinders. As no parts presence sensors, the operator must manually remove them normally.
6. Resume production and make an emergency stop. Solve, reset and restart the system. production where they had
left it restarts.
7. Press the button PB_STOP button to stop the system normally. The system stops after having emptied the
turntable. The L_RUN light flashes during the strike.
8. Restart and press the push button PB_PAUSE. The system is fixed. The L_RUN light flashes during pause. Press
the button again PB_PAUSE button, the motor rotating shaft is put back on and the cycle is resumed.
6-35
the SFC User's Manual Guide
9. To generate defects, simply put a cylinder valve in direct control by clicking on a slide. At that time he will no
longer be under the control of simulation engine.
6-36
A. Glossary
Action
Action processing step is executed when the step is active. It is an order issued in the form of an output, the Party of
Control to the operational side. Shares are comprised of expressions, assignment operators and control operators.
All actions associated with a same stage are executed when this phase is activated.
alphanumeric
Rate a composite of characters belonging to the character expression recognized by the machine, of which the
main ones are 10 decimal places and the 26 letters of the alphabet.
Automatism
A device, system or equipment that allows to perform an operation apparatus without operator intervention.
Status bar
Horizontal bar below every window, containing various information (comments, zoom factor or cursor
coordinates, etc.).
Toolbar
Bar under the menu bar. Clumps buttons that allow you make the most frequently used commands.
Menu bar
horizontal bar above the title bar of the program, which shows the menus of commands available in the active
window.
A-1
the SFC User's Manual Guide
Title bar
library
Window brings together the basic elements for the design of a circuit and simulation. These elements can be of three
types: components, links and graphic objects. Such elements are included in the workshops.
Simulation cycle
It corresponds to a cycle calculation that determines the state of each of the components and variables.
Component
Basic element for designing schemes. Each component is associated with a behavior or a function that will be
animated simulation. The components are part of the libraries of the workshops.
connector
Element represented by a red circle when not connected. It allows a connection between two components. When
the connector is connected becomes a connection.
Connection
A connection symbolized by circles, the connecting point links or components together. The connection is the
same color as the elements if the connection points are touched and connected and is a different color if not
touch.
A connection of a type of technology can not be connected to a connection of an incompatible technology. For
example, a pneumatic line can not be connected to an SFC component and vice versa.
Convergence O
Convergence in O is a link between multiple sources and a single stage transitions. it is obtained by linking together
multiple transitions to the same stage.
A-2
Glossary
AND convergence
Convergence in Y is a bond between various sources and transition stages. It is obtained by linking together multiple
stages to the same transition.
Project description
OR Divergence
A divergence in O is a link between a source and several phase transitions. It obtains a phase linking several
transitions.
AND Divergence
A divergence in Y is a bond between a source and transition stages. it is obtained by bonding a transition to several
stages.
Schema Editor
Utility that allows the creation, modification and file management "projects". The Diagram Editor contains the document
folder that lists all project documents.
Link
Library item used to connect components of a scheme. In simulation, the link transmits a signal from
one component to another.
ESC
Regroups Security external conditions that determine the useless or dangerous character graph execution. This
condition is used to indicate the general default graphic.
Work space
A-3
the SFC User's Manual Guide
Scheme
Graphical representation of a circuit using elements and selected components in a workshop. Only GRAFCET
components can be inserted into a GRAFCET diagram.
Stage
A normal stage is represented with a square identified by a number. It is the symbol obtained by clicking the "Stage"
of the SFC toolbar.
active stage
(Normal or initial) active stage is identified by a red square located in the center of the symbol of the stage.
Active macro step is identified with a red rectangle in the top or the bottom of the symbol of the stage. A red rectangle
is located below the symbol of the stage if the output stage linked with the graphic macro step is activated. An input
stage is identified with a red rectangle in the top symbol of the stage.
An output stage is identified with a red rectangle in the bottom stage symbol ..
Input stage
An input stage is represented with a rectangle on the top of the square. The latter is identified with a number. it is
obtained by clicking on the symbol "input stage" of the SFC toolbar. It is used in the chart enabled by the macro-step.
Output stage
An output stage with a rectangle on the bottom of the square. The latter is identified with a number. it is obtained
by clicking on the symbol "output stage" of the SFC toolbar. It is used in the drawing stage enabled by the macro.
initial stage
An initial step is represented with a square double identified by a number and is always activated when the SFC
is launched. It is the symbol obtained by clicking on the "initial stage" of the SFC toolbar.
A-4
Glossary
Project Explorer
Utility that allows the creation, modification and file management "projects". Project Explorer folder containing the
document that lists all project documents.
Flank
An edge is a particular operator indicating the passage of a boolean variable or a boolean expression of the value 0
to the value 1 and the value 1 to 0. It may be ascending or descending Flank Flank assimilable.
Form link
Forced
Forced allow modification of the status of a graph. They are used to impose a particular situation to a graph. Forced
is always maintained and when its trigger condition is true.
GEN_FAULT
General signaling defect chart (SFC_Name.GEN_FAULT). This señalizaciónm groups defects graph (time sequence
too short, too long time sequence, step time too short, too long time stage,) and external security conditions (ESC).
GRAFCET
Functional Control chart for steps and transitions. The SFC is a model graph used to represent the SFC
elements an automated system.
Visualization Tools
Accessories design schemes Editor: grid, rules, connections, connection identifiers. Display can be selected in the
"View" menu.
TO 5
the SFC User's Manual Guide
Worksheet
INIT
Initializing a control chart (SFC_Name.INIT) that activates the initial stages of graphic and disables all others.
user interface
Environment including windows, dialogs, menus, commands, mouse, buttons, etc. allowing the user to
communicate with the computer.
Macro-stage
A macro-step is represented by a square having a rectangle on the top and another rectangle at the bottom. The
square is identified by a number. it is obtained by clicking on the symbol "Macro-stage" of the SFC toolbar. A
macro-step is a series of steps / transitions graphically in condensed form single stage. This graph associated with it
enabled.
Edit mode
Operating mode in which the project schemes are created and modified. There is a second way: Simulation.
Simulation mode
Operating mode in which a project or scheme is simulated. Contrary to Edit mode, you can not make it any
modification of the project or scheme.
Hierarchical level
Chart position within the hierarchy of forced, level 0 is the highest level.
Connection name
A-6
Glossary
properties
Characteristics or parameters of a component. You can edit and view the properties dialog box by opening the
"Properties" component.
Draft
coherent set consists of the schemes. The project is managed by the Project Explorer.
Receptivity
Receptivity or transition condition is a logical condition that determines whether or not the evolutionary chart through a
transition. This is a Boolean expression written using input variables, variables Xn stage, logical operators, and
operator timing edge operators. It may be true or false.
Grating
Horizontal and vertical lines points in the Editor workspace schema which are aligned schema elements.
RUN
Authorization evolution of a graph (SFC_Name.RUN). Without this authorization, the chart is frozen and actions of the
active steps are no longer executed.
Workshop
complementary module main application. Each workshop contains the elements, schemes and functions related
technology and reflecting the type of project that creates.
timings
Timings are processing Boolean result. Let time take account time (lapse, wait, delay, etc.). The timers used in
GRAFCET refer to variables and stages.
A-7
the SFC User's Manual Guide
Elapsed time between activation and deactivation of a stage. This functionality is used if one of the stages that use
this functionality is turned off too quickly. In that case, the graph is generated for defect step time too short. This defect
must be identified and resolved.
Elapsed time between activation and deactivation of a stage. This functionality is used if one of the stages that use this
functionality is activated for too long. In that case, the graph is generated for defect step time too long.
Elapsed time between deactivation and reactivation of the initial stage of the graph. This functionality is used if the
graphic returns too rapidly to the initial stage, a defect in time too short sequence It is generated for the chart. This
defect must be identified and resolved.
Elapsed time between deactivation and reactivation of the initial stage of the graph. This functionality is used if the
graphic returns too slowly to the initial stage, a defect in overly long sequence It is generated for the chart. This defect
must be identified and resolved.
Transition
A transition condition must be true for the next stage can be executed.
Utilitarian
A-8
B. Index
Convergence Y ............. ................... 3-6 OR Arithmetic expressions ............ 4-6 4-7 4-10
Divergence ......................... ......... 3-6 AND boolean expressions Flanks .................... ...
Step 5-2 Step simulation .......................... Free comment ............................... 04.04 Constant
...................... 4-2
B-1
the SFC User's Manual Guide
......................................... Variable -3
4-19
Kind................................................. 4-5 ..
B-2