Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
GRAFCET
"Initial position"
"Initia l position indicator"
"Eject workpiece"
"To magazine"
"Generate vacuum"
"Unclamp workpiece"
"Place workpiece"
"To magazine"
548679 EN
07/07
Content
3. Structure of GRAFCET 8
6. Structuring of GRAFCETs 31 Thi ngs have n't always bee n as t hey are today. Previously, in t he so-
6.1 Forcing commands 31 called good old days, there were fewer ru les and regulations . Why was
6.2 Enclosing steps 35 that? There were only a few sma ll, and thus clearly arranged machines
6.3 Macro-steps 38 and systems. For many of them there was no documentation. Machines
were seldom developed at the drawing board. "R&D" was usually
7. Examples 41 carried out directly at the production location by tinkering, step by step,
7.1 Door control 41 from strictly manual work towards automation. The line of approach
7.2 Slot milling device 45 was clear-cut, and quite simple:
7.3 Gluing fixture for labels 58
7.4 Storm-water overflow basin 61 Try it out and see if it works!
• If it does, that's great!
• If not, try again!
But times have changed! People started building machines that were no
longer intended for their own use, and began buying machines from
other sources. Suddenly there was a problem: Machines had to be
maintained, repaired and optimised by people who had never seen
them before! And thus the need arose for a description of the functions
of any given system, i.e. for a circuit diagram and uniform
documentation.
4 © Festo Didactic GmbH & Co . KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 5
1. An historical survey of sequence descriptions 2. Why a new standard?
But time didn't stand still. On the contrary, things began happening Nobody would go to the trouble of writing a new standard just for fun .
faster and faster. Although the time function was quite easy to screating new ones:
represent in sequence diagrams, loop counters and program variants, 1. Unclear, confusing or even contradictory texts within the valid
for example, presented practically insurmountable obstacles despite standard
improvements to the standard . Automation technology demanded new 2. Missing, non-standardised content
possibilities for the graphic representation of sequences. ln the 3. lnternationalisation of the scope of validity
meantime, the "sequential function chart" had come into being as a
response to these requirements. But of course it too had its defects, With the change from DIN 40719, part 6, "Sequential function charts",
inconsistencies and weak points at first. When the sequential function to DIN EN 60848, "GRAFCET", one thing alone becomes immediately
chart was significantly improved and accepted by industry at the apparent - as a result of the designl{tion: the standard's scope of
beginning of 1992, the function diagram admitted defeat. validity. The function chart was a Gerrrran standard, but GRAFCET is
valid all over Europe. It's European origin is also made apparent by the
But automation technology continued developing further and further, name. GRAFCET is an abbreviation for the French term:
and the good was sacrificed in favour of the better. This, incidentally, is GRAphe Fonctionnel de Commande Etape Transition.
nothing new. It's been a valid concept since the invention of the hand
axe. Translated in to English, this means: step transition function charts.
Moreover, this has also been the fate of the sequential function. Its When comparing the old and the new standards it becomes evident, for
successor is known as GRAFCET, which is valid all over Europe. At first example, that just a few arrows are used instead of a maze of letters for
glance, GRAFCET may appear confusing in comparison with the the actions. The broad range of identifying letters has thus been
sequential function chart. But after taking a closer look, it becomes eliminated. This is also the case for letters used to identify responses
apparent that many things have been more clearly defined and with all of their designations. The general "save command" is now
simplified . The lack of structuring, right on up to the various operating precisely described in a simple fashion as well, and is a significant step
modes, has now been clearly standardised. closer to the PLC program. Simplification has thus been clearly
achieved.
And so once again we have reached the point at which we bid the
familiar farewell and must tackle the current state·of·the·art in the field Hierarchical levels required for precisely defining coarse-fine structures,
of automation technology, because he who remains at today's level will as well as for all operating modes right on up to emergency stop, were
tomorrow be living in the past. sought after in vain in DIN 40719, part 6. But these are also included in
GRAFCET. This is not the result of negligence on the part of earlier
standards authors, but rather the substantiation of further advances in
the field of automation technology. As demonstrated in actual practice,
the further advanced the machine, the more important the operating
modes and their hierarchies. And thus the standardisation gaps have
been closed .
6 © Festa Didactic GmbH & Co. KG • 548679 ©Festa Didactic GmbH & Co . KG • 548679 7
3. Structure of GRAFCET 3. Structure of GRAFCET
Essentially, GRAFCET describes two aspects of a control process in The structure does not define in particular which actions are to be
accordance with fixed rules: executed. These are included in the action section . In the example
• The actions to be executed (commands) shown above, these are the blocks to the right of the steps, as well as
• The sequence in which they are executed the transition conditions between the steps.
"To magazine"
"Generate vacuum"
"Unclamp workpiece"
"Place workpiece"
"To magazine"
GRAFCET for a process which separates workpieces and feeds them to a production sequence
8 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 9
4. Graphic representation of the elements 4. Graphic representation of the elements
4.1 The sequences are subdivided into steps. Each step is represented as a 4.2 A trans ition is the link from one step to the next. A transitio n is
Steps box, and squares are preferred to rectangles . An alphanumeric identifier Transitions and transition represented by means of a line which is perpendicular to the link
must appear at the top in the middle of the text field. conditions between the two steps.
A step is either active - if it is currently being executed - or inactive.
Exception
In the case of a return, the transition may also be situated on a
Examples of steps
The status of a step can be queried and displayed by means of its step
variable. The step variable is a Boolean variable and has a value of
,,,$
either 1 (step is active) or 0 (step is inactive) . (5)¥
CJ X2
Example of a sequence structure comprised of steps and transitions
~
Exa mple of an initial step
10 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 11
4. Graphic representation of the elements 4. Graphic representation of the elements
up)~· ' "" "' $,.,, represents the Boolean state of step 9.
Examples of transition conditions Important rule Steps and transitions must always alternate in order to achieve an error·
free sequence structure!
4.3 One or more actions can be assigned to each step. They are executed
Please note Asterisks used in transition conditions represent AND operations, and Actions while the step is active.
plus signs represent OR operations. Negations are represented as a
dash above the name of the variable. An action is represented by a rectangle with any desired relationship
amongst its sides. The standard recommends using the same height for
both action rectangles and step symbols.
If the process is to be continued with the next step after a specified
amount of time has elapsed, a time dependent transition condition is Actions may demonstrate different behaviour. The behaviour of an
used. The transition condition includes the duration and the status of action is represented by means of corresponding supplements.
the active step, both of which are separated by slash.
If several actions have been assigned to a single step, they can be
graphically represented in different ways. Please note: The order in
~
which actions appear does not represent a time sequence!
Ss/X9
~
Example of step execution for a limited period of time
12 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 13
-
4. Graphic representation of the elements 4. Graphic representation of the elements
D-4 Action 1 IAction 2 IAct ion 3 I Identification within the action rectangle is possible in various ways.
The text may take the form of a command or an instruction. However,
the name of a variable can be directly entered as well.
J ~ Action 2
l Action 3 B4 Switch solenoid va lve 3Mll
4 Action 3 I
B4 Solenoid valve 3Mll
~
Examples for the representation of steps with several actions
~ B-El
Actions differ in the way in which they are executed. Differentiation is Examples of continuous actions
made between two types of actions:
1. Continuous actions The actions shown above all describe the same behaviour:
Continuous actions are executed over a specific period of time. The • The drive is actuated as long as step 4 is active.
action is cancelled automatically as soon as the time period has • If an electro-pneumatic control is to be used, the so lenoid coil must
elapsed. be entered (3M1) .
2. Stored actio ns • If a strictly pneumatic control is to be used, the pneumatic valve
Stored actions are executed once only at a specific point in time. must be entered along with port identification (3V1-14).
Accurate entry of the point in time is imperative to this end! An • If planning is to be carried out without regard to any specific
additional command must be generated to cancel the initial order. technology, the designation of the drive can also be entered (3Al).
14 © Festa Didactic GmbH & Co. KG • 548679 ©Festa Didactic GmbH & Co. KG • 548679 15
4. Graphic representation of the elements 4. Graphic representation of the elements
4.3.2 Continuous action with assignment condition Time which appears to the right is started by the falling edge of the
The variable described in the action is only assigned a value of 1 (true) variable, and extends the duration of the action. As a prerequisite, the
as long as the associated step is active and the assignment condition is step must remain active. Behaviour corresponds to that of a switch-off
fulfilled . If the assignment condition is not fulfilled, the variable is delay function.
assigned a value of 0 (false) .
1 89/ 4s
I 812
~
~
Example of a continuous action with assignment condition
4.3.3 Continuous action with time dependent assignment condition Please note The timing charts shown here are not part of a GRAFCET control system.
The time which appears to the left of the variable is started by the They are only included here in order to better explain and elucidate the
variable's rising edge. The action is executed after the specified time actions
1 2s/ 89
0 2 14 I 6 s 10 s12
....j.ll.j.._
16 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 17
4. Graphic representation of the elements
-1 I
4. Graphic representation of the elements
The time which appears to the left is started by the rising edge of the 4.3.4 Delayed continuous action
specified variable. The action is executed after the specified time has If an action is to be executed in a time delayed fashion, a continuous
elapsed. Time which appears to the right is started by the falling edge of action with assignment condition can be supplemented with a time
the variable, and extends the duration of the action. As a prerequisite, specification. A time, as well as the step variable of the active step, are
the step must remain active. specified as the assignment condition. The assignment condition is not
fulfilled until the specified time has elapsed and the variable specified
Behaviour corresponds to that of a switch-on delay function with in the action has a value of 1.
additional switch-off delay function .
r:;-";1~
~~ ~
~
I L
Step 27
I4M1l
0 ~6
2 4 8 10s12
0
JJ1. :, .'1
2 4
s 12
Please note The timing charts shown here are not part of a GRAFCET control system.
They are only included here in order to better explain and elucidate
actions with time dependent assignment conditions
18 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co . KG • 548679 19
''" Graphi c represe ntation of the elements 4. Graphic representation of the elements
4.3.5 Time limited continuous action 4.3.6 Stored action upon activation of the step
A limited action results from the negation of the condition of the time At the moment the associated step is activated, the value specified in
delayed action . the action is assigned to the variable . The value of t he variable is held in
memory until it is overwritten by another action.
r=l~ Due to the fact that the value is assigned when the step is activated, i.e.
~ when a rising signal edge occurs for the step variable, the action is
identified by means of an upward pointi ng arrow.
+
0 l.-2-L.J
2 4 6 8 10 s 12 ~
+
Example of a time limited continuous action with timing chart ~
+
~
The following applies to the example :
If step 29 is active, the represented action is executed for a period of Examples of stored actions upon activation of the step
5 seconds. If the associated step is active for less than 5 seconds, the
action is also executed for a correspondingly shorter period of time.
For the examples shown here, this means:
• As soon as step 9 becomes active, a value of 1 is assigned to
Please note The timing charts shown here are not part of a GRAFCET control system . solenoid coii4Ml. When step 9 is no longer active, variable 4M1
They are only included here in order to better explain and elucidate time retains a value of 1 until this value is overwritten by anot her action .
limited actions. • When step 14 becomes active, a value of 0 is assigned to solenoid coil
4Ml. Variable 4M1 retains a value of o until the variable's value is
overwritten by another step.
• When step 15 becomes active, the value of variable Cis increased
once by an amount of precisely 1.
20 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 21
4. Graphic representation of the elements 4. Graphic representation of the elements
4.3. 7 Stored action upon deactivation of the step 4.3.8 Stored action upon occurrence of an event
At the moment at which the step is deactivated, the value specified in The specified value is only assigned to the variable described in the
the action is assigned to the variable . The value of the variable is held in action if the step is active, and if a rising edge occurs for the expression
memory until it is overwritten by another action. which represents the events.
Due to the fact that the value is assigned when the step is deactivated, The symbol, which looks like a flag, is an arrow which points to the side.
i.e. when a falling signal edge occurs for the step variable, the action is It symbolises the fact that the action will not be executed from memory
identified by means of a downward pointing arrow. until an event occurs. The upward pointing arrow indicates that the
action will be executed in the case of a rising flank for the event.
~ 1 t2Bl
~ ~
Example of a stored action upon deactivation of the step
Example of a stored action upon occurrence of an event
22 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 23
4. Graphic representation of the elements 5. Graphic representation of sequence structures
4.3.9 Delayed stored action Three basic types of sequence structures can be generated by
If a time is defined as an event which triggers a storage process, a combining steps and transitions :
delayed stored action results. The upward pointing arrow at the variable • Sequence cascade (linear sequence)
describes the rising edge, i.e. the end of the specified time period. • Sequence branch (alternative branching)
• Sequence split (parallel branching)
Please note The timing charts shown here are not part of a GRAFCET control system .
They are only included here in order to better explain and elucidate
delayed actions.
24 © Festa Didactic GmbH & Co . KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 25
5. Graphic representation of sequence structures 5. Graphic representation of sequence structures
Note The sub-sequences after the branch may have different durations. A 5.3 In the case of parallel branching, the fulfilment of a single transition
sub-sequence can be reduced to a single transition (skipping of steps). Parallel branching condition leads to the activation of several sub-sequences. The sub-
For this reason, an alternative branch always begins and ends with a sequences are started simultaneously, but are processed independently
transition. of each other.
Example of alternative branching sub-sequences have been fully processed . A common transition
condition must be fulfilled to this end.
The sub-sequences after the branch may have different durations. A Steps can be numbered as desired.
sub-sequence can be reduced to a single transition (skipping of steps) .
For this reason, an alternative branch always begins and ends with a
transition .
26 © Festo Didactic GmbH & Co . KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 27
5. Graphic representation of sequence structures 5. Graphic representation of sequence structures
5.4 Sequences are usually processed cyclically, and thus represent a loop. No special designation is required for step 10 on page 2. However, it is
Returns and jumps A line must go from the bottom to the top in order to represent the loop advisable to include a reference in the form of a comment.
structure. Due to the fact that this direction is contrary to the usual
direction of a sequence, i.e. from top to bottom, an arrow must be
included. 5.5 Explanations which make the GRAFCET easier to understand can be
Comments entered as comments wherever desired. Comments appear in quotation
marks.
Example of GRAFCET The process sequence of the distributing station included in Festa
Didactic's MPS® (Modular Production System) can be described with the
basic elements of the GRAFCET.
~
Step 10
Page 2
28 © Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 29
5. Graphic representation of sequence structures 6. Structuring of GRAFCETs
"Initial position" The standard takes new elements into consideration for describing
"Initial position indicator"
control systems, which also includes the introduction of hierarchical
levels. Hierarchical levels are required for precisely defined coarse-fine
"Eject workpiece" If various hierarchical levels are used, GRAFCET is broken down into
several parts which are called sub-GRAFCETs. Each sub-GRAFCET is
"To magazine"
assigned a name which is preceded by a G.
"To downstream station" 6.1 A master GRAFCET controls sub-GRAFCETs with so-called forcing
Forci ng comm ands commands. The forcing command is linked to a step and is represented
as a rectangle with a double line. Steps which are force controlled
"Place workpiece"
appear in curly brackets.
"To magazine"
~
GRAFCET of the MPS® Distributing station
~
~
As is apparent from the transition between steps 1 and 2, a variable can
also be used as a transition condition. However, it must be ensured that
the variable is current. Compare this transition with the one in the
Examples of forcing commands
example on page 8 between steps 1 and 2.
30 © Festo Didactic GmbH & Co. KG • 548679 ©Festa Didactic GmbH & Co. KG • 548679 31
6. Structuring of GRAFCETs 6. Structuring of GRAFCETs
There are four types of forcing commands. The commands are described The lower hierarchical level includes G10 (the sub-GRAFCET for
with the help of examples. automatic operation) and G100 (the sub-GRAFCET for the manual/setup
mode).
• Forcing a sub-GRAFCET to its current status (freezing command):
When step 5 becomes active, sub-GRAFCET G1 is frozen into its
momentary status for as long as step 5 remains active. Note The designations G1, G10 and G100 have been selected arbitrarily. Only
Forcing a sub-GRAFCET to an explicit status: the letter "G" is mandatory
When step 9 becomes active, step 100 is activated in sub-GRAFCET
G9, and all other steps in G9 are deactivated. In a structure with
parallel branching, several steps may also be forced. The utilised
notation is as follows in this case: G9{100, 200; 300}. If sub-
GRAFCET G9 is activated with this command, it does not require an
initialising step.
• Forcing a sub-GRAFCET to its initial status:
When step 7 becomes active, sub-GRAFCET G2 is initialised. Only the
step which is identified as the initialising step is activated. All other
steps in G2 are deactivated.
Forcing a sub-GRAFCET to the empty status:
When step 12 becomes active, sub-GRAFCET G4 is set to the empty
status and no step is activated. This means that all of the steps in G4
are deactivated.
Gl: Sub-GRAFCET for operating modes
(upper hierarchical level)
Application example with forcing commands Master sub-GRAFCET for the MPS® Distributing station
The GRAFCET used to describe control performance of the MPS®
Distributing station is subdivided into three sub-GRAFCETs:
• G1: Sub-GRAFCET for operating modes (upper hierarchical level)
All three GRAFCETs are started at the same time.
• G10: Sub-GRAFCET for automatic operation
(lower hierarchical level)
G1 starts all of the other GRAFCETs during initialisation step 1, where it
• G100: Sub-GRAFCET for manual/setup mode
executes two forcing commands:
(lower hierarchical level)
• G10, the automatic mode, is forcibly deactivated as long as G1 is at
step 1.
Forcing commands are only included in the upper hierarchical level.
• G100, the setup sequence, is forced into its initialisation step. G100
executes its initialisation step until step 1 is active in G1.
32 ©Festa Didactic GmbH & Co. KG • 548679 ©Festa Didactic GmbH & Co. KG • 548679 33
6. Structuring of GRAFCETs 6. Structuring of GRAFCETs
After releasing the emergency stop function and selecting the manual
operating mode, Gl continues on to step 2, from which it issues a
forcing command:
G10, the automatic sequence, is forced into i\S initialisation step. It
remains there as long as step 2 is active in Gl.
There is no more forcing command for sub-GRAFCET G100 in step 2
of Gl. G100 is thus no longer dependent on a forcing command. The
usual sequence for G100 is thus enabled. The station can be set up.
34 ©Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 35
6. Structuring of GRAFCETs 6. Structuring of GRAFCETs
6.2 Enclosing steps provide a further option for structuring GRAFCETs. • The enclosed steps included in step 2 are represented in frame 2
Enclosing steps Enclosing steps are identified by means of an octagon. (Reset) .
The enclosed steps included in step 3 are represented in frame 3
~ (Loop).
Emergency-stop*S_manual
Sub-GRAFCETs with enclosed steps for the MPS® Distributing station
Master GRAFCET with enclosing steps for the MPS® Distributing station Step 8 can be exited by querying X17 in the transition after step 8, if the
enclosed steps included in step 8 have been processed. Step 8 thus
functions just like a macro-step, and could also be represented as such.
36 ©Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 37
6. Structuring of GRAFCETs 6. Structuring of GRAFCETs
Main-GRAFCET
MPS® Distributing station
Sub-GRAFCETwith enclosed steps for the MPS® Distributing station
Example of a GRAFCET with macro-steps
Example of a macro-step
38 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 39
6. Structuring of GRAFCETs 7. Examples
Macro-step M2
" Reset"
Macro·step M4
"Automati c"
Layout
40 © Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 41
7. Examples /. Exam ples
"Open door"
Note Equipment for power supply and implementation of th e control are not
"Door open"
listed.
"Close door"
tAl t Al
42 © Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 43
7. Examples 7. Examples
+24 V Eingange/lnputs
0
7.2 Functional description
Slot milling device U-shaped slots are milled into wooden boards. Double-acting cylinder
51 L2 f
f-\ f-\
1A1 causes forward motion for the longitudinal slots. Double -acting
cylinder 2A1 causes forward motion for the transverse slots. The end-
positions of both cylinders are monitored via proximity switches.
lM[p~
0V Ausgange/Outputs
Layout
Sequence description
1. A wooden board is manually clamped, and the milling cutter is
moved into its working position.
2. During the initial step, the action with assignment condition
actuates the initial position indicator. As long as the device is in its
initial position, lamp Pl is illuminated; it is otherwise not
illuminated . As a transition condition for advancing to step 2, initial
position (with Pl) and start button 51 are queried .
44 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 45
7. Examples 7. Examples
3. Solenoid coil1M1 is actuated in step 2. The piston rod of cylinder GRAFCET- Actuating the cylinders using 5/2-way single solenoid
1A1 advances and moves the milling cutter through the first valves
longitudinal slot. The transition condition for advancing to step 3 is
arrival at the front end-position 1B2.
, .....H L....... "Normal position"
4. Solenoid coil 2M1 is actuated in step 3. The piston rod of cylinder 1 1
"Normal position indicator"
2A1 advances and moves the milling cutter through the traverse
slot. The transition condition for advancing to step 4 is arrival at the
51
front end-position 2B2. "Milll longitudinal slot"
5. Solenoid coil1M1 is actuated in step 4. The piston rod of cylinder
1A1 is retracted and moves the milling cutter through the second
longitudinal slot. The transition condition for advancing to step 5 is
arrival at the retracted end-position 1B1.
6. 2A1 is retracted and return s the milling cutter to its initial position. "Mill 2nd longitudinal slot"
The transition condition for advancing to step 0 is arrival at the
retracted end-position 2B1.
"Retract transverse slot cylinder"
7. The milling cutter is moved to the waiting position and the finished
wooden board is undamped.
GRAFCET, technology-independent solution When proximity switches 1B1 and 2B1 are actuated, initial position
indicator P1 is switched on during initial step 1. Initial position
indicator P1 is switched off as soon as initial step 1 is no longer
, .. ~.. ............. "Normal position"
1 1
"Normal position indicator" active.
• The transition condition from initial step 1 to step 2 is fulfilled when
the milling cutter is in its initial position AND pushbutton 51 is
51
"Mill! longitudinal slot" activated.
• As soon as step 2 is active, a value of 1 is assigned to solenoid coil
1M1. Even when step 2 is no longer active, the solenoid coil retains
its value of 1 until it is overwritten by another action.
• The transition condition from step 2 to step 3 is fulfilled when
"Mill 2"d longitudinal slot" proximity switch 1B2 is actuated.
• As soon as step 3 is active, a value of 1 is assigned to solenoid coil
2M1. Even when step 3 is no longer active, the solenoid coil retains
"Retract transverse slot cylinder"
its value of 1 until it is overwritten by another action.
• The transition condition from step 3 to step 4 is fulfilled when
proximity switch 2B2 is actuated.
46 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 47
7. Examples 7. Examples
• As soon as step 4 is active, a value of o is assigned to solenoid coil When proximity switches 1B1 and 2Bl are actuated, initial position
1M1 . Even when step 4 is no longer active, the solenoid coil retains indicator Pl is switched on during initial step 1. Initial position
its value of 0 until it is overwritten by another action. indicator Pl is switched off as soon as initial step 1 is no longer
• The transition condition from step 4 to step 5 is fulfilled when active .
proximity switch 1B1 is actuated. • The transition condition from initial step 1 to step 2 is fulfilled when
• As soon as step 5 is active, a value of 0 is assigned to solenoid coil the milling cutter is in its in iti al position AND pushbutton 51 is
2M1. Even when step 5 is no longer active, the solenoid coil retains activated .
its value of 0 until it is overwritten by another action. • As soon as step 2 is active, port 14 at valve lVl is assigned a value
• The transition condition from step 5 to step 1 is fulfilled when of 1. Even when step 2 is no longer active, port 14 retains its value of
proximity switch 2Bl is actuated. A return to the initial step is 1 until it is overwritten by another action.
caused as a result of the line with the upward pointing arrow. The transition condition from step 2 to step 3 is fulfilled when
proximity switch 1B2 is actuated.
• As soon as step 3 is active, port 14 at valve 2Vl is assigned a value
GRAFCET - Actuating the cylinders using 5/2-way single pilot of 1. Even when step 3 is no longer active, port 14 retains its value of
pneumatic valves 1 until it is overwritten by another action.
The transition condition from step 3 to step 4 is fulfilled when
proximity switch 2B2 is actuated.
1 .10.1 Lol "Normal position" • As soon as step 4 is active, port 14 at valve 1Vl is assigned a value
1 1
"Normal position indicator"
of 0. Even when step 4 is no longer active, port 14 retains its value
of 0 until it is ove;written by another action.
51
"Mill 1 longitudinal slot"
• The transition condition from step 4 to step 5 is fulfilled when
proximity switch 1B1 is actuated .
• As soon as step 5 is active, port 14 at valve 2Vl is assigned a value
of 0. Even when step 5 is no longer active, port 14 retains its value of
0 until it is overwritten by another action.
48 © Festo Didactic GmbH & Co . KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 49
7. Examples 7. Examples
GRAFCET -Actuating the cylinders using 5/2-way double solenoid GRAFCET- Actuating the cylinders using 5/2-way double solenoid
valves via stored actions valves via continuous actions
51 51
"Milll longitudinal slot" " Mill1 longitudinal slot"
The description of the sequence is identical to the preceding The description of the sequence is identical to the preceding GRAFCET.
GRAFCET. Due to the use 5/2-way double solenoid valves, two Due to the use of 5/2-way double solenoid valves, there is no need to
actions must be executed in steps 2, 3, 4 and 5. The 5/2-way double save data to the control system. This is saved instead to the power
solenoid valve which actuates cylinder 1A1 is switched in steps 2 sections of the double solenoid valves.
and 4. The 5/2-way double solenoid valve which actuates cylinder
2A1 is switched in steps 3 and 5.
• As soon as step 2 is active, a value of 1 is assigned to solenoid coil
lMl, and a value of 0 is assigned to solenoid coil 1M2. Even when
step 2 is no longer active, solenoid coillMl retains its value of 1
and solenoid coil 1M2 retains its value of 0, until they are
overwritten by another action .
• As soon as step 4 is active, the 5/2-way double solenoid valve is
reversed. Solenoid coillMl is assigned a value of o and solenoid
coil 1M2 is assigned a value of 1.
50 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 51
7. Examples 7. Examples
GRAFCET- Actuating the cylinders using 5/2-way double pilot GRAFCET- Actuating the cylinders using 5/2-way double pilot
pneumatic valves via stored actions pneumatic valves via continuous actions
51 51
"Milll longitudinal slot" "Mill1 longitudinal slot"
The description of the sequence is identical to the preceding • The description of the sequence is identical to the preceding
GRAFCET. Due to the use of 5/2-way double pilot valves, two actions GRAFCET. Due to the use of 5/2-way double pilot valves, there is no
must be executed in steps 2, 3, 4 and 5. The 5/2-way double pilot need to save data to the controller. This is saved instead to the
valve which actuates cylinder 1A1 is switched in steps 2 and 4. The power sections of the double pilot valves.
5/2-way double pilot valve which actuates cylinder 2A1 is switched
in steps 3 and 5.
• As soon as step 2 is active, a value of 1 is assigned to port 14 at Implementation using single solenoid/pilot valves
valve 1V1, and a value of 0 is assigned to port 12. Even when step 2
is no longer active, the ports retain their values until they are Quantity Designation
overwritten by another action.
• As soon as step 4 is active, 5/2-way double pilot valve 1V1 is 2 Double-acting cylinder
reversed. A value of 0 is assigned to port 14, and a value of 1 is
2 5/2-way valve with spring return
assigned to port 12.
4 Proximity switch
Equipment list
52 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 53
7. Examples . Examples
+24 V Eingangeflnputs
Note Equipment for power supply and the implementation of control are not
listed.
lAl 2Al
181 182 281 282
I I I I
...-
r·-· ·-·-·-·-·-·-·-·-·-·-·,
I I
Controller (relay, LOGO! or PLC)
~
lAl 2Al
181 182 281 282
I I I I 0v
...- -,----- Ausgange/Outputs
Quantity Designation
4 Proximity switch
Note Equipment for power supply and the implementation of control are not
listed.
54 ©Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 55
7. Examples 1. Examples
tAl 2Al
161 162 261 262
I I I I
-.-----
~ 2Mcp~ 2M9~
12 0V Ausgange/Outputs
56 © Festo Didactic GmbH & Co. KG • 548679 © Festo Didactic GmbH & Co. KG • 548679 57
7. Examples 1. Exa mples
7.3 Description of the Problem 4. The cylinders remain in the advanced position for 15 seconds in
Gluing fiXture for labels Paint cans are labe lled using a small gluing fixture. The gluing process is order to press the label into place.
triggered via a pushbutton at the fixture. The end-positions of both 5. The cylinders are retracted after the 15 second pressing time has
cylinders are monitored with proximity switches. elapsed. After the cylinders have been retracted, they actuate
proximity switches 181 and 281 and are once again in their initial
A drying time of approximately 15 seconds is required for the adhesive positions .
to become fully effective. The system is not ready to start until the
pistons in the pressing cylinders are in their retracted end-positions
GRAFCET, technology-independent
Sequence description • The transition condition from step 2 to step 3 is fulfilled when
1. Double-acting cylinders 1A1 and 2A1 are retracted, and proximity proximity switches 182 and 282 are actuated.
switches 181 and 281 are actuated • As soon as step 3 is active, the specified time of 15 seconds is
3. Cylinders 1A1 and 2A1 are advanced . After the cylinders have been time period has elapsed .
advanced, they actuate proximity switches 182 and 282. • As soon as step 4 is active, actuation of drives 1A1 and 2A1 is
cancelled .
58 ©Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 59
7. Examples 7. Examples
the initial step is caused as a result of the tine with the upward
pointing arrow
2 Double-acting cylinder
2 5/2-way valve
60 © Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co . KG • 548679 61
7. Examples 7. Examples
GRAFCET
!If\ "Empty"
Close gate
Layout
1. Emptying starts when the rain water sensor indicates that it is no • The transition condition from initial step 1 to step 2 is fulfilled when
longer raining. the rain water se nsor no longer indicates that it is raining.
2. If the water level drops to below 1 metre during emptying, the jet • When enclosing step 2 is active, step 1 of enclosing step "empty" is
aerators are switched on. also activated.
3. If the water level drops to below 20 em during emptying, the jet • The enclosed steps are executed until the rain water sensor
aerators are switched off. indicates that it is raining. The transition condition from step 2 to
4. If the water level is less than 1 metre when emptying is started, the step 3 is then fulfilled. Emptying is stopped and the gate is closed.
jet aerators must be switched on 4 minutes before the gate is • After the gate has been closed, the sequence waits at step 1 until it
opened. has stopped raining.
5. If the water level is less than 20 em after it rains, the storm-water
overflow basin is not emptied .
6. If it starts to rain again during emptying, emptying is interrupted.
62 © Festa Didactic GmbH & Co. KG • 548679 © Festa Didactic GmbH & Co. KG • 548679 63
7. Examples
Open gate
4 min / X7
Jet aerator
Close gate