Programmable attenuator in PLC communication

By designing a programmable attenuator in PLC communication equipment, and using the touch screen and MCU to control the resistance value of the programmable π-type attenuation component, the problems of complex test environment and low accuracy in the existing technology are solved, and high-precision and rapid adjustment are achieved. Signal attenuation effect.

CN221862827UActive Publication Date: 2024-10-18XIAN ZHONGNENG KAIXING INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420462401.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2024-10-18
Estimated Expiration
2034-03-11

AI Technical Summary

Technical Problem

Existing low-voltage power line carrier communication equipment requires frequent replacement and addition of attenuators during testing, resulting in complex test environment construction, unguaranteed accuracy, and poor operability.

Method used

A programmable attenuator in PLC communication is designed, using a touch screen, signal conditioning circuit, coupling module, programmable π-type attenuation component and low-pass filter. The attenuation multiple is adjusted by controlling the resistance value of the programmable π-type attenuation component through MCU. , achieving fast and accurate signal attenuation.

Benefits of technology

It achieves high-precision signal attenuation, simplifies test operations, reduces attenuator replacement and frequency addition, and improves test operability and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221862827U_ABST
    Figure CN221862827U_ABST
Patent Text Reader

Abstract

The utility model discloses a programmable attenuator in PLC (Programmable Logic Controller) communication, which comprises a touch screen, a first signal conditioning circuit, a second signal conditioning circuit, a concentrator, a first coupling module, a programmable pi-type attenuation assembly, a second coupling module, a collector, a first low-pass filter, a second low-pass filter and an MCU (Microprogrammed Control Unit), the first coupling module is respectively connected with the first signal conditioning circuit, the programmable pi-type attenuation assembly and the first low-pass filter, the first signal conditioning circuit is connected with the MCU, the MCU is connected with the touch screen, the programmable pi-type attenuation assembly is respectively connected with the second coupling module and the MCU, the first low-pass filter is connected with the second low-pass filter, and the second low-pass filter is connected with the touch screen. The second coupling module is respectively connected with the second signal conditioning circuit, the collector and the second low-pass filter, and the second signal conditioning circuit is also connected with the MCU.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of low-voltage power testing equipment, and in particular relates to a programmable attenuator in PLC communication. Background Art

[0002] In low-voltage power line carrier communications, when the devices involved are conducting tests such as receiving sensitivity, noise interference, and resistance to impedance changes, it is necessary to add attenuators between the devices, and it is necessary to add signal attenuators or wave blockers between the concentrator and collector to conduct related tests.

[0003] However, most of the current attenuators are fixed attenuation multiples or step attenuators. When adjusting the attenuation, it is necessary to constantly replace and add attenuators to make the attenuation meet the test requirements, which makes the construction of the test environment complicated, the test operability is very poor, and the accuracy cannot guarantee the test requirements. Therefore, it is very promising to develop an attenuator with good test operability and high accuracy. Utility Model Content

[0004] The utility model aims to solve the problems of the prior art and provides a programmable attenuator in PLC communication.

[0005] In order to solve the technical problem, the technical solution of the utility model is: a programmable attenuator in PLC communication, including a touch screen, a first signal conditioning circuit, a second signal conditioning circuit, a concentrator, a first coupling module, a programmable π-type attenuation component, a second coupling module, a collector, a first low-pass filter, a second low-pass filter and an MCU, the concentrator is connected to the first coupling module, the first coupling module is respectively connected to the first signal conditioning circuit, the programmable π-type attenuation component and the first low-pass filter, the first signal conditioning circuit is connected to the MCU, the MCU is connected to the touch screen, the programmable π-type attenuation component is respectively connected to the second coupling module and the MCU, the first low-pass filter is connected to the second low-pass filter, the second coupling module is respectively connected to the second signal conditioning circuit, the collector and the second low-pass filter, and the second signal conditioning circuit is also connected to the MCU.

[0006] Preferably, the data of the touch screen is sent to the MCU via an RS232 interface.

