CN117311257B - PLC centralized control method and system applied to cell formation composition - Google Patents

PLC centralized control method and system applied to cell formation composition Download PDF

Info

Publication number
CN117311257B
CN117311257B CN202311606273.6A CN202311606273A CN117311257B CN 117311257 B CN117311257 B CN 117311257B CN 202311606273 A CN202311606273 A CN 202311606273A CN 117311257 B CN117311257 B CN 117311257B
Authority
CN
China
Prior art keywords
controlled
plc
request
target
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311606273.6A
Other languages
Chinese (zh)
Other versions
CN117311257A (en
Inventor
董博昊
李东升
蒋邦翊
彭春华
喻俊钦
曾云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Herunda Technology Co ltd
Original Assignee
Shenzhen Herunda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Herunda Technology Co ltd filed Critical Shenzhen Herunda Technology Co ltd
Priority to CN202311606273.6A priority Critical patent/CN117311257B/en
Publication of CN117311257A publication Critical patent/CN117311257A/en
Application granted granted Critical
Publication of CN117311257B publication Critical patent/CN117311257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1103Special, intelligent I-O processor, also plc can only access via processor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a PLC centralized control method and a system applied to cell formation composition, wherein the method comprises the following steps: at least one operation request is read, and for each operation request, the PLC to be controlled corresponding to the operation request is determined; for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled; and for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing serial writing operation on the PLC to be controlled so as to write each operation request into the PLC to be controlled. Therefore, the invention can avoid the problem that data is erroneously covered when the same PLC is controlled by multiple ends, ensure the accuracy of the PLC with multiple ends operation, and is beneficial to improving the accuracy and reliability of the operation time sequence of the PLC, thereby being beneficial to improving the accuracy and the intelligence of the centralized control of the PLC.

Description

PLC centralized control method and system applied to cell formation composition
Technical Field
The invention relates to the technical field of new energy power battery automation production lines, in particular to a PLC centralized control method and system applied to cell formation and composition.
Background
A programmable logic controller (Programmable Logic Controller, PLC), a digital arithmetic controller with a microprocessor for automated control, can load control instructions into memory at any time for storage and execution. The programmable controller consists of CPU, instruction and data memory, I/O interface, power source, digital-to-analog converter and other functional units.
In the prior art, a PLC is a commonly used controller for controlling electrical equipment, and in a new energy power battery automatic production line, only one middle position machine or only one upper position machine normally performs read-write operation on the same PLC so as to complete the control of the equipment. However, if the middle computer and the upper computer need to perform read-write operation on the PLC, or if two electrical devices controlled by the middle computer are managed by one PLC, a plurality of control terminals may perform read-write operation on the PLC, and in this case, the phenomenon that the data of the internal register of the PLC is covered is caused, thereby causing misoperation of the PLC, further causing control errors of the PLC, and seriously affecting normal production. It is important to provide a new control method for the PLC to improve the accuracy and reliability of the control of the PLC.
Disclosure of Invention
The technical problem to be solved by the invention is to provide the PLC centralized control method and the system applied to the cell formation component capacity, which can improve the accuracy and the reliability of the control of the PLC, thereby being beneficial to improving the accuracy and the reliability of the control of the cell formation component capacity by the PLC.
In order to solve the technical problems, the first aspect of the invention discloses a PLC centralized control method applied to cell formation composition, which comprises the following steps:
at least one operation request is taken, and for each operation request, the PLC to be controlled corresponding to the operation request is determined;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled;
and for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing serial writing operation on the PLC to be controlled so as to write each operation request into the PLC to be controlled.
As an optional implementation manner, in the first aspect of the present invention, after determining, for each operation request, a PLC to be controlled corresponding to the operation request, the method further includes:
Judging whether target PLCs exist in all the PLCs to be controlled, wherein the number of operation requests corresponding to the target PLCs is lower than a preset number threshold;
when judging that the target PLC exists in all the PLCs to be controlled, generating target write-in data according to a target operation request corresponding to the target PLC, and executing data write-in operation matched with the target write-in data on the target PLC so as to write the target operation request into the target PLC;
when judging that the target PLC does not exist in all the PLCs to be controlled, triggering and executing the operation of the message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled.
As an alternative embodiment, in the first aspect of the present invention, the method further includes:
for each to-be-controlled PLC, judging whether the to-be-controlled PLC has completed the writing operation of the operation request for each operation request included in a message queue of the to-be-controlled PLC;
for each PLC to be controlled, when judging that the PLC to be controlled has completed the writing operation of the operation request, executing data synchronization operation on a predetermined data hash table according to the operation request;
The predetermined data hash table comprises data corresponding to at least one PLC to be controlled.
In an optional implementation manner, in a first aspect of the present invention, for each PLC to be controlled, the generating a message queue of the PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled includes:
for each PLC to be controlled, determining the request time of each operation request corresponding to the PLC to be controlled, and executing request ordering operation on all operation requests according to a preset ordering mode according to the request time of all operation requests to obtain a request ordering result of the PLC to be controlled; the request sequencing result comprises a request execution sequence of all operation requests corresponding to the PLC to be controlled;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to a request ordering result of the PLC to be controlled; the message queue comprises all the operation requests of the PLC to be controlled.
As an optional implementation manner, in the first aspect of the present invention, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, the performing, for each PLC to be controlled, a serial write operation on the PLC to be controlled to write each operation request to the PLC to be controlled includes:
For each to-be-controlled PLC, determining a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC;
for each PLC to be controlled, determining a target data area corresponding to a target control request of the PLC to be controlled according to the target control request of the PLC to be controlled;
for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled;
and judging whether the target to-be-controlled request of each to-be-controlled PLC is written into a target data area corresponding to the target to-be-controlled request or not, when the target to-be-controlled request of the to-be-controlled PLC is judged to be written into the target data area corresponding to the target to-be-controlled request, removing the target to-be-controlled request which is written into the target data area from a message queue of the to-be-controlled PLC, and re-executing the operation of the target to-be-controlled request of the to-be-controlled PLC according to the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC.
As an optional implementation manner, in the first aspect of the present invention, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, the serial write operation is performed on the PLC to be controlled, so as to write each operation request to the PLC to be controlled, and then the method further includes:
for each PLC to be controlled, acquiring real-time data of the PLC to be controlled, and judging whether the PLC to be controlled has completed writing operation of all operation requests corresponding to the PLC to be controlled according to the real-time data of the PLC to be controlled;
for each PLC to be controlled, when judging that the PLC to be controlled does not complete the writing operation of all the operation requests corresponding to the PLC to be controlled, determining a request to be completed of the PLC to be controlled according to the real-time data of the PLC to be controlled, wherein the request to be completed is the operation request with the writing operation not completed;
for each to-be-controlled PLC, analyzing the target reason that the to-be-completed request does not finish the writing operation according to the real-time data of the to-be-controlled PLC and the to-be-completed request of the to-be-controlled PLC, generating target processing parameters based on the target reason, executing processing operation matched with the target processing parameters on the to-be-controlled PLC, and executing the writing operation on the to-be-completed request to write the to-be-completed request into the to-be-controlled PLC.
In an optional implementation manner, in a first aspect of the present invention, for each PLC to be controlled, according to a target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, performing a data writing operation on the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled, including:
for each to-be-controlled PLC, acquiring data attribute information corresponding to a target data area corresponding to a target to-be-controlled request of the to-be-controlled PLC, determining a data receiving type of the target data area corresponding to the target to-be-controlled request according to the data attribute information, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC according to the target to-be-controlled request of the to-be-controlled PLC, and judging whether the data request type of the to-be-controlled PLC is matched with the data receiving type of the target data area corresponding to the target to-be-controlled request;
for each to-be-controlled PLC, when judging that the data request type of the to-be-controlled PLC is not matched with the data receiving type of the target data area corresponding to the target to-be-controlled request, executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request, wherein the corresponding data request type of the updated target to-be-controlled request is matched with the data receiving type corresponding to the target to-be-controlled request;
And for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
The second aspect of the invention discloses a PLC centralized control system applied to cell formation and composition, the system comprises:
the reading module is used for reading at least one operation request;
the determining module is used for determining the PLC to be controlled corresponding to each operation request;
the generation module is used for generating a message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled;
and the writing module is used for executing serial writing operation on each to-be-controlled PLC based on the message queue of the to-be-controlled PLC and each operation request included in the message queue of the to-be-controlled PLC so as to write each operation request into the to-be-controlled PLC.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further includes:
the judging module is used for judging whether target PLCs exist in all the PLCs to be controlled after the determining module determines the PLCs to be controlled corresponding to the operation requests for each operation request, wherein the number of the operation requests corresponding to the target PLCs is lower than a preset number threshold; when judging that the target PLC does not exist in all the PLCs to be controlled, triggering the generating module to execute the operation of the message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled;
The writing module is further configured to generate target writing data according to a target operation request corresponding to the target PLC when the judging module judges that the target PLC exists in all the PLCs to be controlled, and perform a data writing operation matched with the target writing data on the target PLC, so as to write the target operation request into the target PLC.
As an optional implementation manner, in the second aspect of the present invention, the determining module is further configured to determine, for each PLC to be controlled, for each operation request included in a message queue of the PLC to be controlled, whether the PLC to be controlled has completed a write operation of the operation request;
the apparatus further comprises:
the synchronization module is used for executing data synchronization operation on a predetermined data hash table according to the operation request when the judgment module judges that the operation request writing operation of the PLC to be controlled is completed for each PLC to be controlled; the predetermined data hash table comprises data corresponding to at least one PLC to be controlled.
In a second aspect of the present invention, as an optional implementation manner, the specific manner of generating, by the generating module, for each PLC to be controlled, the message queue of the PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled includes:
For each PLC to be controlled, determining the request time of each operation request corresponding to the PLC to be controlled, and executing request ordering operation on all operation requests according to a preset ordering mode according to the request time of all operation requests to obtain a request ordering result of the PLC to be controlled; the request sequencing result comprises a request execution sequence of all operation requests corresponding to the PLC to be controlled;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to a request ordering result of the PLC to be controlled; the message queue comprises all the operation requests of the PLC to be controlled.
In a second aspect of the present invention, the writing module performs, for each PLC to be controlled, a serial writing operation on the PLC to be controlled based on a message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, so as to write each operation request to the PLC to be controlled, where the specific manner includes:
for each to-be-controlled PLC, determining a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC;
For each PLC to be controlled, determining a target data area corresponding to a target control request of the PLC to be controlled according to the target control request of the PLC to be controlled;
for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled;
and judging whether the target to-be-controlled request of each to-be-controlled PLC is written into a target data area corresponding to the target to-be-controlled request or not, when the target to-be-controlled request of the to-be-controlled PLC is judged to be written into the target data area corresponding to the target to-be-controlled request, removing the target to-be-controlled request which is written into the target data area from a message queue of the to-be-controlled PLC, and re-executing the operation of the target to-be-controlled request of the to-be-controlled PLC according to the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further includes:
The write-in module is used for executing serial write-in operation on each to-be-controlled PLC based on the message queue of the to-be-controlled PLC and each operation request included in the message queue of the to-be-controlled PLC so as to write each operation request into the to-be-controlled PLC, and then, for each to-be-controlled PLC, acquiring real-time data of the to-be-controlled PLC;
the judging module is further used for judging whether the PLC to be controlled completes the write operation of all the operation requests corresponding to the PLC to be controlled according to the real-time data of the PLC to be controlled;
the determining module is further configured to determine, for each PLC to be controlled, a request to be completed of the PLC to be controlled according to real-time data of the PLC to be controlled when the judging module judges that the PLC to be controlled does not complete writing operations of all operation requests corresponding to the PLC to be controlled, where the request to be completed is an operation request that the writing operations are not completed;
the analysis module is used for analyzing the target reason that the write operation is not completed by the to-be-completed request according to the real-time data of the to-be-controlled PLC and the to-be-completed request of the to-be-controlled PLC for each to-be-controlled PLC;
The generating module is further used for generating target processing parameters based on the target reasons and executing processing operations matched with the target processing parameters on the PLC to be controlled;
the writing module is further configured to execute the writing operation on the to-be-completed request, so as to write the to-be-completed request into the to-be-controlled PLC.
In a second aspect of the present invention, the writing module performs, for each PLC to be controlled, a data writing operation on the PLC to be controlled according to a target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled, where the specific manner includes:
for each to-be-controlled PLC, acquiring data attribute information corresponding to a target data area corresponding to a target to-be-controlled request of the to-be-controlled PLC, determining a data receiving type of the target data area corresponding to the target to-be-controlled request according to the data attribute information, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC according to the target to-be-controlled request of the to-be-controlled PLC, and judging whether the data request type of the to-be-controlled PLC is matched with the data receiving type of the target data area corresponding to the target to-be-controlled request;
For each to-be-controlled PLC, when judging that the data request type of the to-be-controlled PLC is not matched with the data receiving type of the target data area corresponding to the target to-be-controlled request, executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request, wherein the corresponding data request type of the updated target to-be-controlled request is matched with the data receiving type corresponding to the target to-be-controlled request;
and for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
The third aspect of the invention discloses another PLC centralized control system applied to cell formation composition, the system comprises:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to execute the PLC centralized control method applied to the cell formation component disclosed in the first aspect of the invention.
A fourth aspect of the present invention discloses a computer storage medium storing computer instructions for executing the PLC centralized control method for cell-based component disclosed in the first aspect of the present invention when the computer instructions are called.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, at least one operation request is read, and for each operation request, the PLC to be controlled corresponding to the operation request is determined; for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled; and for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing serial writing operation on the PLC to be controlled so as to write each operation request into the PLC to be controlled. Therefore, the invention can avoid the problem that data is erroneously covered when the same PLC is controlled by multiple ends, ensure the accuracy of the PLC with multiple ends operation, and is beneficial to improving the accuracy and reliability of the operation time sequence of the PLC, thereby being beneficial to improving the accuracy and the intelligence of the centralized control of the PLC.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a PLC centralized control method applied to a cell formation component according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another PLC centralized control method applied to the composition of the battery cells according to the embodiment of the invention;
FIG. 3 is a schematic structural diagram of a centralized control system for PLC applied to cell formation and composition according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of the present invention disclosed for a centralized control system of a PLC for the composition of electrical components in a cell;
fig. 5 is a schematic structural diagram of yet another PLC centralized control system applied to the composition of a battery cell according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a PLC centralized control method and a system applied to cell formation and composition, which can avoid the problem that data are erroneously covered when multiple ends control the same PLC, ensure the accuracy of the PLC with multiple ends operation, and are beneficial to improving the accuracy and reliability of the PLC operation time sequence, and further are beneficial to improving the accuracy and the intelligence of centralized control of the PLC. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a PLC centralized control method applied to a centralized component of a battery cell according to an embodiment of the present invention. The PLC centralized control method applied to the electrical core formation component capacity described in fig. 1 can be applied to a PLC centralized control system of the electrical core formation component capacity, can also be applied to a local server or a cloud server of the PLC centralized control of the electrical core formation component capacity, and can also be applied to a PLC centralized control of the electrical core formation component capacity. As shown in fig. 1, the PLC centralized control method applied to the cell formation composition may include the following operations:
101. and reading at least one operation request, and determining the PLC to be controlled corresponding to each operation request.
In an embodiment of the present invention, optionally, each operation request is an operation request for indicating that a corresponding control operation is performed on the PLC.
In the embodiment of the present invention, alternatively, PLCs corresponding to different operation requests may be the same PLC, and the number of PLCs corresponding to one operation request is one.
In the embodiment of the present invention, optionally, for each operation request, determining the PLC to be controlled corresponding to the operation request may include:
For each operation request, determining request key information in the operation request, wherein the request key information comprises one or more of serial number information, model information, brand information, production information, memory information, capacity information and memory information of the PLC to be controlled corresponding to the operation request;
for each operation request, determining the PLC to be controlled which is matched with the request key information of the operation request.
Therefore, the to-be-controlled PLC corresponding to each operation request can be determined by determining the request key information in each operation request, which is beneficial to improving the accuracy and reliability of determining each to-be-controlled PLC and the intelligence of determining each to-be-controlled PLC.
102. And for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled.
In the embodiment of the invention, optionally, the message queue of each to-be-controlled PLC includes all operation requests required to be executed by the to-be-controlled PLC; further, all operation requests to be executed by each to-be-controlled PLC included in the message queue of the to-be-controlled PLC are arranged according to a preset time sequence order. For example, when the operation request to be executed by a certain PLC to be controlled includes an operation request a and an operation request B, and the receiving time of the operation request a received by the PLC to be controlled is 03:00:01, and the receiving time of the operation request B received by the PLC to be controlled is 03:00:06, the execution sequence of the operation request a in the message queue of the PLC to be controlled is earlier than the execution sequence of the operation request B, that is, the operation request a is executed first and then the operation request B is executed.
103. And for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing serial writing operation on the PLC to be controlled so as to write each operation request into the PLC to be controlled.
In the embodiment of the present invention, optionally, when each PLC to be controlled performs a serial write operation, the number of operation requests written by each PLC to be controlled is one.
In the embodiment of the present invention, further optionally, for different PLCs to be controlled, each PLC to be controlled can simultaneously perform serial write operation on each operation request included in the message queue of the PLC to be controlled, that is, serial write operation on the operation request can be simultaneously performed between different PLCs to be controlled, and each operation request corresponding to the same PLC to be controlled cannot simultaneously perform write operation on the operation request.
In an embodiment of the present invention, optionally, for example, a specific manner of performing a serial write operation on each PLC to be controlled to write each operation request to the PLC to be controlled may be: firstly, reading a data area to be written, then, modifying the read data according to written points, then, writing back to the data area corresponding to the PLC, and then, polling to read the corresponding data area until the data of the data area is consistent with the data expected to be written, wherein the corresponding data area is the data area in the PLC to be controlled, and then, the next writing operation can be carried out. Therefore, the occurrence of error coverage operation when a plurality of control terminals perform writing operation on the same PLC can be avoided, the number of corresponding operation requests when the same PLC performs data writing operation is one, the improvement of the accuracy and the reliability when the data writing operation is performed is facilitated, the data writing operation can be performed in combination with time sequence, and the accuracy and the reliability when the data writing operation can be further improved.
It can be seen that implementing the centralized control method for the chemical composition PLC applied to the electrical core described in fig. 1 can read at least one operation request and determine the PLC to be controlled corresponding to each operation request, generate a message queue for each PLC to be controlled according to the operation request corresponding to each PLC to be controlled, perform serial write operation on each PLC to be controlled based on the message queue and each operation request of each PLC to be controlled, so as to write each operation request to each PLC to be controlled, when a plurality of operation requests exist in the same PLC to be controlled, perform serial write operation on the PLC to be controlled when a plurality of ends exist in the same PLC to be controlled, sequentially write each operation request corresponding to the PLC to be controlled into the PLC to be controlled, compared with the condition that when a plurality of operation requests exist in the same PLC in the prior art, sequentially perform serial write operation on each operation request, ensure that each operation request can be correctly written to each PLC to be controlled when a plurality of operation requests exist in the same PLC to be controlled, can be controlled in uniform, can prevent the same PLC from being controlled from being subjected to control data from being uniformly, and can further control the accuracy in a unified manner, and can be beneficial to improving the accuracy of the control of the accuracy of the PLC by the centralized control program and the control of the PLC.
In an alternative embodiment, after determining, for each operation request, the PLC to be controlled corresponding to the operation request, the method further includes:
judging whether target PLCs exist in all PLCs to be controlled, wherein the number of operation requests corresponding to the target PLCs is lower than a preset number threshold;
when judging that the target PLC exists in all the PLCs to be controlled, generating target write-in data according to a target operation request corresponding to the target PLC, and executing data write-in operation matched with the target write-in data on the target PLC so as to write the target operation request into the target PLC;
when judging that the target PLC does not exist in all the PLCs to be controlled, triggering and executing the operation of generating a message queue of each PLC to be controlled according to all operation requests corresponding to the PLC to be controlled.
In this optional embodiment, optionally, determining whether the target PLC exists in all PLCs to be controlled may include:
for each PLC to be controlled, determining the number of operation requests corresponding to each PLC to be controlled;
judging whether the target number exists in the number of operation requests corresponding to all PLCs to be controlled, wherein the target number is 1;
when the number of the operation requests corresponding to all the PLCs to be controlled is judged to be the target number, determining the PLCs to be controlled corresponding to the target number as the target PLCs, and determining that the target PLCs exist in all the PLCs to be controlled;
And when the fact that the target number does not exist in the number of the operation requests corresponding to all the PLCs to be controlled is judged, determining that the target PLCs do not exist in all the PLCs to be controlled.
In this alternative embodiment, the preset number threshold may alternatively be 1.
In this optional embodiment, optionally, the number of target operation requests corresponding to the target PLC is one; further optionally, generating the target write data according to the target operation request corresponding to the target PLC may include: determining request destination information of a target operation request according to a target operation request corresponding to a target PLC, wherein the request destination information comprises request operation information, request operation time information, request data information, request writing data area and request data type information; and generating target write data according to the request destination information. Further, the data type of the target write data matches the data type corresponding to the requested write data area.
It can be seen that implementing this alternative embodiment can determine whether there is a target PLC in all PLCs to be controlled in all the PLCs to be controlled, if there is a target PLC, generating target write data according to a target operation request corresponding to the target PLC and executing a corresponding data write operation, so as to write the target operation request to the target PLC, if there is no target PLC, executing an operation of generating a message queue of each PLC to be controlled according to all the operation requests corresponding to each PLC to be controlled, and when it is determined that PLCs to which the operation request belongs are different and there are target PLCs to which the number of operation requests to be written is smaller than a preset threshold, executing parallel data write operations between a plurality of different PLCs is performed when it is determined that the operation requests belong to the target PLCs that the operation requests are different.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another PLC centralized control method applied to the component of the electrical core according to the embodiment of the present invention. The PLC centralized control method applied to the electrical core formation component capacity described in fig. 2 can be applied to a PLC centralized control system of the electrical core formation component capacity, can also be applied to a local server or a cloud server of the PLC centralized control of the electrical core formation component capacity, and can also be applied to a PLC centralized control of the electrical core formation component capacity. As shown in fig. 2, the PLC centralized control method applied to the cell formation composition may include the following operations:
201. and reading at least one operation request, and determining the PLC to be controlled corresponding to each operation request.
202. And for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled.
203. And for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing serial writing operation on the PLC to be controlled so as to write each operation request into the PLC to be controlled.
In the embodiment of the present invention, for the detailed descriptions of step 201 to step 203, please refer to other descriptions of step 101 to step 103 in the first embodiment, and the detailed description of the embodiment of the present invention is omitted.
204. For each to-be-controlled PLC, judging whether the to-be-controlled PLC has completed the writing operation of the operation request for each operation request included in the message queue of the to-be-controlled PLC.
In the embodiment of the present invention, optionally, the message queue of each to-be-controlled PLC includes a request sequence of all operation requests, and each operation request included in the request sequence of the to-be-controlled PLC has a request operation sequence corresponding to the request sequence.
In the embodiment of the present invention, optionally, for each PLC to be controlled, for each operation request included in the message queue of the PLC to be controlled, the determining whether the PLC to be controlled has completed the writing operation of the operation request may be performed according to a request operation sequence corresponding to each operation request included in the request sequence of the PLC to be controlled. For example, a message queue of a certain PLC to be controlled includes an operation request C and an operation request D, and a request operation sequence of the operation request C is earlier than a request operation sequence of the operation request D, whether the PLC to be controlled has completed writing operation to the operation request C is first determined, and if it is determined that the PLC to be controlled has completed writing operation to the operation request C, whether the PLC to be controlled has completed writing operation to the operation request D is then determined.
205. And for each PLC to be controlled, when judging that the PLC to be controlled has completed the writing operation of the operation request, executing data synchronization operation on a predetermined data hash table according to the operation request.
In the embodiment of the invention, the predetermined data hash table comprises data corresponding to at least one PLC to be controlled.
In the embodiment of the present invention, an optional Hash table (also called Hash table) is a data structure that is directly accessed according to a Key value (Key value). That is, it accesses the record by mapping the key value to a location in the table to speed up the lookup. This mapping function is called a hash function and the array in which the records are stored is called a hash table.
In the embodiment of the present invention, further optionally, for each PLC to be controlled, when it is determined that the PLC to be controlled has completed the writing operation of the operation request, performing, according to the operation request, a data synchronization operation on a predetermined data hash table may include:
and for each PLC to be controlled, when judging that the PLC to be controlled has completed the writing operation of the operation request, reading the real-time data of the PLC to be controlled, and executing data synchronization operation on a predetermined data hash table according to the real-time data of the PLC to be controlled and the operation request so as to synchronize the real-time data of the PLC to be controlled into the data hash table.
In an embodiment of the present invention, further optionally, the method may further include:
receiving a data reading instruction aiming at a predetermined data hash table, analyzing an equipment ip address in the data reading instruction, determining a PLC to be queried, reading real-time query data of the PLC to be queried in the data hash table, and feeding back the real-time query data to a terminal corresponding to the data reading instruction.
The real-time data of each PLC to be controlled can be continuously read in real time and synchronized into the data hash table, the real-time data of the corresponding PLC can be read from the data hash table through the ip address of each PLC and fed back to the terminal corresponding to the real-time data of the query PLC, the efficiency and the intelligence of reading the real-time data of the PLC by a plurality of devices can be realized through the data hash table, the real-time performance and the accuracy of reading the real-time data of the PLC by the plurality of devices can be realized, the supportability of the data reading operation of the PLC by a plurality of access devices can be supported, and the convenience of the real-time reading operation of the real-time data of the PLC by each device can be improved.
In an embodiment of the present invention, further optionally, after receiving a data reading instruction for a predetermined data hash table, the method may further include:
Determining terminal information of an inquiring terminal corresponding to a data reading instruction, wherein the terminal information comprises terminal ip address information, terminal attribute information, terminal address information and historical inquiring information of the inquiring terminal;
determining inquiry authority parameters of the inquiry terminal according to the terminal information of the inquiry terminal, and determining inquiry authority values of the inquiry terminal according to the inquiry authority parameters;
judging whether the query authority value is larger than or equal to a preset query authority threshold value;
when judging that the query authority value is greater than or equal to a preset query authority threshold value, triggering and executing equipment ip addresses in the data reading instruction, determining the PLC to be queried, reading real-time query data of the PLC to be queried in a data hash table, and feeding back the real-time query data to a terminal corresponding to the data reading instruction;
when the query authority value is judged to be smaller than the preset query authority threshold value, the process can be ended.
Therefore, implementing the method described in fig. 2 can determine whether each PLC to be controlled has completed the writing operation of each operation request included in the message queue of the PLC to be controlled, if so, perform a data synchronization operation on the predetermined data hash table according to each operation request, generate a data hash table including real-time data of each PLC to be controlled based on real-time data synchronization, and implement efficiency and intelligence of reading real-time data of the PLC by multiple devices through the data hash table, and implement real-time and accuracy of reading real-time data of the PLC by multiple devices, and support supportability of performing data reading operation by multiple access devices on the PLC, thereby being beneficial to improving convenience of performing real-time reading operation on real-time data of the PLC by each device.
In an alternative embodiment, for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled includes:
for each PLC to be controlled, determining the request time of each operation request corresponding to the PLC to be controlled, and executing request ordering operation on all operation requests according to a preset ordering mode according to the request time of all operation requests to obtain the request ordering result of the PLC to be controlled; the request sequencing result comprises a request execution sequence of all operation requests corresponding to the PLC to be controlled;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to a request sequencing result of the PLC to be controlled; the message queue comprises all operation requests of the PLC to be controlled.
In this alternative embodiment, optionally, the request time of each operation request may include a receiving time when each PLC to be controlled receives the operation request.
In this alternative embodiment, optionally, the preset ordering means includes an ordering according to a chronological order. For example, if the PLC to be controlled includes an operation request a and an operation request B, and the request time of the operation request a is 06:00:01 and the request time of the operation request B is 06:00:06, the operation request a is earlier than the operation request B in the request execution sequence of all the operation requests corresponding to the PLC to be controlled.
In this optional embodiment, further optional, the message queue includes all operation requests of the PLC to be controlled and an execution sequence corresponding to each operation request.
Therefore, implementing the alternative embodiment can determine the request time of each operation request corresponding to each PLC to be controlled and execute request ordering operation on all operation requests according to the request time of all operation requests in a preset ordering mode to obtain the request ordering result of each PLC to be controlled, and generate the message queue of each PLC to be controlled according to the request ordering result of each PLC to be controlled, so that the request ordering result can be generated according to the preset ordering mode in combination with the request time of all operation requests corresponding to each PLC to be controlled, the ordering operation can be executed on all operation requests in combination with time sequence information, the accuracy and the reliability of the request ordering result corresponding to each PLC to be controlled can be improved, the intelligence and the efficiency of the request ordering result corresponding to each PLC to be controlled can be improved, the serial writing operation can be sequentially executed on each operation request when a plurality of operation requests exist on the same PLC to be controlled, the accuracy and the reliability of serial writing operation requests can be ensured to each PLC to be correctly written into each PLC to be controlled, the accuracy and the reliability of the serial writing operation requests can be improved when the serial writing operation requests are combined with time sequence information, and the accuracy and the reliability of the serial writing operation requests can be improved, and the accuracy and the reliability of the operation can be further improved.
In another alternative embodiment, for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing a serial write operation on the PLC to be controlled to write each operation request to the PLC to be controlled, including:
for each to-be-controlled PLC, determining a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all operation requests included in the message queue of the to-be-controlled PLC;
for each PLC to be controlled, determining a target data area corresponding to a target control request of the PLC to be controlled according to the target control request of the PLC to be controlled;
for each PLC to be controlled, performing data writing operation on the PLC to be controlled according to the target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled;
and judging whether the target to-be-controlled request of each to-be-controlled PLC is written into a target data area corresponding to the target to-be-controlled request or not, when the target to-be-controlled request of the to-be-controlled PLC is judged to be written into the target data area corresponding to the target to-be-controlled request, removing the target to-be-controlled request corresponding to the target data area from the message queue of the to-be-controlled PLC, and re-executing the operation of the target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all operation requests included in the message queue of the to-be-controlled PLC for each to-be-controlled PLC.
In this optional embodiment, optionally, for each PLC to be controlled, determining, based on the message queue of the PLC to be controlled and all operation requests included in the message queue of the PLC to be controlled, a target request to be controlled of the PLC to be controlled may include:
for each to-be-controlled PLC, determining the operation request which is arranged at the forefront in the message queue of the to-be-controlled PLC as a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all operation requests of the to-be-controlled PLC; wherein the number of target pending requests is one.
In this optional embodiment, optionally, for each PLC to be controlled, determining, according to the target request to be controlled of the PLC to be controlled, a target data area corresponding to the target request to be controlled of the PLC to be controlled may include:
and for each PLC to be controlled, extracting a request keyword in the target request to be controlled of the PLC to be controlled according to the target request to be controlled of the PLC to be controlled, and determining a target data area matched with the request keyword from all data areas of the PLC to be controlled based on the request keyword.
In this alternative embodiment, further optionally, the method may further comprise:
for each PLC to be controlled, when the target request to be controlled of the PLC to be controlled is judged not to be written into the target data area corresponding to the target request to be controlled, determining the idle time length of the target request to be controlled of the PLC to be controlled, wherein the idle time length comprises the time length from the request time of the target request to be controlled to the writing time corresponding to the target data area corresponding to the target request to be controlled, and judging that the target request to be controlled of the PLC to be controlled is not written into the target data area corresponding to the target request to be controlled;
Judging whether the idle time length of each PLC to be controlled is greater than or equal to a preset time length threshold value, and when judging that the idle time length of the PLC to be controlled is greater than or equal to the preset time length threshold value, re-sending the target control request to the PLC to be controlled, and re-executing the operation of judging whether the target control request of the PLC to be controlled is written into a target data area corresponding to the target control request; when the idle time length of the PLC to be controlled is judged to be smaller than the preset time length threshold value, the process can be ended.
In this optional embodiment, optionally, when it is determined that the target pending control request of each PLC to be controlled has been written into the corresponding target data area, the target pending control request is removed from the message queue of the PLC to be controlled, and the operation of determining the target pending control request from all the operation requests is re-performed, until all the pending control requests included in the message queue of each PLC to be controlled have been written into the corresponding target data area.
It can be seen that implementing this alternative embodiment can determine a target to-be-controlled request and determine a corresponding target data area based on the message queue of each to-be-controlled PLC and all operation requests, perform a data writing operation on the to-be-controlled PLC according to the target to-be-controlled request and the corresponding target data area of each to-be-controlled PLC, and determine whether the target to-be-controlled request of each to-be-controlled PLC has been written into the corresponding target data area, if so, reject the target to-be-controlled request from the message queue of the to-be-controlled PLC and re-perform the operation of determining the target to-be-controlled request until all the to-be-controlled requests included in the message queue of each to-be-controlled PLC have been written into the corresponding target data area, can sequentially determine the target to-be-controlled request and the corresponding target data area that this time needs to be performed in combination with the message queue of each to-be-controlled PLC and all operation requests, based on the target to-be-controlled request and the target data area, the data writing operation can be performed on each operation request by combining time sequence information and a message queue, the serial writing operation can be performed on each operation request in turn when a plurality of operation requests exist on the same to-be-controlled PLC, each operation request can be ensured to be correctly written into each to-be-controlled PLC, the problem that data are erroneously covered when the same PLC is controlled by multiple ends can be avoided, the accuracy of the multi-end operation PLC is ensured, and all PLC control can be centralized in the same process, the PLC is scheduled through a unified program, the PLC is accessed based on the unified process and the read-write operation of the PLC is managed in a unified way, the accuracy and the reliability of the PLC in the writing operation request can be improved, the accuracy and the reliability of the PLC operation time sequence can be improved, and further is beneficial to improving the accuracy and the intelligence of centralized control of the PLC.
In yet another alternative embodiment, for each PLC to be controlled, based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, performing a serial write operation on the PLC to be controlled to write each operation request to the PLC to be controlled, the method further includes:
for each PLC to be controlled, acquiring real-time data of the PLC to be controlled, and judging whether the PLC to be controlled has completed writing operation of all operation requests corresponding to the PLC to be controlled according to the real-time data of the PLC to be controlled;
for each PLC to be controlled, when judging that the PLC to be controlled does not complete the writing operation of all operation requests corresponding to the PLC to be controlled, determining a request to be completed of the PLC to be controlled according to the real-time data of the PLC to be controlled, wherein the request to be completed is the operation request of not completing the writing operation;
for each PLC to be controlled, according to the real-time data of the PLC to be controlled and the request to be completed of the PLC to be controlled, analyzing the target reason that the request to be completed does not complete the writing operation, generating target processing parameters based on the target reason, executing the processing operation matched with the target processing parameters on the PLC to be controlled, and executing the writing operation on the request to be completed, so as to write the request to be completed into the PLC to be controlled.
In this optional embodiment, optionally, according to the real-time data of the PLC to be controlled, determining whether the PLC to be controlled has completed writing operations of all operation requests corresponding to the PLC to be controlled may include:
judging whether the real-time data of the PLC to be controlled comprises request data corresponding to all operation requests corresponding to the PLC to be controlled according to the real-time data of the PLC to be controlled;
when judging that the real-time data of the PLC to be controlled comprises the request data corresponding to all operation requests corresponding to the PLC to be controlled, determining that the real-time data of the PLC to be controlled comprises the request data corresponding to all operation requests corresponding to the PLC to be controlled;
when the real-time data of the PLC to be controlled does not include the request data corresponding to all the operation requests corresponding to the PLC to be controlled, determining that the real-time data of the PLC to be controlled does not include the request data corresponding to all the operation requests corresponding to the PLC to be controlled.
In this optional embodiment, optionally, for each PLC to be controlled, analyzing, according to the real-time data of the PLC to be controlled and the request to be completed of the PLC to be controlled, a target reason that the request to be completed does not complete the write operation may include:
and for each PLC to be controlled, inputting real-time data of the PLC to be controlled and a request to be completed of the PLC to be controlled into a predetermined data analysis model to obtain a data analysis result, and determining a target reason for the request to be completed to complete the write operation according to the data analysis result, wherein the data analysis result comprises the reason that the PLC to be controlled does not complete the write operation.
In this alternative embodiment, optionally, generating the target processing parameters based on the target cause includes:
and extracting a reason keyword in the target reason, determining at least one target processing sub-parameter matched with the reason keyword in a predetermined target processing library, and generating target processing parameters based on all the target processing sub-parameters. For example, when the target cause is used to represent the network connection abnormality of the PLC to be controlled, determining that the cause keyword of the target cause is network abnormality, and determining a matched target processing sub-parameter in a target processing library based on the network abnormality cause keyword, where the target processing sub-parameter may include one or more of repairing optical fiber, repairing wifi, repairing network line, repairing bluetooth, and generating a target processing parameter according to all target processing sub-parameters, so as to repair the network abnormality problem, and re-executing the write operation on the request to be completed, so as to complete the write operation of the request to be completed into the PLC to be controlled.
It can be seen that implementing the alternative embodiment can acquire real-time data of each PLC to be controlled and determine whether the PLC to be controlled has completed writing operations of all corresponding operation requests, if not, determine the request to be completed according to the real-time data, and analyze a target reason for the incomplete writing operations of the request to be completed, thereby generating corresponding target processing parameters, and execute processing operations matched with the target processing parameters on the PLC to be controlled, and re-execute writing operations on the request to be completed, so as to write the request to the PLC to be controlled, determine the request to be completed for the incomplete writing operations based on the real-time data of each PLC to be controlled, ensure the accuracy and the intelligence of executing data writing operations by each PLC to each operation request, and can analyze the target reason for the incomplete writing operations of the request to be completed, and re-execute the data writing operations of the request to be completed after executing the processing operations by the PLC to be controlled, thereby further improve the integrity of executing data writing operations by each PLC to be controlled for each operation request, and further improve the accuracy and the accuracy of executing data writing operations by each PLC to be controlled, and the accuracy of each PLC to be controlled are beneficial to be concentrated.
In yet another alternative embodiment, for each PLC to be controlled, performing a data writing operation on the PLC to be controlled according to a target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled, including:
for each to-be-controlled PLC, acquiring data attribute information corresponding to a target data area corresponding to a target to-be-controlled request of the to-be-controlled PLC, determining a data receiving type of the target data area corresponding to the target to-be-controlled request according to the data attribute information, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC according to the target to-be-controlled request of the to-be-controlled PLC, and judging whether the data request type of the to-be-controlled PLC is matched with the data receiving type of the target data area corresponding to the target to-be-controlled request;
for each to-be-controlled PLC, when judging that the data request type of the to-be-controlled PLC is not matched with the data receiving type of the target data area corresponding to the target to-be-controlled request, executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request, wherein the corresponding data request type of the updated target to-be-controlled request is matched with the data receiving type corresponding to the target to-be-controlled request;
And for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
In this optional embodiment, optionally, the data attribute information corresponding to the target data area includes data storage information, data storage type information, data storage capacity information, and data storage idle capacity information of the target data area.
In this optional embodiment, optionally, determining, according to the data attribute information, a data receiving type of the target data area corresponding to the target to-be-controlled request may include:
according to the data attribute information, determining acceptable data types in the target data area, and determining the acceptable data types in the target data area as data receiving types of the target data area corresponding to the target to-be-controlled request; or,
and determining the data type of each data stored in the target data area according to the data attribute information, determining the data quantity contained in each data type, and determining the data type with the largest data quantity as the data receiving type of the target data area corresponding to the target to-be-controlled request.
In this optional embodiment, optionally, according to the target to-be-controlled request of the to-be-controlled PLC, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC includes:
according to the target to-be-controlled request of the to-be-controlled PLC, determining to-be-written data corresponding to the to-be-controlled PLC, determining the data type of the to-be-written data, and determining the data type of the to-be-written data as the data request type of the target to-be-controlled request of the to-be-controlled PLC.
In this optional embodiment, optionally, performing a data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request, so as to update the target to-be-controlled request, and obtaining the updated target to-be-controlled request may include:
analyzing data difference parameters between the data receiving type of the target data area corresponding to the target to-be-controlled request and the data request type of the target to-be-controlled request of the to-be-controlled PLC, determining data conversion parameters according to the data difference parameters, and executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC based on the data conversion parameters so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request;
Wherein, determining the data conversion parameter according to the data difference parameter may include:
determining data adjustment parameters according to the data difference parameters, wherein the data adjustment parameters comprise a data adjustment mode, a data adjustment value, a data adjustment time and a data adjustment time length;
generating data conversion parameters according to the data adjustment parameters; the data conversion parameters are used for adjusting the data request type of the target to-be-controlled request of the to-be-controlled PLC so as to enable the data request type to be matched with the data receiving type.
In this optional embodiment, further optionally, when it is determined that the data request type of the PLC to be controlled matches the data receiving type of the target data area corresponding to the target request to be controlled, for each PLC to be controlled, performing, according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, a data writing operation on the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
It can be seen that, implementing this alternative embodiment can obtain the data attribute information of the target data area corresponding to the target to-be-controlled request of each PLC to be controlled and determine the data receiving type of the target data area, and determine the data request type of the target to-be-controlled request of each PLC to be controlled, when it is determined that the data request type is not matched with the data receiving type, perform data conversion operation on the target to-be-controlled request to obtain the target to-be-controlled request matched with the data receiving type after updating, and perform data writing operation according to the updated target to-be-controlled request to write the target to-be-controlled request of the PLC to be controlled into the target data area of the PLC to be controlled, it can determine the data receiving type of the target data area and the data request type of the target to be controlled respectively, and it is beneficial to improve the accuracy and reliability of determining the data receiving type and the data request type, and perform data conversion operation when it is determined that the data receiving type is not matched with the data request type, thereby enabling the data request type to be matched with the data receiving type to be performed, it is beneficial to improve the accuracy and reliability of performing data writing operation after updating, and to be beneficial to improve the accuracy and reliability of each writing operation to be performed by each PLC to further intelligent to perform operation to improve the accuracy and control accuracy of the data to be controlled.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a PLC centralized control system applied to the component formation of a battery cell according to an embodiment of the present invention. As shown in fig. 3, the PLC centralized control system applied to the cell formation component may include:
a reading module 301, configured to read at least one operation request;
a determining module 302, configured to determine, for each operation request, a PLC to be controlled corresponding to the operation request;
the generating module 303 is configured to generate, for each PLC to be controlled, a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled;
the writing module 304 is configured to, for each PLC to be controlled, perform a serial writing operation on the PLC to be controlled based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, so as to write each operation request to the PLC to be controlled.
It can be seen that the device described in fig. 3 can read at least one operation request and determine the to-be-controlled PLC corresponding to each operation request, generate a message queue for each to-be-controlled PLC according to the operation request corresponding to each to-be-controlled PLC, perform serial write operation on each to-be-controlled PLC based on the message queue for each to-be-controlled PLC and each operation request, so as to write each operation request into each to-be-controlled PLC, when a plurality of operation requests exist in the same to-be-controlled PLC, perform serial write operation on the to-be-controlled PLC when a plurality of operation requests exist in the same to-be-controlled PLC, write operation on each to-be-controlled PLC in sequence, and write operation on the same to-be-controlled PLC in sequence when a plurality of operation requests exist in the same PLC in the prior art.
In an alternative embodiment, as shown in fig. 4, the apparatus further comprises:
a judging module 305, configured to judge whether a target PLC exists in all PLCs to be controlled after the determining module 302 determines, for each operation request, a PLC to be controlled corresponding to the operation request, where the number of operation requests corresponding to the target PLCs is lower than a preset number threshold; when judging that the target PLC does not exist in all the PLCs to be controlled, triggering the generation module 303 to execute the operation of generating a message queue of each PLC to be controlled according to all operation requests corresponding to the PLC to be controlled;
the writing module 304 is further configured to, when the determining module 305 determines that there are target PLCs in all PLCs to be controlled, generate target writing data according to a target operation request corresponding to the target PLCs, and perform a data writing operation matched with the target writing data on the target PLCs, so as to write the target operation request to the target PLCs.
As can be seen, implementing the apparatus described in fig. 4 can determine whether there is a target PLC in all PLCs to be controlled, if so, generate target write data according to a target operation request corresponding to the target PLC and execute a corresponding data write operation, so as to write the target operation request into the target PLC, if not, execute an operation of generating a message queue of each PLC to be controlled according to all operation requests corresponding to each PLC to be controlled, and when it is determined that PLCs to which the operation request belongs are different and there are target PLCs with the number of operation requests to be written being smaller than a preset threshold, execute parallel data write operation on a plurality of different PLCs, so as to be beneficial to improving the intelligence and efficiency of executing data write operation between the plurality of PLCs, and to improve the management efficiency in the process of centralized management and unified management of PLCs, and further to improve the operation efficiency and control efficiency of the electrical core formation component system.
In another alternative embodiment, as shown in fig. 4, the determining module 305 is further configured to determine, for each PLC to be controlled, for each operation request included in the message queue of the PLC to be controlled, whether the PLC to be controlled has completed the write operation of the operation request;
the apparatus further comprises:
the synchronization module 306 is configured to, for each PLC to be controlled, perform a data synchronization operation on a predetermined data hash table according to the operation request when the determination module 305 determines that the PLC to be controlled has completed the write operation of the operation request; the predetermined data hash table comprises data corresponding to at least one PLC to be controlled.
Therefore, the device described in fig. 4 can be implemented to determine whether each PLC to be controlled has completed the writing operation of each operation request included in the message queue of the PLC to be controlled, if so, perform the data synchronization operation on the predetermined data hash table according to each operation request, generate the data hash table including the real-time data of each PLC to be controlled based on real-time data synchronization, realize the efficiency and the intelligence of reading the real-time data of the PLC by the plurality of devices through the data hash table, realize the real-time and the accuracy of reading the real-time data of the PLC by the plurality of devices, support the supportability of performing the data reading operation on the PLC by the plurality of access devices, and be favorable to improving the convenience of performing the real-time reading operation on the real-time data of the PLC by each device.
In yet another alternative embodiment, as shown in fig. 4, the specific manner of generating, by the generating module 303, the message queue of each PLC to be controlled according to all operation requests corresponding to the PLC to be controlled includes:
for each PLC to be controlled, determining the request time of each operation request corresponding to the PLC to be controlled, and executing request ordering operation on all operation requests according to a preset ordering mode according to the request time of all operation requests to obtain the request ordering result of the PLC to be controlled; the request sequencing result comprises a request execution sequence of all operation requests corresponding to the PLC to be controlled;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to a request sequencing result of the PLC to be controlled; the message queue comprises all operation requests of the PLC to be controlled.
As can be seen, implementing the apparatus described in fig. 4 can determine the request time of each operation request corresponding to each PLC to be controlled and execute request ordering operation on all operation requests according to a preset ordering manner to obtain the request ordering result of each PLC to be controlled, and generate a message queue of each PLC to be controlled according to the request ordering result of each PLC to be controlled, so as to combine the request time of all operation requests corresponding to each PLC to be controlled and generate the request ordering result according to the preset ordering manner, implement ordering operation on all operation requests in combination with time sequence information, and facilitate to improve the accuracy and reliability of obtaining the request ordering result corresponding to each PLC to be controlled, and to improve the intelligence and efficiency of obtaining the request ordering result corresponding to each PLC to be controlled, and to sequentially execute serial writing operation on each operation request when multiple operation requests exist on the same PLC to be controlled, so as to ensure that each operation request can be correctly written into each PLC to be controlled, thereby being beneficial to improving the accuracy and reliability of serial writing operation request in combination with time sequence information, and further improving the accuracy and reliability of operation in combination with time sequence information.
In yet another alternative embodiment, as shown in fig. 4, the writing module 304 performs, for each PLC to be controlled, a serial writing operation on the PLC to be controlled based on a message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, so as to write each operation request to the PLC to be controlled in a specific manner including:
for each to-be-controlled PLC, determining a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all operation requests included in the message queue of the to-be-controlled PLC;
for each PLC to be controlled, determining a target data area corresponding to a target control request of the PLC to be controlled according to the target control request of the PLC to be controlled;
for each PLC to be controlled, performing data writing operation on the PLC to be controlled according to the target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled;
and judging whether the target to-be-controlled request of each to-be-controlled PLC is written into a target data area corresponding to the target to-be-controlled request or not, when the target to-be-controlled request of the to-be-controlled PLC is judged to be written into the target data area corresponding to the target to-be-controlled request, removing the target to-be-controlled request corresponding to the target data area from the message queue of the to-be-controlled PLC, and re-executing the operation of the target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all operation requests included in the message queue of the to-be-controlled PLC for each to-be-controlled PLC.
It can be seen that the device described in fig. 4 is implemented to determine a target to-be-controlled request and determine a corresponding target data area based on the message queue of each to-be-controlled PLC and all operation requests, perform a data writing operation on each to-be-controlled PLC according to the target to-be-controlled request of each to-be-controlled PLC and the corresponding target data area, determine whether the target to-be-controlled request of each to-be-controlled PLC has been written into the corresponding target data area, if so, reject the target to-be-controlled request from the message queue of the to-be-controlled PLC and re-perform the operation of determining the target to-be-controlled request until all the to-be-controlled requests included in the message queue of each to-be-controlled PLC have been written into the corresponding target data area, sequentially determine the target to-be-controlled request and the corresponding target data area that need to be performed in this time in combination with the message queue of each to-be-controlled PLC and all operation requests, based on the target to-be-controlled request and the target data area, the data writing operation can be performed on each operation request by combining time sequence information and a message queue, the serial writing operation can be performed on each operation request in turn when a plurality of operation requests exist on the same to-be-controlled PLC, each operation request can be ensured to be correctly written into each to-be-controlled PLC, the problem that data are erroneously covered when the same PLC is controlled by multiple ends can be avoided, the accuracy of the multi-end operation PLC is ensured, and all PLC control can be centralized in the same process, the PLC is scheduled through a unified program, the PLC is accessed based on the unified process and the read-write operation of the PLC is managed in a unified way, the accuracy and the reliability of the PLC in the writing operation request can be improved, the accuracy and the reliability of the PLC operation time sequence can be improved, and further is beneficial to improving the accuracy and the intelligence of centralized control of the PLC.
In yet another alternative embodiment, as shown in fig. 4, the apparatus further comprises:
an obtaining module 307, configured to, after the writing module 304 performs serial writing operation on each PLC to be controlled based on the message queue of the PLC to be controlled and each operation request included in the message queue of the PLC to be controlled, to write each operation request to the PLC to be controlled, obtain real-time data of the PLC to be controlled for each PLC to be controlled;
the judging module 305 is further configured to judge, according to the real-time data of the PLC to be controlled, whether the PLC to be controlled has completed writing operations of all operation requests corresponding to the PLC to be controlled;
the determining module 302 is further configured to determine, for each PLC to be controlled, a request to be completed of the PLC to be controlled according to real-time data of the PLC to be controlled when the determining module 305 determines that the PLC to be controlled does not complete writing operations of all operation requests corresponding to the PLC to be controlled, where the request to be completed is an operation request for not completing writing operations;
the analysis module 308 is configured to, for each PLC to be controlled, analyze, according to real-time data of the PLC to be controlled and a request to be completed of the PLC to be controlled, a target reason that the write operation is not completed by the request to be completed;
The generating module 303 is further configured to generate a target processing parameter based on a target cause, and perform a processing operation matched with the target processing parameter on the PLC to be controlled;
the writing module 304 is further configured to perform a writing operation on the request to be completed, so as to write the request to be completed to the PLC to be controlled.
It can be seen that the device described in fig. 4 can acquire real-time data of each PLC to be controlled and determine whether the PLC to be controlled has completed writing operations of all corresponding operation requests, if not, determine the request to be completed according to the real-time data, analyze a target reason for the incomplete writing operations of the request to be completed, thereby generating corresponding target processing parameters, execute processing operations matched with the target processing parameters on the PLC to be controlled, and re-execute writing operations on the request to be completed so as to write the request to the PLC to be controlled, determine the request to be completed for the incomplete writing operations based on the real-time data of each PLC to be controlled, ensure the accuracy and the intelligence of each PLC to execute data writing operations on each operation request, analyze the target reason for the incomplete writing operations of the request to be completed, and re-execute the data writing operations on the request to be controlled after executing the processing operations on the PLC to be controlled, further improve the integrity of each operation request to execute data writing operations on each operation request, and further improve the accuracy and the reliability of each operation request to be controlled, thereby being beneficial to the PLC and the accuracy and the intelligent PLC.
In yet another alternative embodiment, as shown in fig. 4, for each PLC to be controlled, the writing module 304 performs, according to a target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, a data writing operation on the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled, which includes:
for each to-be-controlled PLC, acquiring data attribute information corresponding to a target data area corresponding to a target to-be-controlled request of the to-be-controlled PLC, determining a data receiving type of the target data area corresponding to the target to-be-controlled request according to the data attribute information, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC according to the target to-be-controlled request of the to-be-controlled PLC, and judging whether the data request type of the to-be-controlled PLC is matched with the data receiving type of the target data area corresponding to the target to-be-controlled request;
for each to-be-controlled PLC, when judging that the data request type of the to-be-controlled PLC is not matched with the data receiving type of the target data area corresponding to the target to-be-controlled request, executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request, wherein the corresponding data request type of the updated target to-be-controlled request is matched with the data receiving type corresponding to the target to-be-controlled request;
And for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
As can be seen, implementing the apparatus described in fig. 4 can obtain the data attribute information of the target data area corresponding to the target to-be-controlled request of each PLC to be controlled and determine the data receiving type of the target data area, and determine the data request type of the target to-be-controlled request of each PLC to be controlled, when it is determined that the data request type is not matched with the data receiving type, perform a data conversion operation on the target to-be-controlled request to obtain a target to-be-controlled request matched with the data receiving type after updating, and perform a data writing operation according to the updated target to-be-controlled request to write the target to-be-controlled request of the PLC to be controlled into the target data area of the PLC to be controlled, so as to determine the data receiving type of the target data area and the data request type of the target to be controlled respectively, and to improve the accuracy and reliability of the data receiving type and the data request type, and perform a data conversion operation when it is determined that the data receiving type is not matched with the data request type, so as to enable the data request type to be matched with the data receiving type to be updated, thereby being favorable for improving the accuracy and reliability of performing a data writing operation, and further improving the accuracy of each writing operation and the accuracy of the data to be performed and each PLC to be more intelligent to be controlled.
Example IV
Referring to fig. 5, fig. 5 is a schematic structural diagram of yet another PLC centralized control system for forming components of a battery cell according to an embodiment of the present invention. As shown in fig. 5, the PLC centralized control system applied to the cell formation component may include:
a memory 401 storing executable program codes;
a processor 402 coupled with the memory 401;
the processor 402 invokes the executable program code stored in the memory 401 to perform the steps of the PLC centralized control method applied to the coring composition described in the first embodiment or the second embodiment of the present invention.
Example five
The embodiment of the invention discloses a computer storage medium which stores computer instructions for executing the steps in the PLC centralized control method applied to cell formation components described in the first embodiment or the second embodiment of the invention when the computer instructions are called.
Example six
An embodiment of the present invention discloses a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps described in the first or second embodiment and applied to the PLC centralized control method of the electrical coring component.
The system embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a PLC centralized control method and a system applied to cell formation composition, which are disclosed by the embodiment of the invention only as a preferred embodiment of the invention, and are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (9)

1. The PLC centralized control method applied to the cell formation composition is characterized by comprising the following steps:
at least one operation request is read, and for each operation request, the PLC to be controlled corresponding to the operation request is determined;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled;
for each to-be-controlled PLC, based on the message queue of the to-be-controlled PLC and each operation request included in the message queue of the to-be-controlled PLC, performing serial writing operation on the to-be-controlled PLC so as to write each operation request into the to-be-controlled PLC;
After determining the to-be-controlled PLC corresponding to each operation request, the method further includes:
judging whether target PLCs exist in all the PLCs to be controlled, wherein the number of operation requests corresponding to the target PLCs is lower than a preset number threshold;
when judging that the target PLC exists in all the PLCs to be controlled, generating target write-in data according to a target operation request corresponding to the target PLC, and executing data write-in operation matched with the target write-in data on the target PLC so as to write the target operation request into the target PLC;
when judging that the target PLC does not exist in all the PLCs to be controlled, triggering and executing the operation of the message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled.
2. The PLC centralized control method for use in a cell grouping composition of claim 1, further comprising:
for each to-be-controlled PLC, judging whether the to-be-controlled PLC has completed the writing operation of the operation request for each operation request included in a message queue of the to-be-controlled PLC;
For each PLC to be controlled, when judging that the PLC to be controlled has completed the writing operation of the operation request, executing data synchronization operation on a predetermined data hash table according to the operation request;
the predetermined data hash table comprises data corresponding to at least one PLC to be controlled.
3. The method for centralized control of PLCs applied to electrical core formation and component division according to claim 1, wherein for each PLC to be controlled, generating a message queue of the PLC to be controlled according to all operation requests corresponding to the PLC to be controlled, includes:
for each PLC to be controlled, determining the request time of each operation request corresponding to the PLC to be controlled, and executing request ordering operation on all operation requests according to a preset ordering mode according to the request time of all operation requests to obtain a request ordering result of the PLC to be controlled; the request sequencing result comprises a request execution sequence of all operation requests corresponding to the PLC to be controlled;
for each PLC to be controlled, generating a message queue of the PLC to be controlled according to a request ordering result of the PLC to be controlled; the message queue comprises all the operation requests of the PLC to be controlled.
4. The PLC centralized control method for use in a centralized control of a battery cell formation composition according to claim 3, wherein the performing, for each of the PLCs to be controlled, a serial write operation on the PLC to be controlled based on a message queue of the PLC to be controlled and each of the operation requests included in the message queue of the PLC to be controlled to write each of the operation requests to the PLC to be controlled includes:
for each to-be-controlled PLC, determining a target to-be-controlled request of the to-be-controlled PLC based on the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC;
for each PLC to be controlled, determining a target data area corresponding to a target control request of the PLC to be controlled according to the target control request of the PLC to be controlled;
for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled;
and judging whether the target to-be-controlled request of each to-be-controlled PLC is written into a target data area corresponding to the target to-be-controlled request or not, when the target to-be-controlled request of the to-be-controlled PLC is judged to be written into the target data area corresponding to the target to-be-controlled request, removing the target to-be-controlled request which is written into the target data area from a message queue of the to-be-controlled PLC, and re-executing the operation of the target to-be-controlled request of the to-be-controlled PLC according to the message queue of the to-be-controlled PLC and all the operation requests included in the message queue of the to-be-controlled PLC.
5. The PLC centralized control method for use in a centralized control of a battery cell formation composition according to claim 1, wherein, for each of the PLCs to be controlled, based on the message queue of the PLC to be controlled and each of the operation requests included in the message queue of the PLC to be controlled, a serial write operation is performed on the PLC to be controlled to write each of the operation requests to the PLC to be controlled, the method further comprising:
for each PLC to be controlled, acquiring real-time data of the PLC to be controlled, and judging whether the PLC to be controlled has completed writing operation of all operation requests corresponding to the PLC to be controlled according to the real-time data of the PLC to be controlled;
for each PLC to be controlled, when judging that the PLC to be controlled does not complete the writing operation of all the operation requests corresponding to the PLC to be controlled, determining a request to be completed of the PLC to be controlled according to the real-time data of the PLC to be controlled, wherein the request to be completed is the operation request with the writing operation not completed;
for each to-be-controlled PLC, analyzing the target reason that the to-be-completed request does not finish the writing operation according to the real-time data of the to-be-controlled PLC and the to-be-completed request of the to-be-controlled PLC, generating target processing parameters based on the target reason, executing processing operation matched with the target processing parameters on the to-be-controlled PLC, and executing the writing operation on the to-be-completed request to write the to-be-completed request into the to-be-controlled PLC.
6. The method for centralized control of PLCs applied to cell differentiation according to claim 4, wherein for each PLC to be controlled, performing a data writing operation on the PLC to be controlled according to a target request to be controlled of the PLC to be controlled and a target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled, comprising:
for each to-be-controlled PLC, acquiring data attribute information corresponding to a target data area corresponding to a target to-be-controlled request of the to-be-controlled PLC, determining a data receiving type of the target data area corresponding to the target to-be-controlled request according to the data attribute information, determining a data request type of the target to-be-controlled request of the to-be-controlled PLC according to the target to-be-controlled request of the to-be-controlled PLC, and judging whether the data request type of the to-be-controlled PLC is matched with the data receiving type of the target data area corresponding to the target to-be-controlled request;
for each to-be-controlled PLC, when judging that the data request type of the to-be-controlled PLC is not matched with the data receiving type of the target data area corresponding to the target to-be-controlled request, executing data conversion operation on the target to-be-controlled request of the to-be-controlled PLC according to the data receiving type of the target data area corresponding to the target to-be-controlled request so as to update the target to-be-controlled request and obtain an updated target to-be-controlled request, wherein the data request type corresponding to the updated target to-be-controlled request is matched with the data receiving type corresponding to the target to-be-controlled request;
And for each PLC to be controlled, executing data writing operation on the PLC to be controlled according to the updated target request to be controlled of the PLC to be controlled and the target data area corresponding to the target request to be controlled of the PLC to be controlled, so as to write the target request to be controlled of the PLC to be controlled into the target data area of the PLC to be controlled.
7. A PLC centralized control system for cell differentiation, the system comprising:
the reading module is used for reading at least one operation request;
the determining module is used for determining the PLC to be controlled corresponding to each operation request;
the generation module is used for generating a message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled;
the writing module is used for executing serial writing operation on each to-be-controlled PLC based on the message queue of the to-be-controlled PLC and each operation request included in the message queue of the to-be-controlled PLC so as to write each operation request into the to-be-controlled PLC;
the apparatus further comprises:
the judging module is used for judging whether target PLCs exist in all the PLCs to be controlled after the determining module determines the PLCs to be controlled corresponding to the operation requests for each operation request, wherein the number of the operation requests corresponding to the target PLCs is lower than a preset number threshold; when judging that the target PLC does not exist in all the PLCs to be controlled, triggering the generating module to execute the operation of the message queue of each PLC to be controlled according to all the operation requests corresponding to the PLC to be controlled;
The writing module is further configured to generate target writing data according to a target operation request corresponding to the target PLC when the judging module judges that the target PLC exists in all the PLCs to be controlled, and perform a data writing operation matched with the target writing data on the target PLC, so as to write the target operation request into the target PLC.
8. A PLC centralized control system for cell differentiation, the system comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the PLC centralized control method applied to the coring component as set forth in any one of claims 1-6.
9. A computer storage medium storing computer instructions for performing the PLC centralized control method applied to the cell-forming composition according to any one of claims 1 to 6 when the computer instructions are called.
CN202311606273.6A 2023-11-29 2023-11-29 PLC centralized control method and system applied to cell formation composition Active CN117311257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311606273.6A CN117311257B (en) 2023-11-29 2023-11-29 PLC centralized control method and system applied to cell formation composition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311606273.6A CN117311257B (en) 2023-11-29 2023-11-29 PLC centralized control method and system applied to cell formation composition

Publications (2)

Publication Number Publication Date
CN117311257A CN117311257A (en) 2023-12-29
CN117311257B true CN117311257B (en) 2024-03-05

Family

ID=89297596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311606273.6A Active CN117311257B (en) 2023-11-29 2023-11-29 PLC centralized control method and system applied to cell formation composition

Country Status (1)

Country Link
CN (1) CN117311257B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7216181B1 (en) * 2001-07-31 2007-05-08 Sprint Communications Company L.P. Middleware brokering system
DE202006012680U1 (en) * 2006-08-18 2007-12-27 Dematic Gmbh System for controlling a conveyor system
CN107464088A (en) * 2016-06-02 2017-12-12 北京京东尚科信息技术有限公司 Transaction processing system and method based on message queue
CN207939552U (en) * 2017-12-15 2018-10-02 赛意(上海)信息科技有限公司 A kind of device data acquisition and control system of real-time multi-user
CN111897276A (en) * 2020-09-16 2020-11-06 深圳市航通智能技术有限公司 Controller and front-end acquisition system
CN218734368U (en) * 2022-09-26 2023-03-24 福建星云电子股份有限公司 Formation and capacity-sharing data link system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7216181B1 (en) * 2001-07-31 2007-05-08 Sprint Communications Company L.P. Middleware brokering system
DE202006012680U1 (en) * 2006-08-18 2007-12-27 Dematic Gmbh System for controlling a conveyor system
CN107464088A (en) * 2016-06-02 2017-12-12 北京京东尚科信息技术有限公司 Transaction processing system and method based on message queue
CN207939552U (en) * 2017-12-15 2018-10-02 赛意(上海)信息科技有限公司 A kind of device data acquisition and control system of real-time multi-user
CN111897276A (en) * 2020-09-16 2020-11-06 深圳市航通智能技术有限公司 Controller and front-end acquisition system
CN218734368U (en) * 2022-09-26 2023-03-24 福建星云电子股份有限公司 Formation and capacity-sharing data link system

Also Published As

Publication number Publication date
CN117311257A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN106776359B (en) NAND Flash bad block management method and system
EP1906328A1 (en) Conditional download of data from embedded historians
US20200026427A1 (en) System and method for handling data storage on storage devices
CN113722277A (en) Data import method, device, service platform and storage medium
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN111522729A (en) Method, device and system for determining rule release
CN117311257B (en) PLC centralized control method and system applied to cell formation composition
CN112783549A (en) Method for upgrading data version number of automobile electric control element
CN111259299A (en) Data processing method, data processing device, computer equipment and storage medium
CN113112786B (en) Multi-data reading method, medium and electronic equipment for ammeter
CN112650099B (en) Control method and control system of battery monitoring platform
CN102053571A (en) Data acquisition method of information acquisition terminal
CN111459556A (en) Client site-based server BMC batch configuration method and system
CN117667601B (en) Programmable memory burning monitoring method, electronic equipment, system and monitor
CN110059071A (en) Data comparison monitoring method, system, equipment and medium based on storing process
CN115857834B (en) Method and device for checking read-write consistency of memory
CN111752786A (en) Data storage method, data summarization method, equipment and medium in pressure test process
CN110688391A (en) Massive Internet of things terminal query system, cloud database and side controller
CN117473200B (en) Comprehensive acquisition and analysis method for website information data
CN115220415B (en) Vehicle-mounted controller testing method, system, test management platform and storage medium
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN112433922B (en) Storage performance testing method and device
CN112860780B (en) Data export method and device and terminal equipment
CN111640998B (en) Battery cell information collection method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant