You are on page 1of 29

Revision Lecture

Part 1
Electro Pneumatic Example

Part 2
Step By Step Method for Logic Programming

Dr. Hisham El-Sherif 1


MCTR704 – Mechatronics Lab
Part 1
Electro Pneumatic Example

Dr. Hisham El-Sherif 2


MCTR704 – Mechatronics Lab
C+ C- D+ D-

Dr. Hisham El-Sherif 3


MCTR704 – Mechatronics Lab
End
C+ C- D+ D-

Condition
Dr. Hisham El-Sherif 4
MCTR704 – Mechatronics Lab
End
C+ C- D+ D-

Action
Dr. Hisham El-Sherif 5
MCTR704 – Mechatronics Lab
Cross Switching (C+C-) and (D+D-)

Dr. Hisham El-Sherif 6


MCTR704 – Mechatronics Lab
Operation End State (C-) and (D-) and Signals Release

Dr. Hisham El-Sherif 7


MCTR704 – Mechatronics Lab
From D- From C-

Dr. Hisham El-Sherif 8


MCTR704 – Mechatronics Lab
Part 2
Step By Step Method for Logic Programming

1- Analyze the operation idea.


Understand the system operation detailed criteria.

2- Implement the Tag table.

3- Define the program

-------------------------------Example--------------------------------

Dr. Hisham El-Sherif 9


MCTR704 – Mechatronics Lab
The motor conveyor will start by
pressing the start button, on
condition that the part is available.
M40.0 is set

Network 1

Conditions Action

Memory is set to define


the next step

Dr. Hisham El-Sherif 10


MCTR704 – Mechatronics Lab
Network 2

Conditions Action

Memory is set to define


the next step
Memory set from previous step
is in reset MODE

Dr. Hisham El-Sherif 11


MCTR704 – Mechatronics Lab
Network 3

Conditions

Action

Memory set from previous step


is in reset MODE

Memory assigned from


previous step to define
this step

Dr. Hisham El-Sherif 12


MCTR704 – Mechatronics Lab
Working Example

Dr. Hisham El-Sherif 13


MCTR704 – Mechatronics Lab
Condition

Action

Memory is set to define


the next step

Dr. Hisham El-Sherif 14


MCTR704 – Mechatronics Lab
Condition
Memory assigned from
previous step to define
this step

Action

Dr. Hisham El-Sherif 15


MCTR704 – Mechatronics Lab
Condition

Action

Memory set from previous step


is in reset MODE

Memory is set to define


the next step

Dr. Hisham El-Sherif 16


MCTR704 – Mechatronics Lab
Conditions
Memory assigned from
previous step to define
this step

Action

Memory set from


previous step
is in reset MODE
Memory is set to
define the next
step

Dr. Hisham El-Sherif 17


MCTR704 – Mechatronics Lab
Memory assigned from
previous step to define
this step
Condition

Action

Memory set from


previous step
is in reset MODE
Memory is set to
define the next
step

Dr. Hisham El-Sherif 18


MCTR704 – Mechatronics Lab
Condition
Memory assigned from
previous step to define
this step

Action

Memory set from


previous step
is in reset MODE
Memory is set to
define the next
step

Dr. Hisham El-Sherif 19


MCTR704 – Mechatronics Lab
Memory assigned from
previous step to define
this step
Condition
Action

Memory set from


previous step
is in reset MODE

Memory is set to
define the next
step

Dr. Hisham El-Sherif 20


MCTR704 – Mechatronics Lab
Condition

Memory assigned from


previous step to define
this step
Action

Memory set from


previous step
is in reset MODE

Dr. Hisham El-Sherif 21


MCTR704 – Mechatronics Lab
Example

 Both cylinders are initially in the


backward position.
 The conveyor motor is activated
by sensor S0 upon the arrival of
the work piece.
 The motor activation is controlled
by timer such that the timer
controls motor operation for 10
seconds.
 The operation algorithm shown
below could be activated only
during the timer activation.
 As the timer is deactivated. Both
cylinders return back to the initial
position.

Dr. Hisham El-Sherif 22


MCTR704 – Mechatronics Lab
Operation Algorithm

Decision
Object Conditions Action
S1 S2 S3
Plastic Light color X - - A+ B+
Plastic Dark color - X - A- B+
Metal Light color - - X A+ B-
Metal Dark color - - - A- B-

Dr. Hisham El-Sherif 23


MCTR704 – Mechatronics Lab
Tag Table

Symbol Address Comment


Sen-S0 I124.0 Sensor So for object arrival
Sen-S1 I124.1 Sensor S1 for Plastic Light color
Sen-S2 I124.2 Sensor S2 for Plastic Dark color
Sen-S3 I124.3 Sensor S3 for Metal Light color
Motor Q124.0 Conveyor Motor
Forward-A Q124.1 Solenoid Valve for Cylinder A
Forward
Backward- Q124.2 Solenoid Valve for Cylinder A
A Backward
Forward-B Q124.3 Solenoid Valve for Cylinder B
Forward
Backward- Q124.4 Solenoid Valve for Cylinder B
B Backward

Dr. Hisham El-Sherif 24


MCTR704 – Mechatronics Lab
Dr. Hisham El-Sherif 25
MCTR704 – Mechatronics Lab
Dr. Hisham El-Sherif 26
MCTR704 – Mechatronics Lab
Dr. Hisham El-Sherif 27
MCTR704 – Mechatronics Lab
Dr. Hisham El-Sherif 28
MCTR704 – Mechatronics Lab
Dr. Hisham El-Sherif 29
MCTR704 – Mechatronics Lab

You might also like