Rapid two-way transmission processing method for IO signals of automatic control system

By establishing dual independent databases in the automated control system and using SQL and Redis for dynamic update processing, the problems of cumbersome configuration and poor scalability of traditional IO signal management methods are solved, fast bidirectional transmission of IO signals is achieved, and the flexibility of the system is improved. and stability.

CN118625709APending Publication Date: 2024-09-10SHENZHEN BANGZHENG PRECISION MACHINERY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410627261.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The traditional IO signal management method has the problems of cumbersome configuration and poor scalability in automated control systems, making it difficult to achieve fast and accurate transmission and processing of signals.

Method used

By establishing dual independent databases, SQL and Redis are used to construct associative and non-associative databases respectively, and dynamic update processing is performed to achieve fast two-way transmission of IO signals.

Benefits of technology

It achieves centralized management, rapid configuration and dynamic adjustment of signals, improves system flexibility and maintainability, reduces production risks caused by manual configuration errors, and supports real-time reading and data interaction, simplifying the signal configuration process and improving improve system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625709A
    Figure CN118625709A
Patent Text Reader

Abstract

The invention relates to the field of automatic control signal processing, in particular to a rapid two-way transmission processing method for IO signals of an automatic control system, which comprises the following steps: S1, establishing a database of the IO signals of the automatic control system by utilizing the IO signals of the automatic control system; s2, performing dynamic updating processing by utilizing the database of the IO signals of the automatic control system to obtain a dynamic database of the IO signals of the automatic control system; and S3, according to the dynamic database of the IO signals of the automatic control system, obtaining a rapid two-way transmission processing result of the IO signals of the automatic control system, and by binding the IO signals with the database, realizing centralized management, rapid configuration and dynamic adjustment of the signals, improving the flexibility and maintainability of the system, and improving the reliability of the system. According to the method, the production risk caused by manual configuration errors is reduced, real-time reading and data interaction of IO signals are achieved, powerful support is provided for automatic production, the signal configuration process is simplified, and the system stability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automation control signal processing, and in particular to a fast two-way transmission processing method for IO signals of an automation control system. Background Art

[0002] In automated control systems, IO (input / output) signals play a vital role, as they are responsible for transmitting key information such as device status and receiving control instructions. However, traditional IO signal management methods usually have problems such as cumbersome configuration and poor scalability. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention provides a method for fast two-way transmission and processing of IO signals of an automation control system, which can quickly realize accurate transmission and processing by establishing a dual independent database.

[0004] To achieve the above object, the present invention provides a fast two-way transmission processing method for IO signals of an automation control system, comprising:

[0005] S1. Using the IO signals of the automation control system to establish a database of the IO signals of the automation control system;

[0006] S2, using the database of the automation control system IO signal to dynamically update and obtain a dynamic database of the automation control system IO signal;

[0007] S3. Obtaining a fast two-way transmission processing result of the automation control system IO signal according to the dynamic database of the automation control system IO signal.

[0008] Preferably, the method of establishing a database of the IO signals of the automation control system by using the IO signals of the automation control system comprises:

[0009] Use the automation control system IO signal to establish an IO signal association database based on SQL;

[0010] Use the IO signals of the automation control system to establish an IO signal non-associative database based on Redis;

[0011] Using the IO signal association type database and the IO signal non-association type database as the database of the IO signal of the automation control system;

[0012] Among them, the architecture of the IO signal relational database corresponds to SQL, and the architecture of the IO signal non-relational database corresponds to Redis.

[0013] Furthermore, the database of the automation control system IO signal is dynamically updated to obtain a dynamic database of the automation control system IO signal, including:

[0014] S2-1, using the database group of the automation control system IO signal to establish a dynamic synchronization cache;

[0015] S2-2, obtain attribute classification label data based on SQL data attribute classification;

[0016] S2-3, obtain storage type label data based on the data storage type of Redis;

[0017] S2-4, using the attribute classification tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain the attribute classification operation result;

[0018] S2-5, using the storage type tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain a storage type operation result;

[0019] S2-6. Using the attribute classification operation results and the storage type operation results, a dynamic database of the automation control system IO signal is established.

[0020] Further, obtaining the fast two-way transmission processing result of the automation control system IO signal according to the dynamic database of the automation control system IO signal includes:

[0021] S3-1, when there is a read request in the dynamic database of the automation control system IO signal, using the read request to obtain a database read result;

