PLC (Programmable Logic Controller) is a technology that combines software and hardware, because the programs we write require external wiring to be implemented, and a PLC with only wiring but no program has no engineering significance. Therefore, when starting to learn PLC, you must correct a concept, that is, PLC is not just programming, but also includes the peripheral circuits of PLC.
PLC wiring can be divided into two parts, one is power wiring, the other is IO wiring. Power wiring is very simple. Confirm the power supply of PLC. PLCs on the market generally have two specifications of power supply, DC24V and AC220V. Before wiring, be sure to confirm the power supply of PLC, otherwise it will be a puff of smoke. Generally, the power supply part of PLC will be marked. You can refer to the hardware manual for details. Generally, there will be a simple instruction in the PLC packaging box. It should be noted that the ground wire must be connected and cannot be omitted.
IO wiring is the focus of PLC wiring, that is, the input and output wiring of PLC, which includes digital and analog quantities. From the application point of view, the so-called PLC input is the command signal sent by people to PLC. These commands are implemented through various switches, buttons, limit switches, temperature sensors, potentiometers, etc.
Let's first explain the wiring of digital quantities. It includes two forms, PNP and NPN. In fact, it is very simple. You can connect it according to the manual. However, many beginners do not have the patience to read the manual, which is wrong. The difference between these two wiring methods is that the connection method of the common terminal is different. PNP is also called positive logic, source connection, high level is valid. NPN is also called negative logic, drain connection, low level is valid.
1. How do beginners understand the PLC input signals, as well as the wiring and implementation of NPN and PNP logic?
As shown in the figure above, this is the connection method in the hardware manual of Schneider PLC. From the figure, we can see that 0V and COM0 are short-circuited. When the switch on I0 is closed, input I0 will have 24V input. Obviously, this is a PNP connection. So, how do we apply it in practice? You can refer to a drawing:
You can take a look at what is the difference between this and the manual? By the way, the drawing does not use the PLC's DC24V power supply, but an external power supply. Generally, this solution is adopted in practical applications, because when the number of inputs is too large or the external wiring is too long, the power provided by the PLC is relatively low and overload may occur. Therefore, it is recommended that everyone is equipped with a DC24 V switching power supply.
The next step is on-site wiring. Once the wires are connected according to the drawing, the input part of the PLC is completed.
The output of PLC is the PLC driving the machine equipment, which is realized by relays, thyristors and transistors. These are the three types of PLC output. Today, I will tell you the meaning of PLC output and how to achieve it.
The output of the PLC is various circuits internally, and what we as users see are various wiring terminals.
As shown in the picture above, the row of screws on the left side of the screen is where we connect the output. All PLCs are in this form, except that the arrangement is different and the screws are different. We cannot distinguish the type of PLC output from the appearance alone. Generally, we distinguish them from the model. The PLC model usually has letters indicating the output characteristics.
R is the abbreviation of Relay, which means relay output, which can connect AC and DC loads;
T is the abbreviation of Transistor, which means transistor output, which can only connect to DC load;
S is the abbreviation of Silicon, which means thyristor output can only be connected to AC loads;
For example, the PLC model in the figure is K7M-DRT20U, and the letters R and T represent output. It means that this PLC has a mixed output of relays and transistors. Most PLCs are represented by these letters, and the most widely used Siemens PLC is represented by abbreviations, such as DC/DC/RLY, which represent the types of power supply/input/output respectively. Obviously, RLY means relay output.
Transistor output can send high-speed pulses, usually used to control servos, and has two connection methods: PNP and NPN. Thyristor output can be directly connected to AC loads, but is rarely used. The most commonly used is relay output, which is exactly the same as the relay we usually use. It has a high cost-effectiveness and can be connected to AC and DC loads. It is just a contact, so it is not divided into NPN and PNP.
The disadvantages are: slow response time (compared to transistors), and mechanical life (transistors only age, not life). So, how do we connect according to the manual? Let me take Schneider TM218LDA40DRPHN as an example to explain to you. From the model, it is a relay type output.
As shown in the picture, this is the hardware manual of the PLC. Looking at the yellow highlighter part, I have drawn an output circuit. From this, we can see that the essence of the PLC relay output is a switch, and the COM terminal and the output terminal form a switch. When Q8 has an output, COM and Q8 are connected, which drives external components, such as relays, indicator lights, etc. The relay can drive components such as motors, inverters, cylinders, etc. to realize machine action.
As shown in the figure, this is the actual wiring. The red circle part is the external power supply, and the yellow highlighter part is the circuit of the output point Q8. The current flows from the 24+ terminal on the right into COM3. When Q8 has an output, COM3 and Q8 are connected, driving the relay, and the host 3 will start. Therefore, the output of the PLC is actually the connection between the output point and the COM terminal. Similarly, when Q9 has an output, it is the connection between the COM terminal and Q9, and when Q12 has an output, it is the connection between COM4 and Q12. It should be noted that the output terminal of the PLC has more than one common terminal COM, and it must be used separately.
Summary: Regardless of the brand, PLCs are essentially the same. When learning PLCs, don’t learn for the sake of learning, or for the sake of learning a certain brand. Instead, learn the principles and implementation methods. This way, even if you change to another PLC, you can easily master it. Therefore, you still need to master the general routines of PLCs from manuals to drawings. I hope that beginners can understand them carefully and draw inferences from one example.
Previous article:A brief discussion on the calculation of three quantities and analog quantities in PLC programming
Next article:Analysis of the current technical level and development status of small power motors
Recommended ReadingLatest update time:2024-11-16 11:25
- 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
- ST NUCLEO-H743ZI Review Summary
- Animation showing the working principle of capacitive sensors and capacitive headphones
- 【New Year's Festival Competition】+Flying Yingge Dance
- MSP430f5529 car source code
- 【EasyARM-RT1052 Review】+ Transplantation and use of Fatfs file system based on SD card
- If you don't work in the electronics industry, what else can you do?
- 【Goodbye 2021, Hello 2022】2021 calendar
- Theoretical basis of the movie "The Wandering Earth"
- Satellite Internet in One Picture
- cc254x cc2640 WeChat access airsync-broadcast data