Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PLCs Ref. [3]; 1. Developing Fundamental PLC Wiring Diagrams and Ladder Logic Programs
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 1
A relay will usually have only one coil but may have any number of different contacts.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Relay Symbol
Coil CR1 CR1 1 CR1-1 CR1-2 CR1 2
Normally open (NO) contact Contacts are open when no current flows through the coil but close as soon as the coil is energized.
Normally closed (NC) contact Contacts are closed when no current flows through the coil but open as soon as the coil is energized.
5
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
G CR1-2 ON
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
G CR1-2 OFF
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Magnetic Contactor
A contactor is a special type of relay designed to handle heavy power loads that are beyond the capability of control relays. relays Contactors are designed to operate such loads as lights, heaters, transformers, capacitors, and electric motors f which overload for hi h l d protection is provided separately or not required.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 8
Magnetic Contactor
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
L2
High-current wiring
L1
Low-current wiring
Programmable controllers Coil have I/O capable of operating terminals the contactor but they do not t i l have the capacity to operate heavy loads directly.
L1
L2
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
10
When the start button is pressed, coil M energizes to close all M contacts. The OL contact opens automatically when an overload condition is sensed, to de sensed deenergize the M coil and stop the motor.
13
Motor starters are available in various standard National Electric Manufacturers (NEMA) sizes and ratings.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 15
Normally Open (NO) pushbutton makes a circuit when it is pressed and returns to its open position when the button is released.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
16
Normally Closed (NC) pushbutton opens N ll Cl d hb tt the circuit when it is pressed and returns to the closed position when the button is released. The abbreviations NO and NC represent the state of the switch when it is not actuated.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
17
PRESSED OFF R L2 L1 G ON
18
L2
Selector Switch
Selector switch positions are made by turning the operator knob not p pushing it. g
Contacts Off
Hand Auto
A X
Selector switch positions may have two or more selector positions with either maintained contact position or spring return to give momentary contact operation.
19
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Selector switch used in conjunction with a reversing motor starter to select forward or reverse operation of the motor.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 20
10
ON OFF
Switch settings are seldom changed, changed and the changes occur mainly during installation or configuration of the system.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 21
The limit switch is a type of mechanically operated switch designed to operate only when a p predetermined limit is reached, , and is usually actuated by contact with an object such as a cam.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 22
11
NO Contact NC Contact
They are often used in the control of machine processes to govern the starting, stopping, or reversal of motors.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 23
Control circuit for starting and stopping a motor in forward and reverse with limit switches providing over travel protection.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 24
12
Temperature Switch
The temperature switch or thermostat is used to sense temperature changes and is actuated by some specific environmental temperature change. Responds to changes in temperature by opening or closing an electric circuit.
Symbols
NO Contact
NC Contact
25
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
13
Pressure Switch
Pressure switches are used to control the pressure of liquids and gases and are activated when a specific pressure is reached. Opens or closes an electric circuit in response to a change in pressure.
Symbols
Bellows Switch
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
NO Contact
NC Contact
27
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
28
14
Level Switch
Level or float switches are used to sense the height of a liquid. p Opens or closes an electric circuit in response to a change in liquid level.
Symbols Float NO Contact NC Contact Switch
Transducer
A transducer is any device that converts energy from one form to another.
Amplifier
Output transducer Input transducer (speaker) converts (microphone) converts electric energy to sound sound energy to electric energy ENGG3490: 30 energy Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
15
Sensors
Sensors are input transducers used for detecting and often measuring the magnitude of something. They convert mechanical, magnetic, thermal, optical, and chemical variations into electric voltages and currents. h i l i ti i t l t i lt d t
Photoelectric sensor
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
31
Sensors
Sensors provide the equivalent of eyes, ears, nose, and tongue to the microprocessor brain.
Microprocessor Optical sensor Gas sensor Microphone
Probe
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 32
16
Proximity Sensors
Proximity sensors or switches detect the presence of an object without making physical contact with it.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
33
17
As the target moves into the sensing area, the sensor switches the output ON
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 35
Load
18
Control output
Load
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Load
Control output
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
38
19
Proximity sensor
The use of a bleeder resistor allows enough current for the sensor to operate but not enough to turn on the input of the PLC
39
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Bleeder resistor
Operation is similar to that of inductive proximity sensor. Instead of a coil, the coil active face of the sensor is formed by two metallic electrodes rather like an "opened capacitor".
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 40
20
NO Common NC
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
41
Magnet
Proximity motion movement of the switch or magnet will activate the switch Rotary motion switch is actuated twice for every complete revolution Shielding S i i the shield i short circuits the magnetic field; switch is activated by removal of the shield
42
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
21
Solar cell
The solar cell converts light impulses directly into electrical charges which can easily be amplified to provide an input signal to a PLC.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 43
22
Object to be sensed
Target Reflector
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 46
23
Through-Beam Type Photoelectric Sensor A through-beam photoelectric sensor is used to measure the change in light quantity caused by the target's crossing the optical axis.
Emitter
Operating range g
Receiver
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Target
47
The decoder receives the signal from the scanner and converts these data into the character data representation of the symbol's code.
48
PLC
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
24
Ultrasonic Sensor
An ultrasonic sensor operates by sending sound waves towards the target and measuring the time it g g takes for the pulses to bounce back.
The returning echo signal is electronically converted to a 4 mA to 20 mA output, which supplies flow rate to external control devices.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 49
Strain/Weight Sensor
A strain gauge transducer converts a mechanical strain into an electric signal. signal
Hopper Controller The force applied to the gauge causes the gauge to bend. This bending action also ON/OFF Chute distorts the physical size of the g g p y Control gauge, which in turn changes its resistance.
Wire type
Force
The load cell provides p sensor input to the controller, which displays the weight and controls the hopper chute.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
50 Load cell
25
Temperature Sensors
Temperature sensors convert heat into an electric signal. There are four basic types used: thermocouple, resistance temperature detector (RTD), thermistor, and IC sensor. d
The thermocouple consists of a pair of dissimilar conductors fused together at one end to form the "hot" or measuring junction, with the free ends available for connection to the "cold" reference junction. A temperature difference between the measuring and reference junction generates a small DC signal voltage.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 51
Temperature Sensors
Temperature sensors convert heat into an electric signal. There are four basic types used: thermocouple, resistance temperature detector (RTD), thermistor, and IC sensor. d
The resistance temperature detector (RTD) varies in resistance value with changes in temperature.
RTD
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 52
26
Temperature Sensors
Temperature sensors convert heat into an electric signal. There are four basic types used: thermocouple, resistance temperature detector (RTD), thermistor, and IC sensor. d
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
53
Temperature Sensors
Temperature sensors convert heat into an electric signal. There are four basic types used: thermocouple, resistance temperature detector (RTD), thermistor, and IC sensor. d
The Integrated Circuit (IC) temperature p g g sensor produces changes in voltage or current with changes in temperature.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
54
27
Flow Measurement
The usual approach used in measuring fluid flow is to convert the kinetic energy that the fluid has into some other measurable form.
Turbine Flow Meter Coil Flow Magnet Turbine The turbine blades turn at e u b e b des u a rate proportional to the fluid velocity and are magnetized to induce voltage pulses coil.
55
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Flow Measurement
The usual approach used in measuring fluid flow is to convert the kinetic energy that the fluid has into some other measurable form.
Electronic Magnetic Flow Meter Can be used with electrically conducting fluids and offers no restriction to flow. A coil in the unit sets up a magnetic field. If field a conductive liquid flows through this magnetic field, a voltage is induced and sensed by two electrodes.
56
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
28
Velocity/RPM Sensors
A tachometer is a small permanent magnet DC generator which when rotated produces a voltage that is directly proportional to the speed at which it is driven.
Controller
Tachometers coupled to motors are commonly used in M motor speed control applications to provide Motor a feedback voltage to the controller that is Tach proportional to motor speed. ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 57
Velocity/RPM Sensors
The rotating speed of a shaft is often measured using a magnetic (inductive) i k (i d ti ) pickup sensor.
Pickup coil
Pole piece
Sensor output 0V
N S Magnet
A magnet is attached to the shaft. A small coil of wire held near the magnet receives a pulse each time t i l h ti the magnet passes. By measuring the frequency of the pulses, the shaft speed can be determined.
58
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
29
Pilot light
Control relay
Solenoid
Alarm
Solenoid valve
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Heater
Motor starter
Small motor59
Actuator
An actuator is any device that converts an electrical signal into mechanical movement. The principle types of actuators are relays, solenoids, and motors. Solenoid
Plunger Symbol
AIR Coil
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 60
30
Solenoid Valve
A solenoid valve is a combination of: a solenoid with its core or plunger a valve body containing an orifice in which a disc or plug is positioned to restrict or allow flow
Forward motion of piston When SOL A is energized, the valve spool is shifted to redirect the fluid and move the cylinder forward CR SOL A FWD SOL A CR
61
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Stepper Motor
A stepper motor converts electrical pulses applied to it into discrete rotor movements called steps. They are used to provide precise position control of movement.
Stepper motor control system Stepper-motor translator
Enables control of the stepper motor
Module M d l
Communicates with the PLC and responds with pulse trains
Step motor
The motor will move one step for each pulse Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 62 received
31
Seal-In Circuits
A seal-in circuit is a method of maintaining current flow after a momentary switch has been pressed and released. p
Hardwired Seal-In Circuit
Start Stop Motor starter coil M M
The seal-in auxiliary contact of the starter is connected in parallel with Seal-in contact the Start button to keep the starter coil energized when the Start button is ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 63 released.
Both the Start and Stop buttons are examined for a closed condition because both buttons must be closed to cause the motor starter to operate.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 64
32
Latching Relay
Latching relays are used where it is necessary for contacts to stay open and/or closed, even though the coil is energized momentarily. momentarily
L1 ON L OFF U When the ON button is momentarily actuated, the latch il i l t h coil is energized to set i dt t the relay to its latched position. The relay does not have to be continuously energized to hold the contact closed.
65
L2 Electromagnetic latching
relay circuit
PL
Contact shown with relay ENGG3490: Mechatronics position in the unlatched W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
OTL
Output Latch
OTU
Output Unlatch
XXX XXX
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
33
Latch rung
OFF OFF
Unlatch rung
Output rung
1 When the ON button is momentarily actuated, the latch rung becomes true and the latch status bit (10) is set to 1, and so the output is switched on. This status bit will remain on (1) when ENGG3490: Mechatronics W07. Addapted latch rung Controllers By 67 logic continuity of theFrom Programmable Logicis lost. F. D. Petruzella, McGraw-Hill
Latch rung
OFF OFF
Unlatch rung
Output rung
0 When the unlatch rung becomes true (OFF button actuated), the status bit (10) is reset back to 0 and so the output is switched off.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 68
34
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
Modes of Operation Automatic Mode: High sensor - if the level of water in the switch tank reaches a high point, the water pump will start so that water can be removed from Low sensor the tank, thus lowering the level switch - when the water level reaches a low point, the PumpAddapted From Programmable Logicpump will stop motor ENGG3490: Mechatronics W07. Controllers By F. D. Petruzella, McGraw-Hill 70
35
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
72
36
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
74
37
Bottle movement In this filling and capping operation, the tasks are: (1) fill bottle (2) press on cap These W07. Addapted From Programmable Logic Controllers By proper order. ENGG3490: Mechatronicstasks must be performed in the F. D. Petruzella, McGraw-Hill
75
In this labeling operation, the tasks are: (1) place label 1 on bottle (2) place label 2 on bottle The order in which the tasks are preformed does not really matter.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 76
38
Automatic Control
Automatic control involves maintaining a desired set-point.
Automatic furnace temperature p control
Furnace
PLC
In this operation the set-point is selected by means of the touch screen interface. If there is a deviation from that set point, an error is determined by comparing the output against the t i t d i this th set point and using thi error t make a to k correction. This requires some form of feedback from the output back to the control for the input.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
77
STOP Package
RUN
Limit switch (LS1) Emergency STOP Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
START
78
39
2 3 4
Summary of the control task: Start button is actuated. CR1-1 closes to seal in CR1 CR1-2 opens, switching the Emergency red stop pilot light off Start Stop CR1-3 closes, switching the PB1 PB2 CR1 g green run pilot light on p g CR1-4 closes to energize the motor starter and motor LS1 The package moves to the limit switch to actuate it and CR1-1 STOP de-energize coil CR1 R CR1-1 opens to open the seal-in contact CR1-2 RUN CR1 2 closes, switching the CR1-2 l it hi th G red pilot light on CR1-3 CR1-3 opens, switching the green pilot light off M CR1-4 opens to de-energize OL CR1-4 the starter coil, stop the ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. motor, and end the sequence D. Petruzella, McGraw-Hill 79
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
80
40
Once a processor sees a FALSE input instruction in series, it executes the remaining instructions FALSE, even if they are TRUE
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
81
LESS likely
LEAST likely
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
82
41
Part sensor
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 83
PB1 and PB2 and the part sensor must be activated to make the drill motor operate.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
84
42
A motorized overhead garage door is to be operated automatically to preset open and closed pos t o s positions. Devices used: see next slides Solution: sequence of operations
when the up button is pushed, the up motor contactor energizes and the door travels upwards until the up limit switch is actuated; When the down button is pushed, the down motor contactor energizes and th d t t i d the door t travels d l down until the til th down limit switch is actuated; when the stop button is pushed, the motor stops. The motor must be stopped before it can change direction
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 85
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
86
43
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
87
A continuous filling operation requires boxes moving on a conveyor to be automatically pos t o ed and ed Solution: positioned a d filled. So ut o
start the conveyor when the START button is momentarily pressed; stop the conveyor when the STOP button is momentarily pressed; energize the RUN status light when the process is operating; energize the STANDBY status light when the process is stopped; stop the conveyor and energize the STANDBY light when the right edge of the box is first sensed by the photosensor; with the box in position and the conveyor stopped open stopped, the solenoid valve and allow the box to be fill; filling should stop when the LEVEL sensor goes true; energize FULL light when the box is full; the FULL should remain energized until the box is moved clear of the photosensor.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill 88
44
Motor
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
89
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
90
45
Assignments
Chapter 6 (PLC) book: Problems See PLC-Problem-Set1 pdf file on the course PLC Problem Set1 web page.
ENGG3490: Mechatronics W07. Addapted From Programmable Logic Controllers By F. D. Petruzella, McGraw-Hill
91
46