Signal transmission method, device, equipment and medium

By introducing multiple relays into the motor control system and forming a closed-loop communication loop, the problem of data packet loss and confusion in signal transmission between the controller and the driver is solved, improving the accuracy and reliability of signal transmission and ensuring system stability. run.

CN118675310APending Publication Date: 2024-09-20CHANGSHA YINGWEITENG ELECTRIC TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410827479.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing motor control system, data packet loss and data confusion are prone to occur when the controller sends signals to the driver, which affects the stable operation of the system, and there is a lack of effective solutions.

Method used

Introduce multiple relays into the industrial control system, and regularly poll the control signals received from the slave relays through the host relay to perform signal regulation and compensation, forming a closed-loop communication loop, detecting and correcting the transmission signal, and ensuring the accuracy of signal transmission. performance and reliability.

Benefits of technology

Through signal amplification and real-time correction, the accuracy and reliability of the target control signal in the data transmission process are improved, data packet loss and data confusion are avoided, and the stability of the system is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675310A
    Figure CN118675310A
Patent Text Reader

Abstract

The invention discloses a signal transmission method, device, equipment and medium, and belongs to the field of industrial control, the method is applied to a host relay in an industrial control system, and the industrial control system comprises a controller, a driver and a plurality of relays; the host relay is a relay specified in the plurality of relays, and other relays except the host relay in the plurality of relays are slave relays; the method comprises the following steps: acquiring a target control signal sent by a controller to a driver; sending a target control signal to the driver through each slave relay; and in the process of sending the target control signal to the driver through each slave relay, periodically polling the control signal received by each slave relay at a preset moment, and regulating and controlling the control signal received by each slave relay according to the control signal sent to the driver at the preset moment so as to send the target control signal to the driver. Through the method, the problems of packet loss and disorder in the process of sending the control signal to the driver can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial control, and in particular to a signal transmission method, device, equipment and medium. Background Art

[0002] In order to improve the dynamic performance of the motor control system, the controller usually uses pulse signals or analog signals to control the driver in the motor control system. However, this method is easily interfered by the external environment, and data packet loss and data confusion are very likely to occur during signal transmission. Once the above problems occur in the process of the controller sending signals to the driver, the normal and stable operation of the driver will be affected at the least, and the driver will be shut down at the worst, which will seriously affect the stable operation of the entire system. At present, there is no more effective solution to this technical problem. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a signal transmission method, device, equipment and medium to solve the problem of data packet loss and data confusion in the process of the controller sending signals to the driver in the prior art. The specific scheme is as follows:

[0004] In order to solve the above technical problems, the present invention provides a signal transmission method, which is applied to a host relay in an industrial control system, wherein the industrial control system comprises: a controller, a driver and a plurality of relays; the host relay is a designated relay among the plurality of relays, and the other relays among the plurality of relays except the host relay are all slave relays; the method comprises:

[0005] Acquiring a target control signal sent by the controller to the driver;

[0006] Sending the target control signal to the driver through each slave relay;

[0007] In the process of sending the target control signal to the driver through each slave relay, the control signal received by each slave relay at a preset time is polled periodically, and the control signal received by each slave relay is regulated according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver.

[0008] Preferably, the timing polling of the control signal received by each slave relay at a preset time, and regulating the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver, includes:

[0009] Periodically polling each slave relay to obtain the control signal received at the preset time to obtain a first control signal, and determining the control signal sent to the driver at the preset time to obtain a second control signal;

[0010] In the case where the first control signal and the second control signal are inconsistent, determining whether a difference signal between the first control signal and the second control signal is within a first preset range;

[0011] If so, performing signal compensation on the slave relays in which the control signal transmission error occurs in the plurality of slave relays according to the second control signal, so as to send the target control signal to the driver;

[0012] If not, the driver is controlled to stop.

[0013] Preferably, before the timing polling of each slave relay for a control signal received at a preset time, the method further comprises:

[0014] Recording the control signal sent by the controller to the driver at the current moment and the next moment to obtain a first sending signal and a second sending signal;

[0015] Determining whether a difference signal between the second transmission signal and the first transmission signal is within a second preset range;

[0016] If yes, then executing the step of periodically polling each slave relay for the control signal received at the preset time;

[0017] If not, the step of recording the control signals sent to the driver through multiple slave relays at the current moment and the next moment to obtain the first sending signal and the second sending signal is re-executed.

[0018] Preferably, the timed polling of the control signal received by each slave relay at a preset time includes:

