Lab 01 - Introduction To PLC Hardware and Software
Lab 01 - Introduction To PLC Hardware and Software
LAB No. 1
INTRODUCTION TO PLC HARDWARE
AND SOFTWARE
____________________________________
Objectives
Introduction to PLC
Controllers may consist of logical components and connections among them. Depending on the
current logical value of input, output is produced to change the status of the system. PLC may
realize such controllers.
Today, the command and feedback control systems of industrial automation systems are realized
by programmable logic controllers (PLCs).
In order for PLCs to work as controllers, they must be able to realize some functions. These
functions are basic and combinational logic operations such as AND, OR, AND-NOT, OR-NOT,
timer and counter operations. In addition to these, PLCs may have the ability to realize several
transfer, mathematical, and PID operations.
PLC consists of three main parts: CPU, memory and I/O units.
CPU is the brain of PLC. It reads the input values from inputs, runs the program existed in the
program memory and writes the output values to the output register. Memory is used to store
different types of information in the binary structure form. The memory range of S7-200 is
composed of three main parts as program, parameter, and retentive data fields. I/O units provide
communication between PLC control systems.
1
Robotics & Automation Lab
PLC
They are based on the Boolean logic operations whereas some models use timers and some
have continuous control. These devices are computer based and are used to control various process
and equipments within a facility. PLCs control the components in the DCS and SCADA systems
but they are primary components in smaller control configurations.
DCS
Distributed Control Systems consists of decentralized elements and all the processes are
controlled by these elements. Human interaction is minimized so the labor costs and injuries
can be reduced.
Embedded Control
In this control system, small components are attached to the industrial computer system with
the help of a network and control is exercised.
SCADA
Supervisory Control and Data Acquisition refers to a centralized system and this system is
composed of various subsystems like Remote Telemetry Units, Human Machine Interface,
Programmable Logic Controller or PLC and Communications.
PLC Hardware
Hardware Components of a PLC System
Processor unit (CPU), Memory, Input/Output, Power supply unit, Programming device, and
other devices.
2
Robotics & Automation Lab
CPU Microprocessor based, may allow arithmetic operations, logic operators, block memory
moves, computer interface, local area network, functions, etc.
CPU makes a great number of check-ups of the PLC controller itself so eventual errors would be
discovered early.
System Busses
The internal paths along which the digital signals flow within the PLC are called busses.
The system has four busses:
The CPU uses the data bus for sending data between the different elements,
The address bus to send the addresses of locations for accessing stored data,
The control bus for signals relating to internal control actions,
The system bus is used for communications between the I/O ports and the I/O unit.
Memory
System (ROM) to give permanent storage for the operating system and the fixed data used by the
CPU.
RAM for data. This is where information is stored on the status of input and output devices and
the values of timers and counters and other internal devices. EPROM for ROMs that can be
programmed and then the program made permanent.
I/O Sections
Outputs control other devices, such as motors, pumps, solenoid valves, and lights.
Power Supply
Most PLC controllers work either at 24 VDC or 220 VAC. Some PLC controllers have electrical
supply as a separate module, while small and medium series already contain the supply module.
Programming Device
The programming device is used to enter the required program into the memory of the processor.
The program is developed in the programming device and then transferred to the memory unit of
the PLC.
3
Robotics & Automation Lab
PLC Operation
Input Relays
These are connected to the outside world. They physically exist and receive signals from switches,
sensors, etc. Typically they are not relays but rather they are transistors.
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.
Counters
These 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. Since they are simulated they
are limited in their counting speed. Some manufacturers also include high speed counters that are
hardware based.
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
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. 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.
4
Robotics & Automation Lab
Voltage level.
Response speed.
Output Selection
Voltage level.
The power that PLC outputs need to switch.
Output resistance and electrical noise can be an issue in cases where low level signals are
to be switched.
5
Robotics & Automation Lab
A pop up menu should have been displayed as shown above. Now select the program icon from
the popped up menu.
Direct the mouse pointer down to the MELSOFT Application icon, continuing on to the GX
Developer, where you click the mouse left button while hovering over the GX Developer icon. A
screen similar to the diagram below will be loaded.
6
Robotics & Automation Lab
When the New Project Icon is selected you will be asked to select the PLC to which the software
is connected. The room K044 the PC is connected to the FXO(S) PLC so this option should be
chosen. Make sure Ladder is chosen under the program type area.
7
Robotics & Automation Lab
8
Robotics & Automation Lab
9
Robotics & Automation Lab
When the Write to PLC is clicked you should see the dialogue box as shown below.
10
Robotics & Automation Lab
Before you click Execute make sure all the boxes are checked (or use Select All). As you become
expert and aware of the software limitations you can select only the items you wish to change.
When Execute is pressed your program will then be written to the PLC.
11
Robotics & Automation Lab
12
Robotics & Automation Lab
The buttons highlighted in the diagram above allow for the logic block used in the ladder
logic to be constructed.
a. From left to right we have
b. Normally Open Contact
c. Branched (parallel) Normally Open Contact
d. Normally Closed Contact
e. Branched (parallel) Normally Closed Contact
f. Action (Output)
g. Instruction such as timer, counter etc
h. Insert vertical line
i. Insert horizontal line
j. Remove vertical line
k. Remove horizontal line.
13
Robotics & Automation Lab
The diagram below shows the instruction list for ladder logic.
14
Robotics & Automation Lab
Monitoring
The development software can be used for monitoring the operation of the PLC. The operator can
connect on to the PLC and monitor the PLCs logic. For technical reasons the operator cannot make
changes to the logic while the system is in run mode and/or being monitored.
15
Robotics & Automation Lab
16
Robotics & Automation Lab
Post Labs:
Question 5: A PLC can effectively replace a number of components. Give examples and
discuss some good and bad applications of PLCs.
17
Robotics & Automation Lab
Question 7: Identify Basic PLC module components that are marked in the figure and write
them in the table provided:
Date: ______________
18