Execution order and programming rules of PLC ladder diagram

Publisher:浅唱梦幻Latest update time:2023-06-25 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

PLC Ladder Diagram (Programmable Logic Control Ladder Diagram) is a programming language commonly used to control programmable logic controllers (PLCs) in industrial automation systems. Ladder diagrams are used by electrical engineers and programmers to write PLC programs that perform different logic flow controls on equipment and machines.


The execution sequence of the PLC ladder diagram generally follows the following steps:

1. Read input signals: Before starting execution, the PLC will first read the status of all input signals, including sensor signals and manual control signals.

2. Perform logical processing: The PLC will perform logical operations, comparisons, calculations, etc. on the input signals according to the logical sequence on the ladder diagram.

3. Execute output operations: Based on the results of the execution logic processing, the PLC will perform corresponding output operations, such as driving actuators, controlling switches, lights, etc.

4. Loop execution: The PLC will continuously loop through the above three steps, monitoring input status, processing logic, and executing output operations until it stops running or is reset.


It should be noted that the execution order of the PLC program may vary depending on the specific application scenario. For example, when multiple input signals and output signals are involved, the execution order may be adjusted.

The programming rules of PLC ladder diagram are as follows:

1. Ladder diagrams must be written from left to right.

2. Each running branch of the ladder diagram must be clearly visible and not confusing.

3. The coil and contacts must match, and the coil must be on the same vertical line as the contacts.

4. All ladder diagram programs must be commented.

5. It is forbidden to use duplicate coils in the program.

6. Ladder diagram programs must be structured. Codes must be grouped according to functional blocks and must not be disordered.

7. All coils must be protected to ensure that they are not disturbed by non-control related variables in the program.

8. There cannot be loops in ladder diagrams.


Keywords:PLC Reference address:Execution order and programming rules of PLC ladder diagram

Previous article:Siemens Schneider and other ten major manufacturers' mainstream PLC models and applications
Next article:What are the differences between "Industry 4.0" in different countries?

Recommended ReadingLatest update time:2024-11-16 10:25

Siemens PLC logic operation instructions
The Siemens S7 series PLC logic operation instructions are shown below. Byte logical operation instructions ANDB IN1,OUT Perform bitwise logical AND operation on bytes IN1 and OUT, and output the result at OUT IN1, IN2, OUT: VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD IN1 and IN2 ca
[Embedded]
PLC hardware components
PLC (Programmable Logic Controller) is an industrial control computer whose structure includes CPU, memory, input interface, output interface, communication interface, expansion interface, power supply and other parts. CPU: Also known as the central processing unit, it is the control center of the PLC. It
[Embedded]
PLC hardware components
How does PLC detect motor failure?
To detect motor failure, it is necessary to determine what kind of motor failure is detected. Generally, PLC detects motor failure by detecting the motor running current. Generally, thermal relays and frequency converters are used to detect the motor. Thermal relays are added to the control circuit, or frequency con
[Embedded]
3 PLC programming algorithms explained
PLC programming algorithm (1) There are only three quantities in PLC: switch quantity, analog quantity and pulse quantity. As long as you understand the relationship between the three, you can master PLC skillfully. 1. Switch quantity is also called logic quantity, which means that there are only two
[Embedded]
3 PLC programming algorithms explained
Detailed explanation of PLC and inverter communication wiring diagram
The relationship between PLC and frequency converter is one of inclusion and being included. Both PLC and frequency converter can complete some specific instructions to control the motor. PLC is a program input execution hardware, and frequency converter is one of them. However, the PLC covers a wider ran
[Embedded]
Detailed explanation of PLC and inverter communication wiring diagram
Several most commonly used control circuits for PLC
The most frequently used PLC programming languages ​​are structured text and ladder diagram. For technicians with little basic knowledge, it is quickest to start learning PLC programming from ladder diagram. Regardless of the brand of PLC, the structure of its ladder diagram is similar to the actual electrical contr
[Embedded]
Several most commonly used control circuits for PLC
Application of 300PLC to Ethernet module XD1.0 in remote monitoring of coal mine control system
summary The original Siemens CP5611 communication card was replaced by the Xingda Easy Control MPI to Ethernet module (MPI-ETH-XD1.0) converter. The industrial computer only needs to be connected to the router via an Ethernet cable to upload data to the central control room. The on-site debugging personnel only
[Embedded]
Application of 300PLC to Ethernet module XD1.0 in remote monitoring of coal mine control system
Mitsubishi FX series PLC application examples PLC program for common circuits
The electroplating line consists of an electroplating tank, a recovery tank, a cleaning tank, a driving line, a lifting hook, a travel switch, etc. (as shown in the figure). A is the original position (the workpiece storage place). After the hook hangs the workpiece, it rises and touches switch SQ2 to stop; the vehi
[Embedded]
Mitsubishi FX series PLC application examples PLC program for common circuits
Latest Embedded Articles
Change More Related Popular Components
Guess you like
    502 Bad Gateway

    502 Bad Gateway


    openresty

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号