PLC programming learning requires not only the enthusiasm for independent learning, but also the skills of imitation. When I have nothing to do, I always practice and explore. Here is a real example in PLC programming. Through this example, I hope it will be helpful to everyone in the process of learning PLC.
First of all, this is a simple contactor interlock forward and reverse circuit. Let's take it as an example to see how it is programmed and briefly understand this circuit diagram:
FR thermal relay, SB1 stop button, the left side is the forward control circuit, the right side is the reverse control circuit, SB2 forward start button, SB3 reverse start button, KM1 forward AC contactor, KM2 reverse AC contactor, this pair of points is KM1's normally open point and the forward start button in parallel, which is its self-locking point. Similarly, this pair of normally open points is the self-locking point of the reverse control circuit. Let's take a look at the interlocking part, we can see KM2, its normally closed point and KM1's coil are connected in series, KM1, its long closed point and KM2, its coil are connected in series, when KM1 is actuated, this pair of normally closed points are disconnected, ensuring that the reverse circuit cannot be connected. Similarly, when KM2 is connected, this pair of points are disconnected. This is the contactor interlocking circuit.
Let's see how to do address coding. We code the SB1 stop button address as x1, SB2 address code as x2, SB3 address code as x3 thermal machine electrical appliance, address code x0 output KM1 AC contactor address code Y1, KM2 address code Y2. Let's see how to draw a ladder diagram. The ladder diagram corresponds to the electrical control schematic diagram.
First, you can see SB2. After x2, there is the self-locking key, and it is connected to a pair of normally open points. In case the normally open point of the AC contactor is followed by the x1 stop button and then the heat meter appliance. After x0, there is the AC contactor. The normally closed point serves as an interlocking key. You can see Y2. No slash refers to the normally open point, and a slash refers to the normally closed point. When using it, you must clearly distinguish the output of the positive transmission. In case of KM1 AC contactor, this is the forward control circuit. Let's take a look at the reverse control circuit. They are the same. Then there is the self-locking point, the self-locking point of Y2-KM2, which is all normally open points, followed by the SB1 stop button, the normally closed point, the logical closed point, and x0. After the search point of Y1, there is a slash, which refers to the logical closed point, and no slash refers to the logical open point, and finally the output Y2.
Next, how to convert it into programming language, first of all, the normally open point of the symptom control loop connected to the bus can be recorded as ldx2 with the ld instruction, and then the parallel connection, the normally open instruction we use the o2 instruction, can be recorded as o2y1, the series long close instruction, we can record as ANIx1, ANIx0, ANIY2, and then the output OUTY1, we have marked it here, what does it represent the address code mean? Corresponding to the motor control schematic diagram, this is the forward rotation circuit.
Let's take a look at the reverse loop and the busbar connected to the open point. We can use the ld instruction to record it as LDx3. Similarly, the parallel, normally open instruction ORY2. We use the anI instruction, which can be recorded as anIx1, x0, y1, and then the output coil OUTY2. In the logic programming language, when we are actually programming, we can use ladder diagrams for programming, or we can use logic programming languages to program directly. Both methods are possible.
Next, let's look at the PLC wiring diagram. Let's look at the input part. You can see that there are 4 inputs corresponding to thermal relays, SB stop button, SB2, SB3 start buttons, and two outputs corresponding to Y1, Y2, connected to the AC contactor. After you can see its coil, friends will ask why the thermal relay is a normally closed point in the electrical control schematic, but a normally open point is used in the PLC wiring diagram. The same is true for the stop button. Here, because we programmed it into a logical closed point when programming, we can see in the ladder diagram that the thermal relay x0 uses a logical closed point. The stop button SB1 also uses a logical closed point, so we can use a normally open point on the outside. Of course, we can also use a normally closed point. We only need to change the logical closed point here to a logical open point when programming. In this case, we can use a normally closed point on the outside. When using it, we must distinguish it clearly and use it flexibly. In fact, both are possible. Simple basics, electrical schematics, address coding ladder diagrams, simple understanding of logic programming languages and PLC wiring diagrams.
Learning PLC requires four steps: self-study, imitation, error correction and innovation. Many people stagnate in the self-study step. A big reason is that they don't have perseverance and don't insist on reading all the book knowledge. They always think that the theoretical knowledge is too boring. In fact, this step is very critical. It can help you build a complete PLC concept framework in your mind. Secondly, you need an object to imitate and help you correct errors, so that you can grow slowly in practice.
Previous article:Analysis of three basic drive systems of industrial robots
Next article:What is PID? Let me tell you a story
Recommended ReadingLatest update time:2024-11-16 09:17
- 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
- Today's live broadcast: Nexperia's efficient ESD solutions for connected car applications
- GPCE4064B cannot be programmed
- “a data verification error occurred, file load failed” feasible solution
- Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis
- Collection! 19 methods and techniques for converting 5V to 3.3V
- Embedded C code optimization
- ESP32-S2-Saola-1 Review—by dcexpert
- Thank you for being there, thank you for the colorful life in the year
- Does anyone know about ST's new MPU? The model is STM32MP157A
- BlueNRG-x Documentation - Free Development Compiler Tool