What is a PLC? PLC Programming - Ladder Logic and Ladder Diagram

Publisher:MagicalSerenadeLatest update time:2024-04-16 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

What is PLC?

PLC stands for Programmable Logic Controller and is an industrial-scale device with computing power used to control production processes in assembly lines, robotic cells, industrial machinery, and other manufacturing environments. They are used for processes such as fault detection, high reliability, and programmable manufacturing control. PLCs operate in real time because their inputs must be processed in a very short time. The timeliness of their operation is always critical to successfully achieve control purposes. The main motivation for the introduction of PLCs decades ago was to replace hard-coded relay systems with more flexible programmable controllers.


PLCs look different from traditional computers because they are ruggedized to resist wear and vibration. There are many types of PLCs, which vary in the number and type of I/O (input/output), housing and packaging, and the ability to interact with other PLCs and SCADA systems. These characteristics of PLCs determine their ability to operate in harsh industrial environments, withstand high temperatures and vibrations, and be immune to electrical noise.


The most common functions of a PLC controller are similar to those of an electromechanical relay. Specifically, a PLC receives a set of discrete inputs and checks whether the inputs are open or closed. This operation is based on a "scan cycle" where the PLC reads its inputs, executes its programmable logic, and writes its outputs. These three steps are repeated over and over as the scan cycle is repeated within the PLC's operating range.

PLC programs perform a logical "AND" function on a series of inputs. When all input bits are on, current is allowed to flow. Similarly, they also implement a logical "OR" function on a set of inputs provided in parallel. In this case, current is allowed to flow if at least one input is on. When implementing these functions, the PLC applies a certain order in the evaluation of the logical functions. It is strictly executed from left to right and from top to bottom, as opposed to the less strict operation of traditional relays. There are also PLCs that implement more complex functions (for example, internal discrete logic functions) to produce outputs that indicate completion or certain errors.

End users, such as automation engineers, interact with the PLC to configure it, but also to receive alarms and notifications. To this end, the PLC provides a human machine interface (HMI), including a graphical user interface (GUI). Common HMI controls include buttons, lights, text displays, and touch screens. In complex installations, the PLC can be connected to a personal computer, providing a more sophisticated and ergonomic user interface.


Components of PLC

PLC consists of the following main components:

  • Power supply: It supplies power to the various components of the PLC via a DC voltage. To do this, the power supply converts the user's line AC voltage (for example, 120 volts in the United States) to a lower DC voltage (for example, 24 volts).

  • Processor: This is a solid-state device that enables industrial control functions and other process control functions in manufacturing environments (such as production lines, machine tools, robotic equipment).

  • Input/Output (I/O): PLC consists of various input and output modules. Input modules detect the status of input signals from various sources such as buttons, switches, and various sensors. On the other hand, output modules are used to control devices such as relays and lights.

  • Communication Modules and Protocols : The communication modules of a PLC facilitate the transfer of digital data between the PLC and other devices at the industrial site. To enable this transfer, the communication modules implement one or more protocols, both wired and wireless. A non-exhaustive list of industrial protocols used by PLCs include EtherNet/IP, Profibus, Modbus, Interbus, ProfiNet, and others. PLC communication occurs through built-in ports on the device, such as USB (Universal Serial Bus), Ethernet, RS-232, RS-485, and RS-422 ports. PLCs use these ports to communicate with software systems, external devices such as sensors, actuators, and other control systems such as SCADA.

  • Redundancy: Important industrial PLC installations provide some kind of redundancy. Specifically, they contain a shadow PLC system that takes over the primary system in the event of a failure. To detect situations in which the redundant system must be activated, the PLC implements a heartbeat mechanism.

  • PLC Program : A key element of a PLC device is its control logic, which is programmed and reflected in specialized languages ​​for industrial automation and electrical systems, such as ladder diagrams and function block diagrams.

PLC Programming - Ladder Logic and Ladder Diagram

PLC logic can be programmed in different languages, including high-level visual programming languages. One of the most popular visual programming languages ​​for PLC control logic and configuration is ladder logic (LL), which is reflected in the ladder diagram (LD). The main advantage of ladder logic is that it provides a visual interface, which significantly reduces the learning curve for PLC programming. In addition, the structure of ladder diagrams and ladder diagrams is similar to relay circuits, which makes them easy for mechatronics engineers and industrial engineers to understand and use. Likewise, familiarity with bitwise operators and Boolean logic helps in understanding and using ladder logic.

From a programming point of view, ladder logic uses symbolic notation to express logical operations. Therefore, a ladder logic program consists of bulk mathematical logic in symbol positions, i.e. based on bitwise logical operations, and its structure resembles a ladder. This is the reason and rationale behind the name "ladder logic". The exact structure of ladder logic is specified by the PLCOpen standard, which makes it a standardized programming language. However, ladder logic was not invented for traditional programmers of high-level programming languages. Instead, it was designed primarily for technicians, electricians, and electrical engineers who are familiar with electrical signals. Therefore, ladder logic symbols look like electrical signals such as contacts and relays. These symbols map to Boolean and symbolic logic in the context of ladder logic programs.

Ladder logic is the most popular PLC programming language, but it is not the only way to program a PLC. Other popular languages ​​include Sequential Function Chart (SFC), Function Block Diagram (FBD), Structured Text (ST), and Instruction List (IL). These languages ​​are similar to ladder logic in concept and syntax while providing a smooth learning curve for engineers and technicians familiar with electrical concepts.

Ladder Diagram Example

PLC Applications: Selecting a PLC for Your Industrial Application

