Prelim - Lecture For PLC
Prelim - Lecture For PLC
Prelim - Lecture For PLC
What is PLC?
-it is a specialized computer used to control machines and processes
-uses programmable memory to store instructions and execute specific functions that
include on/off control, timing, counting, sequencing, arithmetic and data handling
-assembly of solid-state digital logic elements designed to make logical decisions and
provide outputs
-used for control and operation in the industrial environment and is equipped with special
input/output interfaces and a control programming language
-used to replace relay logic
-small and inexpensive compared to equivalent relay-based process control systems
History of PLC
Benefits
1. Increased Reliability
-since all logic is contained in the PLCs memory, there is no chance of making logic
error
2. More Flexibility
-it is easier to create and change a program in a PLC
3. Lower Cost
4. Communications Capability
- it can communicate with other controllers or computer equipment to perform
functions such as supervisory control, data gathering, monitoring devices, process
parameters and download and upload of programs.
5. Faster Response Time
- PLCs are designed for high-speed and real-time applications
6. Easier to Troubleshoot
- PLCs have resident diagnostics and override functions
1
Parts of a PLC
Parts Architecture
Components
1. CPU
2. I/O Section
3. Power Supply
4. Programming Device
Architecture
-PLC hardware, PLC software or both
1. Open Architecture
-allows the system to be connected easily to devices and programs made by other
manufacturers
-uses off-the-shelf components that conform to approved standards
2. Closed Architecture
-design is proprietary which makes it difficult to connect the system to other systems
*Most PLCs are proprietary in nature
Power Supply
-supplies dc power to other modules that plug into the rack
*for larger systems - power to field devices is provided by external alternating
current or dc supplies
*for small and micro PLC systems- power supply is used to power field device
2
Processor (CPU)
-”brain” of the PLC
-typical processor consists of a microprocessor for implementing the logic and
controlling the communications among the modules
-requires memory for storing the results of the logical operations performed by the
microprocessor
*memory is also required for the program EPROM or EEPROM plus RAM
-designed so that the user can enter the desired circuit relay ladder logic
-accepts input data from various sensing devices,executes stored user program from
memory , and sends appropriate output commands to control devices
*a direct currect power source is required to produce the low-level voltage used by
the processor
*power supply can be housed in the CPU unit or may be a separately-mounted
module, depending on the PLC system manufacturer
I/O Section
-consists of input modules and output modules
-forms the interface by which the field devices are connected to the controller
*to electrically isolate the internal components from the input and output terminals,
PLCs employ an optical isolator, which uses light to couple the circuits together
*these devices are also referred to as “field” or “real-world” inputs and outputs
Principles of Operation
Sample
3
Modifying the Operation
PLCs PCs
Designed to be operated in industrial Designed to be operated in an environment
environment with wide range of ambient with ambient room temperature
temp., vibration and humidity conditions
Inputs are signals from control elements Inputs are drives, CD roms
like pushbuttons, limit switches,
temperature switches, pressure switches
and transducers
Outputs are final control elements like Output is a printer
contractors, solenoids, positioning valves,
indication lights and so forth
Not disc-based system Disc-based system
Operating system and application programs Operating system and application programs
are both stored in ROM are stored in different memory
Usually uses Ladder Logic Diagram, Uses high-level programming languages
Statement List, Functional Block Diagram
*The personal computer has infiltrated the PLC control industry. Software written and
run on the PC has changed how people work with PLCs. Basically, PLC software run on
a PC falls into the following two categories.
A) PLC software that allows the user to program and document gives the user the tools to
write a PLC program and document or explain the program in as much as detail as is
necessary.
4
B) PLC software that allows the user to monitor and control the process is also called
man-machine, or operator, interface. It enables the user to view a process-or graphical
representation of a process-on a CRT, determine how the system is running, trend values,
and receive alarm conditions.
*Soft-logic Controllers
-PCs functioning as full-pledged PLC
Basic Terminologies
4. Hardware
- tangible part
-ex. PLC, programming device, connecting cables
5. Ladder Logic
6. Ladder Logic Diagram
7. Programming Device
8. Sensor
9. Software
10. Inputs
A) Analog Inputs
5
-may vary to 0 to 20 milliamps, 4 to 20 milliamps or 0 to 10 volts
ex. level transmitter
– Sensing Devices
• Limit Switches
• Photoelectric Sensors
• Proximity Sensors
B) Discrete Inputs
Ex. – Switches and Pushbuttons
toggle switches, pushbuttons,
proximity switches, contact closures
13. Output
A) Analog Output
B) Discrete Output
6
-can connect up to 32 I/O points
*both nano and micro have instructions sets that have about 90% of the capacity of
large PLCs and are suitable for users who require powerful control but who do not need
high I/O count of a larger PLC
3. Small
- can handle up to 960 I/O points in a single rack
4. Medium
*small and medium-size PLCs offer specialty I/O modules that enhance a control
system
5. Large
- can handle several thousand I/O points
Memory Size
-ranges from as little as 256 words for small systems to 2M(Mega) for larger systems
-usually expressed in K values: 1K, 6K, 12K and so on
*1K =1024
Ex. A PLC uses 8-bit words with a 6K capacity, what will be the number of bits of the
storage?
How about a PLC that uses 32-bit words with 6K memory?
Factors Affecting the Memory Size Needed for a Particular PLC Installation
1. Number of I/O used
2. Size of control program
3. Data-collecting requirements
4. Supervisory functions required
5. Future expansion
Instruction set for a particular PLC lists the different types of instructions supported.
7
8