[0007] Preferably, the first coupling module and the second coupling module are both coupling capacitors, using 0.22uF safety capacitors, with AC voltages of: 275V, 310V, 305V; level: X2.

[0008] Preferably, the first low-pass filter and the second low-pass filter are both third-order Type LC filter, cut-off frequency is 100KHz, attenuation is -20dB.

[0009] Preferably, the programmable π-type attenuation component is an AD8400 device, which is a single-channel 256-bit digitally controlled variable resistor device.

[0010] Preferably, the AD8400 device includes resistor Ra, resistor Rb and resistor Rc, resistor Rb is connected to resistor Ra and resistor Rc respectively, the other ends of resistor Ra and resistor Rc are grounded respectively, the resistor Ra is the output variable resistor between the B1 pin and the W1 pin of the chip U1, and the maximum resistance value is 1K, the resistor Rc is the output variable resistor between the B1 pin and the W1 pin of the chip U3, and the maximum resistance value is 1K.

[0011] Preferably, the resistance range of the resistor Rb is: 1 ~1.1M , the resistor Rb includes an output resistor, a switch Sn and a resistor Rn, the output resistor is an output resistor between the B1 pin and the W1 pin of the chip U2, n of the switch Sn is selected from 1 to 21, and n of the resistor Rn is selected from 2 to 21; when n is 1, pin 2 of the switch S1 is connected to the B1 pin of the resistor Ra, pin 3 of the switch S1 is connected to the B1 pin of the output resistor, the W1 pin of the output resistor is connected to the 2 pin of the switch S2, and pin 1 of the switch S1 is connected to the 2 pin of the switch S2; when n is 2 to 20, pin 3 of the switch Sn is connected to the 2 pin of the switch Sn+1, and pin 1 of the switch Sn is connected to the 2 pin of the switch Sn+1 through the resistor Rn+1; when n is 21, pin 3 of the switch S21 is connected to the B1 pin of the resistor Rc, and pin 1 of the switch S21 is connected to the B1 pin of the resistor Rc through the resistor R21; pin 4 of the Sn is connected to the MCU11, and the W1 pin of the resistor Ra and the W1 pin of the resistor Rc are grounded.

[0012] Preferably, the programmable attenuator includes an upper cover, a circuit board, an O-ring and a shell, the touch screen is embedded in the upper cover, the upper cover and the shell are sealed and connected by an O-ring, the circuit board is installed in a sealed space formed by the upper cover and the shell, and the first signal conditioning circuit, the second signal conditioning circuit, the concentrator, the first coupling module, the programmable π-type attenuation component, the second coupling module, the collector, the first low-pass filter, the second low-pass filter and the MCU are installed on the PCB board of the circuit board.

[0013] Compared with the prior art, the advantages of the utility model are:

[0014] (1) The utility model discloses a programmable attenuator in PLC communication, including a touch screen, a first signal conditioning circuit, a second signal conditioning circuit, a concentrator, a first coupling module, a programmable π-type attenuation component, a second coupling module, a collector, a first low-pass filter, a second low-pass filter and an MCU. The MCU is connected to the touch screen and the programmable π-type attenuation component respectively. The coupling module divides the input signal of the concentrator / collector into two branches, one branch filters out the low-frequency AC signal, restores the carrier signal and then attenuates it through the programmable π-type attenuation component, and the other branch filters out the high-frequency carrier signal through the low-pass filter, and transmits the clean AC signal to the lower-level low-pass filter, which is coupled with the attenuated signal and then output to the collector / concentrator. The utility model branches the input signal and only attenuates the carrier signal, and the attenuation accuracy is high;

[0015] (2) The programmable π-type attenuation component of the utility model includes a resistor Ra, a resistor Rb and a resistor Rc. The resistors Ra and Rc are output variable resistors, respectively, with a maximum resistance of 1K. The resistor Rb is composed of an output resistor, a plurality of switches S and a resistor R. The plurality of switches S are electrically connected to the MCU respectively. The MCU controls the resistance of the resistor Rc by controlling the plurality of switches S, thereby controlling the attenuation multiple of the attenuator.

