Professional Documents
Culture Documents
Industrial Automation
(Automação de Processos Industriais)
GRAFCET
(Sequential Function Chart)
http://users.isr.ist.utl.pt/~jag/courses/api1112/api1112.html
Syllabus:
Chap. 3 – PLCs Programming Languages [2 weeks]
...
...
Chap. 5 – CAD/CAM and CNC Machines [1 week]
Page 2
IST / DEEC / ACSDC
API Chap. 4 - GRAFCET
Page 3
IST / DEEC / API Chap. 4 - GRAFCET
Tutorial: http://asi.insa-rouen.fr/~amadisa/grafcet_homepage/tutorial/index.html
http://www-ipst.u-strasbg.fr/pat/autom/grafce_t.htm
Simulator: http://asi.insa-rouen.fr/~amadisa/grafcet_homepage/grafcet.html
http://www.automationstudio.com (See projects)
Bibliography: -- Petri Nets and GRAFCET: Tools for Modelling Discrete Event Systems
R. David, H. Alla, New York : PRENTICE HALL Editions, 1992
-- Grafcet: a powerful tool for specification of logic controllers, R. David,
IEEE Trans. on Control Systems Tech., 1995 v3n3 pp253-268 [online]
-- Programação de Autómatos, Método GRAFCET, José Novais,
Fundação Calouste Gulbenkian
-- Norme Française NF C 03-190 + R1 : Diagramme fonctionnel
"GRAFCET" pour la description des systèmes logiques de commande
Homepage: http://www.lurpa.ens-cachan.fr/grafcet/
Page 4
IST / DEEC / API
Page 5
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET History
• 1979 – Dissemination in schools and adopted as research area for the implementation
of solutions of automation in the industry.
Page 6
IST / DEEC / API Chap. 4 - GRAFCET
Simple (1) R1
1 Directed
Inactive
Arc
2 Joint (2) R2
Active (parallel junction)
Initial 3
Fork (3) R3
(parallel branch)
Page 7
IST / DEEC / API Chap. 4 - GRAFCET
Page 8
IST / DEEC / API Chap. 4 - GRAFCET
Definition of State: 1
(1) R1
The set of markings of a
GRAFCET constitutes its state.
.2 3 Action A
Question: (2) R2
4.
How does the state
of a GRAFCET evolve? (3) R3
Page 9
IST / DEEC / API Chap. 4 - GRAFCET
Page 10
IST / DEEC / API Chap. 4 - GRAFCET
• Rule 2a:
All active Transitions are transposed immediately.
• Rule 4:
Simultaneous active Transitions are transposed simultaneously.
. 1
.2 .5 8
.
a a (3) (5) c
(1) (2) b (4) b
.3 .4 6
. 7
. 9
. 10
.
Page 11
IST / DEEC / API Chap. 4 - GRAFCET
OR Divergences: OR Convergences:
GRAFCET
Example: 1
(1) R1
GRAFCET state evolution
2 3 Action A
(2) R2
4
Level activated Action. Actions can also be
activated during transitions - see next.
(3) R3
Page 13
IST / DEEC / API Chap. 4 - GRAFCET
1 2
GRAFCET . .
Modelling problem:
t1 t2
3 4
Page 14
IST / DEEC / API Chap. 4 - GRAFCET
1 2
GRAFCET . .
t1 t2
Other modelling problem:
OR
THEN
Page 15
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
There exist Conflicts when the validation of a Transition depends on the same Step or when
more than one receptivity functions can become true simultaneously.
Solutions:
1
1 1
(1) a b (2) ab
(1) a (2) ba (1) a (2) b ab
(3)
2 3 2 3
2 3
Three mutualy
Transiction 1
exclusive
prioritary
hypotheses
Page 16
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
(1) m
m 2 Right
load
a b (2) b
left
3 Load
right
(3) p
p
4 Left
(4) a
Page 17
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
fp- fp+ * Effector pushes parts with commands P+ e P-. Limit switches
fp+ and fp- indicate max and min pushing positions.
fv+
* The output conveyor is always ON.
fv-
* Conveyors A e B are commanded by other automata,
independent of this workcell.
Page 18
IST / DEEC / API Chap. 4 - GRAFCET
← Solution
fp- fp+
fv+
fv-
Page 20
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
Objective: reservoir
m
fill 1&2, empty 1&2
refill only after both empty
Sensors:
m = ON/OFF
V1 V2
b1, h1, b2 h2 = level
h1 h2
Actuators: b1 b2
Page 21
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
1
(1) m 4 7
2 V1 5 V2 (1) m
(2) h1 (4) h2
2 V1 5 V2
3 W1 6 W2
(2) h1 (4) h2
(3) b'1 (5) b'2
3 W1 6 W2
4 7
(3) b'1 (5) b'2
(6) =1
Page 22
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
1
4 7
(1) m
(1') m.X7 (1'') m.X4
2 5 2 V1 5 V2
V1 V2
(2) h1 (4) h2
(2) h1 (4) h2
3 6 34 if b1
W1 se 67 W2 if
se b2
W1 W2
(3) b'1 (5) b'2
(6) b'1 . b'2
Page 23
IST / DEEC / API Chap. 4 - GRAFCET
(a) Events ↑f and ↓f obtained from a condition f (b) Event ↑a.b obtained from event ↑a and condition b
(c) Event ↑a. ↑ b obtained from events ↑a and ↑ b (d) Event ↑a + ↑ b obtained from events ↑a and ↑ b
Grafcet: a powerful tool for specification of logic controllers, R. David, IEEE Trans. on
Control Systems Tech., 1995 v3n3 pp253-268 Page 24
IST / DEEC / API Chap. 4 - GRAFCET
Page 25
IST / DEEC / API Chap. 4 - GRAFCET
Macro-steps E10
15 V2 (1) m
2 V1 5 V2
h2
h1 h2
16 3 W1 6 W2
M10
b'1 b'2
4 7
=1
17 V1
S8
Page 26
IST / DEEC / API Chap. 4 - GRAFCET
Pseudo Macro-steps
Macro Actions
• Force actions
• Enable actions
• Mask actions
Page 27
IST / DEEC / API Chap. 4 - GRAFCET
Page 28
IST / DEEC / API Chap. 4 - GRAFCET
Steps
Page 29
IST / DEEC / API Chap. 4 - GRAFCET
Macro-steps
Page 30
IST / DEEC / API Chap. 4 - GRAFCET
Page 31
IST / DEEC / API Chap. 4 - GRAFCET
Arcs/Connectors
Page 32
IST / DEEC / API Chap. 4 - GRAFCET
Page 33
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
General structure:
Characteristics:
Page 35
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
Editor: 8 pages
• Pages 0 to 7
Characteristics:
Page 36
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
OR divergences
(OR convergences)
Characteristics:
Page 37
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
AND divergences
(AND Convergences)
Characteristics:
Page 38
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
Arcs/Connectors
Page 39
IST / DEEC / API Chap. 4 - GRAFCET
Page 40
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
Programming Actions
Page 41
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
Programming Actions
Example of execution of Actions
Page 42
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
GRAFCET Section Sctructure
LD, IL, ST
GRAFCET
LD, IL, ST
Page 43
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
GRAFCET Section Initialization
Page 44
IST / DEEC / API Chap. 4 - GRAFCET
GRAFCET
GRAFCET Section Reset
Page 45
IST / DEEC / API
Page 46