1 1-Basics
1 1-Basics
For example, when the user presses a button, the motor starts. Here the
switch button is input. The motor is an output device.
In PLC, to take the input and to return the output, there are an I/O
module.
The input modules are used for providing an interface for input devices like
different types of switches (push button switch, selector switch, limited
switch), sensors, etc.
The output modules are used for providing an interface for output devices
like motor, fan, relay, light, lamp, electric heater, solenoid valve, buzzer, etc.
2. Power Supply
There is no science to make the electrical device works without providing a
power supply.
Every device operates around you need power whether if its electrical or
mechanical or any other power supply.
For PLC, we need an electrical power supply.
The power supply provides power to all other components to operates. It
provides power to the input/output modules, memory system, and
processor.
The function of the power supply is to provide the DC or AC power to
operate the PLC.
How much power does it require to operate PLC?
Most of the PLCs work at 220VAC or 24VDC.
3. Central Processing Unit (CPU)
Central Processing Unit is the heart of the PLC system. The function of the
CPU is to store and run the PLC software programs.
It helps to perform the basic arithmetic, logic, controlling, and input/output
operations specified by the instructions. It consists of the three subparts as
memory, processor and power supply.
4. Memory System
A memory system is responsible for storing and retrieving data and
information. It consist of different type of memory such as RAM, ROM,
EEPROM and Flash memory.
Overall memory is classified into four sections based on the types of data it
stores.
• Input/Output Image Memory
• Data Memory
• User Memory
• Executive Memory
5. Communication Protocols
The communication protocols are useful for exchanging the information or
data between connected devices through a network.
6. PLC Programming
You need PLC programming instructions and programming to live the
communication between different circuits of the PLC.
The useful information or data are communicated by the specific
communication protocols.
Most of the PLC programmer works on the ladder diagram programming
language. It is pretty easy as compared to other PLC programming
languages.
How does Programmable Logic Controller Work?
The most important working principle is- the PLC is operated by
continuously scanning programs. Scanning happens every time per
millisecond. So, it is called as the Scan Cycle.
For this scan cycle, PLC required a little amount of time in the range of
milliseconds or ms.
What are the basic PLC Scan Cycle?
The scan cycle consists of the following three basic main steps.
1. Read the inputs
2. Execute the program by the CPU
3. Update the output
Step 1: Read / Sense the input
Firstly, PLC reads the on/off status of the external input signals. After
scanning the input, it gets stored in the input memory. This input included
switches, pushbuttons, proximity sensors, limit switches, pressure
switches, etc.
Step 2: Execute the logic by the processor
This scanned input gets transferred to the CPU for processing from input
memory. The processor executes the programming instructions based on
the input. After the execution, the result (on/off) will be stored in the device
memory.
Step 3: Update / write the output:
When the program executes the last instruction, it will send the on/off
status to the output device memory. The outputs include solenoids, valves,
motors, actuators, and pumps.
All three steps get completed under the scan time.
What is Scan Time?
The amount of time is taken by the processor to read/sense the first input
and execute the last output called the Scan time.
PLC is so fast as it can easily scan and execute the program in few
milliseconds i.e. 10-15 milliseconds.
What are the Types of Programmable Logic Controller (PLC)?
Two types of PLCs are used for commercial or industrial purposes.
1. Compact PLC
2. Modular PLC
Knowing these two types is the part of PLC basics knowledge.
What is a Compact PLC?
It is also called as
Integrated PLC or
Fixed PLC.
The compact PLC
has a fixed number
of input/output
modules along with
power supply and
CPU.
What is a Modular PLC?
It consists of a variable number of inputs and outputs. Inputs and outputs
can be added to the modular PLC systems by the user.
If you look at the below PLC designing structure, it looks more like a rack.
So, it is also called as Rack-Mounted PLC.