[0016] (3) When operating the attenuator of the utility model, it is only necessary to set the signal attenuation multiples of the input and output ends on the touch screen, and the programmable π-type attenuation component can be used to adjust the attenuation multiples to the required value. The adjustment speed is fast, the accuracy is good, the attenuation amount meets the test requirements, and the test operability is good;

[0017] (4) The utility model does not require frequent replacement or addition of attenuators, is easy to operate, and is convenient for operators to test. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 , a structural block diagram of a programmable attenuator in PLC communication of the utility model;

[0019] Figure 2 , a circuit diagram of the programmable π-type attenuation component of the utility model;

[0020] Figure 3 , a structural diagram of a programmable attenuator in PLC communication of the utility model;

[0021] Figure 4 , circuit diagram of switch S of the utility model.

[0022] Description of reference numerals:

[0023] 1. Touch screen, 2. First signal conditioning circuit, 3. Second signal conditioning circuit, 4. Concentrator, 5. First coupling module, 6. Programmable π-type attenuation component, 7. Second coupling module, 8. Collector, 9. First low-pass filter, 10. Second low-pass filter, 11. MCU, 12. Upper cover, 13. Circuit board, 14. O-ring, 15. Housing. DETAILED DESCRIPTION

[0024] The following describes the specific implementation of the utility model in conjunction with embodiments:

[0025] It should be noted that the structures, proportions, sizes, etc. shown in this specification are only used to match the contents disclosed in the specification so that people familiar with this technology can understand and read them, and are not used to limit the conditions under which the present invention can be implemented. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0026] Example 1

[0027] like Figures 1 to 4 As shown, the utility model discloses a programmable attenuator in PLC communication, including a touch screen 1, a first signal conditioning circuit 2 (coupling capacitor), a second signal conditioning circuit 3 (signal conditioning), a concentrator 4, a first coupling module 5, a programmable π-type attenuation component 6 (programmable π-type attenuator), a second coupling module 7, a collector 8, a first low-pass filter 9, a second low-pass filter 10 and an MCU 11, wherein the concentrator 4 is connected to the first coupling module 5, the first coupling module 5 is respectively connected to the first signal conditioning circuit 2, the programmable π-type attenuation component 6 and the first low-pass filter 9, the first signal conditioning circuit 2 is connected to the MCU 11, the MCU 11 is connected to the touch screen 1, the programmable π-type attenuation component 6 is respectively connected to the second coupling module 7 and the MCU 11, the first low-pass filter 9 is connected to the second low-pass filter 10, the second coupling module 7 is respectively connected to the second signal conditioning circuit 3, the collector 8 and the second low-pass filter 10, and the second signal conditioning circuit 3 is also connected to the MCU 11.

[0028] The first low-pass filter 9 and the second low-pass filter 10 adopt a third-order Type LC filter, cut-off frequency is 100KHz, attenuation is close to -20dB. Inductance value: 160uH, capacitance: 32NF (safety capacitor, rated voltage: 630V, 250V; grade: X2). The main purpose of the filter is to prevent the carrier signal at the input end of the attenuator from leaking to the output end, so as not to affect the output.

[0029] The main functions of the first signal conditioning circuit 2 and the second signal conditioning circuit 3 are to reduce the amplitude of the collected AC signal under the same frequency condition so that the maximum signal amplitude is ≤4V, output it to MCU11 for ADC conversion, and output the signal level measurement value to the touch screen 1 for level display.

[0030] The power input of the programmable attenuator of the utility model uses an AC220V@50Hz power alternating current line.

[0031] Example 2

[0032] like Figure 1 As shown, preferably, the data of the touch screen 1 is sent to the MCU 11 via the RS232 interface.

[0033] like Figure 1 As shown, preferably, the first coupling module 5 and the second coupling module 7 are both coupling capacitors, using 0.22uF safety capacitors, and the voltage AC is: 275V, 310V, 305V; level: X2.

[0034] like Figure 1 As shown, preferably, the first low-pass filter 9 and the second low-pass filter 10 are both third-order Type LC filter, cut-off frequency is 100KHz, attenuation is -20dB.