[0019] The control signal received by each slave relay at the preset time is periodically polled by using the signal trigger line and the data transmission line, and the control signal fed back by each slave relay is stored; wherein the data transmission line includes a data transmission line, a data receiving line and a ground line.

[0020] Preferably, the target adjacent relays are connected by a shielded cable; wherein the target adjacent relays are any two adjacent relays among the multiple relays; and the shielding level of the shielded cable is set according to the signal interference intensity of the area where the shielded cable is located.

[0021] Preferably, the sending of the target control signal to the driver through each slave relay includes:

[0022] The target control signal is converted into a differential signal to obtain a target differential signal, and the target differential signal is sent to the driver through each slave relay.

[0023] Preferably, sending the target differential signal to the driver through each slave relay includes:

[0024] A communication connection is established with each slave relay via RS485, and the target differential signal is sent to the driver via each slave relay.

[0025] In order to solve the above technical problems, the present invention also provides a signal transmission device, which is applied to a host relay in an industrial control system, wherein the industrial control system comprises: a controller, a driver and a plurality of relays; the host relay is a designated relay among the plurality of relays, and the other relays among the plurality of relays except the host relay are all slave relays; the device comprises:

[0026] A signal acquisition module, used for acquiring a target control signal sent by the controller to the driver;

[0027] A signal sending module, used for sending the target control signal to the driver through each slave relay;

[0028] A signal regulation module is used to periodically poll the control signal received by each slave relay at a preset time during the process of sending the target control signal to the driver through each slave relay, and regulate the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver.

[0029] In order to solve the above technical problem, the present invention further provides an electronic device, comprising:

[0030] Memory for storing computer programs;

[0031] A processor is used to implement the steps of a signal transmission method disclosed above when executing the computer program.

[0032] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a signal transmission method disclosed above are implemented.

[0033] Beneficial effect: In the present invention, multiple relays are added in advance to the industrial control system where the controller and the driver are located, and one of the multiple relays is set as the host relay, and the other relays except the host relay are set as slave relays. In this method, the host relay first obtains the target control signal sent to the driver from the controller, and sends the target control signal to the driver through each slave relay; in the process of sending the target control signal to the driver through each slave relay, the host relay will periodically poll the control signal received by each slave relay at a preset time, and will regulate the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to achieve the purpose of sending the target control signal to the driver.

[0034] Compared with the prior art, by adding multiple relays between the controller and the driver, it is equivalent to amplifying the target control signal, thereby enhancing the data transmission capacity of the target control signal. At the same time, the host relay will also periodically poll the control signals received by each slave relay at a preset time, and regulate the control signals received by each slave relay according to the control signals sent to the driver at the preset time. This setting method is equivalent to adding a closed-loop communication loop between the controller and the driver. The closed-loop communication loop can not only detect the abnormalities and errors of the target control signal in the data transmission process, but also use the closed-loop communication loop to correct the transmission signal in real time during the transmission of the target control signal, so that the problem of data packet loss and data confusion in the target control signal during the data transmission process can be avoided, thereby further improving the accuracy and reliability of the target control signal during the data transmission process. Correspondingly, a signal transmission device, equipment and medium provided by the present invention also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flow chart of a signal transmission method provided by an embodiment of the present invention;

[0037] Figure 2 A flowchart of another signal transmission method provided by an embodiment of the present invention;

[0038] Figure 3A schematic diagram of the principle of an industrial control system provided by an embodiment of the present invention;

[0039] Figure 4 A flowchart of another signal transmission method provided by an embodiment of the present invention;

[0040] Figure 5 A structural diagram of a signal transmission device provided by an embodiment of the present invention;

[0041] Figure 6 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] See also Figure 1 , Figure 1 A flow chart of a signal transmission method provided by an embodiment of the present invention, the method is applied to a host relay in an industrial control system, the industrial control system includes: a controller, a driver and multiple relays; the host relay is a designated relay among the multiple relays, and the other relays among the multiple relays except the host relay are all slave relays; the method includes:

[0044] Step S11: obtaining a target control signal sent by the controller to the driver;

[0045] Step S12: sending a target control signal to the driver through each slave relay;

[0046] Step S13: In the process of sending the target control signal to the driver through each slave relay, the control signal received by each slave relay at the preset time is periodically polled, and the control signal received by each slave relay is regulated according to the control signal sent to the driver at the preset time to send the target control signal to the driver.

