A reusable PLC programming communication interface device

By designing a reusable PLC programming communication interface device, the multiplexing and communication functions of the PLC programming port are realized using RS485/RS232, TTL/USB and Bluetooth modules, the problems of easy damage to the programming port and inconvenient operation in the PLC control system are solved. Improves efficiency and reliability of on-site operation.

CN111857035BActive Publication Date: 2024-12-06ZHENJIANG COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010862127.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-25
Publication Date
2024-12-06
Estimated Expiration
2040-08-25

AI Technical Summary

Technical Problem

During use, PLC controllers often need to repeatedly plug and unplug the programming cable, resulting in easy damage to the programming port, poor contact, and affecting work efficiency. They cannot be used as a programming port and a communication port at the same time, resulting in inconvenient on-site operation.

Method used

A reusable PLC programming communication interface device is designed, including RS485/RS232 conversion module, TTL/USB conversion module and Bluetooth module. It can provide wired and wireless communication methods at the same time, supports RS422, RS485 and USB interfaces, and realizes the programming port. multiplexing and communication functions.

Benefits of technology

It improves the flexibility and reliability of PLC debugging, avoids repeated plug-and-removal damage of the programming port, simplifies the operation process, and selects the best communication method according to the on-site environment, improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111857035B_ABST
    Figure CN111857035B_ABST
Patent Text Reader

Abstract

The present invention discloses a reusable PLC programming communication interface device, including an RS485 / RS232 conversion module U1, an RS232 / TTL conversion module U2, a TTL / USB conversion module U3, a Bluetooth module U4, and a USB interface U5. The A pin of the RS485 / RS232 conversion module U1 is connected to the RS-485 A signal output by the programming communication port of the PLC, and the B pin of the RS485 / RS232 conversion module U1 is connected to the RS-485 B signal output by the programming communication port of the PLC, so that the PLC programming communication interface is converted into a multiplexed wired / wireless port, which can be connected by wire or wirelessly. When debugging the PLC, there is no need to repeatedly plug and unplug the programming cable, and the communication between the devices is not affected, which improves the on-site work efficiency and use flexibility, thereby improving the reliability of on-site control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a reusable PLC programming communication interface device, belonging to the technical field of automation equipment. Background Art

[0002] In the development process of industrial automation system, various technologies have been comprehensively developed, and PLC (programmable controller) has been widely used in all fields of industrial automation due to its powerful functions, simple programming, strong reliability, flexible structure, etc. With the continuous development of science and technology, the role of PLC in the field of industrial automation control is becoming more and more important. PLC has become a key component of industrial automation system, and has promoted the stable development of industrialization to a certain extent.

[0003] Since PLC controllers often need to be repeatedly programmed and debugged during use, PLC controllers generally have a port that can be used as a programming interface and a communication port to communicate with touch screens and inverter hardware devices. For example, Mitsubishi FX3U series programming port (using 232 / 422 full-duplex, 485 half-duplex), Rockwell Micro800 TM Series programming port (for RS-232 / RS-485 communication), Modicon Premium TSXH5744M series serial link hole mini DIN connector (RS485), etc. PLC is generally connected with wired programming cable. When debugging program maintenance equipment, it is necessary to repeatedly plug and unplug the cable of PLC programming port, alternately connect programming computer and related communication equipment. Sometimes due to the location of PLC on-site installation, plug and unplug cable is very inconvenient, and frequent plug and unplug of programming port is easy to cause damage or poor contact.