[0035] The touch screen 1 mainly displays the following parameters:

[0036] Set the attenuation multiple;

[0037] Actual attenuation multiple display;

[0038] Test direction setting (1: concentrator to collector; 2: collector to concentrator);

[0039] Input level, output level.

[0040] The attenuator of the utility model adopts 220V power supply, which is converted into 5V voltage through AC / DC module, and then passes through 5V to 3.3V power chip to generate 3.3V voltage for attenuator use, and the power consumption is less than 1W.

[0041] Touch screen: adopts the serial port screen of DC64480EW056_1VX1_0X model from Dacai Technology. The core processor capacity of this serial port screen is 800MHz, 32-bit dual-core processor; the operating system is an embedded real-time operating system. Screen size, 5.6 inches; resolution 480*640 storage space: 1Gbit; color 65K colors, 16-bit RGB; communication mode is RS232 / TTL, and the typical baud rate is 115200bps.

[0042] Example 3

[0043] Preferably, the programmable π-type attenuation component 6 is an AD8400 device, which is a single-channel 256-bit digitally controlled variable resistor device.

[0044] like Figure 1 As shown, preferably, the AD8400 device includes a resistor Ra, a resistor Rb and a resistor Rc, the resistor Rb is connected to the resistor Ra and the resistor Rc respectively, the other ends of the resistor Ra and the resistor Rc are grounded respectively, the resistor Ra is an output variable resistor between the B1 pin and the W1 pin of the chip U1, and the maximum resistance is 1K, the resistor Rc is an output variable resistor between the B1 pin and the W1 pin of the chip U3, and the maximum resistance is 1K.

[0045] like Figure 2 , 4 As shown, preferably, the resistance range of the resistor Rb is: 1 ~1.1M , the resistor Rb includes an output resistor, a switch Sn and a resistor Rn, the output resistor is an output resistor between the B1 pin and the W1 pin of the chip U2, n of the switch Sn is selected from 1 to 21, and n of the resistor Rn is selected from 2 to 21; when n is 1, pin 2 of the switch S1 is connected to the B1 pin of the resistor Ra, pin 3 of the switch S1 is connected to the B1 pin of the output resistor, the W1 pin of the output resistor is connected to the 2 pin of the switch S2, and pin 1 of the switch S1 is connected to the 2 pin of the switch S2; when n is 2 to 20, pin 3 of the switch Sn is connected to the 2 pin of the switch Sn+1, and pin 1 of the switch Sn is connected to the 2 pin of the switch Sn+1 through the resistor Rn+1; when n is 21, pin 3 of the switch S21 is connected to the B1 pin of the resistor Rc, and pin 1 of the switch S21 is connected to the B1 pin of the resistor Rc through the resistor R21; pin 4 of the Sn is connected to the MCU11, and the W1 pin of the resistor Ra and the W1 pin of the resistor Rc are grounded.

[0046] The programmable π-type attenuation component 6 uses EEPROM memory for storage, the chip model is AT24C16, 2048*8-bit organizational structure, and the communication uses a two-wire IIC interface to communicate with the MCU. It has the characteristics of low power consumption and permanent data storage.

[0047] The resistance of the programmable π-type attenuation component 6 is implemented using the AD8400, which is a single-channel 256-position, digitally controlled variable resistor (VR) device that can achieve the same electronic adjustment function as a variable resistor. It uses a compact SOIC-8 package. The device has a built-in fixed resistor with a wiper contact, which taps the fixed resistance value at the digital code determined by the digital code loaded into the control serial input register. The resistance value between the wiper and either end of the fixed resistor changes linearly with the digital code transmitted to the VR latch. Each variable resistor provides a fully programmable resistance value between the A terminal and the wiper or the B terminal and the wiper. The channel-to-channel matching tolerance of the A to B fixed termination resistor (1kΩ) is ±1%, and the nominal temperature coefficient is 500 ppm / °C. The device is connected to the MCU via a three-wire SPI-compatible serial interface, with an update data loading rate of 10 MHz.

[0048] Example 4

