Professional Documents
Culture Documents
Chapter 9: GRAFCET and Ladder Diagram
Chapter 9: GRAFCET and Ladder Diagram
The GRAFCET is a tool for describing the specifications of the control unit of an
automated system.
The working of an automatic equipment may be described graphically by a group of:
STEPS
TRANSITIONS
DIRECTED LINKS
step 0
input 1
Directed Links
step 1
output 1
input 2
step 2
output 2
input 3
step 3
Actions
output 3
input 4
step 4
output 4
input 5
step 5
input 6
PILOT LIGHTS
INSTRUCTIONS
OPERATOR
COMMANDS
CONTROL
UNIT
OPERATIVE
UNIT
INFOMATION
PSA2
FP2-C1
XY64D2T
XY64D2T
start
extend cylinder A
cylinder A extended
Actions
extend cylinder B
cylinder B extended
retract cylinder A
retract cylinder B
Transitions
(AND operation)
Two Actions
In One step
Simultaneous Activation :
indicated by transition followed
by a double horizontal line.
Start of Sequence Selection :
indicated by a single horizontal
line followed by two or more
transitions.
ACTIONS
ACTIONS
ACTIONS
ACTIONS
Simultaneous De-activation :
indicated a double horizontal line
followed by transition.
Labelled Connector :
indicating where control is going
to (destination Connector).
1
START
STOP
1st_cycle_bit
Step-1
Step-1
Step-1
Step-1 Start
Step-2
Step-2
1st_cycle_bit
Step-1
Step-1 Step-2
Step-2 Stop
Step-1
Start
Step-2 Step-1
To kill Step 2
when Step 1
is active
Step-2
START
ON GREEN
STOP
Step-1
ON RED
Step-2
ON GREEN
OR
We can decide to turn on the buzzer in step_2 and turn on both the lights in step_1.
So that when start_PB is pressed, the red_light and green_light will turn on.
(Remember : still no change in sequence, only the output).
Work the
Outputs from
right to left
ON RED
ON GREEN
Step-1
ON GREEN
START
Step-2
ON RED
ON BUZZER
ON BUZZER
STOP
OR
Other examples.
Step-1
ON GREEN
Step-2
ON BUZZER
Step-1
ON RED
ON RED
ON GREEN
1
START
ON RED
ON BUZZER
Step-2
STOP
Outputs may be
in any order
Inputs may
be repeated
Outputs
ON RED
ON BUZZER
1
START
ON GREEN
ON BUZZER
Step-1
ON RED
Step-2
ON GREEN
Step-1
ON BUZZER
Step-2
STOP
No Repeated
Outputs !!
Stamp
Done manually by operator
UNPROCESSED
MATERIAL
IN POSITION
Die
Stamp
( steps )
LOWER STAMP
Stamp
Stamp
Die
( outputs / actions )
Die in low position
EVACUATE PART
Stamp
Evacuation completed
RAISE DIE
Die
SEQUENCE
1st_cycle_bit
Step-1
Step-6
Die-High
Step-1
Step-2
Step-1
Material
Step-2
Step-3
Step-2
End-High
Step-3
Step-4
Step-3
Stamp-High
Step-4
Step-5
Step-4
Die-Low
Step-5
Step-6
Step-5
Evacuate
Step-6
Step-1
Start
Step-2
Step-3
Step-4
Step-5
Step-6
OUTPUT
Step-2
Step-3
Step-4
Step-5
Step-6
Lower Stamp
Raise Stamp
Lower Die
Evacuate part
Raise Die
Left Side
Start PB
1
Start PB pressed
Moving A Wagon
2
Right Side
reached
3
Left Side
reached
OUTPUT
SEQUENCE
1st_cycle_bit
Step-1
Step-1
Step-2
Step-3
Left-side
Step-1
Start
Step-2
Step-3
Step-2
Right-side
Step-3
Step-1
Step-2
Move-right
Step-3
Move-left
Step-2
Step-3
Convert GRAFCET
Ladder Diagram
Use On Red
Use Ext_A
Use R1 or Step 1
Use A+
Sequence
Output
System initialization :
Retract Cylinder A
Retract Cylinder B
Off Green Light
On Green Light
Extend Cylinder A
Cylinder A extended
Extend Cylinder B
Cylinder B extended
Lower Drill
Raise Drill
5
Drill_ high
Retract Cylinder A
Retract Cylinder B
sensors
Drill-high
Drill
Drill-Low
Part / Material
Cylinder A
Cylinder B
A-
A+
B+
sensors
Project 2
SEQUENCE
OUTPUT
1st_cycle_bit
Step-1
Step-1
Step-2
Step-6
Cyl.A ret
Step-2
Ext . Cyl A
Cyl.B ret
Step-3
Step-1
Run
Step-2
Step-3
Step-2
Cyl.A ext
Step-3
Step-4
Step-3
Cyl.B ext
Step-4
Step-5
Initialise ?
d
Tim001
Step-3
Step-4
LOWER -DRILL
Step-5
RAISE-DRILL
Step-6
Ret . Cyl A
Ret . Cyl B
Step-4
Step-5
Step-6
Drill-Low
Ext . Cyl B
Step-2
Step-4
Step-4
ON GREEN LIGHT
Step-5
TIM
001
3s
Step-5
Drill-high
Step-6
Step-1
Step-6
Grafcet Design
Automatic Hand Dryer
The system incorporates a diffuse sensor to detect the the presence of a pair of hands. When a pair
of hands are placed just below the the Automatic Hand Dryer, heated air flow is turned on. When
the person has completed drying his hands, the removal or absence of hands will be detected. The
heated air will continue to flow for a further 3 seconds before the heated air flow is turned off.
3
Step 3 / Timer5 / 3s
Outputs
Inputs
Presence of Hands
Absence of Hands
SEQUENCE
1st_cycle_bit
Step-0
Step-0
Step-1
Step-2
Tim005
Presence
Step-0
DIF
Step-1
Step-2
Step-1
Absence
Step-1
DIF
Step-2
Step-0
Step-2
Step-1
ON HAND DRYER
Step-2
Step-2
Timer5
3s
Action A
Action C
Action G
9
b
Action D
10
11
Action E
k
The above GRAFCET consists of a switch which allow to select one out of three
possible sequences depend on the transition conditions x, y and z. The different
transitions corresponding with their conditions x, y and z may be enable
simultaneously and they could be cleared simultaneously if the transition conditions
x, y and z were true at the same time. In order to avoid this from happening, the
transition conditions must be mutually exclusive. It is also possible to introduce the
priorities among the different sequences.
12
The transition conditions a.b
and a.b are mutually exclusive.
If a and b are both present, the
transition from step 12 will not
be cleared.
a.b
a.b
13
14
12
The transition 12-13 has higher
priority than 12-14: the
transition 12-13 will be cleared
if both a and b are true at the
same time.
12
f.e
a.b
13
Action E
14
16
k
f.e
13
Action G
17
g
14
Action K
Action L
l
Action H
h
18
Action M
n.m
n.m
15
Action J
j
19
Action P
p
OUTPUT
SEQUENCE
Step-4
Step-5
Step-6
Step-5
Step-6
Step-7
Step-6
Step-7
Step-5
Step-8
Step-5
Step-9
Step-9
Step-10
Step-8
Step-9
Step-6
Step-7
Step-8
Step-10
Step-11
Step-6
Step-7
Step-11
y
Step-8
Step-11
z
Step-9
Step-10
b
Step-10
Step-11
Step-7
Step-8
Step-10
Step-11
Step-5
Step-11
Step-12
TOSS
COIN
TAIL
HEAD
ON
GREEN
ON
RED
STEP-2-3/ Timer7 / 3s
Input
Label
Head
Tail
Output
Addr
X1
X2
Label
TOSS COIN
GREEN
RED
Addr
Y1
Y2
Y3
OUTPUT
SEQUENCE
Step-1
1st_cycle_bit
Step-1
Step-2
IO Listing or
IO Address Assignment Table
Step-1
TOSS COIN
Step-2
ON GREEN
Step-2 Step-3
Timer7
Step-3
Step-3
Step-1
Head
Step-2
Step-1
Step-1
Tail
Step-3
Step-1
ON RED
Step-2
Step-2
Step-3
Timer7
3s
Step-3
FAIL
PASS
EXTEND
PASS-PUSHER
PASS-PUSHER-EXT
EXTEND
FAIL-PUSHER
FAIL-PUSHER-EXT
LOAD NEXT
COMPONENT
MATERIAL (IN POSITION)
(c)
Design a GRAFCET for the following system in Fig 1 (initial step = step 1):
Detection of clasps on cardboard box:
The system incorporates a through-beam (TB) optical sensor, an inductive
sensor (IND ) and a counter.
The presence of a new clasp increments the counter (INCR_CTR).
The counter serves only to show the number of clasps on each box that
passes by. No other action need to be taken by the system based on the
number of clasps detected.
The counter is reset (RESET_CTR) for every new box that arrives.
TB
IND
(inputs)
PLC
INCR_CTR
RESET_CT
R
(outputs)
Counter
Solution :
(d)
Design a GRAFCET for the following system in Fig Q3d (initial step = step 1):
Automatic gauge level monitoring: The system incorporates two throughbeam (TB) optical sensors to monitor the level of the fluid in the stationary
glass gauge as shown in Fig Q3d. When the level falls below the lower limit,
a valve situated on top of the gauge is turned on automatically to add more
fluid. When the fluid level reaches above the upper limit, the valve is turned
on for a further 10 seconds before it is turned off.
Note : The control of filling level through glass gauge makes use of the laws of refraction. The
fluid, being the optically denser medium, breaks the light beam. Without the fluid the sensor is
activated.
TB_Top
TB_Bottom
PLC
On Valve
Off Valve
(inputs)
(outputs)
Detectors
TB_Top
TB_Bottom
Solution :