You are on page 1of 3

Lab. Exercise No.

2 Task
The task is to…
•  2.a
–  transport several jobs in the conveyor (clockwise).

Automation Lab. 2 –  increase the efficiency of the process by utilising both lifts
simultaneously.
•  2.b
–  Implement Lab 1a & Lab1b in Functional Block Diagram
(FBD).

Initial state:
•  Jobs placed on the upper conveyor, to the left of block B2.
•  Run upper (M1) and lower (M3) conveyors continuously.
Condition:
•  Only one job in the lift at a time.
Automation 2018 Automation 2018

CoDeSys Project Synchronisation Signals


•  The project setup from Lab 1. Scheduler •  Used for communication between the
(not the LD-program)
•  The conveyor process can be divided Communication only scheduler and the programs of sub-processes,
into four sub-processes. (similar to Lab1) examples:
•  A separate program for each sub- Job_to_load_2 Lift_2_Ready
Sub-process 2

Sub-process 3

Sub-process 4
Sub-process 1

process written in SFC. Job_loaded_2 …


•  A synchronisation program, Scheduler,
written in SFC. •  They have to be declared as global variables.
•  Only synchronisation signals may be
used in the Scheduler - no physical
input/output.
•  No access of physical input/output or
communication between sub-processes. Input/Output from/to the
physical process

Automation 2018 Automation 2018

1
Synchronisation Signals Separating jobs (1)
SCHEDULER Photocell S3
RECEIVE SIGNAL:
upperconv_ready
lift2_ready
SEND SIGNAL:
load_job

SUBPROGRAM_1 SUBPROGRAM_2
SEND SIGNAL: SEND SIGNAL:
upperconv_ready lift2_ready
RECEIVE SIGNAL: RECEIVE SIGNAL:
load_job load_job
Block B3

Automation 2018 Automation 2018

Separating jobs (2) Initial state SFC example


Photocell S3
Step 0 N Action 0 N Action 0
SyncSig1:=false;
The part of transport band M1 on TRUE
the right side from block B3 is M2Right:=true;
rolling faster than M1 on the left M1Right:=true;
Step x N Action y
side of B3 and therefore a gap
between two consecutive jobs is Lift1:=true; Signal keeps the
created. M2Right:=false; assigned value after
S5 leaving the step.
WHEN sensor S3 becomes true Must be reset (when
(no job in front of it), block B3 can necessary)!
be raised to separate jobs.
Step x+1 N Action y+1 N Action y+1
Lift1:=false;
(NOT S4) AND S5
Block B3 M2Left:=true;

Automation 2018 Step x Automation 2018

2
T!
Before the lab…

N
TA
•  Read the lab manual.
OR
P •  Outline five SFC programs, on paper,
that will run the conveyor:
IM

–  1 Scheduler
–  4 Programs for the sub-processes
•  Make a list of the synchronisation
variables that will be used for
communication between the scheduler
and the different programs.
•  Remember to use “hand-shaking”
Automation 2018

You might also like