[0047] In this embodiment, a signal transmission method is provided, which can avoid the problems of data packet loss and data confusion in the target control signal during data transmission, and further improve the accuracy and reliability of the target control signal during data transmission.

[0048] The method is specifically described with the host relay in the industrial control system as the execution subject. Among them, the industrial control host is provided with a controller, a driver and multiple relays. The host relay is a designated relay among multiple relays, and the other relays except the host relay among the multiple relays are collectively referred to as slave relays.

[0049] In practical applications, the controller can be set to PLC (Programmable Logic Controller), host computer, motion control board, MCU (Micro Control Unit), etc., and the drive can be set to frequency converter, synchronous motor, asynchronous motor, etc.

[0050] Obviously, after multiple relays are connected between the controller and the driver, these relays can be used to amplify the target control signal output by the controller, thereby improving the data transmission capacity of the target control signal.

[0051] When the host relay receives the target control signal sent by the controller to the driver, it will send the target control signal to the driver through each slave relay. The target control signal can be either a pulse signal or an analog signal.

[0052] In the process of sending the target control signal to the driver through each slave relay, the host relay will periodically poll the control signal received by each slave relay at the preset time, and will also regulate the control signal received by each slave relay according to the control signal sent by the host relay to the driver at the preset time, so as to achieve the purpose of accurately transmitting the target control signal to the driver.

[0053] In actual applications, when the host relay periodically polls the control signals received by each slave relay at a preset time, it can also verify the received control signals to determine whether the received control signals are lost or tampered with.

[0054] Specifically, since the Modbus protocol is a widely used serial communication protocol in the industrial field, the host relay can use the Modbus protocol to periodically poll the control signals received by each slave relay at a preset time. In addition, the host relay can use parity check or CRC (Cyclic Redundancy Check) to check the received control signal.

[0055] Assuming that the controller sends 1000 pulse signals to the driver at time T, the host relay will send 1000 pulse signals to the driver through each slave relay at time T. If the host relay polls each slave relay and finds that a slave relay only returns 900 pulses to the host relay at time T, it means that the slave relay has lost packets during data transmission. At this time, the host relay will send a signal compensation command to the slave relay so that the slave relay can make up the 1000 pulse signals according to the signal compensation command and ensure the accuracy and reliability of the pulse signal during transmission.

[0056] This setting is equivalent to adding a closed-loop communication circuit consisting of multiple relays between the controller and the driver. The host relay can detect the abnormalities and errors in the data transmission process of the target control signal by regularly polling the control signals received by each slave relay at the preset time. In addition, the control signal sent by the host relay to the driver at the preset time can also correct the control signal transmitted by each slave relay in real time.

[0057] Obviously, this method can avoid the problem of data packet loss and data confusion in the target control signal during data transmission, thereby ensuring the accuracy and reliability of the target control signal during data transmission.

[0058] In addition, in practical applications, in order to further improve the stability and reliability of the target control signal during data transmission, two relays can be designated as host relays among multiple relays. That is, the host relays are set to be mutually redundant, so that even if an abnormality or failure occurs in one host relay during operation, it will not affect the data transmission process of the target control signal.

[0059] It should be noted that, under normal circumstances, the host relay will periodically poll the control signals received by each slave relay at a preset time through the industrial communication protocol, and the target control signals sent by the controller to the driver are generally pulse signals and analog signals. Since the transmission speed of the industrial communication protocol is usually lower than the transmission speed of the pulse signal and the analog signal, this is equivalent to using a faster data transmission speed to transmit the target control signal, and using a slower data transmission speed to correct and rectify the control signals received by each slave relay. Through this setting method, not only can the transmission speed of the target control signal during the signal transmission process be guaranteed, but also the reliability of the target control signal during the signal transmission process can be taken into account.

[0060] Compared with the prior art, by adding multiple relays between the controller and the driver, it is equivalent to amplifying the target control signal, thereby enhancing the data transmission capacity of the target control signal. At the same time, the host relay will also periodically poll the control signals received by each slave relay at a preset time, and regulate the control signals received by each slave relay according to the control signals sent to the driver at the preset time. This setting is equivalent to adding a closed-loop communication circuit between the controller and the driver. The closed-loop communication circuit can not only detect the abnormalities and errors of the target control signal during the data transmission process, but also use the closed-loop communication circuit to correct the transmission signal in real time during the transmission of the target control signal, so as to avoid the problem of data packet loss and data confusion during the data transmission of the target control signal, thereby further improving the accuracy and reliability of the target control signal during the data transmission process.

