Control terminal connection saving control method

Through encoding and decoding technology, the terminal status information in the automated control system is compressed from 31 lines to 9 lines, solving the cost and maintenance difficulty caused by the increase in the number of lines in the system, and achieving higher reliability and stability.

CN119689967APending Publication Date: 2025-03-25CHANGSHA PENGJUAN AUTOMATION EQUIPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411622610.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In an automated control system, as the system scale and complexity increase, the number of control lines and feedback lines increases, resulting in increased wiring costs and difficulty, and also increased failure rate and maintenance difficulty.

Method used

Through encoding and decoding technology, the terminal status information that originally required 31 lines to transmit is compressed to only 9 lines, and the signal is transmitted using the BCD code, and the signal is restored at the receiving end.

Benefits of technology

Significantly reduces the number of lines, reduces wiring and maintenance costs, improves system reliability and stability, simplifies wiring processes and facilitates repair and troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119689967A_ABST
    Figure CN119689967A_ABST
Patent Text Reader

Abstract

The invention discloses a control terminal saving connection control method, which relates to the field of automation control, and comprises the following steps: S1, a coding process; s2, a decoding process; and S3, designing hardware and software. According to the invention, through coding and decoding technologies, terminal state information which needs to be transmitted by 31 lines originally is successfully compressed to be transmitted by only 9 lines, so that the number of lines is significantly reduced; the wiring and maintenance cost is directly reduced by reducing the number of lines, and the coding module and the decoding module can be integrated in the PLC or used as independent equipment, so that additional hardware cost is not increased; by reducing the number of lines, the probability of faults is reduced, and the reliability of the system is improved; wiring is simpler and clearer through a small number of lines, maintenance and troubleshooting are facilitated, accurate transmission and recovery of signals are ensured due to the fact that the encoding and decoding processes are reversible, and the stability of the system is further enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automation control, specifically to a method for saving connection control terminals. Background Technology

[0002] In automated control systems, the PLC controller is the core component, responsible for receiving feedback signals from field devices and controlling the devices accordingly. However, as the scale and complexity of the control system increase, the number of control lines and feedback lines also increases. This not only increases wiring costs and difficulty but also raises the system's failure rate and maintenance difficulty.

[0003] In modern PLC control systems, feedback and control lines are directly connected. Furthermore, the automation control industry has numerous numerical input and output points, some with long distances. Currently, these are connected by run-wires to obtain feedback signals from the control points of field devices. The PLC controller then uses this feedback to control each device. If there are many devices, this requires numerous control and feedback lines, which are long and costly, leading to higher failure rates and making maintenance and troubleshooting more difficult. Summary of the Invention

[0004] The purpose of this invention is to provide a method for saving connection control of control terminals, so as to solve the technical problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for saving connection control of control terminals, comprising the following steps:

[0006] S1, Encoding Process

[0007] ① Binary to Decimal Conversion: Determine which terminals are at a high level, represent the feedback signal of each terminal as a binary number, and convert these binary numbers into the corresponding decimal number 144 in a specific way;

[0008] ② Decimal to BCD code conversion: Convert the decimal number 144 to BCD code, and determine the lines that need to be connected based on the BCD code, i.e., lines A5 and A8 are connected;

[0009] ③ Signal transmission: The converted BCD code is transmitted to the receiving end through a small number of lines, namely 9 lines to transmit the encoded BCD code;

[0010] S2, Decoding Process

[0011] ①BCD code to decimal conversion: At the receiving end, the decoding module receives the signal that lines A5 and A8 are turned on, and then converts it into the decimal number 144;

[0012] ② Decimal to binary conversion: Convert the decimal number 144 to its corresponding binary number;

[0013] ③ Signal recovery: Based on the converted binary number, determine which terminals are in a high-level state, and restore terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to be in a connected state, and pass them to the PLC controller for further processing;

[0014] S3, Hardware and Software Design

[0015] ① Hardware design: In order to implement the above encoding and decoding process, it is necessary to design a dedicated encoding module and decoding module;

[0016] ② Software design: In addition to hardware design, corresponding software programs need to be written to implement the encoding and decoding algorithms;

[0017] ③ System integration and testing: After completing the hardware and software design, the entire system can be integrated and tested.

[0018] Preferably, in step S1, terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 are set to be in the ON state, and the binary number is converted into the corresponding decimal number 144 by adding the terminal numbers that are in the ON state.

[0019] Preferably, the BCD code in S1 ② is a special binary encoding method, in which each decimal number is represented by four binary bits. In this way, a decimal number can be converted into a BCD code composed of multiple four-bit binary numbers, and the BCD code of 144 is represented as 000101000100.

[0020] Preferably, the length of the BCD code in S1 ③ is much smaller than the length of the original binary signal, which can significantly reduce the number of lines.