[0022] S3-2, when there is a write request in the dynamic database of the automation control system IO signal, using the write request to obtain a database write result;

[0023] S3-3, using the database reading result or the database writing result to obtain the fast two-way transmission processing result of the automation control system IO signal.

[0024] Further, obtaining a database reading result using the read request includes:

[0025] S3-1-1, according to the request to be processed, obtain the corresponding request data in the IO signal non-associative database as preliminary request data;

[0026] S3-1-2, using the preliminary request data to obtain verification common request data according to the storage type;

[0027] S3-1-3. Determine whether the verification common request data corresponds to the read request. If so, use the preliminary request data as the database read result. Otherwise, return to S3-1-1.

[0028] Further, obtaining a database write result using the write request includes:

[0029] S3-2-1, using a write request to write data corresponding to the IO signal associated database and the IO signal non-associated database respectively;

[0030] S3-2-2, determine whether the write request flow timestamps of the IO signal associated database and the IO signal non-associated database correspond to each other, if so, execute S3-2-3, otherwise, obtain the database write result according to the write request flow timestamp corresponding to the IO signal associated database;

[0031] S3-2-3, after deleting the historical operation record corresponding to the write request in the dynamic synchronization cache, using the IO signal association database to obtain the verification write data corresponding to the write request in the IO signal non-association database according to attribute classification;

[0032] S3-2-4. Determine whether the verification write data is consistent with the write data corresponding to the write request. If so, use the verification write data as the database write result. Otherwise, return to S3-2-1.

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

[0034] By binding IO signals to the database, centralized management, rapid configuration and dynamic adjustment of signals can be achieved to improve the flexibility and maintainability of the system, reduce production risks caused by manual configuration errors, and realize real-time reading and data interaction of IO signals, providing strong support for automated production, simplifying the signal configuration process and improving system stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The present invention provides a flowchart of a method for rapid two-way transmission and processing of IO signals of an automation control system. DETAILED DESCRIPTION

[0036] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0038] Embodiment 1:

[0039] The present invention provides a fast two-way transmission processing method for IO signals of an automation control system, such as Figure 1 As shown, including:

[0040] S1. Using the IO signals of the automation control system to establish a database of the IO signals of the automation control system;

[0041] S2, using the database of the automation control system IO signal to dynamically update and obtain a dynamic database of the automation control system IO signal;

[0042] S3. Obtaining a fast two-way transmission processing result of the automation control system IO signal according to the dynamic database of the automation control system IO signal.

[0043] S1 specifically includes:

[0044] S1-1. Use the IO signal of the automation control system to establish an IO signal association database based on SQL;

[0045] S1-2. Use the IO signal of the automation control system to establish an IO signal non-associative database based on Redis;

[0046] S1-3, using the IO signal association type database and the IO signal non-association type database as the database of the IO signal of the automation control system;

[0047] Among them, the architecture of the IO signal relational database corresponds to SQL, and the architecture of the IO signal non-relational database corresponds to Redis.

[0048] S2 specifically includes:

[0049] S2-1, using the database group of the automation control system IO signal to establish a dynamic synchronization cache;

[0050] S2-2, obtain attribute classification label data based on SQL data attribute classification;

[0051] S2-3, obtain storage type label data based on the data storage type of Redis;

[0052] S2-4, using the attribute classification tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain the attribute classification operation result;

[0053] S2-5, using the storage type tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain a storage type operation result;

[0054] S2-6. Using the attribute classification operation results and the storage type operation results, a dynamic database of the automation control system IO signal is established.

[0055] S3 specifically includes:

[0056] S3-1, when there is a read request in the dynamic database of the automation control system IO signal, using the read request to obtain a database read result;

[0057] S3-2, when there is a write request in the dynamic database of the automation control system IO signal, using the write request to obtain a database write result;

[0058] S3-3, using the database reading result or the database writing result to obtain the fast two-way transmission processing result of the automation control system IO signal.

[0059] S3-1 specifically includes:

[0060] S3-1-1, according to the request to be processed, obtain the corresponding request data in the IO signal non-associative database as preliminary request data;

[0061] S3-1-2, using the preliminary request data to obtain verification common request data according to the storage type;

[0062] S3-1-3. Determine whether the verification common request data corresponds to the read request. If so, use the preliminary request data as the database read result. Otherwise, return to S3-1-1.

[0063] S3-2 specifically includes:

[0064] S3-2-1, using a write request to write data corresponding to the IO signal associated database and the IO signal non-associated database respectively;