[0061] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. Figure 2 , Figure 2 A flowchart of another signal transmission method provided by an embodiment of the present invention. As a preferred implementation, the above step S13: regularly polling the control signal received by each slave relay at a preset time, and regulating the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver, includes:

[0062] Step S301: regularly polling the control signal received by each slave relay at a preset time to obtain a first control signal, and determining the control signal sent to the driver at the preset time to obtain a second control signal;

[0063] Step S302: when the first control signal and the second control signal are inconsistent, determine whether the difference signal between the first control signal and the second control signal is within a first preset range; if so, execute step S303; if not, execute step S304;

[0064] Step S303: performing signal compensation on the slave relays in which the control signal transmission error occurs in the plurality of slave relays according to the second control signal, so as to send the target control signal to the driver;

[0065] Step S304: Control the driver to stop.

[0066] In this embodiment, when the host relay periodically polls the control signals received by each slave relay at a preset time, and regulates the control signals received by each slave relay according to the control signals sent to the driver at the preset time, the host relay first periodically polls the control signals received by each slave relay at the preset time to obtain a first control signal, and determines the control signal sent to the driver at the preset time to obtain a second control signal. Then, the host relay determines whether the first control signal and the second control signal are consistent.

[0067] If the first control signal and the second control signal are consistent, it means that each slave machine has no data packet loss and data disorder problem in the process of transmitting the target control signal. At this time, no processing is required, and only the subsequent process steps need to be continued.

[0068] If the first control signal and the second control signal are inconsistent, it means that the slave relay has data packet loss and data disorder during the transmission of the target control signal. In this case, the host relay will continue to determine whether the difference signal between the first control signal and the second control signal is within the first preset range.

[0069] If the difference signal between the first control signal and the second control signal is not within the first preset range, it means that the slave relay has a particularly large error in the process of transmitting the target control signal. At this time, if the transmission signal obtained by the slave relay is continued to be used to control the driver, it will seriously affect the normal operation of the driver. In order to avoid this situation, the host relay will shut down the driver.

[0070] If the difference signal between the first control signal and the second control signal is within the first preset range, it means that the slave relay has experienced data loss or data confusion during the transmission of the target control signal. However, the host relay can also correct the control signal received by the slave relay through data correction methods.

[0071] At this time, the host relay will determine the slave relay with the transmission signal error according to the first control signal and the second control signal, and obtain the target slave relay. After that, the host relay will send a signal compensation command to the target slave relay, and perform signal compensation on the control signal received by the target slave relay according to the second control signal, so that the target slave relay can transmit the correct and complete target control signal to the driver.

[0072] Obviously, through the technical solution provided by this embodiment, the accuracy and reliability of the target control signal during the transmission process can be guaranteed.

[0073] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step: before regularly polling each slave relay for a control signal received at a preset time, further includes:

[0074] Recording the control signals sent by the controller to the driver at the current moment and the next moment to obtain a first sending signal and a second sending signal;

[0075] Determining whether a difference signal between the second transmission signal and the first transmission signal is within a second preset range;

[0076] If yes, then executing the step of periodically polling each slave relay for the control signal received at the preset time;

[0077] If not, the step of recording the control signals sent to the driver through multiple slave relays at the current moment and the next moment to obtain the first sending signal and the second sending signal is re-executed.

[0078] In actual applications, when the controller sends a target control signal to the driver, it may sometimes encounter a situation where the controller sends the control signal to the driver before it runs stably. In this case, the accuracy and completeness of the control signal sent by the controller to the driver may be affected.

[0079] In order to avoid the above situation, before the host relay periodically polls the control signals received by each slave relay at the preset time, the host relay will also record the control signals sent to the driver through multiple slave relays at the current time and the next time to obtain the first transmission signal and the second transmission signal. After obtaining the first transmission signal and the second transmission signal, the host relay will determine whether the difference signal between the second transmission signal and the first transmission signal is within the second preset range.

[0080] If the difference signal between the second transmission signal and the first transmission signal is within the second preset range, it means that each slave relay has no data packet loss or data disorder in the process of transmitting the target control signal, or it means that each slave relay has no serious data packet loss or data disorder in the process of transmitting the target control signal, which basically does not affect the overall transmission result of the control signal. At this time, the host relay only needs to continue to perform the step of periodically polling the control signal received by each slave relay at the preset time.