[0021] Preferably, step ① in S2 is achieved by looking up a table of correspondences between BCD codes and decimal numbers, or by using a specialized decoding algorithm.

[0022] Preferably, the binary number in ② of S2 represents the status signal of the original terminal, and the binary number matches the status information of the original terminal.

[0023] Preferably, the encoding module and decoding module in S3 ① are integrated into the PLC controller or used as independent devices to receive and send encoded signals and perform corresponding conversion processing.

[0024] Preferably, the software program in step ② of S3 runs on a PLC controller or a separate processing device and is responsible for controlling the workflow of the encoding module and the decoding module.

[0025] Preferably, the software program in S3 ② includes a binary to decimal conversion algorithm, a decimal to BCD code conversion algorithm, a BCD code to decimal conversion algorithm, and a decimal to binary conversion algorithm.

[0026] Preferably, the purpose of test ③ in S3 is to verify the correctness and reliability of the encoding and decoding process, as well as the performance and stability of the entire system, and the test includes functional testing, performance testing, stability testing and exception handling testing.

[0027] Compared with the prior art, the beneficial effects of the present invention are:

[0028] This invention, through encoding and decoding technology, successfully compresses terminal status information, which originally required 31 lines to be transmitted, into only 9 lines, significantly reducing the number of lines. This reduction in lines directly lowers wiring and maintenance costs, and since the encoding and decoding modules can be integrated into the PLC controller or used as independent devices, no additional hardware costs are incurred. The reduced number of lines also lowers the probability of failure, improving system reliability. Furthermore, the error correction capability of the encoding and decoding process further reduces the bit error rate. The fewer lines make wiring simpler and clearer, facilitating maintenance and troubleshooting. The reversibility of the encoding and decoding process ensures accurate signal transmission and recovery, further enhancing system stability. Attached Figure Description

[0029] Figure 1 This is a schematic flowchart of the method for saving connection control of the control terminals of the present invention;

[0030] Figure 2 This is a schematic diagram of the control line connection of the present invention. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] Please see Figure 1 The present invention provides a technical solution: a method for saving connection control of control terminals, comprising the following steps:

[0033] S1, Encoding Process

[0034] ① Binary to Decimal Conversion: Determine which terminals are at high level, set terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to be in the ON state, represent the feedback signal of each terminal as a binary number, and convert these binary numbers into the corresponding decimal number 144 by adding the terminal numbers of the ON terminals;

[0035] ② Decimal to BCD code conversion: Convert the decimal number 144 to BCD code, and the BCD code representation of 144 is 000101000100. Determine the lines to be connected based on the BCD code, that is, lines A5 and A8 are connected. BCD code is a special binary encoding method in which each decimal number is represented by four binary bits. In this way, a decimal number can be converted into a BCD code composed of multiple four-bit binary numbers.

[0036] ③ Signal transmission: The converted BCD code is transmitted to the receiving end through a small number of lines, namely 9 lines to transmit the encoded BCD code. Since the length of the BCD code is much smaller than the length of the original binary signal, the number of lines can be greatly reduced.

[0037] S2, Decoding Process

[0038] ①BCD code to decimal conversion: At the receiving end, the decoding module receives the signal that lines A5 and A8 are turned on, and then converts it into the decimal number 144. This process is achieved by looking up the correspondence table between BCD code and decimal number, or by using a special decoding algorithm.

[0039] ② Decimal to binary conversion: The decimal number 144 is converted into the corresponding binary number. The binary number represents the status signal of the original terminal and matches the status information of the original terminal.

[0040] ③ Signal recovery: Based on the converted binary number, determine which terminals are in a high-level state, and restore terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to be in a connected state, and pass them to the PLC controller for further processing;

[0041] S3, Hardware and Software Design

[0042] ① Hardware design: In order to realize the above encoding and decoding process, it is necessary to design a dedicated encoding module and a decoding module. The encoding module and the decoding module are integrated into the PLC controller or used as independent devices to receive and send the encoded signals and perform corresponding conversion processing.

[0043] ② Software design: In addition to hardware design, corresponding software programs need to be written to implement the encoding and decoding algorithms. The software programs run on the PLC controller or independent processing equipment and are responsible for controlling the workflow of the encoding and decoding modules.

[0044] ③ System Integration and Testing: After completing the hardware and software design, the entire system can be integrated and tested. The purpose of the testing is to verify the correctness and reliability of the encoding and decoding process, as well as the performance and stability of the entire system. The testing includes functional testing, performance testing, stability testing, and anomaly handling testing.

[0045] The software program in S3 ② includes a binary to decimal conversion algorithm, a decimal to BCD code conversion algorithm, a BCD code to decimal conversion algorithm, and a decimal to binary conversion algorithm.