[0004] In response to this situation, various types of programming cables have appeared on the market, such as patent CN201620997703.0, a PLC multi-purpose programming cable, which is equipped with three PLC interface ends, a nine-pin D-type interface end, a PLCRJ11 interface end, and a PLC eight-pin round port interface end. It can directly connect to three types of interface PLCs. It has the advantages of multi-purpose functions and simple structure. Patent CN201410122444.2, a new type of PLC programming cable, has a connection module integrated inside, and the connection module uses a USB interface at one end of the connection cable connected to the PC, and an 8-pin round port at one end of the connection cable connected to the PLC. The signal of the USB interface on the PC side can be converted into an RS232 signal, and the PLC can be powered by the power cord. When downloading user programs to the PLC, there is no need to connect the PLC to the power supply, which saves the wiring time of relevant technicians. The above patent facilitates the debugging and downloading of PLC programs and has certain practical use value. However, if the programming port function of the PLC controller needs to be reused and must be used for other purposes at the same time, it still cannot solve the problem. Therefore, developing a reusable PLC programming / communication interface device that can be used as a programming port to facilitate program debugging and downloading, and can also be used as a communication port to maintain communication with other devices has very important practical engineering value. Summary of the invention

[0005] The purpose of the present invention is to provide a reusable PLC programming communication interface device. In view of the inconvenience and easy damage caused by frequent plugging and unplugging when the PLC communication programming port needs to be reused, one end of the interface device of the present invention is wiredly connected to the RS422 and RS485 ports of devices such as PLC, and the other end is a multiplexed wired / wireless port, which can communicate with the USB port of a PC or touch screen (or other host computer, etc.) at the same time, and can be connected by wire or wirelessly. When debugging the PLC, there is no need to repeatedly plug and unplug the programming cable, and the communication between the devices is not affected, which improves the on-site work efficiency and flexibility of use, thereby improving the reliability of on-site control.

[0006] The purpose of the present invention is achieved through the following technical solutions:

[0007] A reusable PLC programming communication interface device, comprising an RS485 / RS232 conversion module U1, an RS232 / TTL conversion module U2, a TTL / USB conversion module U3, a Bluetooth module U4, and a USB interface U5, wherein the RS485 / RS232 conversion module U1 is RSM485PHT, the RS232 / TTL conversion module U2 is RSM232, the TTL / USB conversion module U3 is CH341T, and the Bluetooth module U4 is BC417143; the A pin of the RS485 / RS232 conversion module U1 is connected to the RS-4 85A signal, the B pin of the RS485 / RS232 conversion module U1 is connected to the RS-485B signal output by the programming communication port of the PLC, the VO pin of the RS485 / RS232 conversion module U1 is the isolation power supply +5V output terminal connected to V0, the RGND pin is connected to the communication ground CGND, one end of the resistor R4 is connected to the power supply V0, and the other end of the resistor R4 is connected to the A pin of the RS485 / RS232 conversion module U1, the two ends of the resistor R2 are respectively connected to the A pin and the B pin of the RS485 / RS232 conversion module U1, one end of the resistor R1 is connected to the B pin of the RS485 / RS232 conversion module U1, and the The other end is connected to the communication ground CGND, both ends of the capacitor C1 are connected between the power supply V0 and the communication ground CGND, the VCC pin and GND pin of the RS485 / RS232 conversion module U1 are connected to the power supply VCC and the ground respectively, the TXD pin and RXD pin of the RS485 / RS232 conversion module U1 are connected to the RXD pin and TXD pin of the RS232 / TTL conversion module U2 respectively, one end of the resistor R3 is connected to the TXD pin of the RS232 / TTL conversion module U2, the other end of the resistor R3 is connected to the power supply VCC, the VIN pin and GND pin of the RS232 / TTL conversion module U2 are connected to the power supply VCC and The CANG pin of RS232 / TTL conversion module U2 is connected to ground GND2, the RIN pin of RS232 / TTL conversion module U2 is connected to the TXD pin of TTL / USB conversion module U3, the TOUT pin of RS232 / TTL conversion module U2 is connected to the RXD pin of TTL / USB conversion module U3, the TEN# pin of TTL / USB conversion module U3 is connected to ground GND2, the TXD pin and RXD pin of Bluetooth module U4 are connected to the TXD pin and RXD pin of TTL / USB conversion module U3 respectively, and the VCC pin and GND pin of Bluetooth module U4 are connected to power supply 3 respectively.3V and ground, the VCC pin of the TTL / USB conversion module U3 is connected to the power supply 5V, the GND pin of the TTL / USB conversion module U3 is connected to the ground, one end of the capacitor C4 is connected to the V3 pin of the TTL / USB conversion module U3, the other end of the capacitor C4 is connected to the GND pin of the TTL / USB conversion module U3, one end of the capacitor C5 is connected to the VCC pin of the TTL / USB conversion module U3, the other end of the capacitor C5 is connected to the GND pin of the TTL / USB conversion module U3, the UD pin of the TTL / USB conversion module U3 - pin is connected to pin 2 of USB interface U5, UD+ pin of TTL / USB conversion module U3 is connected to pin 3 of USB interface U5, two ends of crystal oscillator chip X1 are respectively connected to pin X0 and pin X1 of TTL / USB conversion module U3, one end of capacitor C2 is grounded, and the other end is connected to pin X1 of TTL / USB conversion module U3, one end of capacitor C3 is grounded, and the other end is connected to pin X0 of TTL / USB conversion module U3, pin 1 of USB interface U5 is connected to power supply 5V, and pin 4 of USB interface U5 is connected to power supply ground. .

