Escolar Documentos
Profissional Documentos
Cultura Documentos
C (Programable Logic
Controller)
INDEX
1. Introduction
1. What is PLC?
2. Why use PLC?
3. applications of PLC
2. Plc components
1. Overview
2. Specifications of the PLC
3. Micrologix 1500 system
4. RSLogix 500
3. Ladder logic fundamentals
1. Programming language of PLC
1. Electrical ladder diagram
1. Ladder logic instructions
2. Variable voltage variable frequency drive
1. Introduction
1. Advantages of using VVVF drive
1. Details of VVVF drive
1. PROGRAM MODE
1. Process automation
1. Introduction
2. Description of model
3. Motion Control using PLC
4. Temperature measurement
5. Speed Control of Motor using VVVF Drive
6. Conveyor System
2. Entrepreneurship
3. Bibliography
4. Appendix a
5. Appendix b
1. INTRODUCTION
1.1 WHAT IS PLC?
A programmable logic controller (PLC) is an electronic device that controls machines
and processes. It uses a programmable memory to store instructions and execute
specific functions that include ON/OFF control, timing, counting, sequencing,
arithmetic and data handling.
PLCs development began in 1968 in response to the request from hydromantic
division of general motors. At the time, gm frequently spent days or weeks replacing
inflexible relay-based control systems whenever it changed car models or made line
modifications. To reduce the high cost of rewiring, gm’s control specifications
called for a solid state system that had the flexibility of a computer yet could be
programmed and maintained by plant engineers and technicians. It also had to
withstand the dirty air, vibration, electrical noise, humidity and temperature extremes
found in the industrial environment.
The first PLCs were installed in 1969 and quickly became a success. Functioning as
relay replacements; even the early PLCs were more reliable than relay-based
systems, largely due to the ruggedness of their solid-state components compared
with the moving parts in electrochemical relays. PLCs provided material, installation;
troubleshooting and labour cost savings by reducing wiring and associated wiring
errors. They took up less space than the counters, timers and other control
components they replaced. And their ability to be reprogrammed dramatically
increased flexibility when changing control schemes.
Perhaps the biggest key to industry’s acceptance of the PLCs was based on the
ladder diagrams and electrical symbols commonly used by electricians. Most plant
personnel were already trained in ladder logic, and they easily adopted it for PLCs.
In fact, ladder logic still plays an integral role in programming and troubleshooting;
even though more “advanced†programming languages have been
developed.
1.2 WHY USE PLCs?
During the 1970s and early ‘80s, many engineers, manufacturing managers and
control system designers spent considerable time debating this issue, trying to
evaluate cost effectiveness.
Today, one generally accepted rule is that PLCs become economically viable in
control system that requires three to four or more relays. Given that micro PLCs cost
only a few hundred dollars, coupled with the emphasis manufacturers place on
productivity and quality, the cost debate becomes also immaterial. In addition of cost
savings, PLCs provide many value added benefits:
1.2.1 RELIABILITY
Once a program has been written and debugged. It can be easily transferred and
download to other PLCs. This reduces programming time, minimizes debugging, and
increases reliability. With all the logic existing in the PLCs memory, there is no
chance of making a logic wiring error. The only wiring required is for power and
inputs and outputs.
1.2.2 FLEXIBILITY
Program modifications can be made with just a few key strokes. Advanced functions
PLCs can perform a wide variety of control tasks, from a single, repetitive action to
complex data manipulation. Standardizing on PLCs opens many doors for designers,
and simplifies the job for maintenance department personnel.
1.2.3 COMMUNICATIONS
Communicating with operator interfaces, other PLCs or computers facilities data
collection and information exchange.
1.2.4 SPEED
Some automated machines process thousands of items per minute and objects
spend only a fraction of a second in front of a sensor, hence many automation
applications require the PLCs quick response capability.
1.2.5 DIAGNOSTICS
The troubleshooting capability of programming devices and the diagnostics resident
in the PLCs allow users to easily trace and correct software and hardware problems.
1.3 APPLICATIONS OF PLC
No matter what the application, the use of PLCs helps increase competitiveness.
Process using PLCs include: packaging, bottling and canning, material handling,
machining, power generation building control systems, automated assembly, paint
lines, and water treatment. PLCs are applied in variety of industries including food
and beverages, automotive, chemical, plastics, pulp and paper, pharmaceuticals and
metals. Virtually any application that requires electrical control can use PLCs.
2. PLC COMPONENTS
2.1 OVERVIEW
The main components of PLCs are as follows:
1. Inputs
2. Outputs
3. CPU
4. Memory for program and data storage
5. Programming device
Central
Processing
Unit
Programming / Communication Device
Memory
Program Data
Power Supply
Output Circuits
CR
Input Circuits
Optical Isolation
1. Operator interfaces
2.1.1 INPUTS
The input screw terminals on a PLC from the interface by which field devices are
connected to the PLC. Inputs include the items such as tool buttons, thumbwheels,
limit switches, selector switches, proximity sensors and photoelectric sensors. These
are all discrete devices that provide an ON/OFF status to the PLC. While larger
PLCs can directly accept analog values (variable voltage or current signals). Such as
from temperature or pressure sensors, micro PLCs do not typically possess this
capability.
The electrical signals that field devices send to the PLC are typically unfiltered 120v
a.c. or 24v D.C. The inputs circuitry on PLC takes this field voltage and
“conditionsâ€. It too is usable by the PLC. Conditioning is necessary because
the internal components of PLC operate on 5v D.C. and this minimizes the possibility
if damage by shielding them from voltage spikes. To electrically isolate internal
components from the input terminals, PLCs employ an optical isolator, which uses
light to couple signals from one electrical device to another.
2.1.2 OUTPUTS
Connectors tot the o/p terminals of the PLC are devices such as solenoids, relays,
contractors, motor starters, indicator lights, valve and alarms. Output circuits operate
in a manner similar to i/p circuits: signals from the CPU pass through an isolation
barrier before energizing o/p circuits.
PLC use a variety of o/p circuits to energies their o/p terminals: relays, transistors
and triac.
• Embedded I/O
• I/O configuration
• Expansion I/O
• EMBEDDED I/O
All embedded I/O is automatically configured to factory default settings and does not
require setup. If you need to change the input filters for any DC input controller
(1764-24BWA, 1764-28BXB), open RS Logix 1500.
• INPUT SCAN
During the input scan, the PLC examine the external input devices for a voltage
present or absent i.e. an OFF or ON condition. The status of input is temporarily
stored in an input image memory file.
• PROGRAM SCAN
During the program scan PLC scans the instructions in the ladder logic program. The
resultant status of the output is written to the ‘output image memory file’.
• OUTPUT SCAN
It is based on the data in the output image file. The PLC energizes or de-energizes
its output circuits, controlling external devices.
2.1.6 OPERATOR INTERFACES
In order to convey information about machine status the front panel of a micro PLC
has a series of indicator lights. For example, power, run, faults etc. To communicate
with PLC i.e. is to enter data or monitor and control machine status. The new
generation of electronic operator interfaces devices is used now a day. These are
not programming devices but graphic or alphanumeric displays and control panel.
These interfaces can output data and display messages about machine status in
descriptive text. They can also be used for data input. These interfaces decrease
need for operator training on machine operation and reduce system component and
installation cost. These products communicate with the PLC through an RS 232
communication port.2.2 SPECIFICATIONS OF THE PLC 2.2.1 MICROLOGIX 1500
1764-24BWA
Description 1764-BWA
Number of I/O 12 Inputs; 12 Outputs
Line Power 85 to 265V a.c.
Power supply inrush 120V ac= 25A for 8 ms; 240V ac= 40A for 4 ms
User power output 24V dc at 400 mA, 400 micro fared max.
Input circuit type 24V dc, sink/source
Output circuit type Relay
Operating Temperature +0 degree cent. to +55 degree cent.
Storage Temperature -40 degree cent. to +85 degree cent.
2.2.2 ANALOG INPUT MODULE (1769-IF4)
Analog normal operating Voltage: +/-10Vd.c, 0to 10V d.c, 0to5V d.c, 1 to
ranges 5 V d.c. Current: 0to20mA, 4to 20mA
Number of inputs 4 Differential or single ended
Rated working voltage 50V a.c. / 50Vd.c
Common mode voltage range +/- 10V max. per channel
Input impedance Voltage terminal: 220killo-ohm (typical) Current
terminal 250 ohm
2.2.3 ANALOG OUTPUT MODULE (1769-OF2)
Number of outputs To single ended
Maximum inductive load (current 0.1Mh
outputs)
Maximum capacitive load (voltage 1micro -farad
outputs)
1. DIGITAL INPUT MODULE-1769-IQ16
Voltage category 24Vd.c (sink/source)
Operating voltage range 10to30Vd.c at 30 deg. Cent. 10 to
26.4Vd.c at 60 deg. Cent.
Off state voltage (Max.) 5Vd.c
Number of inputs 16
Off state current max. 1.5mA
On state voltage min. 10Vd.c
On state current min. 2.0mA
Nominal impedance 3killo-ohm
2.2.5 DIGITAL OUTPUT MODULE (1769-OW8)
Voltage category A.C/D.C normally open relay
Operating voltage range 5 to 265V a.c. and 5 to 125V d.c.
Number of outputs 8
Off state leakage max. 0 mA
On state current min. 10mA at 5Vd.c
Continuous current per common 8Amp
(max.)
Continuous current per module (max) 16Amp
2.3 MICROLOGIX 1500 SYSTEM The PLC used in our lab is purchased by Allen-
BradelTM. The name of the product is MicroLogix 1500. Allen-Bradley TM also
provides the software by which one can interact with the PLC the name of software
is RS Logix 500. This software is installed on the computer by which PLC is
connected through series port (RS.2).the information about the Software and PLC
available on the website of the Allen-BradelTM is as follows:
In a perfect world you would always know what's behind the next door. In the world
of automation, the MicroLogix 1500 controller can help you open up new possibilities
and get you to where you want to go with ease.
This dynamic controller is a more powerful and expandable addition to the
MicroLogix family:
• Application flexibility and versatility with Compact I/O means a small footprint
and expansion to over 100 I/O points.
• Large onboard non-volatile memory
• Real Time Clock (RTC) capabilities allow time scheduling of control
• Program portability allows user programs to be uploaded, downloaded and
transported via Memory Modules
• Built in PID capabilities
• Data Access Tool for data monitoring and adjustment
• Eight Latching (pulse catch) inputs
• Four event interrupts
• Performance
• Approximate scan time for a typical 1K user program (includes timers,
counters, etc.): 1 millisecond
• Simple bit instruction execution: 0.7 microseconds
• 2 millisecond selectable timed interrupt (STI)
• 1 millisecond timers
• Two 20 kHz high-speed counters each with eight modes of operation (up,
down, up/down, quadrature, etc.)
• Two 20 kHz high-speed outputs (PTO or PWM with acceleration/deceleration
profiles)
• Rugged tongue-and-groove package design, to provide strength and system
reliability
• May be expanded to include up to 16 Compact I/O modules
Base Units continue to support up to eight modules (within the power budget
of the base unit) with additional expansion through expansion cables and a
number of expansion power supplies.
• Optional Features
• Data Access Tool (DAT) plug-in device
• Memory Module
• Real Time Clock (RTC) Module
• Combination Memory & RTC Module
• Expansion I/O modules for discrete and analog applications with a
comprehensive selection of electrical configurations
2.4 RSLogix 500 The RSLogixâ„¢ family of ladder logic programming packages
helps you maximize performance, save project development time, and improve
productivity. This family of products has been developed to operate on
Microsoft’s Windows® operating systems. Supporting the Allen-Bradley SLC
500â„¢ and MicroLogixâ„¢ families of processors, RSLogix 500â„¢ was the first
PLC® programming software to offer unbeatable productivity with an industry-
leading user interface. RSLogix 5™ supports the Allen- Bradley PLC-5® family of
programmable controllers. RSLogix 5000â„¢ provides support for the
Logix5000’s Highly Integrated Motion functionality. RSLogix offers reliable
communications, powerful functionality, and superior diagnostics.
These RSLogix products share:
1. Compare Instructions
2. Math Instructions
3. Relay Type Instructions
4. Timer and Counter Instructions
5. Sequence Instructions
6. PID Control
7. Bit Shift FIFO and LIFO Instructions
Different types of instruction used in PLC which empowers it are as follows:
• EQU [Equal]
This input instruction is true when Source A = Source B.
The EQU instruction compares two user specified values. If the values are equal, it
allows rung continuity. The rung goes true and the output is energized (provided no
other forces affect the rung's status).
Entering Parameters
Source A must be a word address.
Source B can be a word address or program constant.
Entering Parameters
Enter a word address for source A. Enter a constant or a word address for source B.
Signed integers are stored in two’s complement form.
• OR [Inclusive OR Operation]
When rung conditions are true, Sources A and B of the OR instruction are OR bit by
bit and stored in the destination. Sources A and B can be either word addresses or
constants; however, both sources cannot be a constant. You can enter a constant or
a word address for either Source parameter. The destination must be a word
address.
• Reversing starters
• Reduced voltage starters
• Multi speed starters
• Multi speed motor
5. Integral dynamic braking transistor
The SSC controller has an additional transistor built in for applications that require
extra braking torque. The dynamic brake resister module connects directly to the
controller’s terminals to provide up to 300% braking torque.
Braking torque depends up on controller rating and motor.
6. Compact design
Attaches directly to front of controller – replacing keypad or Ready/fault panel and
saves valuable panel space.
7. Quick installations
Reduces installation time by allowing the user to configure node address via the
network.
8. Electronic motor over load protection
SSC does not require an over load relay for the operation of one motor. Thus saves
the extra cost and panel space of installing a separate over load relay.
9. Multiple specific speeds
Can be made available for manufacturing and material handling e.g. conveyors,
packaging, winders, mixers, trolleys and for commercial applications examples
laundry machines, automatic doors, automatic car washes, dock levellers. (In case of
preset speed module)
10. Follows analog signal
It can be used in many applications that take advantage of the adjustability and
simple control that comes from an analog signal. Example:
Basic Idea
The basic idea behind this program is to count any number of pieces passing
through the conveyor belts which are sensed by the proximity switch.
Implementation
To implement this program the proximity switch is placed to the suitable distance
from the conveyor belt. When any piece passes through the proximity sensor it gives
a high pulse which is fed to the PLC and the counter placed in the program counts
the number of pieces moving on it up to the preset value given to the counter.
Operation
When the motor is started by the switch TG#1 the conveyor starts to move in forward
direction along with the pieces kept on it. The proximity switch inputs to the PLC
when it senses any ferrous material passing through it at the address I:1/7 which
increments the counter C5:0 by one and also glows a RED LED addressed at O:0/0
as per the count.
After one count of the counter C5:0 the another counter C5:1 is incremented by one
and since its preset value is one so its done bit goes high in one increment and thus
it stop the motor and also activates a timer T4:0 associated with it which counts for
the given time period and then resets the counter C5:1 and thus motor is again
started. Thus the delay of desired time period can be obtained with the help of this
timer after each count so that any operation can be performed to the job counted by
the proximity switch and after that operation the motor automatically restarts.
When the counter C5:0 counts 10 pieces the RED LED glows which is addressed at
O:0/3. And after it counts 20 pieces another LED glows next the above LED and the
very next to this glows after 30 count and similarly the LED addressed at O:0/8 glows
after 40 pieces.
After the done bit of counter C5:0 goes high a RED LED addressed at O:0/10 glows
and the counter stops counting the pieces.
7. BIBLIOGRAPHY
8. APPENDIX A
INSTRUCTION DESCRIPTION
1. ENC Encodes a 16-bit source to a 4-bit value. Searches the source from the
lowest to
the highest bit, and looks for the first set bit. The corresponding bit position is
written to the destination as an integer.
1. FRD Converts the BCD source value to an integer and stores, in the
destination.
2. TOD Converts the integer source value to BCD format and stores it in the
destination.
3. AND Performs an AND operation
4. OR Performs an inclusive OR operation
5. XOR Performs an exclusive OR operation
6. NOT Performs a NOT operation
7. MOV Move the source value to the destination.
8. MVM Move data from a source location to a selected portion of the
destination.
9. COP Copy a range of data from one file location to another.
10. FLL Load a file with a program constant of a value from an element address.
11. BSL Load and unload data into a bit array one at a time.
12. BSR. Load and unload data into a bit array one at a time.
13. FFL Load words into a file and unload them in the same order (first in, first
out).
14. FFU Load words into a file and unload them in the same order (first in, first
out).
15. LFL Load words into a file and unload them in reverse order (last In, last Out)
16. LFU Load words into a file and unload them in reverse order (last In, last Out)
17. SQC Compare 16-bit data with stored data.
18. SQO Transfer 16-bit data to word addresses
19. SQL Load 16-bit data into a file.
20. JMP Jump forward/backward to a corresponding label instruction.
21. LBL Jump forward/backward to a corresponding label instruction.
22. JSR Jump to a designated subroutine and return.
23. SBR Jump to a designated subroutine and return.
24. RET Jump to a designated subroutine and return.
25. SUS Debug or diagnose your user program.
26. TND Abort current ladder scan
27. END End a program or subroutine
28. MCR. Enable or inhibit a master control zone in your ladder program.
29. IIM Update data prior to the normal input scan
30. IOM Update outputs prior to the normal output scan.
31. REF Interrupt the program scans to execute the input/output scan