[0049] like Figure 3 As shown, preferably, the programmable attenuator includes an upper cover 12, a circuit board 13, an O-ring 14 and a shell 15, the touch screen 1 is embedded in the upper cover 12, the upper cover 12 and the shell 15 are sealed and connected by the O-ring 14, the circuit board 13 is installed in the sealed space formed by the upper cover 12 and the shell 15, and the first signal conditioning circuit 2, the second signal conditioning circuit 3, the concentrator 4, the first coupling module 5, the programmable π-type attenuation component 6, the second coupling module 7, the collector 8, the first low-pass filter 9, the second low-pass filter 10 and the MCU11 are installed on the PCB board of the circuit board 13.

[0050] The upper cover 12 and the housing 15 are made of ABS resin, which is easy to process, dimensionally stable, and has excellent impact resistance, heat resistance, low temperature resistance, chemical resistance, and electrical properties.

[0051] The O-ring 14 is made of silicone rubber, which has excellent heat resistance, cold resistance, ozone resistance, and atmospheric aging resistance. It has good insulation performance and is non-toxic and pollution-free. It can reach IP65 protection level when combined with the upper cover 12 and the housing 15.

[0052] The PCB board of the circuit board 13 adopts a multi-layer circuit design to ensure uniform current distribution on the circuit board, good heat dissipation, prevent color blocks from appearing under low grayscale conditions, and enhance anti-electromagnetic interference capability.

[0053] STM32F103RBT6 is a high-performance 32-bit Cortex-M3 core microcontroller chip launched by STMicroelectronics. The chip has rich functions and high performance, a powerful ARM Cortex-M3 core, a maximum operating frequency of 72MHz, 128KB Flash memory and 20KB SRAM memory.

[0054] The working principle of the utility model is as follows:

[0055] like Figures 1 to 4 As shown, the utility model discloses a programmable attenuator in PLC communication, including a touch screen 1, a first signal conditioning circuit 2, a second signal conditioning circuit 3, a concentrator 4, a first coupling module 5, a programmable π-type attenuation component 6, a second coupling module 7, a collector 8, a first low-pass filter 9, a second low-pass filter 10 and an MCU11. The touch screen 1 is connected to the MCU11, and the MCU11 is connected to the programmable π-type attenuation component 6, and the attenuation multiple of the programmable π-type attenuation component 6 can be controlled. When performing relevant tests, the operator only needs to set the signal attenuation multiples of the input end and the output end through the touch screen 1 interface to start the relevant test items. The MCU11 presents the test results (including signal input, output level, attenuation multiple) on the touch screen 1 in real time through the serial port, and the operator can also adjust the attenuation multiple at any time according to the feedback of the test results.

[0056] The utility model discloses a programmable attenuator in PLC communication, comprising a touch screen, a first signal conditioning circuit, a second signal conditioning circuit, a concentrator, a first coupling module, a programmable π-type attenuation component, a second coupling module, a collector, a first low-pass filter, a second low-pass filter and an MCU. The MCU is respectively connected to the touch screen and the programmable π-type attenuation component. The coupling module divides the input signal of the concentrator / collector into two branches, one branch filters out a low-frequency AC signal, recovers a carrier signal and then attenuates it through the programmable π-type attenuation component, and the other branch filters out a high-frequency carrier signal through a low-pass filter, and transmits the clean AC signal to a lower-level low-pass filter, couples with the attenuated signal and then outputs it to the collector / concentrator. The utility model branches the input signal and only attenuates the carrier signal, and the attenuation accuracy is high.

[0057] The utility model provides a programmable π-type attenuation component including a resistor Ra, a resistor Rb and a resistor Rc. The resistor Ra and the resistor Rc are respectively output variable resistors with a maximum resistance of 1K. The resistor Rb is composed of an output resistor, a plurality of switches S and a resistor R. The plurality of switches S are respectively electrically connected to an MCU. The MCU controls the resistance of the resistor Rc by controlling the plurality of switches S, thereby controlling the attenuation multiple of the attenuator.