[0081] If the difference signal between the second transmission signal and the first transmission signal is not within the second preset range, it means that each slave relay has experienced serious data packet loss or data confusion in the process of transmitting the target control signal. At this time, if the host relay continues to execute the subsequent process steps, it will affect the normal and stable operation of the driver. In this case, the host relay needs to re-execute the steps of recording the control signals sent to the driver through multiple slave relays at the current moment and the next moment to obtain the first transmission signal and the second transmission signal.

[0082] Obviously, through the technical solution provided in this embodiment, the accuracy of the driver when receiving the target control signal can be further improved.

[0083] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of periodically polling the control signal received by each slave relay at a preset time includes:

[0084] The signal trigger line and the data transmission line are used to periodically poll the control signal received by each slave relay at a preset time, and the control signal fed back by each slave relay is stored; wherein the data transmission line includes a data transmission line, a data receiving line and a ground line.

[0085] In this embodiment, when the master relay periodically polls the control signals received by each slave relay at a preset time, it will use the signal trigger line TRIG and the data transmission lines TX, RX and GND to periodically poll the control signals received by each slave relay at a preset time. Among them, the signal trigger line TRIG is used to output a clock signal, the data transmission line TX is used to send data, the data transmission line RX is used to receive data, and the data transmission line GND is a ground line.

[0086] It should be noted that when the host relay uses the signal trigger line TRIG and the data transmission lines TX, RX and GND to periodically poll the control signals received by each slave relay at the preset time, the host relay may not receive the control signals fed back by each slave relay at the same time. In this case, the host relay needs to store the control signals fed back by each slave relay in a pre-set memory when receiving the control signals; then, compare these control signals with the control signals sent by the host relay to each slave relay at the preset time, and judge whether the slave relay has data packet loss and data confusion in the process of transmitting the target control signal based on the comparison results.

[0087] Obviously, through the technical solution provided by this embodiment, it can be ensured that the master relay can periodically poll to obtain the control signal received by each slave relay at a preset time.

[0088] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation mode, the target adjacent relays are connected by shielded cables; wherein, the target adjacent relays are any two adjacent relays among multiple relays; the shielding level of the shielded cable is set according to the signal interference intensity of the area where the shielded cable is located.

[0089] In this embodiment, in order to further ensure the stability and reliability of the target control signal during transmission, a shielded cable is used to connect each relay between the controller and the driver. In addition, when the target adjacent relays are connected through a shielded cable, the shielding level of the shielded cable is set according to the signal interference strength of the area where the shielded cable is located.

[0090] That is, when shielded cables are used to connect the relays between the controller and the driver, shielded cables with higher shielding levels will be used to connect the relays in the location where the signal interference intensity is higher, and shielded cables with lower shielding levels will be used to connect the relays in the location where the signal interference intensity is weaker. Obviously, through such a setting, the cost investment when using shielded cables to connect the relays between the controller and the driver can be relatively reduced.

[0091] In addition, in practical applications, a signal detection device may be used to detect the signal interference intensity of the location area of ​​each relay. This operation is common knowledge to those skilled in the art and will not be described in detail here.

[0092] Obviously, the technical solution provided in this embodiment can not only improve the stability of the target control signal during transmission, but also relatively reduce the cost investment when using a shielded cable to connect the relay set between the controller and the driver.

[0093] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above step of sending the target control signal to the driver through each slave relay includes:

[0094] The target control signal is converted into a differential signal to obtain a target differential signal, and the target differential signal is sent to the driver through each slave relay.

[0095] Since differential signals have stronger signal interference capabilities than single-ended signals, in order to improve the stability and reliability of the target control signal during signal transmission, when the host relay receives the target control signal sent by the controller to the driver, it can also first convert the target control signal into a differential signal to obtain a target differential signal; then, the target differential signal is sent to the driver through each slave relay.

[0096] Specifically, if the target control signal itself is a differential signal, the host relay can directly send the target control signal to the driver through each slave relay; if the target control signal itself is a single-ended signal, the host relay can use the ground wire to convert the single-ended signal into a differential signal, and then send the target control signal to the driver through each slave relay.

[0097] Obviously, through the technical solution provided by this embodiment, the stability of the target control signal during the signal transmission process can be further improved.

[0098] As a preferred implementation, the above step of sending the target differential signal to the driver through each slave relay includes:

[0099] A communication connection is established with each slave relay via RS485, and a target differential signal is sent to the driver via each slave relay.

