Programmable logic controller: Difference between revisions

Content deleted Content added
mNo edit summary
subsections and flow
Line 1:
A programmable logic controller or PLC is an electronicsmall appliancecomputer designed to replace a bulky cabinet full of relay logic. TheWhere inputautomated issystems usuallywould ause sethundreds ofor contactsthousands withof flowrelays, ora absencesingle ofPLC electricalcan current.be programmed Theas outputsa simulate switchesreplacement.
 
The program in a PLC responds to inputs with customized outputs. A simple program could maintain the level of water
A PLC is a small computer running a program. The program reads the inputs of the logic controller, calculates a custom logic function, and then produces the outputs.
in a tank between two float switchs by opening and closing an electric valve. A slightly more complex arrangement could involve a scale under the tank (as an input) and a flow controller (as an output) allowing water to flow at a controlled rate. A typical industrial application might control several tanks in a process such as sewage treatment. Each tank might be watched for a variety of conditions such as being too full or too empty or having the wrong pH.
 
=== Analog vs Digital Inputs and Outputs ===
Unlike general purpose [[computer]]s, PLCs are designed to be used by electricians who train on the job. They are usually programmed in a language called "[[ladder logic]]", which strongly resembles a blueprint of relay logic. PLCs are also available that can be programmed in more traditional programming languages.
Some signals behave as switches, yielding simply an On or Off signal. Others behave like volume controls, yielding a range of values between On and Off.
 
PLCs typically have a limited number of connections for signals such as digital inputs, digital outputs, analog inputs and analog outputs. Typically expansions are available if the base model of a PLC does not have sufficient I/O.
In ladder logic, a [[relay]] coil, or just 'coil', can open or close any number of contacts, the switches which a relay controls. This can make ladder logic on a PLC easier then designing a relay based control system. In addition to normal relays, ladder logic allows for math functions through [[black box]] pieces that are integrated into the ladder. A simple addition function may count the number of times a button is pushed.
 
=== Ladder Logic ===
A PLC programmer numbers the contacts and coils and decides which relays are powered when.
Unlike general purpose [[computer]]s,Early PLCs arewere designed to be used by electricians who train on the job. They arewere usually programmed in a language called "[[ladder logic]]", which strongly resembles a blueprintschematic of relay logic. Modern PLCs arecan alsobe availableprogrammed thatin canladder belogic programmedor in more traditional programming languages.
 
In ladder logic, a [[relay]] coil, or just 'coil', can open or close any number of contacts, the switches which a relay controls. This can make ladder logic on a PLC easier then using real relays which seldom have more then four contacts. A PLC programmer lays out these virtual contacts and coils to control a process or machine in the real world.
PLCs generally accept contact closures (like buttons and switches) as inputs, and provides some set of switches as output.
In ladder logic, a [[relay]] coil, or just 'coil', can open or close any number of contacts, the switches which a relay controls. This can make ladder logic on a PLC easier then designing a relay based control system. In addition to normal relays, ladder logic allows for math functions through [[black box]] pieces that are integrated into the ladder. A simple addition function may count the number of times a button is pushed.
 
=== PID Loops ===
PLCs often alsomay include logic for single-variable generic industrial feedback loop, a "proportional, integral, derivative" loop, or "[[PID controller]]."
 
A PID loop is the standard solution to many industrial control processes that require proportional control. Proportional control dictates that large deviations should be corrected by large amounts and small deviations should be corrected by small amounts. A PID loop could be used to control the pH level of water in a swimming pool.
 
=== User Interface ===
PLCs may need to interact with people for the purpose of configuration, alarm reporting or everyday control. A variety of methods are employed.
 
A simple system may use buttons and lights to interact with the user. Text displays are available as well as graphical touch screens. Some PLCs may only communicate over a network to some other system, such as a computer running a web browser.
 
=== Links ===