You are on page 1of 22

Industrial Automation

ME-4801-L
Rayan Isran
Lab 4
• Last lab we introduced the new software, do-
more designer

• Ran some basic simulations

• Also created logic gates (AND, OR, NAND, etc)


as an assignment
Topics For Today
• Slightly more advanced logic circuits

• Latching circuits (start/stop ladder logic relay)


Advanced Logic Gates
• What if we have multiple gates? Example:
Advanced Logic Gates
• How would you draw its ladder logic?
Advanced Logic Gates
• First figure out the boolean logic expression:

Y is on when
(A is on, B is on and C is off) OR D is on OR E is off
Advanced Logic Gates
• (A is on, B is on and C is off) OR D is on OR E is
off

• Break this into parts:

• C1 OR C2 OR C3
Final Ladder Logic Diagram
• We make the basic structure first:
Final Ladder Logic Diagram
Assigning Nicknames
• After inserting a component, do not enter the address,
but the nickname you want to assign, e.g.:
Assigning Nicknames
• Click the third radio button shown below, and change
the element to the required address, e.g. X0 or Y0.
Another Example
• Click the third radio button shown below, and change
the element to the required address, e.g. X0 or Y0.
Task 1
• Draw the PLC logic of the following logic
circuits. Assign nicknames to each component.

Z= D OR E
D= A NOT
E= B AND C
Task 2
• Draw the PLC logic of the following logic
circuits. Assign nicknames to each component.
D

E
Y= (A*B)-NOT * B * C-NOT === ALSO WRITTEN AS== Y= D*B*E
D= (A*B)-NOT
E= C-NOT
Task 3 (OPTIONAL)
• Draw the PLC logic of the following logic circuits. Assign
nicknames to each component.
c
E F
Y
D

A
G

B
C=A-NOT
D=B-NOT
E=C OR D
G= A AND B
F=E-NOT
Y= F AND G
“Latching” Circuit
• Imagine & TV and a TV remote.

• To turn on the TV, you press the power button


only once. You do not hold the power button.
“Latching” Circuit
• Therefore, the following circuit will not work:

• Because once the power button (X0) is


released, the TV (Y0) will turn off again.

• How do we resolve this?


“Latching” Circuit
• By latching the output to the input, like so:
“Latching” Circuit
• It is also good practice to add a emergency
stop button in most PLC programs:
Another Example
“Latching” Circuit
• What are some other, daily examples of
latching circuits?
Practical Example - Task
• Write a program that does the following:

• - Starts a (latched) oil pump

• - Once the oil pump is on, a main motor (latched) runs (note: in that
order)

• Both the pump & motor should have an emergency stop button

• - There is a temperature sensor that shuts down the pump & motor if
they overheat

• - A buzzer/alarm is turned on when the pump/motor starts to overheat

You might also like