[0100] Since RS485 (Recommended Standard 485, a serial communication standard) uses the voltage difference between the two ends of the cable to transmit signals, and RS485 is widely used in practical applications, in this embodiment, when the host relay sends the target differential signal to the driver through each slave relay, it can first establish a communication connection with each slave relay through RS485, and then send the target differential signal to the driver through each slave relay.

[0101] Obviously, the technical solution provided in this embodiment can ensure the universality of the signal transmission method provided in this application in practical applications.

[0102] Here, an application scenario example is used to explain the technical contents disclosed in the above embodiment in detail. Figure 3 and Figure 4 , Figure 3 A schematic diagram of the principle of an industrial control system provided by an embodiment of the present invention is shown in FIG. Figure 4 The present invention provides a flowchart of another signal transmission method.

[0103] exist Figure 3 In the industrial control system shown, a PLC, a motor and multiple relays are provided; the host relay is a designated relay among the multiple relays, and the other relays except the host relay among the multiple relays are slave relays. All relays can be powered independently according to the specified voltage or in parallel according to the specified voltage.

[0104] When multiple relays are connected between the PLC and the motor, these relays can be used to boost and amplify the control signal sent by the PLC to the motor, thereby enhancing the anti-interference ability of the control signal during signal transmission. Among them, the control signal sent by the PLC to the motor includes: differential signal, single-ended signal, analog signal and pulse signal.

[0105] In actual applications, if the control signal sent by the PLC to the motor is a differential signal, each relay can be connected using a twisted pair shielded cable. If the control signal sent by the PLC to the motor is a single-ended signal, each relay can be connected using a single shielded cable. In addition, in order to relatively reduce the investment cost of shielded cables, a shielded cable with a higher shielding level can be used to connect the relays in this location area where the signal interference intensity is high, and a shielded cable with a lower shielding level can be used to connect the relays in this location area where the signal interference intensity is weak.

[0106] In addition, it should be noted that in this embodiment, it is assumed that signal interference exists between multiple relays and the driver, and there is no signal interference between the driver and the host relay.

[0107] Please combine Figure 4 , below Figure 3 The host relay in the industrial control system shown is used as the execution subject to describe the signal transmission method provided by the present application, and the method includes:

[0108] Step S101: receiving UVW signal and ABZ signal sent by PLC to the motor;

[0109] Because both UVW and ABZ signals can represent the operating parameters of the motor, when the PLC sends a control signal to the motor, it will send both UVW and ABZ signals to the motor. In addition, in actual applications, when the PLC sends a control signal to the motor, it may only send the ABZ signal. Since the AB signal in the ABZ signal can represent the rotation direction of the motor, and the Z signal can represent the running speed of the motor, if the PLC only sends the ABZ signal to the motor, it will not affect the subsequent execution process.

[0110] Step S102: Record the number of pulses sent by the PLC to the motor through the two channels AB at the current moment to obtain Xab, and record the number of pulses sent by the PLC to the motor through the two channels AB at the next moment to obtain Yab;

[0111] Step S103: determine whether the difference between Xab and Yab is less than a preset threshold; if not, execute step S102; if yes, execute step S104;

[0112] In practical applications, it can be determined whether the PLC has entered a stable operating state through steps S102 and S103. If the difference between Xab and Yab is less than the preset threshold, it means that the PLC has entered a stable operating state, and the host relay can continue to execute subsequent process steps. If the difference between Xab and Yab is greater than the preset threshold or equal to the preset threshold, it means that the PLC has not entered a stable operating state, and the host relay needs to re-execute step S102.

[0113] Step S104: sending UVW signals and ABZ signals to the motor through each slave relay;

[0114] Step S105: In the process of sending ABZ signals to the motor through each slave relay, the pulse signal received by each slave relay at the preset time is polled by using the signal trigger line TRIG and the data transmission lines TX, RX and GND to obtain the first pulse signal, and the pulse signal sent to the driver at the preset time is determined to obtain the second pulse signal;

[0115] It should be noted that in Figure 3 In the figure, UVW signals are represented by U+, U-, V+, V-, W+ and W-, and ABZ signals are represented by A+, A-, B+, B-, Z+ and Z-. Among them, + and - indicate that both UVW signals and ABZ signals are differential signals.

[0116] In addition, all relays are equipped with power ports. Vin+ and Vin- on the relay represent the positive input and negative input terminals, and Vout+ and Vout- on the relay represent the negative input and negative output terminals. TRIG represents the signal trigger line, TX represents the data transmission line, RX represents the data reception line, and GND represents the ground line. PG represents the metal mesh shielding layer.

