When programming PLC programs, no matter you are a novice or an experienced programmer, you will make the following low-level mistakes. Because this error is non-grammatical, the error cannot be detected by programming software. Once this error occurs, it is sometimes difficult to find it yourself. It is not until the controlled device cannot run or stops at a certain position during debugging and operation that you realize there is a problem. Then you have to search and analyze the PLC program line by line, or execute the program line by line, which is time-consuming and labor-intensive.
So what exactly is it that makes us make such a stupid mistake?
The inherent thinking of relay electrical control is that when compiling a program, one or several input points use physical normally closed contacts (such as stop switches, travel limit switches). In the program, the relay electrical control method is still used, that is, normally closed contacts are still used as conduction conditions.
The following is an example of a simple start-stop and self-locking circuit:
The erroneous PLC program that cannot be run according to the above figure is as follows:
After the PLC is powered on, the normally closed points X000 and X002 will be disconnected. That is, the logic value is "0" Y0 = (Y0 + X001) × X000 × X002. From the above digital logic expression, it can be seen that after pressing the start button SB1, the logic value of X001 is "1", and the logic value of Y0 will never change and is always "0". The reason is related to the internal input circuit of the PLC. The following is the equivalent circuit of the internal input of the PLC:
The correct PLC program is as follows:
After the PLC is powered on, the normally open points X000 and X002 will be closed. That is, the logic value is "1" Y0=(Y0+X001)×X000×X002. As long as the start button SB1 is pressed, the logic value of X001 is "1" and the logic value of Y0 is "1". Release the start button SB1, the logic value of X001 is "0" but the logic value of Y0 is "1". The relationship between Y0 and X001 is "or", which ensures that the logic value of Y0 is always "1", that is, self-locking. Until the stop button is pressed or an overload occurs (FR0 action), the logic value of Y0 will become "0".
From the simple example above, we can see that novices may not understand that when the external input is normally closed, the logic value changes to "not" after passing through the PLC internal input circuit. And the inherent thinking of relay electrical control affects the old hands. Although this is a low-level error, it is also easy to occur during the program compilation process.
Previous article:Motor load calculation method Operating power and acceleration power calculation
Next article:Mathematical function instructions of S7-200 PLC
- Popular Resources
- Popular amplifiers
- 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
- AutoChips AC7801x motor demo board review + unboxing photos and hardware analysis
- A module keyboard resource sharing, schematics, PCB, code are all available
- Why is PCB design generally controlled at 50 ohm impedance?
- 【GD32307E-START】01- Unpacking and post-test planning
- Protect outdoor cameras from extreme weather with a temperature switch
- Linear Regulator (LDO) Experiment Manual
- C++ Language Tutorial
- The problem that the PS side does not close the cache when ZYNQ debugs DDR
- I would like to ask for an example of the architecture of a general sensor module.
- Do you know how to conduct factory inspection on instruments and what precautions should be taken? All the knowledge points are here~