As we all know, programmable logic controllers (PLCs), hereinafter referred to as PLCs, are often used in electrical control. From various production equipment in the industrial field to various amusement equipment in amusement parks (such as roller coasters, carousels, etc.). In PLC programming, the most commonly used programming method by most PLC programmers is ladder diagrams (LAD), which is also a standard configuration of major PLC manufacturers. At the same time, Botu programming software under Siemens PLC in Germany launched another programming method comparable to ladder diagrams (LAD) very early: structured programming language (SCL).
The following is a brief analysis and comparison between Ladder Diagram (LAD) and Structured Programming Language (SCL). Please correct me if I find any shortcomings.
A ladder diagram (LAD) program consists of individual elements that can be connected in series or in parallel on a segment supply line. Most program elements must be provided with variables. At least one rung leads off the supply line. Segment programming begins at the left edge of the rung. The supply line can be extended by using multiple rungs and branches. For example, the following figure shows a ladder diagram (LAD) program:
1) Power line, 2) Ladder, 3) Branch, 4) Contact, 5) Coil, 6) Function box
The above is a basic introduction to ladder diagram (LAD)!
SCL structured control language is a high-level programming language based on PASCAL. The main elements in PLC control include: input, output, timer, memory bit and expressions, assignment operations, operators in high-level programming languages. In program control, it provides instructions such as creating program branches, loops or jumps. It is mainly used in: data management, process optimization, recipe management, mathematical calculation/statistical tasks.
In the SCL structured control language, the five most basic blocks are also particularly important components. For example: Organization block (OB): The organization block defines the structure of the user program.
Function Block (FC): A function contains a program routine for processing repetitive tasks. A function has no "memory".
Function Block (FB): A block of code that permanently stores values in an instance data block so that the values remain available even after the block has finished executing.
Instance data block: When an instance data block is called to store program data, the instance data block is assigned to a function block.
Global data block: A data area used to store data that can be used by any block.
Relatively speaking, we have talked a lot. Of course, the above content is by no means all. If you want to fully master the ladder diagram (LAD) and SCL structured control language
Previous article:Application of Weiken inverter in ball mill
Next article:PLC flashing circuit counting stop
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- PCB Design Issues
- Professor Yang's book is here, a five-volume collection of "New Concept Analog Circuits" series by Yang Jianguo of Xi'an Jiaotong University
- 2019, what is your New Year's resolution?
- How does MCU implement part of the code running in RAM?
- STM32SPI interrupt can only accept the first two bytes each time
- BlueNrg-1 and Raspberry Pi communication abnormality
- 28335 Sampling Problems
- Common problems and causes of switching power supplies
- DM6467T calls TI's C6Accel library
- Rules for sending multiple instructions inside CAN protocol devices