[0008] The purpose of the present invention can also be further achieved by the following technical measures:

[0009] The aforementioned reusable PLC programming communication interface device also includes a Bluetooth module U7, a TTL / USB conversion module U8, and a USB interface U9, wherein the TTL / USB conversion module U8 model is CH341T, and the Bluetooth module U7 model is BC417143; the VCC pin of the TTL / USB conversion module U8 is connected to the power pin 1 of the USB interface U9, and the voltage is 5V; the GND pin of the TTL / USB conversion module U8 is connected to the USB bus ground, one end of the capacitor C8 is connected to the V3 pin of the TTL / USB conversion module U8, the other end of the capacitor C8 is connected to the GND pin of the TTL / USB conversion module U8, and one end of the capacitor C9 is connected to the TTL / USB conversion module The other end of the capacitor C9 is connected to the GND pin of the TTL / USB conversion module U8, the UD- pin of the TTL / USB conversion module U8 is connected to the 2nd pin of the USB interface U9, the UD+ pin of the TTL / USB conversion module U8 is connected to the 3rd pin of the USB interface U9, the two ends of the crystal oscillator chip X2 are respectively connected to the X0 pin and the X1 pin of the TTL / USB conversion module U8, one end of the capacitor C6 is grounded, and the other end is connected to the X1 pin of the TTL / USB conversion module U8, one end of the capacitor C7 is grounded, and the other end is connected to the X0 pin of the TTL / USB conversion module U8, the 1st pin of the USB interface U9 is the power 5V pin, and the 4th pin of the USB interface U5 is the power ground pin.

[0010] The aforementioned reusable PLC programming communication interface device, when the PLC programming communication port is an RS-422 port, the RS-422 port has 4 signal lines: two transmitting lines are TXD+ / A and TXD- / B, and two receiving lines are RXD+ / Y and RXD- / Z. Short-circuiting the RXD+ / Y and TXD+ / A of RS-422 serves as an RS-485A signal, and short-circuiting the RXD- / Z and TXD- / B of RS-422 serves as an RS-485B signal.

[0011] Compared with the prior art, the present invention has the following beneficial effects:

[0012] 1. When the PLC control system needs on-site online debugging, the programming port of the PLC must be connected to the computer as a programming port and also be connected to the host computer and touch screen as a communication interface. Therefore, it is necessary to repeatedly plug and unplug, which not only easily causes damage to the programming port and poor contact, but also affects program debugging and work efficiency. The present invention solves the above practical problems encountered in PLC control applications, not only protects the reliability of PLC communication, but also simplifies PLC program debugging operations.

[0013] 2. Due to the complex on-site installation environment, wired communication is sometimes required, but cable connection is inconvenient; wireless communication can sometimes be used, but wireless communication is easily interfered. The present invention adopts a wired / wireless composite communication method, which can be selected according to the on-site environment, and can solve the practical difficulties of inconvenient on-site communication connection in industrial control.