Given the wide variety of PLCs available, industrial engineers must go through a process of evaluating different devices to select the best fit for their task. To do this, they must review the requirements of their system and the application in which the PLC will be used. Likewise, information and requirements regarding the PLC's I/O capacity must be gathered, and the type of target output must be clear. For example, the electrical requirements of the I/O modules must be documented, including input device voltage, output device voltage, and current. It is also important to determine whether the PLC should support special operations and advanced functions beyond simple discrete (on/off) logic.

Another important aspect of selecting a PLC involves the memory and CPU (central processing unit) of the PLC device. To determine the CPU requirements, it is important to understand the speed of the industrial process or machine to be controlled. This involves determining the fastest operation required, as well as the time criticality and response time of various operations. Communication requirements also need to be considered during the PLC selection process. Specifically, data sharing needs must be determined as well as the devices that must communicate with the PLC (e.g., computers, touch screens in workstations). In this way, any required communication equipment (e.g., modems, cables) can also be identified.

The PLC selection process must also consider the need to interact with the operator through some interface, such as push buttons or LED (light emitting diode) digital displays. Specifically, the selected PLC must support the display of correct messages to the operator as well as any required alarms and notifications. Likewise, the operator should be provided with a method to enter data as required by the application.

The PLC selection process must also consider the physical environment that the automation equipment will be deployed in. It is important to employ equipment that is properly ruggedized, that is, strong and resistant to the shocks imposed by the target environment at hand.

Finally, there are non-technical criteria that drive the selection decision, including the cost of the equipment and the quality of the complementary services provided, such as training and after-sales support. The various criteria must be weighed and their relative importance for the application at hand. This will drive the selection of a product with the appropriate modules, value-added programmable features, operator interface, and cost.

Overall, PLCs are one of the most popular devices in industrial control applications. They are also expected to continue to be the core of industrial control in the era of the Fourth Industrial Revolution (Industry 4.0). However, emerging Industry 4.0 applications will provide ways to drive the operation of PLCs in an intelligent and data-driven manner. Specifically, the operation of PLCs in Industry 4.0 is driven not only by sensors and cyber-physical devices, but also by cloud-based data analysis. This is expected to improve the accuracy and intelligence of the next generation of industrial automation systems. In this context, it makes sense for young engineers to learn more about PLCs and their operation.

[1] [2]
Keywords:PLC Reference address:What is a PLC? PLC Programming - Ladder Logic and Ladder Diagram

Previous article:What are the power factors in IGBT module applications?
Next article:What does PT disconnection mean? Why is PT disconnection so serious?

Recommended ReadingLatest update time:2024-11-16 09:38

Detailed explanation of Siemens series PLC installation and wiring
This article introduces the detailed installation and wiring of Siemens PLC, including PLC models: Smart200, S7-300, S7-1200, S7-1500, etc. Siemens 200 module common PLC wiring diagram CPU SR20+EMDR32 Siemens S7-300 common module wiring diagram CPU315+PS307 (power module)+SM321 (DI mo
[Embedded]
Detailed explanation of Siemens series PLC installation and wiring
TIA Portal PLC Example: A brief analysis of the example of indirect addressing
Program Example In the following example, three variables from different memory areas can be accessed using subscripts. Overview of the three variables assigned to the corresponding indices: Subscript Accessing variables Storage Area 1 Input_WORD_0
[Embedded]
TIA Portal PLC Example: A brief analysis of the example of indirect addressing
A brief discussion on the self-locking and interlocking functions of PLC ladder diagram programs
1. Program with self-locking function The function of using its normally open contact to keep the coil continuously energized, i.e. in the "ON" state, is called self-locking. The start, hold and stop program (referred to as the start, hold and stop program) shown in Figure 1 is a typical ladder diagr
[Embedded]
A brief discussion on the self-locking and interlocking functions of PLC ladder diagram programs
9 classic Siemens PLC introductory programming cases
01 Car reciprocating motion Use S7-200 to realize the automatic control of the trolley's reciprocating movement. The control process is to press the start button, and the trolley moves from the left to the right (right to the left). When it moves to the right (left) and touches the right (left) travel switch, t
[Embedded]
9 classic Siemens PLC introductory programming cases
Introduction to RS485 communication method of FATEK FBs series PLC
This project is a pipe bending machine equipment renovation project. Without destroying the original functions of the equipment, only the original FATEK PLC of the equipment is replaced, so that the pipe bending machine can interact with the Estun robot through signals. The robot can load and unload the pipe bending
[Embedded]
Introduction to RS485 communication method of FATEK FBs series PLC
How to realize self-locking and interlocking in PLC
The two most basic circuits in electrical control are self-locking and interlocking. Self-locking is often used to control the start and stop of the motor, and interlocking is often used to control the forward and reverse rotation of the motor. So how to implement self-locking and interlocking in PLC? What is the re
[Embedded]
How to realize self-locking and interlocking in PLC
PLC project debugging signal interference case analysis
During the debugging of a PLC project, you may encounter all kinds of strange problems, signal interference is one of them, and it is difficult to find the cause of the problem. Today I will share two cases, hoping to help you. Example A 1. Description of the phenomenon: The AO point in the Sie
[Embedded]
PLC project debugging signal interference case analysis
What are the PLC industrial control configuration software?
01 Configuration software: There are generally three English abbreviations: HMI/MMI/SCADA, which are the corresponding full names of Human and Machine Interface, Man and Machine Interface, Supervisory Control and Data Acquisition, and the Chinese translation is: human-machine interface, supervisory control and
[Embedded]
What are the PLC industrial control configuration software?
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号