[0046] Working principle: First, determine which terminals are at a high level and represent the feedback signal of each terminal as a binary number. Then, convert these binary numbers into the corresponding decimal number 144 using a specific method. Next, convert the converted decimal number 144 into BCD code and determine the lines that need to be turned on based on the BCD code, i.e., lines A5 and A8 are turned on. The converted BCD code is transmitted to the receiving end through a small number of lines, i.e., 9 lines to transmit the encoded BCD code. At the receiving end, the decoding module first receives the signal that lines A5 and A8 are turned on, then converts it into the decimal number 144. Then, the converted decimal number 144 is converted into the corresponding binary number. Finally, based on the converted binary number, determine which terminals are at a high level and restore terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to the on state, and pass it to the PLC controller for further processing.

[0047] To implement the above encoding and decoding process, dedicated encoding and decoding modules need to be designed. These modules can be integrated into the PLC controller or used as independent devices. They are responsible for receiving and sending encoded signals and performing corresponding conversion processing. In addition to hardware design, corresponding software programs need to be written to implement the encoding and decoding algorithms. These programs can run on the PLC controller or independent processing devices and are responsible for controlling the workflow of the encoding and decoding modules. After completing the hardware and software design, the entire system needs to be integrated and tested. The purpose of the test is to verify the correctness and reliability of the encoding and decoding process, as well as the performance and stability of the entire system. Content not described in detail in this specification belongs to prior art known to those skilled in the art.

[0048] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for controlling terminal saving connection control, characterized in that: The steps include: S1. Encoding process ① Binary to decimal conversion: determine which terminals are at a high level, and express the feedback signal of each terminal as a binary number, and convert these binary numbers into the corresponding decimal number 144 in a specific way; ②Conversion from decimal to BCD code: Convert the converted decimal number 144 into BCD code, and determine the lines that need to be turned on according to the BCD code, that is, lines A5 and A8 are turned on; ③Signal transmission: The converted BCD code is transmitted to the receiving end through a small number of lines, that is, 9 lines are used to transmit the encoded BCD code; S2. Decoding process ① Conversion from BCD code to decimal: At the receiving end, the decoding module receives the signal of the A5 and A8 lines being turned on, and then converts it into the decimal number 144; ②Conversion from decimal to binary: Convert the converted decimal number 144 to the corresponding binary number; ③Signal recovery: According to the converted binary number, determine which terminals are in the high level state, and restore terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to be in the on state, and pass it to the PLC controller for subsequent processing; S3, Hardware and Software Design ① Hardware design: In order to realize the above encoding and decoding process, it is necessary to design a special encoding module and decoding module; ② Software design: In addition to hardware design, it is also necessary to write corresponding software programs to implement encoding and decoding algorithms; ③System integration and testing: After completing the hardware and software design, the entire system can be integrated and tested.

2. A method for controlling terminal saving connection control according to claim 1, characterized in that: ① in S1 sets terminals 2, 5, 9, 12, 17, 20, 23, 26, and 30 to be in the on state, and the binary number is converted into the corresponding decimal number 144 by adding the numbers of the connected terminals.

3. A method for controlling terminal saving connection control according to claim 1, characterized in that: The BCD code of ② in S1 is a special binary encoding method, in which each decimal digit is represented by four binary bits. In this way, a decimal number can be converted into a BCD code composed of multiple four-bit binary numbers, and the BCD code of 144 is 000101000100.

4. A method for controlling terminal saving connection control according to claim 1, characterized in that: The length of the BCD code in ③ of S1 is much smaller than the original binary signal length, which can greatly reduce the number of lines.

5. The method for controlling terminal saving connection control according to claim 1, characterized in that: ① in S2 is realized by searching a corresponding relationship table between BCD codes and decimal numbers, or by using a special decoding algorithm.

6. A method for controlling terminal saving connection control according to claim 1, characterized in that: The binary number ② in S2 represents the state signal of the original terminal, and the binary number matches the state information of the original terminal.

7. A method for controlling terminal-saving connection control according to claim 1, characterized in that: The encoding module and decoding module in ① of S3 are integrated in the PLC controller or used as independent devices, and are responsible for receiving and sending the encoded signals and performing corresponding conversion processing.

8. The method for controlling terminal saving connection control according to claim 1, characterized in that: The software program in ② of S3 runs on a PLC controller or an independent processing device and is responsible for controlling the workflow of the encoding module and the decoding module.

9. A method for controlling terminal-saving connection control according to claim 8, characterized in that: The software program in ② of S3 includes a binary-to-decimal conversion algorithm, a decimal-to-BCD code conversion algorithm, a BCD code-to-decimal conversion algorithm, and a decimal-to-binary conversion algorithm.

10. The method for controlling terminal saving connection control according to claim 1, characterized in that: The purpose of the test ③ in S3 is to verify the correctness and reliability of the encoding and decoding process, as well as the performance and stability of the entire system, and the test includes functional testing, performance testing, stability testing and exception handling testing.