[0014] 3. The present invention has a simple structure and reliable communication. It does not require special programming or communication methods, is plug-and-play, and is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a circuit schematic diagram of a reusable PLC programming communication interface device of the present invention;

[0016] Figure 2 This is the Mitsubishi PLCRS422 interface layout diagram;

[0017] Figure 3 The present invention is a circuit diagram of an additional module of a reusable PLC programming communication interface device. DETAILED DESCRIPTION

[0018] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0019] The programming port of most existing PLC models complies with the RS-422 / RS-485 interface standard. According to the international communication interface regulations, the serial port definition includes three parts: mechanical definition, electrical definition, and communication protocol. TTL, RS-232, and RS-485 are all serial ports, but the electrical definitions are different. The TTL standard is that the low level is 0 and the high level is 1 (+5V level). The RS-232 standard is that the level logic 1 (MARK) = -3V ~ -15V, and the logic 0 (SPACE) = +3 ~ +15V. The electrical characteristics of RS-485: Logic "1" is represented by a voltage difference between the two lines of +2V to +6V, and logic "0" is represented by a voltage difference between the two lines of -6V to -2V. The electrical performance of RS-422 is exactly the same as that of RS-485. The main difference is that RS-422 has 4 signal lines: two for sending (Y, Z) and two for receiving (A, B). Since RS-422's receiving and transmitting are separate, it can receive and transmit at the same time (full duplex); RS-485 has two signal lines: sending and receiving. In other words, TTL, RS-232, and RS-485 can all run the same communication protocol, such as the Modbus protocol, which means that the voltages representing 1 and 0 are different. Therefore, there is no difference in the communication procedures of different ports. RS485 and RS232 are only different in the physical communication protocol (i.e., interface standard), but the communication procedures are the same and can be used directly without modifying the program. Bluetooth can be directly connected to the serial port and used as a transparent transmission mode.

