Professional Documents
Culture Documents
Block Diagram of Programmable Logic Controller (PLC) - Polytechnic Hub-Merged
Block Diagram of Programmable Logic Controller (PLC) - Polytechnic Hub-Merged
Block Diagram of Programmable Logic Controller (PLC) - Polytechnic Hub-Merged
Information in above figure. The PLC has following basic sections are, Programming devices are dedicated devices used for loading the
Mechanical Articles user program into the program memory or edit it and to monitor
Polytechnic Colleges List the execution of the program of the PLC. It is also used to
troubleshoot the PLC ladder logic program. Hand held terminal
Textile
(HHT) or dedicated terminal or personal computer are
Uncategorized
programming devices commonly used in most of the PLCs.
TOPICS
Related Articles:
amplifier Bluetooth
light LVDT meter The input module is a mediator between input devices and central
Are There Any Benefits of
microcontroller processing unit (CPU) which is used to convert analog signal into
Using Exam Dumps for
digital signal.
Inst Tools
P LC TUTOR I ALS
Menu Industrial Control Systems Different Types of Industrial
hot standby, or voting configuration as per the design
consideration of specific industrial a…
Control Systems are Distributed Control System (DCS),
Remote terminal unit (RTU) and Programm…
Components of PLC
JD COMPONENT - BMA253
Ad TI, MPS, ONSEMI, INFINEON, IR, PI, EXAR,
Learn more
The recommended controller for SCADA systems is the programmable logic controller
(PLC). PLCs are general-purpose microprocessor based controllers that provide logic,
(1) Power supply :
timing, counting, and analog control with network communications capability.
The power supply converts facility electrical distribution voltage, such as 230 VAC, 120
Components of PLC VAC or 125 VDC to signal level voltage used by the plc processor and other modules.
A PLC consists of the required quantities of the following types of modules or cards, (2) Processor :
mounted on a common physical support and electrical interconnection structure known
The processor module contains the microprocessor that performs control functions and
as a rack.
computations, as well as the memory required to store the program.
These are used to connect devices between plc and field devices like flow transmitters,
pressure transmitters, control valves, analyzers, substation feeders for motor control etc.
(4) Communication :
Communications modules are available for a wide range of industry-standard
communication network connections. These allow digital data transfer between PLCs and
$ a d k h J % $ a d k h J %
to other systems within the facility.
Types of Industrial Control Systems
X
What is PLC Redundancy? P LC TUTORI AL S
X
Types of Industrial Control Systems
X
What is PLC Redundancy? P LC TUTO RI AL S
X
P LC TUTOR I A L S PLC Redundancy Systems may utilize a warm standby, P LC TUTOR I ALS PLC Redundancy Systems may utilize a warm standby,
hot standby, or voting configuration as per the design hot standby, or voting configuration as per the design
Industrial Control Systems Different Types of Industrial Industrial Control Systems Different Types of Industrial
Most commonly used modules are Modbus communication cards
consideration or Serial
of specific industrial a… consideration of specific industrial a…
Control Systems are Distributed Control System (DCS), Control Systems are Distributed Control System (DCS),
Remote terminal unit (RTU) and Programm… Remote terminal unit (RTU) and Programm…
communication.
Some PLCs have communications capability built-in to the processor, rather than using
separate modules.
“Open” systems generally provide “plug and play” features in which the system software
automatically recognizes and communicates to any compatible device that is connected PLC Software and Programming
to it.
All software and programming required for the PLC to operate as a standalone controller
Other widely accepted open protocols are Modbus, Profibus, and ControlNet. is maintained on-board in the processor.
(6) Redundancy : PLCs are programmed with one of the following standard programming languages:
Many PLCs are capable of being configured for redundant operation in which one (1) Ladder Diagrams :
processor backs up another.
Used primarily for logic (Boolean) operations and is easily understood by electricians and
This arrangement often requires the addition of a redundancy module, which provides control technicians. This is the most commonly used language in the United States and is
status confirmation and control assertion between the processors. In addition, signal supported by all PLC suppliers.
$ a d k h J % $ a d k h J %
(4) Structured Text :
Types of Industrial Control Systems
X
What is PLC Redundancy? P LC TUTORI AL S
X
SCADA
The ladder logic functions the same as equivalent hard-wired relays. The PLCs in a SCADA
system will be networked to one or more central personal computer (PC) workstations,
which provide the normal means of human machine interface (HMI) to the system.
These PCs will be provided with Windows-based HMI software that provides a graphical
user interface (GUI) to the control system in which information is presented to the
operator on graphic screens that are custom-configured to match the facility systems.
For example, the electrical system status may be shown on a one-line diagram graphic in
which open circuit breakers are colored green, closed breakers are colored red, and
voltage and current values are displayed adjacent to each bus or circuit breaker.
(1) They were developed for the factory floor and have demonstrated high reliability and
tolerance for heat, vibration, and electromagnetic interference.
(2) Their widespread market penetration means that parts are readily available and
programming and technical support services are available from a large number of control
system integrators.
(3) They provide high speed processing, which is important in generator and switchgear
control applications.
$ a d k h J %
Its input and output modules can be extended depending upon the requirements
PLC Architecture:
HOME ELECTRICAL › ELECTRONICS › COMMUNICATION › ROBOTICS PRO
Input/ Output Section: The input section or input module consists of devices like s
and many other real-world input sources. The input from the sources is connected to
the input connector rails. The output section or output module can be a motor or a sol
a heater, whose functioning is controlled by varying the input signals.
CPU or Central Processing Unit: It is the brain of the PLC. It can be a hexa
microprocessor. It carries out all the processing related to the input signals in order to
signals based on the control program.
Programming Device: It is the platform where the program or the control logic is w
handheld device or a laptop or a computer itself.
Power Supply: It generally works on a power supply of about 24 V, used to powe
Programming Logic Controller (PLC) devices.
Memory: The memory is divided into two parts- The data memory and the prog
Advantages: program information or the control logic is stored in the user memory or the prog
where the CPU fetches the program instructions. The input and output signals and the
Before getting into details about PLCs, lets us know 3 reasons why PLCs are being w
signals are stored in the input and output external image memory respectively.
days
Working of a PLC
They are user friendly and easy to operate
They eliminate the need for hard-wired relay logic
They are fast
It is suitable for automation in industries.
The execution results are then stored in the external image memory which controls the
The CPU also keeps a check on the output signals and keeps updating the contents
memory according to the changes in the output memory.
The CPU also performs internal programming functions like setting and resetting of t
the user memory.
Programming in PLC
The basic functioning of the PLC relies on the control logic or the programming
Programming can be done using flowcharts or using ladder logic or using statement logic
Interlinking all these, let us see how we can actually write a program in PLC.
Working of PLC
The input sources convert the real-time analog electric signals to suitable digital e Write the Boolean expression for the different logic. Boolean algebra usually involves l
these signals are applied to the PLC through the connector rails. like AND, OR, NOT, NAND and NOR. The different symbols are:
These input signals are stored in the PLC external image memory in locations know
done by the CPU + OR operator
The control logic or the program instructions are written onto the programming device . AND operator
or through mnemonics and stored in the user memory. ! NOT operator.
The CPU fetches these instructions from the user memory and executes the
manipulating, computing, processing them to control the output devices.
Install & Configure
Chrome
Streamline updates across
Write the instructions in simple statement forms like below: Ld- Load
IF Input1 AND Input2 Then SET Output1 ELSE SET Output OR- Or logic
ANI – NAND logic
Write the ladder logic program. It is the most important part of PLC programming.
ORI- NOR logic
about ladder logic programming, let us know about few symbols and terminologies
Out – Output
Rung: One step in the ladder is called a rung. In simpler words, the basic stateme
A Simple PLC Application
logic is called a Rung.
C – Counter
Problem: Design a simple line follower robotic system to start a motor when a
Symbols: simultaneously switch on the LED. The sensor on the motor detects any obstacle and an
to indicate the presence of the obstacle and the motor is simultaneously switched off
switched on and LED is off.
Solution:
Let us first assign our symbols or tags to the inputs and outputs
Next Step is writing the Boolean expressions
M – Motor,
M = A. (! B)
A – Input Switch 1,
L = C. (! B)
B- Input Switch 2,
Bu = B. (! A.! C)
L – LED,
The next step involves drawing the ladder logic program
Bu –Buzzer
The final step involves writing the mnemonics to be fed to the handheld device
Ld A ANI Ldi B
Ld C ANI Ldi B
So, now that I have demonstrated the basic control function using PLC, do let me know m
ideas of control designs using PLC.
Photo Credits:
‹ PREVIOUS
RELATED CONTENT
What is LM2576 Voltage What is BD136 Transistor : Pin What is 2P4M SCR : Pin What is S
Regulator & Its Working Configuration & Its Working Configuration & Its Applications Its Applic
4 Comments
more specialized and does one thing well.
MENU MENU
Characteristics of a Microcontroller
Search any part number or keyword Search any part number or keyword
CART ACCOUNT Not sure if a device in question is a microcontroller or another kind of computer? Let’s take a Clook
ART at aO U N T
ACC
A microcontroller embeds inside another device. They help control the device’s actions or features. For
MICROCONTROLLERS VERSUS that reason, you may hear people refer to a microcontroller as an “embedded microcontroller.”
PLC’S: A DETAILED
Task-Dedicated
Microcontrollers are only dedicated to one certain task, designed to run one specific program. As
opposed to RAM, this program remains in Read-Only Memory (ROM), where it does not change.
COMPARISON Low-Power
A general purpose computer, which stays plugged into a wall socket, will use around 50 watts of
electricity. A microcontroller will only use around 50 milliwatts.
A microcontroller will have a dedicated input device and in most cases, an output device (such as an LCD
Microcontrollers Versus PLC’s: A Detailed Comparison
or LED display).
In addition, the microcontroller will accept input from the device that it’s controlling and sends signals to
Introduction other components within it to help control it.
As open-source electronic prototyping platforms such as Arduino, BeagleBone, and Raspberry Pi
Take the microcontroller within a television, for example. It accepts input from the remote control and
continue to widen the realm of possibilities for digital device and interactive object development, there’s
then displays the output on the television screen. Inside, the controller controls the speaker system,
more interest than ever before in microcontrollers and their related components.
channel selector, and picture tube electronics such as brightness.
Yet, this industry is so nuanced that it’s easy to confuse microcontrollers with their larger-scale
Or, consider a microwave oven. The oven’s controller accepts input from a keypad and displays output
counterparts, Programmable Logic Controllers (PLCs). Similar in nature but stronger in capacity, PLCs
on an LCD display. In addition, it controls the relay that manages on/off power for the microwave’s
offer myriad of benefits and uses in their own right.
generator.
Today, we’re delving into the difference between microcontrollers and PLCs. We’ll explain what each
Economical and Small
system does and who uses it to help differentiate the unique characteristics of each.
A microcontroller won’t break the bank. In most cases, users seek out the smallest and most affordable
Ready to learn more? Let’s get started! one that can get the job done.
Ruggedized
What is a Microcontroller? Many microcontrollers can withstand high heats and rougher conditions than general purpose
Let’s begin on the smaller side of the equation. In short, a microcontroller is a computer. However, it’s computers can handle.
different than the laptop or personal computer you’re used to, though all computers share the same
For instance, the microcontroller that manages your car’s engine has to hold up against extreme
features:
temperatures that range from below freezing in Alaska to over 100 degrees Fahrenheit in Nevada.
A Central Processing Unit (CPU)
While this scenario requires a ruggedized microcontroller, not all require this characteristic. The
Program-loading capabilities (e.g. Desktop computers load browsers from the hard disk)
microcontroller embedded in a Blu-ray Disc player, for instance, has no need for ruggedization.
Random-Access
We use cookies Memory
to ensure(RAM) to store
that we variables
give you the best experience on our website. If you continue to We use cookies to ensure that we give you the best experience on our website. If you continue to
Input and output devices to facilitate communication (e.g. keyboard, mouse, printer, a monitor)
©One mainuse
1976-2021
this site we will assume
difference?
c3controlsThose larger (724)
that you
versions are
are
775-7926
happy with
“general it.
computers.”
purpose OK PRIVACY POLICY of running
They’re capable Microcontrollers in Manufacturing
use this site we will assume that you are happy with it.
thousands of programs and are useful for a variety of purposes. On the other hand, a microcontroller is
As microcontrollers are so cost-effective and include such a wide variety of accessory components, their To facilitate this function, most PLCs include multiple ports and communication protocols to ensure that
uses have become more mainstream. For years, their use centered on the maker world, including MENU the device can communicate with other systems. MENU
automation clubs and personal robot builders. Yet, as they expand in functionality, manufacturers are
considering
Search anyusing them
part in industrial
number applications, as well.
or keyword CART ACCOUNT Comparing Microcontrollers
Search any part number or keyword and PLCs: A Scenario CART ACCOUNT
Is this a wise move? Are the two the same? Next, let’s take a look at what sets a PLC apart from a While there may be some applications in which a microcontroller can do a similar job as a PLC, users
microcontroller. should consider each scenario to determine which system is best.
For the purpose of this paper, let’s use a common industrial application to illustrate the point. Say, for
What is a PLC? instance, a user wanted to perform a small automated task.
Now that we’ve covered the basics of a microcontroller, let’s compare it to a PLC.
He wants to use a few sensors and an actuator to provide the output. He also needs a reporting function
The most basic definition? A PLC is a larger-scale microcontroller. It’s an industrial digital computer that’s to “speak” to a larger control system. What’s needed is a basic operating program.
ruggedized and adapted to facilitate tough manufacturing processes.
A small PLC will work, in this case. Yet, is it the smartest and most economical decision? What about an
Its most common applications include: open-source, board-level microcontroller? If you’re in a similar dispute, here are a few factors to
consider.
Assembly lines
Robotic and machine learning devices I/O Compatibility
Any function that requires high-reliability control or process fault diagnosis Once you know your required number of inputs and outputs, check to see if the microcontroller in
How does it work? question includes the required number of I/Os.
A PLC accepts information from connected sensors and input devices. Then, it processes that data and Keep in mind that the type of I/Os matter. You may be able to find a microcontroller with the right
creates outputs based on preset parameters. Depending on the exact setup, a PLC can even monitor and number of discrete and analog I/Os, but they may not be the correct type for your application.
record run-time data, analyzing machine line productivity or operating temperature, for example.
In some cases, you can convert them to match your needs.
Characteristics of a PLC Take a 4-20 mA current loop, for instance. A user may be able to convert this to a 0-5 V voltage loop in a
What sets a PLC apart from a microcontroller, larger-scale industrial PLC or any other industrial control cinch. Yet, if the PLC includes a more specific type, such as an analog output with pulse-width modulation
solution? Let’s take a look at a few key characteristics. (PWM), you’ll be harder-pressed to convert it to anything, though you can purchase a signal converter to
facilitate the process.
Inputs/Outputs
A PLC includes a CPU that stores and processes program data. Yet, it relies on input and output modules This is where a PLC can shine.
to connect it to the rest of the machine. These I/O modules send information to the CPU, triggering
Designed to work with industrial sensors, most will offer a wider range of I/O choices. This cuts down on
certain results.
the need for external conversion. In addition, most PLCs will build in isolation for I/O points, which can
The PLC I/O controls can be analog or digital. Inputs can range from sensors and switches to meters, and help protect those devices and circuits.
outputs include relays, valves, drives, and lights. One advantage that PLCs offer is that users can
Mounting and Housing
Search any part number or keyword Search any part number or keyword
Take the for/next loop within a PLC, for instance. If there’s an issue with it and the program gets
CART
stuck, it
ACCOUNT
Unsure how to test for each of the above characteristics? The International Electrotechnical Commission
CART ACCOUNT
could hinder performance and pose a safety concern. (IEC) and Underwriters Laboratories (UL) include standards to go by. Each PLC system will include
documentation that lists the tests completed and the methodology used.
The software watchdog will kick in and begin to time each scan of the program. If one scan doesn’t finish
in the allotted time, it will bark. This faults the PLC and places it into safe mode while notifying the user. Most microcontrollers don’t undergo such extensive testing, which can make it more difficult to know
their capabilities. There are also differences between generic boards and brand-specific ones.
At the same time, there are hardware watchdogs that monitor the devices that connect to the PLC. As the
PLC shakes hands with its I/O modules or external devices (such as switches, sensors, or actuators), the
watchdog counts each scan as it occurs.
Understanding Microcontrollers vs PLCs in Your
If any scan count starts to lag, it signals an issue with the PLC. In most cases, this will trigger the system Application
into safe mode and alert the user. Depending on your use case scenario, budget and program expectations, you may be able to use either a
microcontroller or a PLC.
Can you add this functionality onto a microcontroller? The short answer is “yes” although it isn’t easy.
Users would have to write these programs from scratch or reuse existing software modules, neither of Remember that while microcontrollers offer costs savings, they’re more limited in nature than PLCs. This
which is a simple step. From there, the user would also need to test and verify the software for the given means if you’re looking for a system to go into a larger industrial network, it may not be up to the task.
application, which is also laborious. However, it could be perfect for DIY projects and other teaching tools that aren’t as complicated.
environments. A microcontroller may work too, though it will require special mounting and connection
The content provided in this white paper is intended solely for general information purposes and is
considerations designed to hold up to this abuse.
provided with the understanding that the authors and publishers are not herein engaged in rendering
Corrosion
engineering or other professional advice or services. The practice of engineering is driven by site-specific
In some environments, equipment is around vapors and fumes that can corrode wiring and other circumstances unique to each project. Consequently, any use of this information should be done only in
components. consultation with a qualified and licensed professional who can take into account all relevant factors and
desired outcomes. The information in this white paper was posted with reasonable care and attention.
Most PLCs include coatings that cut down on the amount of bare, exposed metal on their boards. However, it is possible that some information in these white papers is incomplete, incorrect, or
Likewise, their wires include corrosion-resistant materials. inapplicable to particular circumstances or conditions. We do not accept liability for direct or indirect
losses resulting from using, relying or acting upon information in this white paper.
Noise
In almost every industrial environment, you’ll find systems that create electronic noise, along with
magnetic fields. Can the equipment withstand it? An inexpensive microcontroller could go into fault
mode or lose its program if the interference is significant enough.
OUR PRODUCTS
Yet, a PLC has a better level of protection. It can stand standard electronic noise without issue.
Temperature Levels
13mm Pilot Lights
We use cookies to ensure that we give you the best experience on our website. If you continue to We use cookies to ensure that we give you the best experience on our website. If you continue to
Most microcontrollers operate best in a benign, temperature-controlled environment, though certain
useones
ruggedized this site
can we will assume
withstand lowerthat you are
or higher happy with it.
The CPU accepts (reads) input data from various sensing devices, executes the user program from memory and sends appropriate output
commands to control devices.
A direct current (DC) power source is required to produce the low-level voltage used by processor and I/O modules. This power supply can be
housed in the CPU unit or may be a separately mounted unit, depending on the PLC system manufactures. The CPU contains various electrical
parts and receptacles for connecting the cables that go to the other units as well as to operational key switches.
Several industries utilize sequential industrial process which is respective in nature. For such processes industries have to depend upon use of relays, Input & Output Modules of PLC
stepping drum, timers and controls considerable difficulties experienced in reprogramming necessitated due to change in the nature of production. Often
the whole system has to be scrapped and a redesigned is required. Input/output modules are used for interfacing between input devices (e.g start and stop push buttons, sensers, limited switch, selector switch) and
microprocessor. And also used for interfacing between output devices (e.g electrical heater, lights, solenoid valve, relays, buzzer, fan) and
To overcome these problems PLC control system was introduced. The PLC can be described as a control ladder comprising a sequence program.PLC microprocessor. The input information is transfer to the processor through input module and output information from the processor to load is transform
sequence program consists of normally open and normally closed contacts connected in parallel or in series. It also has relay coils, which turns ON and through output module.
OFF as the state of these contacts change.
The input/output module use for providing the isolation between input devices and process. And also to provide isolation from processor to output
PLC Programmable Logic Concept devices. For isolation modules use the opto coupler.
Programmable logic controller is a microprocessor based programming technique, which is used to perform many functions in industrial process. Input devices such as push buttons, limited switches, sensors and selector switches are hard-wired to terminals on the input modules. Output devices
Programmable logic controller operates similar to the ordinary controller. But in this system different operation are performed by software. If we want to such as small motor, motor starters, solenoid valve, and indictor lights are hard wired to the output modules.
change program it is only needed to change the program in the software. PLC takes input instructions in the form of ladder diagram or computer
software instructions. Input interface modules accept signals from the machine or process devices (e.g 220V AC) and convert them into signals (e.g 5VDC) that can be used
by the controller, or processor output interface modules converts controller or processor signals (e.g 5VDC) into external signals (e.g 220 v AC) used to
These instructions are decoded in CPU and CPU provides differed signals to control or to operate many devices of system. control the machine or process.
When these devices change their position or cause to change controlled variable. A sample of controlled variable is given to CPU indicate that change The simplified circuit and block diagram of input modules is shown in fig. input modules perform four basic tasks in PLC system.
in controlled variable has been eliminated. PLC basically consists of a ladder network, which is performed according requirements of the system.
They sense when signal is received form the sensor on the input of the machine,
They convert the input voltage to the correct voltage level for the PLC
Basic Parts of the PLC
They isolate PLC from fluctuation in the input signal voltage or current.
A typical block diagram of PLC is show in Fig. as clear from fig PLC consists of following basic parts. At end they send the signal to the PLC.
The central processing unit is the heart of the PLC system. The CPU is a microprocessor based control system that replaces central relays, counters,
timers and sequencers. A processor appears only once in a PLC and it can be either a one-bit or a word processor. One bit processors are adequate for
dealing with logic operations. PLCs with word processors are used when processing text and numerical data, calculations, gauging, controlling and
The Figure shows the block diagram of microprocessor based control system. Data acquisition system (DAS) takes information signals form sensor
which is in the form of analog and change it into digital value which can be read in and processed by the microprocessor. A key-board and display in the
system allow the user to set-point values, to read the current values of process variables, and issue commands. Relays, D/A converters,
It is clear form the above figure that the input module is consist of two section one is power section while the other is logical section, which are
electrically isolated from each other. When push button is closed 220V AC is applied to the bridge rectifier, through resisters R1 & R2. rectifier convert
AC Signal into DC signal and zener diode ZD gives low voltage to the LED. When light from LED strikes the phototransistor it become in conduction
region and give DC voltage to the processor. Optical isolator also helps to reduce the effects of electrical noise, which can produce error.
reverse order.
The fig shown the block and circuit diagram of output module. It consists of two sections, one is logic section second is power section. Solenoid valves and other actuators are used to control process variables under program direction. A programmable timer in the system determines the
rate at which control loops are serviced.
Microprocessor-based control system range from a small Programmable controller which might be used to control a machine on Factory floor to large
computers used to control an entire fractionating column in an oil refinery.
Like 2
reddit
Process Control
Up
Resistance Welding
When logic high signal comes from the processor the LED is on & light strike to phototransistor. Which become in conduction region & give a triggering
pulse to at the gate of triac. The triac conducts-and load lamp is energized through it as clear from fig.
Keyboard and monitor is used for programming a PLC. The data is inter in the PLC processor with the help of Keyboard in the form of ladder diagram.
This ladder diagram can be see on the monitor screen. The programmer can communicate with PLC processor with help of programming devices. The
programming unit communicates with processor if PLC via a serial or parallel data communication link. The personal computer can be used for
programming of PLC if it has required software. Privacy & Disclaimer Terms of Service Sitemap
INTRODUCTION
The following Use Cases specifies the requirement:
Top 5 Most Popular Types of PLC engineers and technicians have been primarily taught modern languages such as Java, Python
and Javascript. These languages have a closer resemblance to Strcutured Text [ST] and thus
It's also important to consider the industry at question. A chemical process is typically designed
used Piping & Instrumentation Diagrams (P&ID). These specific schematics are easily replicated
By Vladimir Romanov through the use of Function Block Diagrams [FBD].
PLC Programming Languages - An example of a chemical process that would be easier to implement in Function
Block Diagrams (FBD) PLC programming
37 37
Shares Shares
for electrical engineers and those with basic knowledge of assembly programming.
Slow Deployment | Because of the visual nature of ladder logic, it takes longer a programmer
to create the logic they’ve envisioned. There’s a need to drag and drop elements that slow
down the development process versus other modern programming languages.
Unintuitive for Complex Applications | Ladder Logic shines when it comes to sequential
boolean tasks. However, when it comes to modern control theory that involves PIDs, flow
control, analog sensors, and feedback loops, it’s not always easy to implement and decipher.
Ladder Logic is the most used PLC programming language around the world. It’s easy to work
with and maintain for those who don’t have constant exposure to PLC programming. We
recommend that you begin your PLC programming journey by learning ladder logic first.
Since its inception, ladder logic has evolved significantly. However, the basic principles of
operation remain the same. Ladder logic PLC programming evaluates each rung of a ladder in
sequential order assesses conditional instructions, and if the result evaluates to “TRUE,” the
output instructions are executed.
PLC Programming Languages | Ladder Logic PLC Programming Example in RSLogix 5000
features the same structures, programming paradigms, and functions that one would expect
to see in C or Java.
Drawbacks of Ladder Logic High Complexity | Structured Text allows for greater flexibility than other languages and thus
makes it easier to implement advanced functionality for those who master the language.
Steep Learning Curve | Ladder Logic is a simple language, yet not very intuitive to those who
Transferability | Structured Text is standardized among most PLC systems, thus making it
come with backgrounds in C, C++, Java, or Python. That being said, it may be easier to grasp
37 37 easy to migrate between platforms. You’ll find significant differences in other languages
Shares Shares
between platforms, yet structured Text can be implemented in hardware and software Troublesome at Scale | FBD shines when it comes to small implementations of specific areas
platforms.
of a process. However, as the program becomes complex, it’s easy to get lost in all the sheets.
Disadvantages of Structured Text Function Block Diagrams are critical in analog scaling, PID loops, and Motion Control
sequences. As you learn about these topics, you should start exposing yourself to this type of
Difficult to Troubleshoot | When compared to ladder logic programming, structured Text is PLC programming. Before then, we would recommend mastering ladder logic.
much more complex from a troubleshooting standpoint. There are no visual queues, less
visual aids, and typically more code on a single line. Those who aren’t comfortable with this Sequential Function Charts PLC Programming
language will have a hard time figuring out the process flow.
Error-Prone | Structured Text provides greater flexibility to the user. However, this flexibility
Language
comes at the cost of standardization. Users must use software engineering best practices to As the name implies, sequential function charts, or SFC, shine when it comes to a subsequent
create safe fallbacks and trap any potential failures of the software.
process. For those who aren’t familiar with this notion, an example would be a chemical
transformation from raw materials into the finished product. Let’s take a simple brewing process
as an example.
We typically recommend that you learn Structured Text only after you’ve mastered Ladder
Logic unless you have a background in another programming language. It’s not often seen in Picture a large beer brewing facility with numerous tanks, valves, pressure sensors, heating
production environments due to the drawbacks mentioned above. However, it’s an excellent way elements, and a packaging section. When an operator initiates the production of a new batch,
to manipulate data, implement FOR loops and other structures that require extra steps in Ladder the process goes through the following sequence of steps. Note that these steps are simplified.
Logic.
Step 1 - The system is verified for readiness. Are all the appropriate ingredients available? Are
Function Block Diagrams PLC Programming the tanks empty? Are the valves in the right state? If the answer is valid to all checks, proceed. If
Language
not, abort.
Step 2 - Initiate a tank filling sequence that may call on multiple ingredients (water, sugar, salt,
Function Block Diagram, of FBD, is a programming language developed with chemical yeast, etc.). Validate the state and proceed once the tank is full.
processes in mind. It allows the user to create a visual representation and flow of the process
with appropriate transitions between the instructions. The visual editor is user friendly, intuitive, Step 3 - Initiate the brewing process. Raise and maintain the temperature for a specified period.
and creates a natural way to implement specific flows. Monitor tank pressure and react accordingly. Add ingredients if necessary. Proceed to the next
step after brewing is complete.
The most common application we’ve used Function Block Diagrams in our PLC programs is to
establish PID controllers. The visual aspect of FBD makes the PID easy to implement, visualize, Step 4 - Initiate transfer to holding tank. Our batch is ready; verify that all the appropriate valves
tune, and troubleshoot in the field. are set to the right position, the holding tank is empty and begin the transfer process.
As you can see from the example outline above, the process steps are executed in a sequence,
have defined start conditions and flow as the process would run in the production facility. In
ladder logic, this process can be implemented through an SQI/SQO Instruction. However, a
better approach would be to utilize SFC.
Function Block Diagram PLC Programming | Analog Signal Scaling Example in RSLogix 5000
Ideal for Complex Programming Structures | In ladder logic, the user will have to use multiple
rungs for what’s possible to accomplish on a single page of FBD. The instructions can be
brought directly into complicated PLC Instructions that implement PID loops, Motion Control,
and Add-On-Instructions (AOIs).
User Friendly | The visual editor of FBD, comes naturally for most users. The layout of the
process can be re-created through a drag-and-drop methodology that leaves little to
guesswork.
37 37
Shares Shares
Advantages of Sequential Function Charts PLC
Programming
Mimic Process Flows of Most Chemical Processes | Batching is a common chemical process
approach that takes a set number of raw ingredients and transforms them into the final
product. SFCs shine in these applications.
Combined with ST | Most SFC editors allow the use of Structured Text in specific cases to
create advanced logic flows.
Parallel Flows are Difficult to Implement and Troubleshoot | You may implement an unlimited
amount of process flows through SFCs. However, as the process paths split into multiple
flows, it becomes difficult to implement separate flow paths that would result in a robust
sequence.
Sequential Function Charts are extremely useful in specific cases. However, trying to fit this type
of programming language into a case that isn't sequential quickly leads to frustration. As you
work in a manufacturing environment, we recommend that you become familiar with the
process, understand the flow of the product and seek to build a model on paper before diving
into SFC programming.
In terms of program flow, each line specifies instruction as well as the conditions and outcomes
of the execution. In many aspects, Instruction Lists are closer to how you’d implement ladder
logic programs than structured text. However, either language is capable of creating the same
process flow.
Instruction Focused | As the name would suggest, there’s a high level of importance placed on
instructions rather than data flow. This style of programming creates a level of clarity of how
data is processed in the program.
Conclusion
The five most popular PLC Programming Languages are Ladder Logic, Structured Text,
Function Block Diagrams, Sequential Flow Charts and Instruction Lists. These methods of
programming are available on most platforms. However, certain PLCs will restrict user access to
certain languages unless the user pays a premium.
We recommend that every PLC programmer starts with ladder logic as this method is most
common in the industry. That being said, as the person is exposed to advanced programming
37
Shares