plc

Post on 03-Nov-2014

122 Views

Category:

Documents

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

PLC

TRANSCRIPT

04/08/23

A PLC system: CPU module (left) and an I/O rack (right) (Allen Bradley PLC-5) (Courtesy of Allen-Bradley)

04/08/23

A small PLC (Allen Bradley MicroLogix 1000)(Courtesy of Allen-Bradley).

04/08/23

Definition of PLC

PLC is a digitally operating electronic apparatus which uses a programmable memory for the internal storage of instructions by implementing specific functions such as logic sequencing, timing, counting, and arithmetic to control, through digital or analog input/output modules, various types of machines or processes.

04/08/23

Inputs and outputs of PLC

• Inputs of PLC – Discrete signal from switch, approximate sensor,

push buttons– Analog signal from thermal couple, voltmeters,

etc.

• Outputs of PLC– Most often is the control signal to motor, valves,

etc.

04/08/23

Types of switches

04/08/23

A Relay

04/08/23

A counter

04/08/23

Counter timing diagram (the countvalue is 5)

04/08/23

A timer

04/08/23

Timer timing diagram (the timingvalue is 5)

04/08/23

Ladder diagram for the circuit

04/08/23

Wiring diagram

04/08/23

Programmable logic controller system structure

04/08/23

Memory

• ROM• RAM• PROM• EPROM• etc

04/08/23

I/O modules (Courtesy of Allen-Bradley)

04/08/23

Input/output module• Analog inputs

– Flow sensors– Humidity sensors– Potentiometers– Pressure sensors– Temperature sensors

• Analog outputs– Analog meters– Analog valves and actuators– DC and AC motor drives

• Digital input/output– Bar code, encoder– Display

• Special purpose I/O– PID controller– Fast input– Network module

04/08/23

Power input connections: (a) AC, (b) DC, and (c) TTL

04/08/23

Power output connections: (a) AC, (b) DC, and (c) TTL

04/08/23

Peripherals

• Operator console• Printer• Simulator• EPROM loader• Network communication• PC based programming software

04/08/23

Human interface terminal (Courtesy of Allen-Bradley)

04/08/23

PC-based programming software

04/08/23

A ladder diagram (also called contact symbology) is a means of graphically representing the logic required in a relay logic system.

04/08/23

Some relay diagram symbols

04/08/23

A ladder diagram

04/08/23

PLC wiring diagram

04/08/23

PLC scan

04/08/23

Functions of PLC

• Relay• Timer and counter• Program control• Arithmetic• Data manipulation• Data transfer• Others, such as sequencers

04/08/23

Basic logic

04/08/23

And logic

04/08/23

OR logic

04/08/23

Combine AND and OR logic

04/08/23

Example

A robot is used to load/unload parts to a machine from a conveyor. A part comes along the conveyor. When it touches a microswitch, it is scanned by a bar-code reader to identify it. If the part is the desired one, a stopper is activated to stop it. A robot picks up the part and loads it onto the machine if it is idle. Otherwise, the robot waits to unload the machine.

04/08/23

Cell layout

04/08/23

Example

04/08/23

Program

04/08/23

Wiring diagram

04/08/23

EXPLANATION OF THE PROGRAM

Rung 1. If a part arrives and no part is stopped, trigger the barcode reader.Rung 2. If it is a right part, activate the stopper.Rung 3. If the stopper is up, the machine is not busy and the robot is not busy; load thepart onto the machine.Rung 4. If the task is completed and the robot is not busy, unload the machine.

04/08/23

Procedure for developing automation system using PLC

1. Define the process to be controlled.2. Make a sketch of the process operation.3. Create a written step sequence listing for the process.4. Add sensors on the sketch as needed to carry out the control

sequence.5. Add manual controls as needed for process setup or

operational checking.6. Consider the safety of the operating personnel and make

additions and adjustments as needed.7. Add master stop switches as required for safe shutdown.8. Create the ladder logic diagram that will be used as a basis for

the PLC program.9. Consider the "what if's" where the process sequence may go

astray.

04/08/23

1. Define the problem

We wish to set up a system for spray-painting parts. A part is to be placed on a mandrel. (A mandrel is a shaft or bar whose end is inserted into a workpiece to hold it during an operation.) When the part is in place, two pushbuttons are pressed and the mandrel rises. After the part rises to the top and is in the hood, it is to have spray paint applied for a period of 6 seconds. At the end of the 6 seconds, the mandrel returns to the original position. The painted part is then removed from the mandrel by hand.

04/08/23

2. Process sketch

04/08/23

3. List of operation sequence1. Turn on the paint pump and pneumatic air supply.2. Turn the system on. This requires pushbuttons other than the system buttons.3. Put the part on the mandrel. A sensor indicates that the part is in place.4. Push the Master Start button and the two system start buttons. Having to push two

system start buttons (with both hands) reduces the possibility of the operator's hands being injured by the rising mandrel.

5. The mandrel is raised by a pneumatic cylinder energized by the opening of an electrically actuated air valve when the system start buttons are pressed. (The mandrel will return by gravity and downward spring action when the valve is reopened.) When the mandrel rises, the part-in-place sensor at the bottom becomes de-energized. (Note: The part-in-place sensor does not rise with the mandrel.)

6. When the part reaches the top and is under the hood, it is held against a stop by air pressure. A sensor has indicated that the part has reached the top.

7. A timer starts and runs for 6 seconds.8. During the timing period of 6 seconds, paint is applied by the sprayer.9. At the end of 6 seconds, painting stops and the mandrel, with the part on it, lowers.10. The up sensor is deenergized when the mandrel with the part on it descends.11. The part arrives at the bottom, reenergizing the part-in-place sensor.12. The part is removed from the mandrel.13. The system resets so that we may start at step 3 again.

04/08/23

4. Add sensors

04/08/23

5. Add manual control

We may need a manual pushbutton to raise the mandrel to the top for setup purposes. The manual up position is needed when we set the spray-gun pressure for optimum paint coverage. We include pushbutton up (PBU) on our ladder diagram to accomplish this manual control.

04/08/23

6. Consider safety

One basic way to keep hands out of a process is to have two start buttons. Then both hands must be away from the work to depress both buttons (which works until the operator figures out how to use one knee and one hand). Other considerations, which we do not cover in detail here, might be operating a fan to disperse fumes during spraying, or perhaps a photocell proximity-personnel-system-stop device.

04/08/23

7. Add emergency stop

Add emergency and master stop switches as needed for operator safety. This may seem to be part of step 6 because both steps deal with operator safety. It is a continuation of the safety issue, but emergency stop switches are so important that they need special consideration as an additional step.

04/08/23

Create Ladder Diagram

04/08/23

9. Determine what-ifs

• All possible situations and emergencies should be listed. In this example, some of them might be:– What if no part is in place when the start buttons are

pushed?– What if the power fails during the cycle when the part

is rising, during painting, or at any other time?– What if the sprayer runs out of paint?– What if the same part is left in for a double coat?– What if the master stop button is pushed? Does the

stop button really stop the entire process, or can the mandrel move and create a safety problem after the stop button is depressed (it can)?

04/08/23

System I/O

04/08/23

Truth table

04/08/23

04/08/23

Ladder diagram for a three-switch system

04/08/23

Ladder diagram for Example 10.2

04/08/23

State diagram for a two-state and transition system

04/08/23

Ladder diagram for Example 10.3

04/08/23

Ladder diagram forthe state diagram in Figure 10.27

04/08/23

State diagram for Example 10.4

04/08/23

04/08/23

State diagram for Example 10.5

04/08/23

04/08/23

State diagram for Example 10.6

04/08/23

top related