[0020] like Figure 1This is a circuit diagram of a reusable PLC programming communication interface device designed by the present invention. If the PLC programming port conforms to the RS-485 bus standard, directly connect RS-485 A and B to the corresponding pins of the RS485 to RS232 module. The reusable PLC programming communication interface device of the present invention includes an RS485 / RS232 conversion module U1, an RS232 / TTL conversion module U2, a TTL / USB conversion module U3, a Bluetooth module U4, and a USB interface U5. The RS485 / RS232 conversion module U1 is model RSM485PHT, the RS232 / TTL conversion module U2 is model RSM232, the TTL / USB conversion module U3 is model CH341T, and the Bluetooth module U4 is model BC417143; the R The A pin of the S485 / RS232 conversion module U1 is connected to the RS-485A signal output by the programming communication port of the PLC, and the B pin of the RS485 / RS232 conversion module U1 is connected to the RS-485B signal output by the programming communication port of the PLC. The VO pin of the RS485 / RS232 conversion module U1 is the +5V output terminal of the isolated power supply, which is only used for the pull-up resistor circuit and cannot be used to power other circuits. The RGND pin is the isolated power supply output ground, which is connected to CGND. The VO pin should avoid short circuit with the RGND pin. One end of the resistor R4 is connected to the power supply V0, and the other end of the resistor R4 is connected to the A pin of the RS485 / RS232 conversion module U1. The two ends of the resistor R2 are respectively connected to the A pin and the B pin of the RS485 / RS232 conversion module U1. One end of the resistor R1 is connected to the B pin of the RS485 / RS232 conversion module U1, and the other end of the resistor R1 is connected to the ground CGND. The two ends of the capacitor C1 are connected between the power supply V0 and the ground CGND to avoid the short circuit between the VO pin and the RGND pin. The VCC pin and the GND pin of the RS485 / RS232 conversion module U1 are respectively connected to the power supply and the ground. The RSM485PHT adopts power isolation mode and is not connected to the RS485 power supply. The VCC power supply is used to supply power to U1 and U2 separately. The grounds are also not connected and are different.The TXD pin and RXD pin of RS485 / RS232 conversion module U1 are connected to the RXD pin and TXD pin of RS232 / TTL conversion module U2 respectively. One end of resistor R3 is connected to the TXD pin of RS232 / TTL conversion module U2. The other end of resistor R3 is connected to the power supply. The VIN pin and GND pin of RS232 / TTL conversion module U2 are connected to the power supply VCC and ground respectively. The CANG pin of RS232 / TTL conversion module U2 is connected to ground GND2. The RIN pin of module U2 is connected to the TXD pin of the TTL / USB conversion module U3, the TOUT pin of the RS232 / TTL conversion module U2 is connected to the RXD pin of the TTL / USB conversion module U3, the TEN# pin of the TTL / USB conversion module U3 is grounded GND2, the TXD pin and RXD pin of the Bluetooth module U4 are connected to the TXD pin and RXD pin of the TTL / USB conversion module U3 respectively, and the VCC pin and GND pin of the Bluetooth module U4 are connected to the power supply 3.3V and ground respectively. The VCC pin of the TTL / USB conversion module U3 is connected to the power supply 5V, the GND pin of the TTL / USB conversion module U3 is connected to the ground, one end of the capacitor C4 is connected to the V3 pin of the TTL / USB conversion module U3, the other end of the capacitor C4 is connected to the GND pin of the TTL / USB conversion module U3, one end of the capacitor C5 is connected to the VCC pin of the TTL / USB conversion module U3, the other end of the capacitor C5 is connected to the GND pin of the TTL / USB conversion module U3, and the UD- pin of the TTL / USB conversion module U3 is connected to the Pin 2 of the USB interface U5 is connected, the UD+ pin of the TTL / USB conversion module U3 is connected to pin 3 of the USB interface U5, the two ends of the crystal oscillator chip X1 are respectively connected to the X0 pin and the X1 pin of the TTL / USB conversion module U3, one end of the capacitor C2 is grounded, and the other end is connected to the X1 pin of the TTL / USB conversion module U3, one end of the capacitor C3 is grounded, and the other end is connected to the X0 pin of the TTL / USB conversion module U3, pin 1 of the USB interface U5 is connected to the power supply 5V, and pin 4 of the USB interface U5 is connected to the power ground.