[0065] S3-2-2, determine whether the write request flow timestamps of the IO signal associated database and the IO signal non-associated database correspond to each other, if so, execute S3-2-3, otherwise, obtain the database write result according to the write request flow timestamp corresponding to the IO signal associated database;

[0066] S3-2-3, after deleting the historical operation record corresponding to the write request in the dynamic synchronization cache, using the IO signal association database to obtain the verification write data corresponding to the write request in the IO signal non-association database according to attribute classification;

[0067] S3-2-4. Determine whether the verification write data is consistent with the write data corresponding to the write request. If so, use the verification write data as the database write result. Otherwise, return to S3-2-1.

[0068] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0069] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0070] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A fast two-way transmission processing method for IO signals of an automation control system, It is characterized in that include: S1. Using the IO signals of the automation control system to establish a database of the IO signals of the automation control system; S2, using the database of the automation control system IO signal to dynamically update and obtain a dynamic database of the automation control system IO signal; S3. Obtaining a fast two-way transmission processing result of the automation control system IO signal according to the dynamic database of the automation control system IO signal.

2. A fast two-way transmission processing method for IO signals of an automation control system as claimed in claim 1, It is characterized in that The method of using the automation control system IO signal to establish a database of the automation control system IO signal includes: Use the automation control system IO signal to establish an IO signal association database based on SQL; Use the IO signals of the automation control system to establish an IO signal non-associative database based on Redis; Using the IO signal association type database and the IO signal non-association type database as the database of the IO signal of the automation control system; Among them, the architecture of the IO signal relational database corresponds to SQL, and the architecture of the IO signal non-relational database corresponds to Redis.

3. A fast two-way transmission processing method for IO signals of an automation control system as claimed in claim 2, It is characterized in that The method of dynamically updating the database of the IO signal of the automation control system to obtain the dynamic database of the IO signal of the automation control system includes: S2-1, using the database group of the automation control system IO signal to establish a dynamic synchronization cache; S2-2, obtain attribute classification label data based on SQL data attribute classification; S2-3, obtain storage type label data based on the data storage type of Redis; S2-4, using the attribute classification tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain the attribute classification operation result; S2-5, using the storage type tag data to perform virtual operation processing according to the dynamic synchronization cache to obtain a storage type operation result; S2-6. Using the attribute classification operation results and the storage type operation results, a dynamic database of the automation control system IO signal is established.

4. A fast two-way transmission processing method for IO signals of an automation control system as claimed in claim 3, It is characterized in that The fast two-way transmission processing result of the automation control system IO signal obtained according to the dynamic database of the automation control system IO signal includes: S3-1, when there is a read request in the dynamic database of the automation control system IO signal, using the read request to obtain a database read result; S3-2, when there is a write request in the dynamic database of the automation control system IO signal, using the write request to obtain a database write result; S3-3, using the database reading result or the database writing result to obtain the fast two-way transmission processing result of the automation control system IO signal.

5. A fast two-way transmission processing method for IO signals of an automation control system as claimed in claim 4, It is characterized in that Obtaining a database reading result using the read request includes: S3-1-1, according to the request to be processed, obtain the corresponding request data in the IO signal non-associative database as preliminary request data; S3-1-2, using the preliminary request data to obtain verification common request data according to the storage type; S3-1-3. Determine whether the verification common request data corresponds to the read request. If so, use the preliminary request data as the database read result. Otherwise, return to S3-1-1.

6. A fast two-way transmission processing method for IO signals of an automation control system as claimed in claim 5, It is characterized in that Obtaining a database write result using the write request includes: S3-2-1, using a write request to write data corresponding to the IO signal associated database and the IO signal non-associated database respectively; S3-2-2, determine whether the write request flow timestamps of the IO signal associated database and the IO signal non-associated database correspond to each other, if so, execute S3-2-3, otherwise, obtain the database write result according to the write request flow timestamp corresponding to the IO signal associated database; S3-2-3, after deleting the historical operation record corresponding to the write request in the dynamic synchronization cache, using the IO signal association database to obtain the verification write data corresponding to the write request in the IO signal non-association database according to attribute classification; S3-2-4. Determine whether the verification write data is consistent with the write data corresponding to the write request. If so, use the verification write data as the database write result. Otherwise, return to S3-2-1.

Citation Information

Cited By

  • IO signal interaction processing method for automatic control system

    CN119717655A