[0117] Step S106: if the first pulse signal and the second pulse signal are inconsistent, determine whether the difference signal between the first pulse signal and the second pulse signal is within a preset range; if so, execute step S107; if not, execute step S109;

[0118] Step S107: determining a slave relay having a transmission error of a pulse signal among a plurality of slave relays according to the first pulse signal and the second pulse signal, and obtaining a target slave relay;

[0119] Step S108: Send a signal compensation command to the target slave relay, so that the target slave relay can regenerate the UVW signal and the ABZ signal according to the signal compensation command sent by the host relay, and send the UVW signal and the ABZ signal to the driver.

[0120] Step S109: Control the driver to stop.

[0121] Obviously, step S105 to step S108 is equivalent to adding a closed-loop communication circuit between the PLC and the motor. The closed-loop communication circuit can not only detect the abnormalities and errors of the UVW signal and the ABZ signal in the data transmission process, but also perform real-time deviation correction on the UVW signal and the ABZ signal in the transmission process. In this way, the problems of data packet loss and data confusion of the UVW signal and the ABZ signal in the data transmission process can be avoided, thereby further improving the accuracy and reliability of the UVW signal and the ABZ signal in the data transmission process.

[0122] See also Figure 5 , Figure 5 This is a structural diagram of a signal transmission device provided by an embodiment of the present invention. The device is applied to a host relay in an industrial control system. The industrial control system includes: a controller, a driver, and multiple relays; the host relay is a designated relay among the multiple relays, and the other relays among the multiple relays except the host relay are all slave relays; the device includes:

[0123] The signal acquisition module 21 is used to acquire the target control signal sent by the controller to the driver;

[0124] A signal sending module 22, used for sending a target control signal to the driver through each slave relay;

[0125] The signal control module 23 is used to periodically poll the control signals received by each slave relay at a preset time during the process of sending the target control signal to the driver through each slave relay, and regulate the control signals received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver.

[0126] Preferably, the signal control module 23 includes:

[0127] A signal determination unit, which periodically polls the control signals received by each slave relay at a preset time to obtain a first control signal, and determines the control signal sent to the driver at the preset time to obtain a second control signal; a difference judgment unit, which is used to judge whether the difference signal between the first control signal and the second control signal is within a first preset range when the first control signal and the second control signal are inconsistent;

[0128] A first determination unit, configured to, when the determination result of the first difference determination unit is yes, perform signal compensation on a slave relay having a transmission error of a control signal in a plurality of slave relays according to a second control signal, so as to send a target control signal to the driver;

[0129] The second determination unit is used to control the driver to shut down when the determination result of the first difference determination unit is no.

[0130] Preferably, it also includes:

[0131] A signal recording module, used for recording the control signals sent by the controller to the driver at the current moment and the next moment before regularly polling the control signals received by each slave relay at a preset moment, to obtain a first transmission signal and a second transmission signal;

[0132] A difference judgment module, used to judge whether the difference signal between the second transmission signal and the first transmission signal is within a second preset range;

[0133] A first execution module, configured to execute the step of periodically polling each slave relay for a control signal received at a preset time when the determination result of the signal determination module is yes;

[0134] The second execution module is used for re-executing the step of recording the control signals sent to the driver through multiple slave relays at the current moment and the next moment to obtain the first sending signal and the second sending signal when the determination result of the signal determination module is no.

[0135] Preferably, the signal control module 23 includes:

[0136] The signal polling unit is used to periodically poll the control signals received by each slave relay at a preset time using the signal trigger line and the data transmission line, and store the control signals fed back by each slave relay; wherein the data transmission line includes a data transmission line, a data receiving line and a ground line.

[0137] Preferably, the signal sending module 22 includes:

[0138] The signal differential unit is used to convert the target control signal into a differential signal to obtain a target differential signal, and send the target differential signal to the driver through each slave relay.

[0139] Preferably, the signal differential unit comprises:

[0140] The signal sending subunit is used to establish a communication connection with each slave relay through RS485, and send a target differential signal to the driver through each slave relay.

[0141] A signal transmission device provided by an embodiment of the present invention has the beneficial effects of the signal transmission method disclosed above.

[0142] See also Figure 6 , Figure 6 A structural diagram of an electronic device provided by an embodiment of the present invention, the electronic device comprising:

[0143] A memory 31, used for storing computer programs;

[0144] The processor 32 is used to implement the steps of a signal transmission method disclosed above when executing a computer program.

[0145] An electronic device provided by an embodiment of the present invention has the beneficial effects of the aforementioned signal transmission method disclosed above.

[0146] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a signal transmission method disclosed above are implemented.

[0147] A computer-readable storage medium provided in an embodiment of the present invention has the beneficial effects of the aforementioned signal transmission method disclosed above.

[0148] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0149] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0150] The signal transmission method, device, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A signal transmission method, It is characterized in that The invention is applied to a host relay in an industrial control system, wherein the industrial control system comprises: a controller, a driver and a plurality of relays; the host relay is a designated relay among the plurality of relays, and the other relays among the plurality of relays except the host relay are all slave relays; the method comprises: Acquiring a target control signal sent by the controller to the driver; sending the target control signal to the driver through each slave relay; In the process of sending the target control signal to the driver through each slave relay, the control signal received by each slave relay at a preset time is polled periodically, and the control signal received by each slave relay is regulated according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver.

2. A signal transmission method according to claim 1, It is characterized in that The timing polling of the control signal received by each slave relay at a preset time, and regulating the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver, includes: Periodically polling each slave relay to obtain the control signal received at the preset time to obtain a first control signal, and determining the control signal sent to the driver at the preset time to obtain a second control signal; In the case where the first control signal and the second control signal are inconsistent, determining whether a difference signal between the first control signal and the second control signal is within a first preset range; If so, performing signal compensation on the slave relays in which the control signal transmission error occurs in the plurality of slave relays according to the second control signal, so as to send the target control signal to the driver; If not, the driver is controlled to stop.

3. A signal transmission method according to claim 1, It is characterized in that Before the timing polling of the control signal received by each slave relay at the preset time, the method further includes: Recording the control signal sent by the controller to the driver at the current moment and the next moment to obtain a first sending signal and a second sending signal; Determining whether a difference signal between the second transmission signal and the first transmission signal is within a second preset range; If yes, then executing the step of periodically polling each slave relay for the control signal received at the preset time; If not, the step of recording the control signals sent to the driver through multiple slave relays at the current moment and the next moment to obtain the first sending signal and the second sending signal is re-executed.

4. A signal transmission method according to claim 1, It is characterized in that The timing polling of the control signal received by each slave relay at a preset time includes: The control signal received by each slave relay at the preset time is periodically polled by using the signal trigger line and the data transmission line, and the control signal fed back by each slave relay is stored; wherein the data transmission line includes a data transmission line, a data receiving line and a ground line.

5. A signal transmission method according to claim 1, It is characterized in that The target adjacent relays are connected via a shielded cable; wherein the target adjacent relays are any two adjacent relays among the multiple relays; and the shielding level of the shielded cable is set according to the signal interference intensity of the area where the shielded cable is located.

6. A signal transmission method according to any one of claims 1 to 5, It is characterized in that The sending of the target control signal to the driver through each slave relay includes: The target control signal is converted into a differential signal to obtain a target differential signal, and the target differential signal is sent to the driver through each slave relay.

7. A signal transmission method according to claim 6, It is characterized in that The sending of the target differential signal to the driver through each slave relay includes: A communication connection is established with each slave relay via RS485, and the target differential signal is sent to the driver via each slave relay.

8. A signal transmission device, It is characterized in that The device is applied to a host relay in an industrial control system, wherein the industrial control system comprises: a controller, a driver and multiple relays; the host relay is a designated relay among the multiple relays, and the other relays among the multiple relays except the host relay are all slave relays; the device comprises: A signal acquisition module, used for acquiring a target control signal sent by the controller to the driver; A signal sending module, used for sending the target control signal to the driver through each slave relay; A signal regulation module is used to periodically poll the control signal received by each slave relay at a preset time during the process of sending the target control signal to the driver through each slave relay, and regulate the control signal received by each slave relay according to the control signal sent to the driver at the preset time, so as to send the target control signal to the driver.

9. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of a signal transmission method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a signal transmission method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Multilevel control system for spinning machine

    CN104090522A

  • Internet of things networking anti-loss system and anti-loss method

    CN114221894A

  • Communication interaction method between motor drivers and two-for-one twister system

    CN115529205A

  • Communication method and system, communication equipment and storage medium

    CN117394960A

  • Serial port communication method and related equipment

    CN117997974A