[0021] If the PLC programming port supports the RS-422 standard, the Mitsubishi PLC eight-pin round port (male port) pin definition (such as Figure 2 As shown in the figure, RS-422 has 4 signal lines: two for sending and two for receiving (TXD+ / A, TXD- / B, RXD+ / Y, RXD- / Z). Short-circuit the YA of RS-422 as the A of RS-485, short-circuit the ZB of RS-422 as the B of RS-485, and then connect them to the RS485 / RS232 conversion module U1.

[0022] The three isolations of RS232, RS485 and power supply in the circuit of the present invention make the communication bus and control board completely isolated, which can not only reduce the interference on the bus, but also improve the system safety and reliability. Finally, the TTL signal is connected to the output of the TTL to USB module. To facilitate the wireless connection mode, the TTL signal is connected to the Bluetooth module at the same time. The function of the RS485 to RS232 module in the circuit of the present invention is to convert the working logic levels of different ports, and then cross-connect the TXD and RXD output of the RS485 to RS232 module to the corresponding TXD and RXD pins of the RS232 to TTL module. Since the working level of RS232 is also different from that of TTL, an RS232 to TTL module is also needed. The signal is divided into two modes, USB and wireless Bluetooth, from the RS232 to TTL module. Wireless or wired communication modes can be adopted with the host computer, touch screen, inverter and other equipment. The two modes can be used simultaneously and can be flexibly selected and interchanged according to the on-site environment. The present invention converts the original PLC programming communication port into one USB interface and one wireless Bluetooth interface, solving the problem that when the PLC control system in the prior art needs on-site online debugging, the programming port of the PLC must be connected to the computer as a programming port and also be connected to the host computer, touch screen and other devices as a communication interface. Therefore, it needs to be repeatedly plugged and unplugged, which easily causes damage to the programming port, poor contact, affects program debugging, and affects work efficiency.

[0023] If the host computer or other equipment is not equipped with a Bluetooth module, the additional module of the present invention can be used, such as Figure 3As shown, the module includes a Bluetooth module U7, a TTL / USB conversion module U8, and a USB interface U9. The model of the TTL / USB conversion module U8 is CH341T, and the model of the Bluetooth module U7 is BC417143; the VCC pin of the TTL / USB conversion module U8 is connected to the power pin of the USB interface U9, and the voltage is 5V; the GND pin of the TTL / USB conversion module U8 is connected to the USB bus ground, one end of the capacitor C8 is connected to the V3 pin of the TTL / USB conversion module U8, and the other end of the capacitor C8 is connected to the GND pin of the TTL / USB conversion module U8, and the external capacitor C8 is a decoupling capacitor with a capacity of 0.01uF. One end of the capacitor C9 is connected to the VCC pin of the TTL / USB conversion module U8, and the other end of the capacitor C9 is connected to the GND pin of the TTL / USB conversion module U8, and the external capacitor C9 is a decoupling capacitor with a capacity of 0.01uF. The UD-pin of the TTL / USB conversion module U8 is connected to the 2nd pin of the USB interface U9, the UD+ pin of the TTL / USB conversion module U8 is connected to the 3rd pin of the USB interface U9, the two ends of the crystal oscillator chip X2 are respectively connected to the X0 pin and the X1 pin of the TTL / USB conversion module U8, one end of the capacitor C6 is grounded, and the other end is connected to the X1 pin of the TTL / USB conversion module U8, one end of the capacitor C7 is grounded, and the other end is connected to the X0 pin of the TTL / USB conversion module U8, the 1st pin of the USB interface U9 is connected to the power supply 5V, and the 4th pin of the USB interface U5 is connected to the power supply ground. The Bluetooth module U7 of this module communicates with the Bluetooth module U4, and then the signal is converted by this module and communicates with the host computer through the USB interface U9.

[0024] In addition to the above embodiments, the present invention may also have other implementation modes. Any technical solutions formed by equivalent replacement or equivalent transformation shall fall within the protection scope required by the present invention.

Claims

1. A reusable PLC programming communication interface device, characterized in that: The invention comprises an RS485 / RS232 conversion module U1, an RS232 / TTL conversion module U2, a TTL / USB conversion module U3, a Bluetooth module U4 and a USB interface U5. The RS485 / RS232 conversion module U1 is of model RSM485PHT, the RS232 / TTL conversion module U2 is of model RSM232, the TTL / USB conversion module U3 is of model CH341T and the Bluetooth module U4 is of model BC417143. The A pin of the RS485 / RS232 conversion module U1 is connected to the RS-485 A signal outputted by the programming communication port of the PLC, and the B pin of the RS485 / RS232 conversion module U1 is connected to the RS-485 B signal, the VO pin of the RS485 / RS232 conversion module U1 is the isolated power supply +5V output terminal connected to V0, the RGND pin is connected to the communication ground CGND, one end of the resistor R4 is connected to the power supply V0, and the other end of the resistor R4 is connected to the A pin of the RS485 / RS232 conversion module U1, the two ends of the resistor R2 are respectively connected to the A pin and the B pin of the RS485 / RS232 conversion module U1, one end of the resistor R1 is connected to the B pin of the RS485 / RS232 conversion module U1, and the other end of the resistor R1 is connected to the communication ground CGND, the two ends of the capacitor C1 are connected between the power supply V0 and the communication ground CGND, the VCC pin and the GND pin of the RS485 / RS232 conversion module U1 are respectively connected to the power supply VCC and the ground, the TXD pin and the RXD pin of the RS485 / RS232 conversion module U1 are respectively connected to the RXD pin and the TXD pin of the RS232 / TTL conversion module U2 One end of the resistor R3 is connected to the TXD pin of the RS232 / TTL conversion module U2, and the other end of the resistor R3 is connected to the power supply VCC. The VIN pin and GND pin of the RS232 / TTL conversion module U2 are connected to the power supply VCC and ground respectively. The CANG pin of the RS232 / TTL conversion module U2 is connected to the ground GND2. The RIN pin of the RS232 / TTL conversion module U2 is connected to the TXD pin of the TTL / USB conversion module U3. The TOUT pin of the RS232 / TTL conversion module U2 is connected to the RXD pin of the TTL / USB conversion module U3. The TEN# pin of the TTL / USB conversion module U3 is connected to the ground GND2. The TXD pin and RXD pin of the Bluetooth module U4 are connected to the TXD pin and RXD pin of the TTL / USB conversion module U3 respectively. The VCC pin and GND pin of the Bluetooth module U4 are connected to the power supply 3 respectively.3V and ground, the VCC pin of the TTL / USB conversion module U3 is connected to the power supply 5V, the GND pin of the TTL / USB conversion module U3 is connected to the ground, one end of the capacitor C4 is connected to the V3 pin of the TTL / USB conversion module U3, the other end of the capacitor C4 is connected to the GND pin of the TTL / USB conversion module U3, one end of the capacitor C5 is connected to the VCC pin of the TTL / USB conversion module U3, the other end of the capacitor C5 is connected to the GND pin of the TTL / USB conversion module U3, the UD- The pin is connected to the 2nd pin of the USB interface U5, the UD+ pin of the TTL / USB conversion module U3 is connected to the 3rd pin of the USB interface U5, the two ends of the crystal oscillator chip X1 are respectively connected to the X0 pin and the X1 pin of the TTL / USB conversion module U3, one end of the capacitor C2 is grounded, and the other end is connected to the X1 pin of the TTL / USB conversion module U3, one end of the capacitor C3 is grounded, and the other end is connected to the X0 pin of the TTL / USB conversion module U3, the 1st pin of the USB interface U5 is connected to the power supply 5V, and the 4th pin of the USB interface U5 is connected to the power ground;. It also includes a Bluetooth module U7, a TTL / USB conversion module U8, and a USB interface U9. The model of the TTL / USB conversion module U8 is CH341T, and the model of the Bluetooth module U7 is BC417143; the VCC pin of the TTL / USB conversion module U8 is connected to the power pin 1 of the USB interface U9, and the voltage is 5V; the GND pin of the TTL / USB conversion module U8 is connected to the USB bus ground, one end of the capacitor C8 is connected to the V3 pin of the TTL / USB conversion module U8, the other end of the capacitor C8 is connected to the GND pin of the TTL / USB conversion module U8, and one end of the capacitor C9 is connected to the VCC pin of the TTL / USB conversion module U8. The other end of capacitor C9 is connected to the GND pin of TTL / USB conversion module U8, the UD- pin of TTL / USB conversion module U8 is connected to pin 2 of USB interface U9, the UD+ pin of TTL / USB conversion module U8 is connected to pin 3 of USB interface U9, the two ends of crystal oscillator chip X2 are respectively connected to pin X0 and pin X1 of TTL / USB conversion module U8, one end of capacitor C6 is grounded, and the other end is connected to pin X1 of TTL / USB conversion module U8, one end of capacitor C7 is grounded, and the other end is connected to pin X0 of TTL / USB conversion module U8, pin 1 of USB interface U9 is power supply 5V pin, and pin 4 of USB interface U5 is power supply ground pin; When the programming communication port of the PLC is an RS-422 port, the RS-422 port has 4 signal lines: two sending lines are TXD+ / A and TXD- / B, and two receiving lines are RXD+ / Y and RXD- / Z. Short-circuit the RXD+ / Y and TXD+ / A of RS-422 as RS-485 A signal, and short-circuit the RXD- / Z and TXD- / B of RS-422 as RS-485 B signal.