How to understand the input signal of PLC? Wiring and implementation of NPN and PNP logic

Publisher:创新驿站Latest update time:2023-02-02 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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?

578b1d06-9430-11ed-bfe3-dac502259ad0.png

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:

579ed8f0-9430-11ed-bfe3-dac502259ad0.png

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.

57bdf406-9430-11ed-bfe3-dac502259ad0.png

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.

57c7592e-9430-11ed-bfe3-dac502259ad0.png

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.

57d7895c-9430-11ed-bfe3-dac502259ad0.png

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.


Keywords:PLC Reference address:How to understand the input signal of PLC? Wiring and implementation of NPN and PNP logic

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

Batu Automation Profinet protocol to Modbus protocol gateway module connects smart instruments and PLC communications
1. Functions and advantages: The main function of the Batu Automation Profinet protocol to Modbus protocol gateway module (BT-MDPN10) is to realize the conversion and communication between Modbus protocol and Profinet protocol. The Profinet protocol to Modbus protocol gateway module (BT-MDPN10) integrates two protoc
[Embedded]
Batu Automation Profinet protocol to Modbus protocol gateway module connects smart instruments and PLC communications
Application of AI/AO Cards in PLC System
In PLC systems, common analog input signals are +/-10V and 0-20mA, and DCS has put forward additional requirements for the 50/60Hz power frequency rejection ratio. Usually, analog switches, operational amplifiers, references and AD are integrated into one ADC chip for customers to design directly. This has the advan
[Embedded]
Application of AI/AO Cards in PLC System
PLC flashing circuit counting stop
Press the start button I0.1, relay M0.1 is turned on and self-locked M0.1 is turned on, its normally open point closes and turns on coil Q0.1, and starts timer DB1 When the counter DB1 reaches the set time, the timer output turns on relay M0.2 M0
[Embedded]
PLC flashing circuit counting stop
Example to explain the design steps of PLC control system
The main contents of system design: ① Formulate technical conditions for control system design ② Select the electrical transmission form and actuators such as motors and solenoid valves ③ Select the PLC model ④ Prepare the PLC input/output allocation table or draw the input/output terminal wiring
[Embedded]
Example to explain the design steps of PLC control system
PLC programming: How to use the cross reference of MODBUS communication program
A few days ago, a friend raised a question in the group. The MODBUS communication program he made originally only needed to read 1 word/bit from the communication, but he found that the cross-reference indicated that it occupied 4 bytes, that is, a DWORD, and asked what was going on. Roughly as shown in th
[Embedded]
PLC programming: How to use the cross reference of MODBUS communication program
Microflex E190 servo communicates with Siemens PLC1200 via EtherCAT to Profinet gateway
This case is a configuration case of connecting an EtherCAT to Profinet gateway to a Microflex E190 server. The devices used are a Siemens 1200PLC, a Kaijiang Intelligent EtherCAT to Profinet gateway, and a Microflex E190 server. 1. First, we configure in Siemens Portal and manage the general station de
[Embedded]
Microflex E190 servo communicates with Siemens PLC1200 via EtherCAT to Profinet gateway
Mitsubishi PLC sequential function diagram converted to ladder diagram
There are two ways to convert a sequential function chart to a ladder diagram. One is to rewrite the sequential function chart using step instructions, and the other is to convert it directly using the option menu provided by GX Works2. 1. Step instruction STL/RET 1) STL instruction (step start
[Embedded]
Mitsubishi PLC sequential function diagram converted to ladder diagram
How to measure NPN transistor with pointer multimeter?
Multimeters include digital multimeters and analog multimeters. Both types of meters can measure. Let me show you the measurement methods one by one. 1. Digital multimeter measurement When using a digital multimeter to measure, use the "diode mode" for measurement. The red test lead is equivalent to the positive pol
[Test Measurement]
How to measure NPN transistor with pointer multimeter?
Latest Embedded Articles
Change More Related Popular Components

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号