[0058] When operating the attenuator of the utility model, it is only necessary to set the signal attenuation multiples of the input end and the output end on the touch screen, and the required attenuation multiples can be adjusted through the programmable π-type attenuation component. The adjustment speed is fast, the accuracy is good, the attenuation amount meets the test requirements, and the test operability is good.

[0059] The utility model does not need to frequently replace or add attenuators, is easy to operate, and is convenient for operators to test.

[0060] The workflow of this utility model:

[0061] Step 1, the concentrator 4 outputs a 220V AC signal which is input into the attenuator and then enters the first coupling module 5. The signal is divided into two branches. One branch enters the first low-pass filter 9 to filter out the high-frequency carrier signal, and transmits the clean AC signal to the second low-pass filter 10; the other branch passes through the first coupling module 5 to filter out the low-frequency AC signal, restore the carrier signal, and send the signal to the programmable π-type attenuation component 6 and the first signal conditioning circuit 2.

[0062] Step 2, set the attenuation multiple through the touch screen 1, and send the data to MCU11 through the RS232 interface. MCU11 calculates the Ra, Rb, and Rc values ​​of the programmable π-type attenuation component 6 according to the attenuation multiple, and sets the AD8400 registers corresponding to the three resistors through the SPI interface. The impedance between pins W1 and B1 is adjusted to the calculated Ra, Rb, and Rc values. The resistance values ​​of Ra, Rb, and Rc are adjusted, and the attenuation multiple of the attenuator changes.

[0063] Attenuation multiple Ra(Ω) Rc (Ω) Rb(Ω) 1 867 867 5.8 1.5 580.5 580.5 8.7 2 436 436 11.6 2.5 349.8 349.8 14.6 3 292.4 292.4 17.6 3.5 251.5 251.5 20.7 … … … … 20 61.1 61.1 247.5 20.5 60.4 60.4 262.5 21 59.8 59.8 278.3 30 53.2 53.2 790 40 51 51 2499 50 50.3 50.3 7906 60 50.1 50.1 24999 70 50 50 79056 80 50 50 250000 90 50 50 790569

[0064] Among them, Ra and Rc in the table are Figure 3 The resistors Ra and Rc in the figure; Rb is the resistor in the box in the figure, the switch (transistor circuit), etc.

[0065] When Rb is less than 50Ω, the eight resistors from R2 to R9 are combined.

[0066] When Rb is greater than 50, 9 resistors from R1 to R21 are combined.

[0067] 21 switches, S1~S21 are controlled by MCU through decoding circuit to control the on and off of transistors.

[0068] Step 3: MCU11 collects the signals input to the ADC interface by the first signal conditioning circuit 2 and the second signal conditioning circuit 3, converts the signals and sends the level values ​​of the signals to the touch screen 1 through the RS232 interface.

[0069] Step 4, the programmable π-type attenuation component 6 sends the attenuated signal to the second signal conditioning circuit 3 and the coupling and second coupling module 7; the second coupling module 7 and the AC220V signal output by the second low-pass filter 10 are coupled and output to the collector 8.

[0070] The signal attenuation process from the collector 8 to the concentrator 4 is similar to the above steps 1 to 4.

[0071] Main technical parameters of the utility model attenuator:

[0072] Attenuation: 0~90dB±0.25dB;

[0073] Input and output impedance: 50Ω;

[0074] Input voltage: ≤20V (sine wave effective value);

[0075] Input power: <3W;

[0076] Insertion loss: <0.8dB;

[0077] VSWR: <1.2;

[0078] Operating temperature: -20 to +65 °C.

[0079] The preferred embodiments of the present invention are described in detail above, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of ordinary technicians in this field without departing from the purpose of the present invention.

[0080] Many other changes and modifications can be made without departing from the concept and scope of the utility model. It should be understood that the utility model is not limited to a specific embodiment, and the scope of the utility model is defined by the appended claims.

Claims

