Академический Документы
Профессиональный Документы
Культура Документы
Line
Circle,Semi-Circle
Square, Rectangle
Diamond
Diamond Conditioning apparatus(filter, separator, lubrica
exchanger)
Miscellaneous Symbols
Spring
Restriction (affected by viscosity)
Functional Symbols
Triangle
Arrow
Oscillating Motor
Hydraulic
Pneumatic
Air-Oil Actuator
Control Valves
General Representation
Directional Units that provide full or restricted flow by opening or closing of one
Control Valves or more paths(one or several squares)
Flow Paths
Non-Return Valve
Free opens if the inlet pressure is higher than the outlet pressure
With remote pilot control the pressure at the inlet port is limited
to the setting of a pilot control
Pressure
Regulator Or A unit which , with a pressure variable inlet pressure, gives
Reducing substantially constant output pressure provided that the inlet
Valve pressure remains higher than the required outlet pressure
Without relief port with remote control but the outlet pressure
is dependent on the pressure control
With relief port with remote control but the outlet pressure is
dependent on the pressure control
Differential Pressure Regulator
With fixed output and relief port to reservoir with relief for excess
flow (variations in inlet pressure do not affect rate of flow)
Shut-Off Valve
Simplified symbol
Energy Transmission And Conditioning
Sources Of Energy
Electric motor
Heat Engine
Not connected
Air Bleed
Exhaust Port
Power Take-Off
Rotary Connection
Reservoirs
General symbol
Accumulators
Filter Or Strainer
Water Trap
Automatically drained
Automatically drained
Air Dryer
Lubricator
Temperature Controller
Control Mechanisms
Mechanical Components
Pivoting Devices
Simple
Control Methods
Muscular Control
Controlled by pushbutton
Controlled by lever
Controlled by pedal
Mechanical Control
Controlled by spring
Controlled by roller
Controlled by roller(one direction only)
Electrical Control
Combined Control
The standard icons to graphically represent fluid power components are defined in the Australian
standard AS 1101.1-1993 Graphic symbols for general engineering - Hydraulic and pneumatic
systems. The following are some of the commonly used components:
p/n DCV = Directional Control Valve with n settings and p ports. It can be Normally Open (NO) or
Normally Close (CO).
In variable flow valves, the flow area is a function of the spool position. By adjusting the spool
position, one can adjust the flow rate.
The flow rate obviously depends on the flow area as well as the pressure difference across the
valve. Only the flow area can be controlled by the spool position. Therefore, if precise control of the
flow rate is essential, then a control loop has to be implemented that modulates the spool position to
keep the flow rate constant. Such valves are called the servovalves.
Valve selection
The choice of the valve is an important consideration in any fluid control application. This choice is a
usually compromise between the control requirements and the system cost. In difficult environments
(eg mining or construction industry), reliability also is a factor.
Best control performance is usually offered by servo valves due to their good linearity and high
bandwidth characteristics. However, these valves have a very low tolerance against contaminants in
the hydraulic oil. The standard of cleanliness required by a servovalve may be difficult to achieve
and maintain in "dirty" environments. In some instances, capacity may also be a problem. For large
machines, it simply is not possible to find a servovalve with the required flow capacity.
Regular directional control valves can be made extremely robust and are available at the desired
size and they should be the first option for jobs where control requirements are not too demanding.
We will now provide some examples of how the fluid power components are connected and
controlled to perform simple tasks. The examples all use simple DCVs. The treatment of proportional
or servo-valves are beyond the scope of this course.
Control of a single-actuating ram
Example: Draw the hydraulic circuit and the electrical diagram for a hydraulic ram. The piston is to
be extended when a manual switch is closed. The piston should return back when the switch is
released. Use a single-acting cylinder and a 3/2 valve.
Answer :
Example: A hydraulic press is controlled by two manual switches placed 1 m apart (switches S1 and
S2) and a third switch S3 representing the status of the protective cover. The switch S3 is
automatically closed when the protective cover is in place.
Once the press is activated, it will stay down until a normally closed lift button switch (S4) is released
and breaks the circuit.
Design a hydraulic circuit and the electrical logic to drive this hydraulic press.
Answer:
There is a deliberate mistake in the PLC diagram. See if you can spot it.
Notes:
1. The symbol S1 appears twice on the PLC diagram. It refers to signals from the same switch on
the hydraulic circuit.
3. K is the relay that engages the latch switch. The latch switch provides the signal for the solenoid
relay X even if S1, S2, and S3 are broken.
4. S4 is the STOP button. When it is broken, K is to deenergise; the latch switch opened; the
solenoid relay deenergised and, under the spring action, the valve returns to its normal position,
causing the ram to retract. Is this happening in the above diagram? If not, how can you correct it?
Regenerative Circuit
where
OIL HEATING
In a hydraulic system, the power is transmitted by pushing the working fluid (usually oil) through the
circuit. During this process, some of the power is spent in heating the oil. For example, when oil is
pushed through a valve, no external work is done but the pump still has to exert effort to push the oil
through the pressure differential over the valve. You can think of this as work done on the oil and all
of it is converted into heat:
This is converted into heat and the resultant temperature increase for the oil volume can be
calculated by
• Applications of relays/switches;
• Programmable controllers;
- Pneumatic Controls
- Electropneumatic Controls.
- Programmable Logic Controller (PLC) Books & Reference Material : Books :
Slides :
- Automation.
- Material Handling Technologies.
- Manufacturing Systems.
- Flexible Manufacturing.
- Computer integrated manufacturing(CAD, CAM). Production Systems : • Production system is a
collection of :
- People.
- Equipment.
- Procedures to perform manufacturing.
(a) Facilities :
- Factory, Equipment, Layout.
• Worker-Machine Systems.
• Automated Systems :
(a) System in which a process is performed by a machine without the direct participation of a human
worker.
• Support systems do not directly contact the product, but they plan and control its progress through
the factory.
• 3 Basic Types :
1. Fixed Automation.
2. Programmable Automation.
3. Flexible Automation.
Human & Machines : • Relative Strength of Humans & Machines.
• HUMANS :
• MACHINES :
• Typical features :
• Typical features :
1. NC Machine Tools.
2. Industrial Robots.
3. PLCs. Flexible Automation : • Extension of programmable automation.
• Produce variety of parts with virtually no time lost for changeovers from one part style to next.
• Example : FMS.
• Typical Features :
• Find answers :
• CIM. Automation Migration Strategy : • Phase 1 : Manual Production using single station manned cells
operating independently.
• Phase 3 : Automated integrated production using a multistation automated system with automated
material handling.
1. Generation.
2. Control.
3. Transmission.
• Fluid :
1. Liquid (Hydraulics).
2. Gas (Pneumatics).
Advantages of Fluid Power : • Ease and Accuracy of Control : control using simple levers & buttons.
• Constant Force or Torque : only fluid power can provide this irrespective of speed changes.
• Simplicity, Safety, Economy : Fewer moving parts, compact, reliable. Components of a Fluid Power
System : • A Tank (reservoir) – to hold fluid.
• Piping – to carry fluid. Pascal’s Law : • Principle of how fluid transmit power :
directions”
Hydraulic and Pneumatic ControlsFluid Power Actuators Fluid Power Actuators • Linear Hydraulic
Actuators (Hydraulic Cylinders).
• Rotary
Actuator.
Hydraulic
cylinders
: C
ylinder Mountings
: Mechanical Linkages
: C
ontrol Components : Three basic types of control devices :
1. Check Valves.
2. Shuttle Valves.
3. 2-Way, 3-Way, 4-Way DCV.
• Flow Control Valves (speed control). Direction Control Valves : Control direction of flow in hydraulic
circuit, CHECK
VALVE.
• Two-Way
Valves :
- Used to direct pump flow to either of two paths of circuit.
• Four-Way Valves :
- Used to control double acting hydraulic cylinders.
• Spool of a DCV can be positioned by :
- Manually.
- Mechanically.
- Using pilot pressure.
- Using Electrical
Solenoid.
valve.
Two-position, spring-offset, four-way
valve.
Mechanically actuated 4-way
valve.
Air pilot-actuated four-way
valve.
Hydraulic and Pneumatic ControlsHydraulic Circuit Design Design Considerations : • Safety of Operation
:
• Efficiency of Operation :
:
Circuit Design Approach : • What are the
specifications of the job?
- Force requirement – 8 kN
- Length of work stroke – 15 cm
- Speed of piston and rod assembly – 0.5 sec.
- Pressure range.
- Valve port size.
Cylinder : Regenerative
Circuit : • Pressurized fluid discharge returned to system.
• Retraction bypass
DCV. Drilling Machine
Application : • Spring centered position – Rapid spindle advance.
• When punching operation begins, increased pressure opens unloading valve to unload low pressure
pump. Counterbalance
Valve : • To keep vertically mounted cylinder in upward position while pump is idling.
• Counterbalance valve is set to open at slightly above the pressure required to hold the piston
up. Hydraulic
Cylinder Sequence Circuit : • Left Env : Left Cyl extends completely and then Right Cyl extend.
• Right Env : Right Cyl retracts fully and then Left Cyl
retracts. Automatic
Cylinder Reciprocating System : • Two sequence valve sensing strokes completion by corresponding
load.
• Question : For the Cylinder Synchronizing Circuit, what pump pressure is required if the
cylinder loads are 22kN each and cylinder 1 has a piston area of 65 cm2?
Ap2 = Ap1 - Ar1.
P3 = 0.
P1Ap1 = F1 + F2.
• When Overload Valve-3 is in spring offset mode, it drains the pilot line of valve 1.
• If Cyl experience excessive resistance, Valve-4 actuates overload valve-3. This drains pilot line
of Valve1, causing it to return to spring offset mode.
• Nothing happen if push button 2 pressed unless overload valve shifted manually into blocked
configuration.
Two hand Safety Circuit :
• For circuit to function, operator must depress both manually actuated valves.
• Provisions should be made for discharge fluid from motor to be returned to Tank.
Q1. Give the sequence of operation of Cylinders 1 and 2 when pump is turned ON. Assume both
Cylinders are initially fully retracted.?
Q2. What Safety feature does the below shown circuit posses in addition to the pressure relief
valve.?
Q3. Assuming two double-rodded cylinders are identical, what unique feature does this circuit
possess? What is the difference if they are single rodded cylinders?
Hydrostatic Transmission :
Introduction :
• It push a fixed amount of fluid into the Hydraulic System per revolution of shaft.
Pumping Theory :
• The pump mechanically pushes the fluid out of the discharge line
Screw Pump :
• Axial flow positive displacement pump. Precision ground screw meshing within closed fitting.
• Each slot contains Vane designed to mate with surface of cam ring.
Cavitation Problem :
• Occurs when suction lift is excessive and the inlet pressure falls below vapour pressure of fluid.
• Air bubbles formed in low pressure inlet region collapsed when reached high pressure
discharge region.
• This produce high velocity explosive forces eroded metallic pump components.
Pump Selection :
Introduction :
• Bernoulli‘s equation & Continuity equation used to perform analysis of Fluid Power System.
• Reynolds number.
• <2000 : LAMINAR.
• >4000 : TURBULENT.
• CRITICAL ZONE.
Friction Losses :
DARCY’s Equation :
• HL = f (L/D)(v2/2g) :
• HL = (64/NR)(L/D)(v2/2g).
• Relative roughness = ε / D :
ε = absolute roughness.
D = Pipe inside diameter.
Moody Diagram :
• Energy losses in valves and fittings such as Tees, Elbows, and Bends.
K-Factor :
• Darcy’s Equation :
• Possible to find a length of pipe that for the same flow rate would produce same head loss as a
valve or fitting.
• K(v2/2g) = f(L/D)(v2/2g).
Problem :
• Find pressure available at inlet to hydraulic motor. The pressure at the oil top surface level in
the hydraulic tank is atmospheric (0 MPa). The head loss HL due to friction between stations 1 &
2 is not given.
Solution :
• V1 = 0, P1/ρ = 0.
• Z2 – Z1 = ?.
• Solve for v2.
• Laminar or Turbulent ?
- Darcy’s equation.
- Calculate L.
- Use Leq for standard elbow, K = 0.9
- Hp = 0.762 (HP)/Q(m3/s).Sg
• Analog Signal :
- Information is assigned point by point to a continuous value range of the signal parameter.
- Example : pressure gauge–each pressure value (information parameter) is assigned a particular display
value (information).
• Digital Signal :
- A digital signal is a signal with a finite number of value ranges of the information parameter. Each value
range is assigned a specific item of information.
- Example: A pressure measuring system with a digital display shows the pressure in increments of 1 bar.
There are 8 possible display values (0 to 7 bar) for a pressure range of 7 bar.
• Binary Signal :
- A binary signal is a digital signal with only two value ranges for the information parameter. These are
normally designated 0 and 1. A control lamp indicates whether a pneumatic system is being correctly
supplied with compressed air.
-> If the supply pressure (= signal) is below 5 bar, the control lamp is off (0 status).
-> If the pressure is above 5 bar, the control lamp is on (1 status). Controllers : • Controllers can be
divided into different categories according to the type of information representation, into analogue,
digital and binary
• In a pneumatic control pneumatic components are used, that is, various types of valves, sequencers,
air barriers, etc.
• In an electro-pneumatic control the signal control section is made up of a electrical components, for
example with electrical input buttons, proximity switches, relays, or a programmable logic controller.
• The directional control valves form the interface between the signal control section and the pneumatic
power section in both types of controller. Pneumatic control system
: Electro-
Pneumatic control system
: Operation
of Electro-pneumatic Controller : • In contrast to a purely pneumatic control system, electropneumatic
controllers are not shown in any single overall circuit diagram, but in two separate circuit diagrams - one
for the electrical part and one for the pneumatic
part. Components
of Electrical Signal Control : Power Supply Unit :
• The signal control section of an electropneumatic controller is supplied with power via the electrical
mains. The controller has a power supply unit for this
purpose. Push
button and control switches :
• Switches are installed in circuits to apply a current to a load or to interrupt the circuit. These switches
are divided into pushbuttons and control switches.
• Control switches are mechanically detented in the selected position. The switch position remains
unchanged until a new switch position is selected. Example : Light switches in the home.
• Push button switches only maintain the selected position as long as the switch is actuated (pressed).
Example : Bell push.
• In the case of a normally open contact, the circuit is open if the switch is in its initial position (not
actuated). The circuit is closed by pressing the push button – current flows to the load. When the
plunger is released, the spring returns the switch to its initial position, interrupting the
• In this case, the circuit is closed when the switch is in its initial position. The circuit is interrupted by
pressing the
pushbutton. Changeover
Contact :
• The changeover contact combines the functions of the normally open and normally closed contacts in
one device.
• Changeover contacts are used to close one circuit and open another in one switching operation.
changeover. Sensor
s for Displacement and Pressure : • Sensors have the task of measuring information and passing this on
to the signal processing part in a form that can easily be processed.
• In electropneumatic controllers, sensors are primarily used for the following purposes :
- To detect the advanced and retracted end position of the piston rod in cylinder drives.
- To detect the presence and position of workpieces.
- To measure and monitor pressure.
• Limit Switch. • A limit switch is actuated when a machine part or workpiece is in a certain position.
Normally, actuation is effected by a cam.
• Limit switches are normally changeover contacts. They can then be connected – as required :
• In contrast to limit switches, proximity switches operated contactlessly (non-contact switching) and
without an external mechanical actuating force.
• As a result, proximity switches have a long service life and high switching reliability. The following
types of proximity switch are differentiated :
1. Reed switch.
2. Inductive proximity switch.
3. Capacitive proximity switch.
4. Optical proximity switch.
Reed Switch :
• Reed switches are magnetically actuated proximity switches. They consist of two contact reeds in a
glass tube filled with inert gas.
• The field of a magnet causes the two reeds to close, allowing current to flow.
• In reed switches that act as normally closed contacts, the contact reeds are closed by small magnets.
This magnetic field is overcome by the considerably stronger magnetic field of the switching magnets.
• Reed switches have a long service life and a very short switching time (approx. 0.2 ms). They are
maintenance-free, but must not be used in environments subject to strong magnetic fields (for example
in the vicinity of resistance
welders). Electronic
Sensors :
• Inductive, optical and capacitive proximity switches are electronic sensors. They normally have three
electrical contacts :
• In these sensors, no movable contact is switched. Instead, the output is either electrically connected to
the supply voltage or to ground(=output voltage 0 V).
There are two types of electronic sensor with regard to the polarity of the output voltage :
• In positive switching sensors, the output voltage is zero if no part is detected in the proximity. The
approach of a workpiece or machine part leads to switchover of the output, applying the supply voltage.
• In negative switching sensors, the supply voltage is applied to the output if no part is detected in the
proximity. The approach of a workpiece or machine part leads to switchover of the output, switching the
output voltage to 0 V. Inductive Proximity Sensor : • An inductive proximity sensor consists of :
- an electrical oscillator(1)
- a flip-flop(2) and
- an amplifier(3).
• When a voltage is applied, the oscillator generates a high-frequency alternating magnetic field that is
emitted from the front of the sensor. If an conducting substance is introduced into this field, the
oscillator is attenuated.
• The downstream circuitry, consisting of a flip-flop and an amplifier, evaluates the behavior of the
oscillator and actuates the output.
• Inductive proximity sensors can be used for the detection of all good electrical conductors (materials).
In addition to metals, these include, for example,
graphite. Capacitive
Proximity Sensor : • A capacitive proximity sensor consists of a capacitor and an electrical resistance that
together form an RC oscillator, and a circuit for evaluation of the frequency.
• An electrostatic field is generated between the anode and the cathode of the capacitor. A stray field
forms at the front of the sensor.
• If an object is introduced into this stray field, the capacitance of the capacitor changes. The oscillator is
attenuated. The circuitry switches the output.
• Capacitive proximity sensors not only react to highly conductive materials (such as metals) but also to
insulators of high dielectric strength (such as plastics, glass, ceramics, fluids and
• Semiconductor light-emitting diodes (LEDs) are particularly reliable sources of red or infrared light.
They are small and rugged, have a long service life and can be simply modulated.
• Red light has the advantage that the light beam can be seen during adjustment of the optical axes of
the proximity switch.
• The one-way light barrier has spatially separate transmitter and receiver units. The parts are mounted
in such a way that the transmitter beam is directed at the receiver. The output is switched if the beam is
interrupted. Reflectiv
e Light barrier :
• In the reflective light barrier, the transmitter and receiver are mounted together in one housing.
• The reflector is mounted in such a way that the light beam transmitted by the transmitter is practically
completely reflected to the receiver. The output is switched if the beam is
interrupted. Diffuse
Reflective Optical Sensor :
• In the diffuse reflective optical sensor, the transmitter and receiver are mounted together in one unit.
• If the light hits a reflective object, it is redirected to the receiver and causes the output of the sensor
to switch. Pressure
Sensors : There are various types of pressure-sensitive sensors :
• In the mechanically actuated pressure switch, the pressure acts on a cylinder surface.
• If the pressure exerted exceeds the spring force of the return spring, the piston moves and operates
• Diaphragm pressure switches are of increasing importance. Instead of actuating a mechanical contact,
the output is switched electronically.
• Pressure or force sensitive sensors are attached to the diaphragm. The sensor signal is evaluated by an
electronic circuit.
• Variable resistor 1 changes its value when pressure is applied to the diaphragm. Via the contacts 2, the
resistor is connected to the electronic evaluating device, which generates the output
signal.
Relays : • A relay
is an electromagnetically actuated switch.
• When a voltage is applied to the solenoid coil, an electromagnet field results. This causes the armature
to be attracted to the coil core.
• The armature actuates the relay contacts, either closing or opening them, depending on the design.
• A return spring returns the armature to its initial position when the current to the coil is
interrupted. • A relay
coil can switch one or more contacts. In addition to the type of relay described above, there are other
types of electromagnetically actuated switch, such as the retentive relay, the time relay, and the
contactor. Retentive Relay :
• The behavior of a retentive relay is analogous to that of a pneumatic double pilot valve, which
responds to pressure pulses.
Time Relay :
• With pull-in delay, the armature is energized after a set delay; drop-out however, is effected without
delay.
• The reverse applies in the case of the drop-out delay relay. Pull in Delay Time Relay
: Drop out Delay Time
Relay : Contactors : • A
contactor has multiple switching elements, normally four to ten contacts.
• For contactors – as for relays – there are various types with combinations of
• Contactors that only switch auxiliary contacts (control contacts) are called contactor relays.
• Contactors with main and auxiliary contacts are called main or power
contactors.
• Contactors are used for the following applications :
• In electropneumatic controllers, electrical currents and power are low. For this reason, they can be
implemented with auxiliary contactors. Main or power contactors are not required.
Electropneumatics
Electrically Actuated DCV
• Electrically actuated directional control valves form the interface between the two parts of an
electropneumatic control.
• They are switched by the output signals of the signal control section and open or close
connections in the power section.
• The most important tasks of electrically actuated directional control valves include :
• The electrical circuit diagram of a control system shows how the electrical control components
are interconnected and how they interact.
• Depending on the task definition, the following types of circuit diagram are used :
1. Overview diagram.
2. Function diagram.
3. Circuit diagram.
Overview diagram :
Function diagram :
Circuit diagram : A Circuit diagram shows the details of the design of systems, installations,
apparatus etc. It contains :
• Equipment identifiers.
• Terminal identifiers.
• Other details necessary for tracing the paths (signal identifiers, notes on the representation
location).
• If distributed representation is used for a circuit diagram, the various components of a device
may be drawn at different locations.
• The normally closed and normally open contacts of a relay, for example, can be distributed
throughout the circuit diagram as appropriate.
• A circuit diagram with distributed representation is used to represent the signal control section
in electropneumatics.
Electrical Symbols :
• Graphical symbols for contacts : basic functions.
• In the circuit diagram of an electropneumatic control system the graphical symbols of the
components required to implement logic circuits and sequences are entered consecutively from
the top to the bottom and from left to right.
• Relay coils and valve coils are always drawn beneath the contacts.
Current Paths :
• The individual current paths of an electropneumatic control system are drawn alongside each
other in the circuit diagram and numbered consecutively.
• The circuit diagram of an electropneumatic control system shown in Figure on next slide has 10
current paths.
• Current paths 1 to 8 belong to the control circuit, current paths 9 and 10 to the main circuit.
Identification of Components :
• The components in the circuit diagram of a control system are identified by a letter in
accordance with following Table.
• Components with identical identifying letters are assigned consecutive numbers (for example
1S1, 1S2 etc.).
• In order to ensure error-free wiring of contacts, all connections on a component and in the
circuit diagram are identified in the same way.
• Each connection of a contact is assigned a function number. The function numbers for different
types of contact are listed in Table on next slide.
• If a switch, relay or contactor has more than one contact, they are numbered by means of
sequence numbers prefixed to the function number.
• All contacts actuated by a relay coil or contactor coil are listed in a contact element table.
• The contact element table is placed beneath the current path containing the relay coil.
There are a total of 4 contact element tables in the Example circuit diagram :
• The electrical circuit diagram is shown in the de-energized state (electric power supply
switched off).
• If limit switches are actuated in this position, they are identified by an arrow.
• The large number of components and the distances between them make wiring a significant
cost factor in an electropneumatic control system.
• Sensors are frequently mounted in parts of an installation that are difficult to access.
• Signal processing equipment (relays, programmable logic controllers) are usually located in a
control cabinet. To an increasing extent, however, PLCs are also now being integrated into valve
terminals.
• Control elements are either mounted directly in the front of the control cabinet or the system is
operated via a separate control console.
• Electrically actuated directional control valves are mounted in blocks in the control cabinet, in
blocks on valve terminals or individually in the vicinity of the drive units.
The wiring of an electropneumatic control system must satisfy the following requirements :
Cost-effective design :
• Use of components which allow speedy wiring while maintaining a good price/performance
ratio, optimization of the circuit diagram in terms of wiring expense, use of components with
reduced number of terminals.
Simple troubleshooting :
• Terminal allocations are documented in a terminal connection diagram. This consists of two
parts :
• In the circuit diagram, each terminal is represented by a circle. The terminals are identified by
the letter X, and are numbered consecutively in sequence within the terminal strip (terminal
designation X1, X2 etc. for example).
• If there is more than one terminal strip, each strip is also assigned a sequence number
(terminal designation X2.6, for example, for the 6th terminal of terminal strip 2).
• The basis to produce the terminal connection diagram is the circuit diagram with no terminal
allocations shown.
1. Allocation of terminal numbers and drawing the terminals in the circuit diagram.
2. Compilation of the terminal allocation list(s).
Circuit
Allocation of Terminal Number :
• The terminal numbers are allocated in ascending order and marked on the circuit diagram.
• The allocation procedure between the circuit diagram and terminals comprises three stages :
1. Power supply for all current paths (terminals X1-1 to X1-4 in the circuit diagram).
2. Ground connection for all current paths (terminals X1-5 to X1-8 in the circuit diagram).
3. Connection of all components situated outside the control cabinet, according to the following
system :
• In the circuit diagram, the components are allocated to terminals X1-9 to X1-17.
Terminal Allocation List :
Entries are made in the terminal allocation list in the following steps :
1. Enter the component and connection designations of the components outside the control
cabinet (on the left-hand side of the terminal allocation list).
2. Enter the component and connection designations of the components inside the control
cabinet (on the right-hand side of the terminal allocation list).
3. Draw any required jumpers (in the example: terminals X1-1 to X1-4 for 24 V supply voltage,
X1-5 to X1-8 for supply ground).
The structure of a terminal allocation list is based on the design of the terminal strip.
Accordingly, an electropneumatic control system can largely be wired up on the basis of the
terminal allocation list :
1. All lines running to components outside the control cabinet are connected in accordance with
the list on the left-hand side of the terminal strip.
2. All lines running to components inside the control cabinet are connected in accordance with
the list on the right-hand side of the terminal strip.
• Now a days programmable logic controllers(PLCs) are commonly used for signal processing instead of
relay control systems.
• Relays are still used in modern control systems however, for example in an EMERGENCY STOP
switching device.
• The principal advantages of relay control systems are the clarity of their design and the ease of
understanding their mode of operation. Direct and Indirect Control : Direct Control :
• The piston rod of a single-acting cylinder is to be extended when pushbutton S1 is pressed and
retracted when the pushbutton is released.
Indirect Control :
• If the pushbutton is pressed in an indirect control system, current flows through the relay coil. Contact
K1 of the relay closes, and the directional control valve switches. The piston rod advances. Direct Control
of Single Acting Cylinder : • The electrical circuit diagram for direct control of a single-acting cylinder is
- The aim is to be able to trigger extend of the piston rod of a cylinder with two different input elements,
pushbuttons S1 and S2.
- The contacts of the two pushbuttons S1 and S2 are arranged in parallel in the circuit diagram. Parallel
(OR Circuit) : Logic
Operations : • Series Connection (AND Circuit) :
- In this case the piston rod of a cylinder is to be advanced only if both pushbuttons, S1 and S2, are
pressed.
- The contacts of the two pushbuttons are arranged in series in the circuit diagram Series (AND Circuit)
: Representation of Logic in
Tabular Form : • The OR and AND operations are shown in summarized form in Tables.
• The following values are assigned to the signals in the three right-hand columns :
advances.
Signal Storage : • In
the circuits that we have looked at so far, the piston rod only advances as long as the input pushbutton
is actuated. If the pushbutton is released during the advancing movement, the piston rod is retracted
without having reached the forward end position.
• In practice it is usually necessary for the piston rod to be fully advanced even if the pushbutton is
pressed only briefly.
• To achieve this, the directional control valve must remain in the actuated position when the
pushbutton is released; in other words, actuation of the pushbutton must be stored.
• A double solenoid valve maintains its switching position even when the associated solenoid coil is no
longer energized. It is used as a storage element.
• The piston rod of a cylinder is to be controlled by brief actuation of two pushbuttons (S1: advance, S2:
retract). Automatic Return
Stroke : • The aim is for the piston rod of a double-acting cylinder to be advanced when pushbutton S1
is actuated.
• When the forward end position is reached, the piston rod is to return automatically.
• The prerequisite for the return movement is that pushbutton S1 must first have been
released. Oscillating
Movement : • The piston rod of a cylinder is to advance and retract automatically as soon as control
switch S1 is actuated.
• When the control switch is reset, the piston rod is to occupy the retracted end
position. Relay
Circuit with Latching : • When the "ON" pushbutton is actuated in the circuit, the relay coil is energized.
The relay is energised, and contact K1 closes.
• After the "ON" pushbutton is released, current continues to flow via contact K1 through the coil, and
the relay remains in the actuated position.
• The "ON" signal is stored. This is therefore a relay circuit with latching
function. Dominant ON :
• When the "OFF" pushbutton is pressed the flow of current is interrupted and the relay becomes
deenergised.
• If the "ON" and "OFF" pushbuttons are both pressed at the same time, the relay coil is energized.
• When the "OFF" pushbutton is pressed the flow of current is interrupted and the relay becomes
deenergised.
• If the "ON" and "OFF" pushbuttons are both pressed at the same time, the relay coil is energized.
Comparison Of Signal
Storage Circuit : • Signal storage can be effected by means of :
• The various circuits behave differently in response to the simultaneous presence of a setting and
resetting signal, and in the event of failure of the electrical power supply or a wire
break
• This is the case for the drive of a pressing device, for example, which presses two workpieces together
until the adhesive has set.
• Time relays with delayed switch-on or switch-off are used for tasks such as these. Control of Cylinder
with Timing : • When pushbutton S1 is pressed momentarily, the piston rod of a cylinder is to advance,
subsequently remain at the forward end position for ten seconds and then automatically
return. Sequenc
e control with signal storage by double solenoid valves : • The positional sketch of a feeding device is
shown in Figure.
• The end positions of the two cylinder drives 1A and 2A are detected by the positive switching inductive
proximity switches 1B1 and
Step 1 : The piston rod of cylinder 1A advances. The workpiece is pushed out of the magazine.
Step 2 : The piston rod of cylinder 2A advances. The workpiece is fed to the machining station.
• The electronic proximity switches used here do not have contacts; instead they generate an output
signal by means of an electronic circuit.
• Each sensor output signal therefore acts on the coil of a relay, which in turn switches the necessary
contact or contacts. Sensor Evaluation
: First Sequence Step : • The
following preconditions must be satisfied before the sequence is started :
1. Piston rod of cylinder 1A in retracted end position (proximity switch 1B1 and relay K1 actuated).
2. Piston rod of cylinder 2A in retracted end position (proximity switch 2B1 and relay K3 actuated).
3. START pushbutton (S5) actuated.
• If all of these conditions are met, relay coil K6 is energised. Solenoid coil 1Y1 is actuated, and the
piston rod of cylinder 1A
advances. Second
Sequence Step : • When the piston rod of cylinder 1A reaches the forward end position, sensor 1B2
responds. The second step of the sequence is activated. Solenoid coil 2Y1 is actuated, and the piston rod
of drive 2A
advances. Third
Sequence Step : • When the piston rod of cylinder 2A reaches the forward end position, sensor 2B2
responds. The third step of the sequence is activated. Solenoid coil 1Y2 is actuated, and the piston rod of
drive 1A
retracts. Fourth
Sequence Step : • When the piston rod of cylinder 1A reaches the retracted end position, sensor 1B1
responds. The fourth step of the sequence is activated. Solenoid coil 2Y2 is actuated, and the piston rod
of drive 2A
retracts. Cir
cuit for Control Elements : • Important control elements such as a main switch and EMERGENCY STOP
switch are missing.
• Control switches(latching-type switches) must be used for switching on electrical power and for the
EMERGENCY STOP function.
• All other control elements may take the form of either pushbuttons (momentary-contact switches) or
control switches.
"Manual"
"Reset"
"Automatic"
"Single cycle Start" are implemented as pushbuttons. Feeding Device with Control Elements
: Main
Switch :
• When the main switch is closed, relay K1 is energised. Voltage is supplied to the signal control section
and the entire system via contact K1.
Emergency Stop :
• If the EMERGENCY STOP switch is actuated, relay K2 is de-energized and the associated contacts
switch to the normal position.
• The EMERGENCY STOP line is connected to the supply voltage via the normally closed contact of K2.
Warning lamps can be actuated via this line, for example.
• The "EMERGENCY STOP released" line is de-energized, causing the voltage supply to the signal control
section to be interrupted. As long as EMERGENCY STOP applies, all control elements except the main
switch are rendered inoperative.
Manual Operation :
• When the "Manual" pushbutton is actuated, relay K4 picks up and latches. The line marked "Manual"
in the circuit diagram is connected to the supply voltage.
• If relay K3 is latched, the latching is released. The line marked "Automatic" is disconnected from the
supply voltage.
Automatic Operation :
• When the "Automatic" pushbutton is actuated, relay K3 is energised and latches. The line marked
"Automatic" in the circuit diagram is connected to the supply voltage.
• If relay K4 is latched, the latching is released, and the line marked "Manual" is disconnected from the
supply voltage.
• Continuous cycle ON
- These functions are only possible in automatic mode. Electrical power is therefore supplied to the
associated contacts and relays via the line marked "Automatic". Automatic Operation : • If "Automatic"
mode is selected (relay K3 latched) and "Continuous cycle ON" is active (relay K5 latched), the control
system runs in continuous operation.
• Actuating the "Continuous cycle OFF" pushbutton releases the latching of relay K5. The program-
controlled sequence stops as soon as the last step in the sequence is completed.
• When the "Single cycle Start" pushbutton is actuated, the sequence (movement cycle) is executed
once only. Design of a
Lifting Device : • A lifting device transfers workpieces from one roller conveyor to another at a different
height.
• A positional sketch of the lifting device is shown in Figure. There are three pneumatic drives :
- To prevent the possibility of secondary damage, in the event of an electrical power failure the piston
rods of cylinders 1A and 2A are to be braked immediately and remain at a standstill.
- The piston rod of the stopper cylinder 3A is meant to extend in these circumstances. Movement Cycle
: Operator
Control : • The control system of the lifting device must enable the device to be run in a continuous
cycle (continuous operation).
• A single cycle operating mode is also necessary in which the sequence is processed precisely
once. Operator Control Panel
: Operating Functions
: The following operating functions are specified for lifting device :
• "EMERGENCY STOP" : When this is actuated, not only the electrical power supply, also the pneumatic
power supply must be shut down.
• "Reset" : This returns the system to the initial position, i.e. the piston rods of cylinders 1A and 2A
retract, the piston rod of cylinder 3A extends.
• "Continuous cycle OFF" : This stops the continuous cycle process. If there is already a workpiece in the
device, it is transferred to the upper roller conveyor. The piston rods of cylinders 1A and 2A retract. The
device is subsequently in its initial position. Electrical Circuit : • Design of a relay control system with
clearly defined requirements as to operator control, operational performance and behavior in the event
of a fault.
1. Power supply.
2. Sensor evaluation.
3. Operator control.
4. Program-controlled sequence.
5. Wiring of solenoids. Flow Chart
: Main Switch &
EMERGENCY Stop : • Simplified Emergency Control.
B5 Manual
and Reset Control
: • If "Manual"
mode is selected (relay K4 latched) and the "Reset" pushbutton (S5) is pressed, relay K12 is then latched.
The reset process is ended when the piston rods of the cylinders assume the following positions :
Cylinder 3A: forward end position(sensor 3B1 responds, relay K11 actuated).
• When all three of these conditions are met, the latching of relay K12 is released via normally closed
contacts K6, K8 and K11. Automatic Cycle : Automatic :
• Continuous cycle ON
• Continuous cycle
OFF Reset
Sequencer with Latching Relays : Stepped Sequence implementation :
• The movement process is made up of four steps. Relays K13 (step 1) to K16 (step 4) are assigned to
these four
steps.
Sc
hematic Design of Step Sequence
: Interlocki
ng of Steps : • If the preceding step is set (in this case: step 1, normally open contact of relay K13 closed)
and the other setting conditions for step 2 are satisfied :
• The second step in the sequence is now set, and the first step deactivated Step Enabling
Conditions: • None of the step can be set unless the relay in the preceding step
actuated. R
elay Circuit Step -1 : • To allow the first movement step to be activated, the following conditions must
be satisfied :
• If all of these conditions are satisfied, relay K13 is latched and the first step is
active. First to Second Step : • If optical
sensor B5 responds while the first step is active, the setting condition for the second step is satisfied.
• The step is activated by actuation of relay K14. Relay K14 is latched, and the latching of relay K13 is
released by the normally closed contact K14. Third to Fourth Step : • If proximity switch 1B2 responds
while the second step is active, relay K15 is latched.
• When the system is switched to automatic mode, therefore, relay coil K16 is actuated via the
"Automatic" line and normally closed contact K17.
• Relay K16 is latched. Current flows through the coil of relay K17 via a normally open contact of K16,
and relay K17 is also latched.
• No more current flows through the normally closed contact of K17. Relay Circuit Diagram
: Main Circuit
: • The solenoid coils of the directional control valves are actuated with the main circuits.
• There are 6 coils altogether. To allow power to be supplied to the coils, the main switch must be in
position 1 and the EMERGENCY STOP device must not have been actuated.
• The compressed air is connected via relay K18 in order to prevent the pneumatic drives from moving
before the relays have assumed a defined position.
: Solenoid
Wiring : List of
Relays : List of
Control Elements
: Control
Elements
: S
ensor Evaluation
: Sequ
ence Step Switching
: S
olenoid Circuit
• The PLC works by looking at its inputs and depending upon their state, turning on/off its outputs. The
user enters a program, usually via software, that gives the desired results. PLC Example : • Let's assume
that when a switch turns on we want to turn a solenoid on for 5 seconds and then turn it off regardless
of how long the switch is on for.
• We can do this with a simple external timer. But what if the process included 10 switches and
solenoids? We would need 10 external timers. What if the process also needed to count how many
times the switches individually turned on? We need a lot of external counters. PLC - need : • The bigger
the process the more is need for a PLC.
• Simply program the PLC to count its inputs and turn the solenoids on for the specified time.
• The primary reason for designing PLC was eliminating the large cost involved in replacing the
complicated relay based machine control systems. Inside PLC : • The PLC mainly consists of :
- A CPU,
- Memory areas, and
- Appropriate circuits to receive input/output data.
• We can actually consider the PLC to be a box full of hundreds or thousands of separate relays,
counters, timers and data storage
• INTERNAL UTILITY RELAYS-(contacts) : These do not receive signals from the outside world nor do
they physically exist. They are simulated relays and are what enables a PLC to eliminate external relays.
There are also some special relays that are dedicated to performing only one task. Some are always on
while some are always off. Some are on only once during power-on and are typically used for initializing
data that was stored.
• COUNTERS : These again do not physically exist. They are simulated counters and they can be
programmed to count pulses. Typically these counters can count up, down or both up and down.
• TIMERS : These also do not physically exist. They come in many varieties and increments. The most
common type is an on-delay type. Others include off-delay and both retentive and non-retentive types.
Increments vary from 1ms through 1s.
• OUTPUT RELAYS-(coils): These are connected to the outside world. They physically exist and send
on/off signals to solenoids, lights, etc. They can be transistors, relays, or triacs depending upon the
model chosen.
• DATA STORAGE : Typically there are registers assigned to simply store data. They are usually used as
temporary storage for math or data manipulation. They can also typically be used to store data when
power is removed from the PLC. Upon power-up they will still have the same contents as before power
was removed. PLC Operation : • A PLC works by continually scanning a program. We can think of this
scan cycle as consisting of 3 important steps. • Step 1-CHECK
INPUT STATUS : First the PLC takes a look at each input to determine if it is on or off. In other words, is
the sensor connected to the first input on? How about the second input? How about the third... It
records this data into its memory to be used during the next step.
• Step 2-EXECUTE PROGRAM : Next the PLC executes program one instruction at a time. Maybe
program said that if the first input was on then it should turn on the first output. Since it already knows
which inputs are on/off from the previous step it will be able to decide whether the first output should
be turned on based on the state of the first input. It will store the execution results for use later during
the next step.
• Step 3-UPDATE OUTPUT STATUS : Finally the PLC updates the status of the outputs. It updates the
outputs based on which inputs were on during the first step and the results of executing your program
during the second step. Based on the example in step 2 it would now turn on the first output because
the first input was on and your program said to turn on the first output when this condition is true. After
the third step the PLC goes back to step one and repeats the steps continuously. One scan time is
defined as the time it takes to execute the 3 steps listed above. PLC - Response : • The total response
time of the PLC is a fact we have to consider when purchasing a PLC.
• PLC takes a certain amount of time to react to changes. In many applications speed is not a concern, in
• But what if it was not possible for the input to be on this long? Then the plc doesn't see the input
turn on. Pulse Stretch Function :
• This function extends the length of the input signal until the plc looks at the inputs during the next
• This function interrupts the scan to process a special routine i.e. As soon as the input turns on,
regardless of where the scan currently is, the PLC immediately stops what its doing and executes an
interrupt routine.
• An interrupt routine can be thought of as a mini program outside of the main program. After its done
executing the interrupt routine, it goes back to the point it left off at and continues on with the normal
• Now lets see How a relay actually works. After all, the main purpose of a PLC is to replace "real-world"
relays.
• Apply a voltage to the coil and a magnetic field is generated. This magnetic field sucks the contacts of
the relay in, causing them to make a connection.
• These contacts can be considered to be a switch. They allow current to flow between 2 points thereby
• We have 3 real-world parts : A switch, a relay and a bell. Whenever the switch closes we apply a
current to a bell causing it to sound. Replacing Relays : • Lets use a PLC in place of the relay.
• The first thing that's necessary is to create what's called a Ladder Diagram.
• We have to create one of these because, unfortunately, a PLC doesn't understand a schematic diagram
it only recognizes code.
• Most PLCs have software which convert ladder diagrams into code. Ladder Diagram : • First Step
: Translate all of the items we're using into symbols the PLC understands.
• Second step : We must tell the PLC where everything is located. In other words we have to give all the
devices an address.
• Final step : We have to convert the schematic into a logical sequence of events.
First Step : • The PLC doesn't understand terms like switch, relay, bell, etc.
• It doesn't care what the actual input or output device actually is. It only cares that its an input or an
output.
• First we replace the battery with a symbol. This symbol is common to all ladder diagrams. We draw
what are called bus bars.
• These simply look like two vertical bars. One on each side of the diagram. Think of the left one as being
+ voltage and the right one as being ground. Further think of the current (logic) flow as being from left
to right.
• Next we give the inputs a symbol. In this basic example we have one real world input. (i.e. the switch).
• We give the input that the switch will be connected to the symbol shown below. This symbol can also
be used as the contact of a relay. • Next we give the outputs a symbol. In this
example we use one output (i.e. the bell).
• We give the output that the bell will be physically connected to the symbol shown below. This symbol
• Where is the switch going to be physically connected to the PLC? How about the bell? We start with a
blank road map in the PLCs town and give each item an address.
• Could you find your friends if you didn't know their address? You know they live in the same town but
which house? The plc town has a lot of houses (inputs and outputs) but we have to figure out who lives
where (what device is connected where).
• We'll get further into the addressing scheme later. The PLC manufacturers each do it a different way!
For now let's say that our input will be called "0000". The output will be called "500". Final Step
: • Convert the schematic into a logical sequence of events.
• The program we're going to write tells the PLC what to do when certain events take place.
• In our example we have to tell the plc what to do when the operator turns on the
• We eliminated the real world relay from needing a symbol. Basic Instructions : Load :
• The load(LD) instruction is a normally open contact. It is sometimes also called examine if on (XIO).(as
in examine the input to see if its physically on). The symbol for a load instruction is shown
• When the physical input is on we can say that the instruction is True.
• We examine the input for an on signal. If the input is physically on then the symbol is on.
• When the physical input is off we can say that the instruction is True.
• We examine the input for an off signal. If the input is physically off then the symbol is
• The Out instruction is sometimes also called an Output Energize instruction. The output instruction is
like a relay coil. Its symbol looks as shown below. • When there is
a path of True instructions preceding this on the ladder rung, it will also be True.
• The Outbar instruction is like a normally closed relay coil. Its symbol looks like that shown
• Each rung must contain one or more inputs and one or more outputs.
• The first instruction on a rung must always be an input instruction and the last instruction on a rung
should always be an output (or its equivalent).
• Notice in this simple one rung ladder diagram we have recreated the external circuit above with a
ladder diagram.
• Some manufacturers require that every ladder diagram include an END instruction on the last rung.
Some PLCs also require an ENDH instruction on the rung after the END rung.
• Next we'll trace the registers PLC Registers : • In Previous
example change switch 2 (SW2) to a normally closed symbol (loadbar instruction).
• SW1 will be physically OFF and SW2 will be physically ON initially. The ladder diagram now looks like
• This address sets aside a certain storage area in the PLCs data files so that the status of the instruction
(i.e. true/false) can be
stored. A Level
Application : • We are controlling lubricating oil being dispensed from a tank.
• We put one near the bottom and one near the top, as shown in the picture.
Here, we want the fill motor to pump lubricating oil into the tank until the high level sensor turns on. At
that point we want to turn off the motor until the level falls below the low level sensor. Then we should
turn on the fill motor and repeat the
process. Here we have a need for 3 I/O (i.e.
Inputs/Outputs) :
• Both of our inputs will be NC (normally closed) fiber-optic level sensors. When they are NOT immersed
in liquid they will be ON. When they are immersed in liquid they will be
• After 100 scans the oil level rises above the low level sensor and it becomes open. (i.e.
• After 2000 scans the oil level falls below the low level sensor and it will also become true again.
• At this point the logic will appear the same as SCAN 1 above and the logic will repeat as illustrated
above. Latch
Instruction : • The latching instructions let us use momentary switches and program the plc so that
when we push one the output turns on and when we push another the output turns off.
• Picture the remote control for your TV. It has a button for ON and another for OFF :
• I don't have to keep pushing the ON button to keep the TV on. This would be the function of a latching
instruction.
• The unlatch instruction is often called a RES (reset), OUT (output unlatch) or RST (reset). The diagram
below shows how to use them in a program. Here we are using 2
momentary push button switches. One is physically connected to input 0000 while the other is
physically connected to input 0001. When the operator pushes switch 0000 the instruction "set 0500"
will become true and output 0500 physically turns on. Even after the operator stops pushing the switch,
the output (0500) will remain on. It is latched on. The only way to turn off output 0500 is turn on input
0001. This will cause the instruction "res 0500" to become true thereby unlatching or resetting output
• To answer this question we have to think about the scanning sequence. The ladder is always scanned
from top to bottom, left to right.
• Starting from the top left, input 0000 is true therefore it should set 0500.
• Next it goes to the next rung and since input 0001 is true it should reset 0500.
• The last thing it said was to reset 0500. Therefore on the last part of the scan when it updates the
outputs it will keep 0500 off. (i.e. reset 0500). Counters : • A counter is a simple device intended to do
one simple thing - count.
• There are up-counters(they only count up 1,2,3...). These are called CTU,(count up) CNT,C, or CTR.
• There are down counters(they only count down 9,8,7,...). These are typically called CTD (count down).
• Where the pulses that we want to count are coming from. Typically this is from one of the inputs.(a
sensor connected to input 0000 for example).
• How many pulses we want to count before we react. Let's count 5 widgets before we box them, for
example.
• When/how we will reset the counter so it can count again. After we count 5 widgets lets reset the
- One goes before the reset line. When this input turns on the current (accumulated) count value will
return to zero.
- The second input is the address where the pulses we are counting are coming from.
• Cxxx is the name of the counter. If we want to call it counter 000 then we would put "C000" here.
Timers : • TIMER : It
is an instruction that waits a set amount of time before doing something.
On-Delay Timer :
• After sensor (input) turns ON, wait x-seconds before activating a solenoid valve(output).
• This is the most common timer. It is often called TON(timer on-delay), TIM(timer) or TMR(timer).
Off-Delay Timer :
• When the sensor no longer sees the target it hold the solenoid on for x-seconds before turning it off.
- Typically this is one of the inputs,(a sensor connected to input 0000 for example).
• When it ticks yyyyy (the preset value) times, it will turn on its contacts that we will use later in the
program.
• Timer T000 (a 100ms increment timer) starts ticking. It will tick 100 times. Each tick (increment) is
100ms so the timer will be a 10000ms (i.e. 10 second) timer.
• When 10 seconds have elapsed, the T000 contacts close and 500 turns on.
• When input 0001 turns off (false) the timer T000 will reset back to 0 causing its contacts to turn off
(become false) thereby making output 500 turn back off. One Shot : • A one-shot is used to make
something happen for ONLY 1 SCAN.
• Most manufacturers have one-shots that react to an off to on transition and a different type that
reacts to an on to off transition.
• An emergency stop switch typically is a big red button on a machine that will shut it off in cases of
emergency.
• The master control instruction typically is used in pairs with a master control reset.
• Timers should not be used inside the MC/MCR block. MCR in Ladder Diagram
• If input 0000 is not true the plc pretends that the logic between the MC and MCR instructions does not
exist. Shift Registers : • To store many previous events and act upon them later.
• We use a register or group of registers to form a train of bits (cars) to store the previous on/off status.
Each new change in status gets stored in the first bit and the remaining bits get shifted down the train.
• SFT (ShiFT), BSL (Bit Shift Left), SFR (Shift Forward Register).
• BSR (Bit Shift Right) and SFRN (Shift Forward Register Not).
Symbol needs 3 inputs and has some data inside the symbol : 1000: First Bit, 1003 : Last Bit. • Data
: The data input gathers the true/false statuses that will be shifted down the train. When the data input
is true the first bit (car) in the register (train) will be a 1. This data is only entered into the register (train)
on the rising edge of the clock input.
• Clock : The clock input tells the shift register to "do its thing". On the rising edge of this input, the shift
register shifts the data one location over inside the register and enters the status of the data input into
the first bit. On each rising edge of this input the process will repeat.
• Reset : The reset input does just what it says. It clears all the bits inside the register we're using to
0. Shift Registers - Application : • Imagine an ice-cream cone machine. We have 4 steps :
• If the cone is broken we obviously don't want to add ice cream and the other items. Therefore we
have to track the bad cone down our process line so that we can tell the machine not to add each item.
• We use a sensor to look at the bottom of the cone (input 0000). If its on then the cone is perfect and if
its off then the cone is broken.
• An encoder tracks the cone going down the conveyor. (input 0001). A push button on the machine will
clear the register. (input
0002).
: As the conveying
system moves on, another cone comes in front of the sensor. This time it's a broken cone and the
sensor remains off. Now the encoder generates another pulse. The old status of bit 1000 is transferred
to bit 1001. The old status of 1001 shifts to 1002. The old status of 1002 shifts to 1003. And the new
status of the data input (cone sensor) is transferred to bit 1000. The register now looks like
• Since 1002 now holds the status of a broken cone, 501 remains off in the ladder above and no peanuts
are put onto this cone.
• Since the register shows that 1001 is now on the ladder says that output 0500 will turn on and ice
cream is put in that cone. As the conveying system continues to move on, another cone comes in front
of the sensor. This time it's another broken cone and the sensor turns off. Now the encoder generates
another pulse.
The old status of bit 1000 is transferred to bit 1001.
The old status of 1001 shifts to 1002.
The old status of 1002 shifts to 1003.
And the new status of the data input (cone sensor) is transferred to bit 1000.
The register now looks like
• The shift register is most commonly used in conveyor systems, labeling or bottling applications,
etc. Programming Languages : • IEC 61131-3 defines FIVE programming languages for PLC.
- Two sensors are used to establish whether a work piece with correctly drilled holes is available at the
machining position.
- If the valve to be machined is of type A or type B (set via two selector switches).
- The cylinder advances and presses the sleeve in to the drilled hole. Ladder Diagram (LD) : • Graphical
Programming language derived from the circuit diagram of directly wired relay
controls. Functional
Block Diagram (FBD) : • Functions and function blocks are represented graphically and interconnected
into networks.
diagrams. Instructio
n List (IL) : • Textual Assembler-type language.
• Program :
-> Functions.
-> Function blocks.
• Designation of resources :
-> Inputs I.
-> Outputs Q.
-> Memory M.
• Data types :
• Multiple resources :
-> I1 Input 1.
-> I15 Input 15.
-> QW3 Output Word 3.
-> MB5 Memory Byte 5.
-> Boolean: 0, 1.
• Representation of Strings :
->‘B’ character.
• Data Types :
-> BOOL
-> REAL
-> TIME
-> STRING
-> BYTE
-> WORD
-> Resources.
-> Programs.
-> Functions.
• All variable declaration starts with a keyword, which designate position of variable and end with
keyword END_VAR
VAR
Temp : INT;
Hand : BOOL;
END_VAR
VAR
END_VAR PROGRAM : • Program for a controller is divided into individual organization units at the
programming level :
-> Programs.
-> Function blocks.
-> Functions. Functions : • Function are software modules which, when invoked provide exactly one
result.
OR.
• Standard Functions :
• The status information of the function block copy remains intact from one processing to the next.
• Example : Counters, Timers.
• CTU : incremental
• TP – Pulse.
• F_TRIG – Edge detection: falling edge. Programs : • Consists of any language elements.
• Constructs necessary instructions to achieve the desired machine or process behavior by PLC.
-> The stairwell light is switched ON for 3 min, if one of the two light switches on the apartment door or
the front door is
activated. Timers
: • IEC 61131-3 defines 3 types of timer function blocks :
duration.
TP Pulse Timer Example
: • Pressing of the start button S2 is to cause the piston of a cylinder to advance. This mechanism is used
to clamp workpieces.
• When the piston advance fully, it is to remain in this position for 20 seconds.
• After the start via a 1-signal at input IN, output Q does not assume value 1 until the time specified at
input PT has expired, and retains this until input signal IN returns to 0.
• If the duration of input signal IN is shorter than the PT, the value of output remains at
0.
TON Example : • Cylinder
1A1 extends, if start button S1 is actuated.
• Once this has been extended for 2s, a second cylinder 2A1 move to its forward end position.
• Sensors 1B1 and 1B2 indicates the retracted and the forward end positions of cylinder
• After the input signal IN has reverted to the value 0, the output remains at 1 for the duration PT and
does not return to 0 until it
expired.
• The value in the counter is incremented by 1 with each positive edge at counter input CU (count up).
• As soon as current value is equal to or greater than the preset value, the output value assumes value
• 15 parts are to be ejected in this way. When 15 parts have been ejected, it should no longer be
possible to trigger a cylinder movement via push button S1. First the counter must be reset by actuating
push button
• During normal operation, each positive edge at input CD (count down) reduces the counter reading.
• Output Q of function block CTD is 0, until the counter reading CV becomes less than or =
• The position of cylinder is signaled via the sensors 1B1 (retracted) and 1B2 (extended).
• When 10 strokes have been executed this way, lamp H1 is illuminated and the counter has expired.
• The counter must be re-loaded with the preset value, before any cylinder movements can be executed
further. This is affected by means of actuating push button S2. Automation Control Systems
: Automation control systems :
• These control systems are used in manufacturing plants of all types, and some other applications that
you may not have considered.
• The control systems are built around special devices, designed to operate industrial machines, and
processes. We call these devices Programmable Logic Controllers (PLC) and Programmable Automation
• An analogy can be made between the VHS video tape, and a DVD. Both systems allow viewers to
record TV programs for viewing at a latter time, but the DVD also can also be used to record music, data,
and more.
• PLCs were designed to control machinery. PACs can be used for machine control, process, motion
control, and other applications. • We will use the
term PLC generically to refer to both PLCs, and PACs.
• This section will explore the various components that comprise a PLC
• Chassis or backplane.
• Power supply.
In addition to these 5, most PLCs also have : A network interface. Let’s look at each in more detail..
• Input modules convert electrical signals coming in from input field devices such as pushbuttons, to
electrical signals that the PLC can understand.
• Output modules take information coming from the PLC and convert it to electrical signals the output
field devices can understand, such as a motor starter, or a hydraulic solenoid valve.
forms. • Input
modules interface directly to devices such as switches and temperature sensors.
• Input modules convert many different types of electrical signals such as 120VAC, 24VDC, or 4-20mA, to
signals which the controller can
understand. • Input
modules convert real world voltage and currents to signals the PLC can understand. Since there are
different types of input devices, there is a wide variety of input modules available, including both digital
and analog
• Analog Modules use words to represent the state of a device. An analog signal represents a value.. For
example, the temperature could be 5, 9, 20, 100, etc degrees. Analog modules use a value, such as 52,
rather than a 0 or 1 to represent the state of the
device. Discrete Modules :
• Devices that are either on or off, such as a pushbutton, get wired to discrete modules. Discrete
modules come in a variety of types, such as 24VDC or 120VAC. You can buy discrete modules that allow
you to typically connect anywhere from 2 to 32 devices, with the most popular being 16 devices.
• Since it takes only 1 bit to represent the state of a device, a 16 point discrete module only requires 16
bits of memory in the controller to store the states of all the points on the module. Analog Modules :
• Devices that have a number associated with them, such as a temperature sensor, get wired
to analog modules. Analog modules come in a variety of types, such as 4 to 20 mA or 0 to 10 VDC. You
can buy analog modules that allow you to connect anywhere from 2 to 16 devices.
• Since it takes 1 word to represent a number, a 16 point analog module requires 16 words of memory
in the controller to store the value of all the numbers on the module. Each word in a PLC takes 16 or 32
bits (depending on the PLC), therefore it takes 16 or 32 times the amount of PLC memory to store analog
points vs. digital points. Output Modules : • Output modules interface directly to devices such as motor
starters and lights.
• Output modules take digital signals from the PLC and convert them to electrical signals such as 24VDC
and 4 mA that field devices can
understand. • Outp
ut modules take a signal from a PLC and convert it to a signal that a field device needs to operate. Since
there are different types of output devices, there is a wide variety of output cards available, including
both digital and analog
All PLCs need some method of communicating between the controller, I/O and communications
modules. Here are three ways used to accomplish this communications between the various
components that make up the PLC system.
• Modules are installed in the same chassis as the PLC and communicate over the chassis backplane.
• Modules are designed to “plug” into each other. The interconnecting plugs form a backplane there is
no chassis.
• Modules are built into the PLC and modules come together in one physical block. The backplane in this
case is transparent to the user.
Below is an example of a backplane in a chassis based system. You can see the backplane in the area
where the modules are not inserted. The modules have connectors that plug into the black connectors
on the backplane. All of the connectors on the backplane are connected together
electrically. Chassis
and Backplane Examples
: Benefits of the
Different Forms : • Great flexibility in choice of modules. Modules can be easily installed or removed
without affecting other modules.
• Great flexibility in choice of modules. In some cases modules cannot be removed without “breaking
the chain” and affecting all modules downstream no chassis cost.
• Low cost solution but limited flexibility, generally used in smaller, simpler
systems. Basic Components of a PLC System : Power
Supply :
A power supply is needed to provide power to the PLC and any other modules. Power supplies come in
various forms :
• Power supply modules that fit into one of the slots in a chassis.
• Stand alone power supplies that connect to the PLC or I/O through a power cable.
block. Prog
ramming Software :
languages
Network Interface :
Most PLCs have the ability to communicate with other devices. These devices include computers
running programming software, or collecting data about the manufacturing process, a terminal that lets
an operator enter commands into the PLC, or I/O that is located in a remote location from the PLC. The
PLC will communicate to the other devices through a network
interface. Network
Interface : PLC
Control Panel : • Typically, PLCs are installed in enclosures, on a
• Networks.
PLC).
• Software used today is Windows based, and can be run on any PC.
• Different products may require different software: PLC5, SLC, and ControlLogix each require
their own programming
software. • Bef
ore a PLC can perform any control task, it must be programmed to do so. The most popular
language used to program a PLC is ladder
logic.
• In a conveyor
system, we have several “requirements” to accomplish; for example, timing and counting parts
on the conveyor. Each of these requirements must be programmed into the PLC so that it knows
how to respond to different
events. • The
programmer develops the program, and connects their personal computer to the PLC through a
network or cable and then downloads the program to the PLC. Ladder Logic Example
: • Here, we
can see an example of ladder logic. Each line of code is known as a “rung”. In this example there
are 4 rungs, numbered 0, 1 and 2, and the end rung marking the end of the program.
• The PLC executes the program 1 rung at a time, starting with the first rung and then working
down. • Ladder
logic rungs are basically IF-THEN statements. Each individual rung is executed from the left to
the right. The outputs at the right side of each rung is set to a condition that reflects the status of
the permissive contacts in a particular rung. • This is a very simple rung of logic, from a PLC
-> If the Start Button is on, turn the Motor on. If the Start Button is off, then turn the Motor off.
-> Let’s take a look at this simple program in
detail… • In this example, if the actual
Start Button is on, then the value of all the XICs named Start Button, in the program will
be true(also known as a ‘one”, or “closed”).
• If the start button is off (not on) then the value of the Start Button XICs will be false (also
known as a “zero”, or
• If there are multiple XIC’s on the rung, then all would have to be on for the rung to be
false).
• The address is used by the PLC to tell exactly which input to read or which output to
command. I/O Addressing : Since a PLC will be controlling real devices down on a plant floor, it
has to have some way of communicating to the correct device. All PLCs use some sort of method
of I/O Addressing to perform this function.
• I/O addresses are a means to tie a physical I/O point to a location in PLC memory.
• An input address will represent the state of an input device, i.e. the switch is on or off.
• An output address will represent the commanded state for a device. i.e., turn the motor on or
• Data addresses store a value used for functions like timers, counters, or
calculations. • In
this example, parts on a conveyor are counted. The input, “Part_detected” looks at the I/O
address of the actual sensor counting the parts.
• The counter references a data address, and accumulates the counts in that location in memory.
• Each time the “Part_detected” switch closes, the counter adds one more count to the area of
memory called
“part_count”. Ladder
• OTL - Output Latch - turns on the output and keeps it even if the rung goes false.
• OTU - Output Unlatch - turns off the output when the rung is true.
• TON - Timer On Delay - when the rung is true the timer will run.
It will store the elapsed time in the “Accum” field (accumulator). As long as the rung remains
true it will count until it reaches the preset value. If the preset value is hit the DN bit will go on
(Don bit). When the rung goes false the timer will be reset. Programming a PLC – Conveyor
• When a box is placed on the conveyor in front of Photoeye 1, Light 1,and Motor 1 will turn on,
causing the box to move down the conveyor to the left.
• When the box passes in front of Photoeye 2, Motor 1 and Light 1 will turn off, stopping the
conveyor. Relay Ladder Logic Example
: Here’s the
program for the conveyor: The first line of code turns on the motor and the light when a box is
detected by photoeye1. Likewise, the motor and light are turned off when photoeye2 detects the
box in the second line of
• Function Block.
• Structured Text.
Architecture Cont
rol System Architectures : A complete control system is made up of a combination of PLCs,
networks, I/O, terminals and software. All the components work together to form a complete
control
system. Within a
control system architecture there are many subsystems and terms used to describe them. This
section will go over some of the popularly used terms to describe parts of control systems.
• Local I/O
• Distributed I/O
• Centralized I/O
• Centralized Control
• Distributed Control
• Control System
• Safety System I/O Systems : I/O systems are often referred to as local or distributed :
• Local refers to the I/O being attached directly to the controller or on the same backplane as the
Controller.
• Distributed refers to I/O which is not on the same backplane as the Controller. Distributed I/O
is connected using a
network. The distributed
input module sends the inputs across the backplane to the adapter. The adapter sends them over
the I/O network to the PLC (Controller). I/O Architectures : I/O architectures are made up of I/O
systems. The architectures are referred to as Centralized and Distributed :
• Centralized refers to the I/O being located near or in the same cabinet as the processor. Wires
from field devices are brought back to the I/O, and can be quite long.
• Distributed refers to I/O that is located near the field devices. The wires from the field devices
are short. The network cable is run out to the Distributed I/O instead of running the field wires
back to the
I/O. Systems
Vs. Architectures : • I/O systems are part of an I/O architecture :
-> If all the I/O is located near or in the same cabinet as the processor, it is a centralized
architecture. Within the centralized architecture could be either local or distributed I/O, or
both. • I/O systems are part of an
I/O architecture :
-> If some of the I/O is located remotely from the processor it is a distributed architecture.
Within the distributed architecture is distributed I/O, or both local and distributed
• Easy to install - add a module to the chassis : In some cases the I/O is already attached to the
processor.
• Less expensive than adding distributed : Use the I/O on the processor or simply add a module
to the backplane. Don’t need to add a chassis, power supply, etc.
Why use Distributed I/O? :
• Field devices distributed around the machine - too much wiring to take back to one chassis.
• Out of local I/O : local I/O limited by number of slots in the backplane or fixed I/O attached to
the processor.
• Local I/O does not meet your needs module type, current capability, etc. Centralized vs.
Distributed I/O Architecture : Why use a Centralized Architecture? :
• If the only centralized I/O is local I/O, then you don’t have to buy additional chassis, power
supply, etc.
• The field devices are near the cabinet or processor so there is no wiring cost savings of going
distributed.
• Field devices distributed around the machine - too much wiring to take back to one chassis.
Disadvantages :
other. Advantages
and disadvantages of distributed control :
Advantages :
Disadvantages :
(HMI). Data
Acquisition System : • The Data Acquisition system is generally responsible for collecting data
about the control system, and storing it on master computers or servers, or displaying it on
terminals. The data is often used later for reporting or charting
purposes. • Ma
de up of devices and networks which are responsible for acquiring data about the process.
Not responsible for direct control of the process.
• The network used for data acquisition is often Ethernet. While data acquisition devices can
exist directly on the control network, a gateway is often used to separate network traffic between
the data acquisition system and the control system. Safety System : • The Function of a Safety
System is to monitor and control conditions on a machine or process that are hazardousin
themselves or, if no action were taken, may give rise to hazardous situations.
• The Safety System runs in parallel with the Control System. The Control System and Safety
System may share components :
-> People.
-> Environment.
-> Machinery. • The safety
system is often referred to as ”safety control” while the PLC system controlling the devices that
produce the end product is often referred to as the
“standard control”.