Professional Documents
Culture Documents
Api I C4
Api I C4
Api I C4
MEEC 2011-2012
Industrial Automation
(Automao de Processos Industriais)
Slides 2010/2011 Prof. Paulo Jorge Oliveira Rev. 2011/2012 Prof. Jos Gaspar
Page 1
MEEC 2011-2012
Syllabus:
Chap. 3 PLCs Programming Languages [2 weeks] ... Chap. 4 - GRAFCET (Sequential Function Chart) [1 week] The GRAFCET norm. Elements of the language. Modelling techniques using GRAFCET. ... Chap. 5 CAD/CAM and CNC Machines [1 week]
Page 2
Chap. 4 - GRAFCET
Instruction List
LD AND ANDN OR ST %M12 %I1.0 %I1.1 %M10 %Q2.0
2
(2) b
Right
3
(3) p
Load
4
(2) a
Left
Page 3
Chap. 4 - GRAFCET
Simulator:
Bibliography:
Homepage:
http://www.lurpa.ens-cachan.fr/grafcet/
Page 4
Page 5
Chap. 4 - GRAFCET
GRAFCET History
1975 Decision of the workgroup "Logical Systems" da AFCET (Association Franaise de Cyberntique Economique et Technique) on the creation of a committee to study a standard for the representation of logical systems and automation.
1979 Dissemination in schools and adopted as research area for the implementation of solutions of automation in the industry. 1988 - GRAFCET becomes an international standard denominated as "Sequential Function Chart, pela I.E.C.
Page 6
Chap. 4 - GRAFCET
Connections
Directed Arc
Transitions
Simple Joint
(parallel junction) (1) R1
(2)
R2
(3)
R3
(3)
R3
Chap. 4 - GRAFCET
.
(2)
3
R2
Action A
A Step can have no Transitions as inputs (source); A Step can have no Transitions as outputs (drain);
4
(3) R3
Page 8
Chap. 4 - GRAFCET
GRAFCET
State of a GRAFCET
Definition of State: The set of markings of a GRAFCET constitutes its state. Question: How does the state of a GRAFCET evolve?
(1)
1
R1
.2
(2)
3
R2
Action A
4 .
(3) R3
Page 9
Chap. 4 - GRAFCET
GRAFCET
State Evolution:
Page 10
Chap. 4 - GRAFCET
Rule 4:
Simultaneous active Transitions are transposed simultaneously.
Example 1
Example 2
Example 3
.
(1)
1
a (2)
2
a (3) b
5 .
(4) b (5)
.
c
.3
.4
10
.
Page 11
Chap. 4 - GRAFCET
OR Divergences:
OR Convergences:
If Step 1 is active and if a is TRUE then Step 1 is If Step 1 is active and if a is TRUE then Step 1 is deactivated deactivated and Step 2 is activated (state of Step 3 is and Step 3 is activated (state of Step 2 remains unchanged). maintained). The same happens for Step 2 and b. If a and b are TRUE and Step 1 is active then Step 1 is If both Steps 1 and 2 are active and a and b are TRUE deactivated and Steps 2 and 3 are activated then Steps 1 and 2 are deactivated and Step 3 is activated. (for any previous state of Steps 2 and 3).
AND Divergences:
AND Convergences:
If Step 1 is active and if a is TRUE then Step 1 is deactivated and Steps 2 and 3 are activated.
If Steps 1 and 2 are active and if a is TRUE then Steps 1 and 2 are deactivated and Step 3 is activated (if only one of the input steps is active, the state remains). Page 12
Chap. 4 - GRAFCET
GRAFCET
Example:
(1)
1
R1
2
(2)
3
R2
Action A
4
Level activated Action. Actions can also be activated during transitions - see next.
(3) R3
Page 13
Chap. 4 - GRAFCET
.
t1 3 4
t2
Given 4 Steps (1 to 4) and 2 Transitions (t1 and t2) write a segment of GRAFCET to solve the following problem: In the case that the Steps 1 and 2 are active: if t1 is TRUE, activate Step 3 (and deactivate Steps 1 and 2); if t2 is TRUE, activate Step 4 (and deactivate Steps 1 and 2); otherwise, the state is maintained.
Page 14
Chap. 4 - GRAFCET
1 t1
2 t2
Page 15
Chap. 4 - GRAFCET
1
(2) b (1)
1
a b (2) ab (3) ab
Transiction 1 prioritary
Chap. 4 - GRAFCET
m
load
2
b
(2) b
Right
a
left right
3
(3) p
Load
p
(4)
4
a
Left
Page 17
Chap. 4 - GRAFCET
Page 18
Chap. 4 - GRAFCET
Solution
fp- fp+ fv+ fv-
To guarantee alternating A and B, modify the program, adding the following GRAFCET:
and changing the receptivity function * to: Explanation: grab part in y, if there exists part in a and if b has not the priority; if b is true and has priority, then grab part in z. Note: terminology X10 of PL7 changes to S_1_10 in Unity Pro Page 19
Chap. 4 - GRAFCET
a) After processing one part (P+) prepare immediately to receive the next one: fv+. b) Move crane (D) to an optimal waiting location (i.e. location that reduces delays): y.
Page 20
Chap. 4 - GRAFCET
GRAFCET Example 3: modeling and automation of a distribution system Objective: fill 1&2, empty 1&2 refill only after both empty Sensors: m = ON/OFF b1, h1, b2 h2 = level Actuators: V1, V2, W1 W2 = admit/exhaust
reservoir
V1 h1 b1 W1 h2 b2
V2
W2
Page 21
Chap. 4 - GRAFCET
4
5 V2
h2
7
(1) m
2
(2) h1
V1
(4)
3
(3) b'1
W1
(5)
6
b'2
2
W2
(2) h1
V1
(4)
5
h2
V2
4
(6) =1
7
(3)
3
b'1
W1
(5)
6
b'2
W2
Page 22
Chap. 4 - GRAFCET
7
m.X4
(1)
2
(2) h1
V1
(4)
5
h2
V2
(2)
2
h1
V1
(4)
5
h2
V2
3
(3) b'1
W1
(5)
6
b'2
W2
34
W1 se if b1
(6)
67
b'1 . b'2
W2 if se b2
Page 23
Chap. 4 - GRAFCET
GRAFCET
Grafcet: a powerful tool for specification of logic controllers, R. David, IEEE Trans. on Control Systems Tech., 1995 v3n3 pp253-268
Page 24
Chap. 4 - GRAFCET
GRAFCET
(a . b) = a . b + b . a, (a . b) . (a . c) = (a . b . c)
Page 25
Chap. 4 - GRAFCET
GRAFCET
Macro-steps
15 V2 2
h2 h1 (1)
E10
m
V1
5
h2
V2
16 M10
3
b'1
W1
6
b'2
W2
4
=1
17
V1
S8
Page 26
Chap. 4 - GRAFCET
GRAFCET
Pseudo Macro-steps Macro Actions Force actions Enable actions Mask actions
Page 27
Chap. 4 - GRAFCET
GRAFCET
Implementation in DOLOG80
The activity of each Step is stored in an auxiliary memory. At startup do: AM128 SLMx ... AM128 SLMy (initial steps) RLM128 Store Rk evaluation in M100 AM1 AM2 AM100 SLM3 AM1 AM2 AM100 SLM4
1
(k)
2
Rk
Page 28
Chap. 4 - GRAFCET
GRAFCET
Steps
Page 29
Chap. 4 - GRAFCET
GRAFCET
Macro-steps
Page 30
Chap. 4 - GRAFCET
GRAFCET
Page 31
Chap. 4 - GRAFCET
GRAFCET
Arcs/Connectors
Page 32
Chap. 4 - GRAFCET
Page 33
Chap. 4 - GRAFCET
And where to find information related with Transitions? Does not make sense state or activity nor timmings (only number of occurences).
Page 34
Chap. 4 - GRAFCET
Characteristics:
Page 35
Chap. 4 - GRAFCET
Characteristics:
Page 36
Chap. 4 - GRAFCET
GRAFCET OR divergences
(OR convergences)
Characteristics:
Page 37
Chap. 4 - GRAFCET
Characteristics:
Page 38
Chap. 4 - GRAFCET
GRAFCET Arcs/Connectors
Page 39
Chap. 4 - GRAFCET
Page 40
Chap. 4 - GRAFCET
Page 41
Chap. 4 - GRAFCET
Example of Activation/deactivation
Page 42
Chap. 4 - GRAFCET
LD, IL, ST
GRAFCET
LD, IL, ST
Page 43
Chap. 4 - GRAFCET
Page 44
Chap. 4 - GRAFCET
Page 45
Properties of Transition Sections (Unity Pro) Transition sections have the following properties: Transition sections only have one single output (transition variable), whose data type is BOOL. The name of these variables are identical to the names of the transition sections. The transition variable can only be used once in written form. The transition variable can be read in any position within the project. Only functions can be used, function blocks or procedures cannot. Only one coil may be used in LD. There is only one network, i.e. all functions used are linked with each other either directly or indirectly. Transition sections can only be used once. Transition sections belong to the SFC section in which they were defined. If the respective SFC section is deleted then all transition sections of this SFC section are also deleted automatically. Transition sections can be called exclusively from transitions.
Page 46