1. A programmable attenuator in PLC communication, characterized in that: The invention comprises a touch screen (1), a first signal conditioning circuit (2), a second signal conditioning circuit (3), a concentrator (4), a first coupling module (5), a programmable π-type attenuation component (6), a second coupling module (7), a collector (8), a first low-pass filter (9), a second low-pass filter (10) and an MCU (11), wherein the concentrator (4) is connected to the first coupling module (5), the first coupling module (5) is respectively connected to the first signal conditioning circuit (2), the programmable π-type attenuation component (6) and the first low-pass filter (9), the first signal conditioning circuit (2) is connected to the MCU (11), the MCU (11) is connected to the touch screen (1), the programmable π-type attenuation component (6) is respectively connected to the second coupling module (7) and the MCU (11), the first low-pass filter (9) is connected to the second low-pass filter (10), the second coupling module (7) is respectively connected to the second signal conditioning circuit (3), the collector (8) and the second low-pass filter (10), and the second signal conditioning circuit (3) is also connected to the MCU (11).

2. A programmable attenuator in PLC communication according to claim 1, characterized in that: The data of the touch screen (1) is sent to the MCU (11) via the RS232 interface.

3. A programmable attenuator in PLC communication according to claim 1, characterized in that: The first coupling module (5) and the second coupling module (7) are both coupling capacitors, using 0.22uF safety capacitors, and the voltage AC is: 275V, 310V, 305V; Level:X2.

4. The programmable attenuator in PLC communication according to claim 1, characterized in that: The first low-pass filter (9) and the second low-pass filter (10) both adopt a third-order Type LC filter, cut-off frequency is 100KHz, attenuation is -20dB.

5. The programmable attenuator in PLC communication according to claim 1, characterized in that: The programmable π-type attenuation component (6) is an AD8400 device, which is a single-channel 256-bit digitally controlled variable resistance device.

6. A programmable attenuator in PLC communication according to claim 5, characterized in that: The AD8400 device includes resistor Ra, resistor Rb and resistor Rc, resistor Rb is connected to resistor Ra and resistor Rc respectively, the other ends of resistor Ra and resistor Rc are grounded respectively, the resistor Ra is the output variable resistor between the B1 pin and the W1 pin of the chip U1, and the maximum resistance value is 1K, the resistor Rc is the output variable resistor between the B1 pin and the W1 pin of the chip U3, and the maximum resistance value is 1K.

7. A programmable attenuator in PLC communication according to claim 6, characterized in that: The resistance range of the resistor Rb is: 1 ~1.1M , the resistor Rb includes an output resistor, a switch Sn and a resistor Rn. The output resistor is the output resistor between the B1 pin and the W1 pin of the chip U2. The n of the switch Sn is selected from 1 to 21, and the n of the resistor Rn is selected from 2 to 21. When n is 1, the 2nd pin of the switch S1 is connected to the B1 pin of the resistor Ra, the 3rd pin of the switch S1 is connected to the B1 pin of the output resistor, the W1 pin of the output resistor is connected to the 2nd pin of the switch S2, and the 1st pin of the switch S1 is connected to the Pin 2; when n is 2-20, pin 3 of switch Sn is connected to pin 2 of switch Sn+1, and pin 1 of switch Sn is connected to pin 2 of switch Sn+1 through resistor Rn+1; when n is 21, pin 3 of switch S21 is connected to pin B1 of resistor Rc, and pin 1 of switch S21 is connected to pin B1 of resistor Rc through resistor R21; pin 4 of Sn is connected to MCU (11), and pin W1 of resistor Ra and pin W1 of resistor Rc are grounded.

8. The programmable attenuator in PLC communication according to claim 1, characterized in that: The programmable attenuator comprises an upper cover (12), a circuit board (13), an O-type sealing ring (14) and a housing (15); the touch screen (1) is embedded in the upper cover (12); the upper cover (12) and the housing (15) are sealed and connected via the O-type sealing ring (14); the circuit board (13) is installed in a sealed space formed by the upper cover (12) and the housing (15); the first signal conditioning circuit (2), the second signal conditioning circuit (3), the concentrator (4), the first coupling module (5), the programmable π-type attenuation component (6), the second coupling module (7), the collector (8), the first low-pass filter (9), the second low-pass filter (10) and the MCU (11) are installed on a PCB of the circuit board (13).