[go: up one dir, main page]

WO2025179739A1 - Information synchronization method and system - Google Patents

Information synchronization method and system

Info

Publication number
WO2025179739A1
WO2025179739A1 PCT/CN2024/102644 CN2024102644W WO2025179739A1 WO 2025179739 A1 WO2025179739 A1 WO 2025179739A1 CN 2024102644 W CN2024102644 W CN 2024102644W WO 2025179739 A1 WO2025179739 A1 WO 2025179739A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
version
industrial computer
version number
touch screen
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.)
Pending
Application number
PCT/CN2024/102644
Other languages
French (fr)
Chinese (zh)
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.)
Contemporary Amperex Technology Co Ltd
Original Assignee
Contemporary Amperex 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 Contemporary Amperex Technology Co Ltd filed Critical Contemporary Amperex Technology Co Ltd
Publication of WO2025179739A1 publication Critical patent/WO2025179739A1/en
Pending 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the embodiments of the present disclosure relate to the field of intelligent manufacturing technology, and are related to, but not limited to, an information synchronization method and system.
  • each alarm point corresponds to an alarm serial number.
  • each display unit on the production line displays the alarm serial number of the triggered alarm point to remind the engineers on the production line to deal with the alarm point.
  • the alarm point table for each display unit is manually entered by the user on the front-end interface and then stored in the database of each display unit. If an engineer modifies the alarm point table at the production site without simultaneously updating the alarm points on other display units, the modified alarm point may be triggered, and the alarm point displayed on other display units may be different from the actual alarm point triggered on the production line. Therefore, how to determine whether the alarm information displayed by each display unit on the production line is a pressing issue.
  • the embodiments of the present disclosure provide an information synchronization method and system. After the information synchronization condition is triggered, alarm information verification is performed between the touch screen and the industrial computer, and between the industrial computer and the centralized control system. This solves the problem in the related technology that the alarm information in different display units is different, resulting in the alarm points displayed on other display units being different from the alarm points actually triggered on the production line.
  • an embodiment of the present disclosure provides an information synchronization method, which includes: when an information synchronization condition on a battery production line is triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen; the machine alarm configuration information includes at least a machine alarm version number; the industrial computer performs a first version verification on the machine alarm version number and a local alarm version number in the current local alarm configuration information of the industrial computer, and obtains a first verification result; when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request containing the local alarm configuration information to the centralized control system; the centralized control system responds to the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result, so as to realize alarm information synchronization between the touch screen, the centralized control system and the industrial computer.
  • the alarm information in multiple display devices on the battery production line is synchronously checked, which reduces the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time.
  • the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problem on the production line.
  • the industrial computer obtains the current machine alarm configuration information of the touch screen, including: the industrial computer triggers the version detection point in the controller; when the version detection point is triggered, the controller calls the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain the detection result; when the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel.
  • the information synchronization system further includes a publish-subscribe service; the information synchronization method further includes: the touch screen publishes the machine message containing the machine alarm configuration information to the publishing The industrial computer subscribes to the version detection topic of the subscription service; wherein, the industrial computer subscribes to the version detection topic; the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel when the communication channel is connected normally, including: when the industrial computer is connected normally to the communication channel and the machine message appears in the version detection topic, the industrial computer obtains the machine alarm configuration information in the machine message.
  • data interaction is achieved between the industrial computer and the touch screen through the publish-subscribe service, which improves the interaction efficiency and the accuracy of the interaction data; at the same time, the industrial computer and the touch screen do not communicate directly, which reduces the loss of data during transmission due to network fluctuations and other reasons.
  • the information synchronization method also includes: when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, the industrial computer determines that the publish-subscribe service is abnormal and triggers the version detection point again after a second preset time period; when the version detection point is not triggered, the industrial computer triggers the version detection point again after a third preset time period.
  • a solution is provided for the problem that the version detection point is not triggered and the publish-subscribe service connection is abnormal. By triggering the version detection point again, an effective verification between the industrial computer and the touch screen is achieved.
  • the information synchronization method also includes: when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer turns off the version detection point in the controller; when the touch screen receives the information that the version detection point is closed, it determines that the machine alarm version number is consistent with the local alarm version number, and displays it on the machine display interface of the touch screen; when the touch screen does not receive the information that the version detection point is closed within a fourth preset time period, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number, and displays it on the machine display interface of the touch screen.
  • the industrial computer determines whether the alarm information is consistent or inconsistent with the alarm information of the touch screen, the result is fed back to the touch screen, thereby achieving synchronization of verification information between the industrial computer and the touch screen.
  • the alarm version verification request includes at least the device resource number of the industrial computer; the centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result, including: the centralized control system parses the alarm version verification request to obtain the device resource number corresponding to the industrial computer; the centralized control system queries the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number, and obtains a query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different; when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, the centralized control system will send a system message containing the system alarm version number and the device resource number to the industrial computer, and perform a second verification result, including
  • the industrial computer initiates the alarm information verification of the centralized control system when the alarm information is consistent with the alarm information of the touch screen. Therefore, when the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, it can be said that the alarm information between the touch screen, the centralized control system and the industrial computer is consistent, thereby realizing the synchronization of alarm information among the touch screen, the centralized control system and the industrial computer.
  • the information synchronization method also includes: when the second verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the second verification result has passed is displayed on the system display interface of the centralized control system; when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the second verification result has failed is displayed on the system display interface.
  • the system display interface of the centralized control system displays the verification result of the local alarm version number and the system alarm version number to prompt the engineers of the centralized control system to update the alarm information of the centralized control system, thereby realizing the synchronization of the alarm information of the centralized control system and the industrial computer.
  • the information synchronization method also includes: when the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, the centralized control system generates an exception message and sends the exception message to the industrial computer; when the industrial computer receives the exception message, the industrial computer displays the exception message on the device display interface of the industrial computer.
  • the centralized control system when the centralized control system finds that there is no alarm version number corresponding to the industrial computer, it feeds back the query result to the industrial computer to prompt the industrial computer, thereby realizing the interaction between the industrial computer and the centralized control system.
  • the information synchronization method further includes: when the industrial computer receives the system message, performing a third version check on the local alarm version number and the system alarm version number to obtain a third check result; when the third check result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third check result is passed is displayed on the device display interface; when the third check result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third check result is passed is displayed on the device display interface; If the numbers are inconsistent, a pop-up window indicating that the third verification result has failed is displayed on the device display interface.
  • the device display interface of the industrial computer displays the verification result of the local alarm version number and the system alarm version number, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.
  • the information synchronization method also includes: the touch screen determines the multiple alarm points corresponding to the industrial computer and the alarm cause and alarm type corresponding to each alarm point based on the alarm configuration operation for the machine display interface of the touch screen; the touch screen performs standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein, one alarm field corresponds to multiple alarm points; the touch screen generates the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template; the industrial computer imports the local alarm configuration information into the configuration file of the industrial computer based on the first data import operation for the device display interface of the industrial computer; the centralized control system imports the system alarm configuration information into the configuration file of the centralized control system based on the second data import operation for the system display interface of the centralized control system.
  • the alarm points are standardized, the amount of data is reduced, and the communication efficiency of data transmission is improved; at the same time, the touch screen, the centralized control system and the industrial computer use the same version of the alarm configuration table, so that the alarm information of the touch screen, the centralized control system and the industrial computer are consistent, which improves the processing efficiency of the alarm information on the production line and also improves the safety of the production line.
  • an embodiment of the present disclosure provides an information synchronization system, which includes a touch screen, a centralized control system and an industrial computer; wherein the industrial computer is used to obtain the current machine alarm configuration information of the touch screen when the information synchronization condition on the battery production line is triggered; the machine alarm configuration information at least includes a machine alarm version number; the industrial computer is also used to perform a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result; the industrial computer is also used to send an alarm version verification request containing the local alarm configuration information to the centralized control system when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the centralized control system is used to perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system in response to the alarm version verification request to obtain a second verification result, so as to realize alarm information synchronization between the touch screen, the centralized control system and the
  • the alarm information in multiple display devices on the battery production line is synchronously checked, which reduces the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration table of the centralized control system and the industrial computer will be updated at the same time.
  • the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the problem of the actual alarm on the production line, thereby improving the efficiency of processing alarm information on the production line and also improving the safety of production line production.
  • the information synchronization system also includes a controller; wherein the industrial computer is also used to trigger the version detection point in the controller; the controller is used to call the operation instructions of the touch screen to detect the communication channel between the industrial computer and the touch screen when the version detection point is triggered, and obtain the detection result; the industrial computer is also used to obtain the current machine alarm configuration information of the touch screen based on the communication channel when the communication channel is connected normally.
  • the information synchronization system also includes a publish-subscribe service; the touch screen is used to publish the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service when the communication channel between the industrial computer and the touch screen is connected normally; wherein the industrial computer subscribes to the version detection topic; the industrial computer is also used to obtain the machine alarm configuration information in the machine message when the communication channel is connected normally and the machine message appears in the version detection topic.
  • the information synchronization system also includes: the industrial computer is also used to determine that the publish-subscribe service is abnormal when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, and trigger the version detection point again after a second preset time period; the industrial computer is also used to trigger the version detection point again after a third preset time period when the version detection point is not triggered.
  • the information synchronization system also includes: the industrial computer is further used to close the version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the touch screen is further used to determine that the machine alarm version number is consistent with the local alarm version number when receiving information that the version detection point is closed, and display it on the machine display interface of the touch screen; the touch screen is also used to determine that the machine alarm version number is inconsistent with the local alarm version number when no information that the version detection point is closed is received within a fourth preset time period, and display it on the machine display interface of the touch screen.
  • the alarm version verification request includes at least the device resource number of the industrial computer; the centralized control system is further used to receive the alarm version verification request, compare the local alarm version number with the current system alarm configuration information of the centralized control system, and verify the local alarm version number with the current system alarm configuration information of the centralized control system.
  • the system alarm version number in the battery production line is subjected to a second version check to obtain a second check result, including: the centralized control system is further used to parse the alarm version check request to obtain the device resource number corresponding to the industrial computer; the centralized control system is further used to query the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number to obtain a query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different; the centralized control system is further used to send a system message containing the system alarm version number and the device resource number to the industrial computer when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, and perform a second version check on the local alarm version number and the system alarm version number to obtain a second check result.
  • the information synchronization system also includes: the centralized control system is also used to display a pop-up window indicating that the second verification result has passed on the system display interface of the centralized control system when the second verification result indicates that the local alarm version number is consistent with the system alarm version number; the centralized control system is also used to display a pop-up window indicating that the second verification result has failed on the system display interface when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number.
  • the information synchronization system also includes: the centralized control system is also used to generate an exception message and send the exception message to the industrial computer when the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database; the industrial computer is also used to display the exception message on the device display interface of the industrial computer when receiving the exception message.
  • the information synchronization system also includes: the industrial computer is also used to perform a third version verification on the local alarm version number and the system alarm version number when the system message is received to obtain a third verification result; the industrial computer is also used to display a pop-up window on the device display interface indicating that the third verification result has passed when the third verification result indicates that the local alarm version number is consistent with the system alarm version number; the industrial computer is also used to display a pop-up window on the device display interface indicating that the third verification result has failed when the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number.
  • the information synchronization system also includes: the touch screen is also used to determine the multiple alarm points corresponding to the industrial computer and the alarm cause and alarm type corresponding to each alarm point based on the alarm configuration operation of the machine display interface of the touch screen; the touch screen is also used to standardize the at least one alarm point to obtain an alarm array including at least one alarm field; wherein, one alarm field corresponds to multiple alarm points; the touch screen is also used to generate the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template; the industrial computer is also used to import the local alarm configuration information into the configuration file of the industrial computer based on the first data import operation of the device display interface of the industrial computer; the centralized control system is also used to import the system alarm configuration information into the configuration file of the centralized control system based on the second data import operation of the system display interface of the centralized control system.
  • FIG1 is a first optional flow chart of an information synchronization method according to an embodiment of the present disclosure
  • FIG2 is a second optional flow chart of the information synchronization method provided in an embodiment of the present disclosure.
  • FIG3 is a third optional flow chart of the information synchronization method provided in an embodiment of the present disclosure.
  • FIG4 is a schematic diagram of the structure of an information synchronization system provided by an embodiment of the present disclosure.
  • FIG5 is a schematic diagram of the structure of alarm information provided by an embodiment of the present disclosure.
  • FIG6 is a schematic diagram of a closed-loop calibration process of a touch screen and a data acquisition tool provided in an embodiment of the present disclosure
  • FIG7 is a schematic diagram of a closed-loop calibration process of a centralized control system and data acquisition tools provided by an embodiment of the present disclosure.
  • each alarm point corresponds to an alarm serial number.
  • each display unit on the production line displays the alarm serial number of the triggered alarm point to remind the engineers on the production line to deal with the alarm point.
  • the alarm configuration in the related art is that the electrical engineer configures an alarm information table based on the alarm points of the programmable logic controller (PLC) program and the message on the touch screen of the on-site machine.
  • the alarm information table is then imported into the centralized control system by the engineer.
  • an extensible markup language (XML) file or spreadsheet (Excel) file can be exported, and the engineer manually copies the content to the configuration file of the industrial computer.
  • the alarm information configuration table in the related art is configured on the touch screen according to the actual alarm points in the production line. If the electrical engineer directly updates the alarm information on the touch screen, there is no guarantee that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time.
  • the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, which will make it impossible for engineers to determine and solve the real problems on the production line, resulting in errors in battery production.
  • the industrial computer can obtain the alarm information of the touch screen and perform a consistency check with the imported alarm information or the local alarm information of the industrial computer. If the consistency check passes, the industrial computer obtains the alarm information of the centralized control system and performs a consistency check, thereby realizing the synchronous verification of the alarm information of the touch screen, the centralized control system and the industrial computer, solving the problem of inconsistent alarm information at various locations on the production line.
  • an embodiment of the present disclosure provides an information synchronization method, which is applied to the information synchronization system of a battery production line.
  • the information synchronization system includes at least a centralized control system configured on the main server of the battery production line and a touch screen and an industrial computer in the on-site machine on each process section.
  • the touch screen can be a human-machine interface (HMI) on the on-site machine
  • the industrial computer can be a host computer located in the on-site machine.
  • the industrial computer is installed with data acquisition software for collecting operating data of the production equipment corresponding to the industrial computer from the controller.
  • the industrial computer of each on-site machine corresponds to at least one production equipment on the battery production line.
  • the production equipment can refer to equipment such as robots, cell winding machines, pole welding equipment, battery assembly equipment, and product transport vehicles (AGV, Automated Guided Vehicle) on the production line.
  • the industrial computer In response to the information synchronization condition on the battery production line being triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen including the machine alarm version number, and the industrial computer verifies the machine alarm version number with the local alarm version number in the current local alarm configuration information of the industrial computer. When the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request containing the local alarm configuration information to the centralized control system.
  • the centralized control system verifies the local alarm version number with the system alarm version number in the current system alarm configuration information of the centralized control system, and updates the system display interface of the centralized control system based on the verification result, thereby realizing the synchronization of alarm information between multiple display devices such as the touch screen, centralized control system and industrial computer on the battery production line.
  • the embodiment of the present disclosure synchronously verifies the alarm information in multiple display devices on the battery production line, reducing the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration table of the centralized control system and the industrial computer will be updated at the same time.
  • the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problem on the production line.
  • the battery packs produced by the battery production line disclosed in the embodiments of the present disclosure can be used, but are not limited to, in electrical devices such as vehicles, ships, or aircraft.
  • a power supply system comprising the battery packs and batteries disclosed herein can be used to alleviate and automatically regulate deterioration in cell expansion, replenish electrolyte consumption, and improve battery performance stability and battery life.
  • the battery packs produced by the battery production line disclosed in the embodiments of the present disclosure can be used as power sources for electrical devices, which may include, but are not limited to, mobile phones, tablets, laptops, electric toys, power tools, electric vehicles, electric cars, ships, spacecraft, and the like.
  • Electric toys may include fixed or mobile electric toys, such as game consoles, electric car toys, electric ship toys, and electric airplane toys
  • spacecraft may include airplanes, rockets, space shuttles, and spacecraft, among others.
  • the battery pack produced by the battery production line may be formed by a plurality of batteries connected in series and in parallel, wherein the battery may be a battery cell.
  • a battery cell refers to a basic unit that can realize the mutual conversion of chemical energy and electrical energy, and can be used to make a battery module or a battery pack, thereby being used to supply power to an electrical device.
  • the battery cell may be a secondary battery, which refers to a battery cell that can be continuously used by activating the active material by charging after the battery cell is discharged.
  • the battery cell may be a lithium-ion battery, a sodium-ion battery, a sodium-lithium-ion battery, a lithium metal battery, a sodium metal battery, a lithium-sulfur battery, a magnesium-ion battery, a nickel-hydrogen battery, a nickel-cadmium battery, a lead-acid battery, etc., and the embodiments of the present disclosure are not limited thereto.
  • a battery pack includes multiple cells, which can be connected in series, in parallel, or in a hybrid configuration.
  • a hybrid configuration refers to a combination of series and parallel connections.
  • the series, parallel, or hybrid configuration of the cells is achieved by welding the cell terminals to a busbar assembly.
  • Each cell can be a secondary battery or a primary battery; it can also be a lithium-sulfur battery, a sodium-ion battery, or a magnesium-ion battery, but is not limited thereto.
  • the cells can be cylindrical, flat, rectangular, or have other shapes.
  • the information synchronization method can be applied not only to battery production lines, but also to any production line, such as an automobile production line or a steel manufacturing production line.
  • the embodiments of the present disclosure do not limit the specific application scenarios of the information synchronization method.
  • the battery production line includes multiple process sections, such as pole piece winding, cell grouping, battery pack addressing and battery welding.
  • Each process section uses multiple production equipment to perform multiple process operations on the process section.
  • the welding robot there are also production equipment for mobile battery packs, production equipment for mobile battery packs, equipment for cell winding, battery assembly equipment, and production equipment for placing busbars during welding.
  • Each process section is equipped with an on-site machine including an industrial computer and an HMI.
  • the industrial computer collects the operating data of the production equipment through the controller (ie, PLC).
  • the on-site engineer can set the alarm information based on the situation of the production site based on the HMI, and import the alarm information into the industrial computer and the centralized control system.
  • FIG1 is a first optional flow chart of an information synchronization method provided by an embodiment of the present disclosure. As shown in FIG1 , the information synchronization method provided by an embodiment of the present disclosure can be implemented through steps S101 to S104:
  • Step S101 When an information synchronization condition on a battery production line is triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen; the machine alarm configuration information at least includes a machine alarm version number.
  • information synchronization conditions may include conditions such as the industrial computer importing an alarm configuration file configured in the HMI, an engineer clicking the alarm version verification component on the industrial computer interface, or a shift change on the production line.
  • Importing an alarm configuration file to the industrial computer may mean that an engineer generates an alarm configuration file on the machine's touch screen and then manually imports the alarm configuration file to the industrial computer.
  • the industrial computer compares the imported alarm configuration file with the alarm configuration file on the touch screen to confirm whether the imported alarm configuration file is the same as the current alarm configuration file on the touch screen.
  • an alarm version verification component on the device display interface of the industrial computer. After the engineer clicks it, the industrial computer will compare the current alarm configuration file of the industrial computer with the alarm configuration file of the industrial computer to confirm whether the current alarm configuration file of the industrial computer is the same as the current alarm configuration file of the touch screen.
  • the battery production line may have a 12-hour shift, and calibration is required after each shift.
  • on-site engineers can set and update alarm information based on the situation at the production site based on the touch screen. Each time the alarm configuration information is modified, the machine alarm version number will change. Therefore, when the industrial computer performs a closed-loop calibration with the touch screen, the alarm version numbers can be compared. Different alarm version numbers indicate different alarm information. For example, an engineer defines 500 alarm points on the touch screen based on the actual site needs, forming alarm information with an alarm version number of V1, and imports the alarm information with an alarm version number of V1 into the industrial computer and the centralized control system. However, when the situation at the site changes, an alarm point is added to the alarm information with an alarm version number of V1 based on the touch screen, forming an alarm information with an alarm version number of V2. The newly added alarm information with an alarm version number of V2 is not the same version as the alarm information with an alarm version number of V1, resulting in the machine alarm information on the touch screen being different from the alarm information on the industrial computer and the centralized control system.
  • the machine alarm configuration information may also include an identification number (ID) for each alarm point, as well as information such as the alarm type, text description, and severity level.
  • ID an identification number
  • the touch screen, industrial computer, and centralized control system display interface will indicate that the alarm point has been triggered and display detailed information about the alarm point, prompting the corresponding processing engineer to handle the alarm.
  • Step S102 The industrial computer performs a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result.
  • the industrial computer can perform a first version check when the engineer imports the alarm configuration file to determine whether the imported alarm configuration file is the same version as the current machine alarm information on the touch screen; or when the production line shift switches and the engineer clicks the alarm version verification component on the device display interface, the industrial computer can verify the local alarm version number and the machine alarm version number in the local alarm configuration information currently used by the device to determine whether they are the same version.
  • the first version check can be performed by comparing the machine alarm version number with the local alarm version number, or by comparing the machine alarm configuration information on the touch screen with the local alarm configuration information on the industrial computer to see whether the alarm information corresponding to each ID is the same.
  • the first check result can include either a consistent or inconsistent result.
  • Step S103 When the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request including the local alarm configuration information to the centralized control system.
  • an alarm version verification request is sent to the centralized control system to request the centralized control system to verify the alarm information of the industrial computer and the centralized control system, so as to realize closed-loop verification between the touch screen, the industrial computer and the centralized control system.
  • the industrial computer can send a request to the centralized control system through a Post request.
  • the Post request is a request method in the Hyper Text Transfer Protocol (HTTP).
  • HTTP Hyper Text Transfer Protocol
  • data can be included in the request body. That is, when the industrial computer of the present invention sends an alarm version verification request to the centralized control system, the local alarm configuration information of the industrial computer is encapsulated in the request and sent to the centralized control system, so that the centralized control system performs verification based on the local alarm configuration information.
  • the machine alarm version number in response to the first verification result indicating that the machine alarm version number is inconsistent with the local alarm version number, it means that the current alarm information of the industrial computer is different from the alarm information of the touch screen.
  • a pop-up window prompt is required to prompt the on-site engineer to re-import the latest version of the alarm information of the touch screen.
  • Step S104 The centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result to achieve alarm information synchronization between the touch screen, the centralized control system and the industrial computer.
  • the centralized control system responds to the alarm version verification request, obtains the local alarm configuration information and local alarm version number of the industrial computer, performs a second version verification with the system alarm version number in the current system alarm configuration information of the centralized control system, and determines whether the alarm information of the centralized control system is consistent with the alarm information of the industrial computer.
  • the second version check can be performed by comparing the system alarm version number with the local alarm version number, or by comparing the system alarm configuration information of the centralized control system with the local alarm configuration information of the industrial computer to see whether the alarm information corresponding to each ID is the same.
  • the second check result can be either consistent or inconsistent.
  • a pop-up window prompts that the verification has passed; when it determines that the alarm information of the centralized control system is inconsistent with the alarm information of the industrial computer, a pop-up window prompts that the alarm information is different from the alarm information of the industrial computer.
  • the industrial computer initiates the alarm information verification of the centralized control system when the alarm information is consistent with the alarm information of the touch screen
  • the alarm information of the centralized control system is consistent with the alarm information of the industrial computer
  • the alarm information in multiple display devices on the battery production line is synchronously checked, thereby reducing the situation where, after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time.
  • the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problems on the production line.
  • the industrial computer and the touch screen can communicate via the Message Queuing Telemetry Transport (MQTT) protocol.
  • MQTT Message Queuing Telemetry Transport
  • the industrial computer can obtain the current machine alarm configuration information of the touch screen through steps S01 to S03:
  • Step S01 The industrial computer triggers a version detection point in the controller.
  • the information synchronization system also includes a controller, which can refer to any one of a programmable logic controller (PLC), a single-chip microcomputer, an intermediate computer, and a host computer.
  • PLC programmable logic controller
  • the industrial computer determines whether the MQTT service between the industrial computer and the touch screen is normal by triggering the version detection point in the PLC. When the MQTT service is normal, the touch screen sends the machine alarm configuration information to the industrial computer.
  • the version check point in the controller can be a Boolean point in the PLC, such as the VersionCheckSysn point. Triggering the version check point in the controller can mean setting the VersionCheckSysn point in the PLC to true to trigger the version check point in the controller.
  • Step S02 When the version detection point is triggered, the controller calls the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain a detection result.
  • the operation instruction of the touch screen may refer to the macro instruction of the touch screen.
  • the macro instruction is a predefined command or function.
  • the controller can call the touch screen's macro instructions to detect whether the communication channel (i.e., MQTT service) between the industrial computer and the touch screen is connected normally.
  • the detection results include normal connection and abnormal connection.
  • Step S03 When the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel.
  • the touch screen when the communication channel connection is normal, sends the current machine alarm configuration information to the industrial computer.
  • the information synchronization system further includes a publish-subscribe service, to which the industrial computer subscribes.
  • the publish-subscribe service is implemented based on MQTT and includes multiple topics.
  • the touch screen uploads the current machine alarm configuration information to a topic in the publish-subscribe service, and the industrial computer subscribes to the topic to obtain the current machine alarm configuration information from the touch screen.
  • the information synchronization method provided by the embodiment of the present disclosure may further include: when the communication channel is connected normally, the touch screen publishes the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service.
  • the industrial computer subscribes to the version detection topic to obtain data in the version detection topic based on the MQTT service.
  • the machine message may be as follows:
  • Trigger_time and ts correspond to the time when the touch screen sends the machine message, and message is the machine alarm version number in the current touch screen.
  • step S03 can be implemented by the following steps: when the communication channel is connected normally and the machine message appears in the version detection topic, the industrial computer obtains the machine alarm configuration information in the machine message.
  • the industrial computer subscribes to a version detection topic.
  • the industrial computer obtains the machine alarm configuration information in the machine message to compare whether the machine alarm version number uploaded by the touch screen is consistent with the local alarm version number of the industrial computer. If they are consistent, the version detection point is reset; if they are inconsistent, the version detection point is not reset.
  • data interaction is achieved between the industrial computer and the touch screen through the MQTT service, which can avoid the problem of data loss caused by network fluctuations and other reasons when the industrial computer and the touch screen communicate directly, thereby improving the interaction efficiency and the accuracy of the interaction data.
  • the information synchronization method provided by the embodiments of the present disclosure further includes steps S04 and S05:
  • Step S04 When the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, the industrial computer determines that the publish-subscribe service is abnormal, and triggers the version detection point again after a second preset time period.
  • the first preset time period can be 15 seconds (s), and the second preset time period can be 10 minutes.
  • the version detection point is triggered, if no machine message appears in the version detection topic of the publish-subscribe service within 15 seconds, it means that the connection of the publish-subscribe service is abnormal.
  • the industrial computer can trigger the version detection point again after 10 minutes and execute the above steps again.
  • Step S05 If the version detection point is not triggered, the industrial computer triggers the version detection point again after a third preset time period.
  • the version detection point in the PLC is not public, or the version detection point in the PLC can only be read but not written, the version detection point will not be triggered. At this time, the industrial computer can trigger the version detection point again after 15 seconds.
  • the embodiment of the present disclosure provides a solution to the problem that the version detection point is not triggered and the publish-subscribe service connection is abnormal. By triggering the version detection point again, effective verification between the industrial computer and the touch screen is achieved.
  • the information synchronization method may also include steps S06 to S08:
  • Step S06 When the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer turns off the version detection point in the controller.
  • the version detection point in the PLC can be turned off, that is, the version detection point position is set to False.
  • Step S07 Upon receiving the information indicating that the version detection point is closed, the touch screen determines that the machine alarm version number is consistent with the local alarm version number, and displays the result on the machine display interface of the touch screen.
  • the touch screen receives the information that the version detection point is turned off, and the touch screen confirms that the alarm version number in the industrial computer is consistent with the alarm version number of the touch screen, and the consistent result can be prompted on the machine display interface of the touch screen through a pop-up window.
  • Step S08 If the touch screen does not receive the information indicating that the version detection point is closed within a fourth preset time period, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number and displays it on the machine display interface of the touch screen.
  • the fourth preset time period can be 5s. If the touch screen does not receive the information that the version detection point is closed within 5s, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number, and the inconsistent result can be displayed on the machine display interface of the touch screen through a pop-up prompt.
  • the industrial computer determines whether the alarm information is consistent or inconsistent with the alarm information of the touch screen, the result is fed back to the touch screen, thereby achieving synchronization of verification information.
  • the alarm version verification request includes at least the device resource number of the industrial computer.
  • FIG2 is a second optional flow chart of the information synchronization method provided in an embodiment of the present disclosure. As shown in FIG2 , step S104 in the above embodiment can be implemented through steps S201 to S203:
  • Step S201 The centralized control system parses the alarm version verification request to obtain the device resource number corresponding to the industrial computer.
  • the centralized control system parses the alarm version verification request sent by the industrial computer to obtain the device alarm configuration information of the industrial computer.
  • the device alarm configuration information at least includes the device resource number corresponding to the industrial computer.
  • the device resource number is a unique index identifier of each industrial computer in the battery production line.
  • the centralized control system can determine whether the alarm information of the industrial computer exists in the database of the centralized control system according to the device resource number.
  • the centralized control system is set up on the main server of the battery production line.
  • the database of the centralized control system includes the alarm information set by the HMI of all on-site machines on the battery production line and the data corresponding to the industrial computers in different process sections.
  • the alarm information corresponding to different process sections is different. Therefore, when the centralized control system is verified, the equipment resource number of the industrial computer is used to determine the alarm information corresponding to the industrial computer and perform verification.
  • the communication between the centralized control system and the industrial computer can be implemented based on the Hypertext Transfer Protocol (HTTP).
  • HTTP Hypertext Transfer Protocol
  • Step S202 The centralized control system queries the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number to obtain the query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different.
  • the battery production line includes multiple industrial computers
  • the database contains local alarm information corresponding to all industrial computers on the battery production line, that is, the centralized control system has the alarm information of all industrial computers (that is, on-site machines) on the battery production line. Since different machines correspond to different production equipment, the local alarm information corresponding to different industrial computers is the same or different.
  • the centralized control system uses the IPC's device resource number to query its database for a system alarm version number corresponding to the device resource number. Specifically, it queries the database for system alarm configuration information corresponding to the device resource number. If the corresponding system alarm configuration information exists, the system alarm version number corresponding to the IPC is obtained based on the system alarm configuration information.
  • Step S203 When the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, the centralized control system sends a system message containing the system alarm version number and the device resource number to the industrial computer, and performs a second version verification on the local alarm version number and the system alarm version number to obtain a second verification result.
  • a system message containing the system alarm version number may be sent to the industrial computer.
  • the system message may be as follows:
  • the centralized control system can perform a second version verification on the local alarm version number of the industrial computer and the system alarm version number to obtain a second verification result.
  • the alarm information verification of the centralized control system is initiated. Therefore, when the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, it can be indicated that the alarm information between the touch screen, the centralized control system and the industrial computer is consistent, thereby realizing the synchronization of alarm information among the touch screen, the centralized control system and the industrial computer.
  • the information synchronization method provided by the embodiments of the present disclosure may further include steps S10 and S11:
  • Step S10 When the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, the centralized control system generates an abnormal message and sends the abnormal message to the industrial computer.
  • the centralized control system finds that the system alarm version number corresponding to the device resource number does not exist in the database, an exception message is generated. At this time, the code in the exception message is not 0, and the exception message is sent to the industrial computer.
  • Step S11 When the industrial computer receives the abnormal message, the industrial computer displays the abnormal message on the device display interface of the industrial computer.
  • the industrial computer can pop up a window to prompt the verification abnormality.
  • the centralized control system of the disclosed embodiment finds that there is no alarm version number corresponding to the industrial computer, it feeds back the query result to the industrial computer to prompt the engineer corresponding to the industrial computer to handle it, thereby realizing the interaction between the industrial computer and the centralized control system.
  • the system display interface of the centralized control system displays the verification results of the local alarm version number and the system alarm version number to prompt the engineers of the centralized control system to update the database of the centralized control system, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.
  • the information synchronization method provided by the embodiments of the present disclosure may further include steps S12 to S14:
  • Step S12 When the industrial computer receives the system message, it performs a third version check on the local alarm version number and the system alarm version number to obtain a third check result.
  • the centralized control system after the centralized control system queries the system alarm version number corresponding to the industrial computer, it sends a system message containing the system alarm version number to the industrial computer.
  • the industrial computer responds to the system message, performs a third version verification on the local alarm version number of the industrial computer and the system alarm version number of the centralized control system, and obtains a third verification result.
  • Step S13 When the third verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third verification result is passed is displayed on the device display interface.
  • Step S14 When the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the third verification result has failed is displayed on the device display interface.
  • the device display interface of the industrial computer displays the verification result of the local alarm version number and the system alarm version number, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.
  • FIG. 3 is an optional flow diagram of the information synchronization method provided by the embodiment of the present disclosure. As shown in Figure 3, the information synchronization method provided by the embodiment of the present disclosure can also include steps S301 to S305:
  • Step S301 The touch screen determines a plurality of alarm points corresponding to the industrial computer and an alarm cause and an alarm type corresponding to each alarm point based on an alarm configuration operation on a machine display interface of the touch screen.
  • the alarm configuration operation may include but is not limited to a selection operation, a confirmation operation, a page turning operation, a scrolling operation, and the like.
  • the selection operation may be an instruction input/selected by the user through an input component or device in the machine display interface of the touch screen.
  • the input component or device may include but is not limited to a keyboard, a mouse, a touch screen, a touchpad, or an audio input device, and the like.
  • an engineer can select at least one alarm point and the alarm cause and alarm type of each alarm point in the configuration component of the machine display interface of the touch screen.
  • the alarm cause of the safety door not closed point is that the safety door is not closed.
  • the alarm type may include four levels: F-Alarm, Alarm, Warning, and Info, and the alarm urgency decreases in sequence.
  • the embodiments of the present disclosure do not limit the implementation of the device selection operation.
  • Step S302 The touch screen performs standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein one alarm field corresponds to multiple alarm points.
  • At least one alarm point can be standardized from the originally discrete or randomly set alarm point to a text (Word) array with a fixed name.
  • Each alarm point includes the alarm cause and alarm type.
  • an alarm array with 600 fields (words) can be obtained.
  • Each field in the alarm array corresponds one-to-one with an alarm point in the alarm configuration file.
  • every 16 alarm points correspond to one field. That is, there is a mapping relationship between the 600 fields and the 10,000 alarm points, and one word point reads out 16 alarm points.
  • the 16 alarm points corresponding to one field can refer to 16 bits of binary. Each position of 0 means that the alarm point corresponding to that position is not triggered, and a 1 means that the alarm point is triggered.
  • Step S303 The touch screen generates the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template.
  • the preset alarm version configuration template may include information such as identification number, alarm type, alarm text description, and alarm severity level. After obtaining the alarm array, machine alarm configuration information, local alarm configuration information, and system alarm configuration information with the same alarm information may be generated.
  • the preset alarm version configuration template can be shown in Table 1:
  • the identification number is the unique identifier of the alarm information, corresponding to the index of the alarm array, and one ID corresponds to one alarm field.
  • the alarm cause (Category) is a subdivision of the alarm type (Class). For example, if the alarm cause is that the safety door is not closed, the alarm type (Class) can be divided into four levels: F-Alarm, Alarm, Warning, and Info. The severity of the four levels decreases in turn.
  • the alarm text description (Configuration text) is a text description of this alarm information, which is used for alarm display on the touch screen or centralized control system.
  • the centralized control system type (TOM-Type) is a subdivision of the alarm in the centralized control system, which is used for the centralized control system to display the specific cause of the alarm.
  • the machine alarm configuration information is stored in the touch screen.
  • the machine display interface of the touch screen pops up to prompt the specific information of the triggered alarm point; the local alarm configuration information and the system alarm configuration information are imported into the industrial computer and the centralized control system respectively.
  • the centralized control display interface of the centralized control system and the equipment display interface of the industrial computer pop up to prompt the specific information of the triggered alarm point.
  • Step S304 The industrial computer imports the local alarm configuration information into a configuration file of the industrial computer based on a first data import operation on a device display interface of the industrial computer.
  • Step S305 The centralized control system imports the system alarm configuration information into a configuration file of the centralized control system based on a second data import operation on the system display interface of the centralized control system.
  • the first data import operation and the second data import operation may be performed manually by importing local alarm configuration information and system alarm configuration information stored in an external storage device (e.g., a USB flash drive).
  • an external storage device e.g., a USB flash drive.
  • the disclosed embodiment standardizes the alarm points, reduces the amount of data, and improves communication efficiency; at the same time, the touch screen, the centralized control system, and the industrial computer use the same version of the alarm configuration table, so that the alarm information of the touch screen, the centralized control system, and the industrial computer are consistent, which improves the processing efficiency of the alarm information on the production line and also improves the safety of the production line.
  • FIG4 is a structural diagram of the information synchronization system provided by the embodiment of the present disclosure. As shown in FIG4 , the information synchronization system at least includes a centralized control system 401 , an industrial computer 402 and a touch screen 403 .
  • a battery production line is equipped with a centralized control system 401, which can be deployed on the battery production line's main server.
  • the battery production line includes multiple process sections to be configured, such as electrode winding, cell grouping, battery pack addressing, and battery welding. Each process section is performed by multiple production equipment, such as welding robots in the welding process.
  • Each process section is equipped with an on-site machine including an industrial computer 402 and a touch screen 403.
  • Touch screen 403 is a human-computer interaction module. On-site engineers can use touch screen 403 to modify and update alarm information based on the production site conditions.
  • the industrial computer 402 is used to obtain the current machine alarm configuration information of the touch screen 403 when the information synchronization condition on the battery production line is triggered; the machine alarm configuration information includes at least the machine alarm version number; and is also used to The version number is verified with the local alarm version number in the current local alarm configuration information of the industrial computer 402 to obtain a first verification result.
  • the first verification result is displayed on the device display interface 402-1 of the industrial computer 402, and the first verification result is sent to the touch screen 403.
  • the machine display interface 403-1 of the touch screen 403 can also display the first verification result.
  • the industrial computer 402 is further configured to send an alarm version verification request including local alarm configuration information to the centralized control system 401 when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number.
  • the centralized control system 401 is used to respond to the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system 401, obtain a second verification result, and update the system display interface 401-1 of the centralized control system 401 based on the second verification result to achieve synchronization of alarm information between the touch screen, the centralized control system and the industrial computer.
  • the centralized control system 401 is further configured to send the second verification result to the industrial computer 402 .
  • the information synchronization system also includes a controller; the industrial computer 402 is also used to trigger the version detection point in the controller; the controller is used to call the operation instructions of the touch screen 403 to detect the communication channel between the industrial computer 402 and the touch screen 403 when the version detection point is triggered, and obtain the detection result; the industrial computer 402 is also used to obtain the current machine alarm configuration information of the touch screen 403 based on the communication channel when the communication channel connection is normal.
  • the information synchronization system also includes a publish-subscribe service; the touch screen 403 is used to publish the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service when the communication channel between the industrial computer 402 and the touch screen 403 is connected normally; wherein, the industrial computer subscribes to the version detection topic of the publish-subscribe service; the industrial computer 402 is also used to obtain the machine alarm configuration information in the machine message when the communication channel is connected normally and the machine message appears in the version detection topic.
  • the information synchronization system also includes: an industrial computer 402, which is also used to determine that the publish-subscribe service is abnormal when the version detection point is triggered and no machine message appears in the version detection topic within the first preset time period after the version detection point is triggered, and to trigger the version detection point again after the second preset time period; the industrial computer 402 is also used to trigger the version detection point again after the third preset time period when the version detection point is not triggered.
  • an industrial computer 402 which is also used to determine that the publish-subscribe service is abnormal when the version detection point is triggered and no machine message appears in the version detection topic within the first preset time period after the version detection point is triggered, and to trigger the version detection point again after the second preset time period
  • the industrial computer 402 is also used to trigger the version detection point again after the third preset time period when the version detection point is not triggered.
  • the information synchronization system also includes: an industrial computer 402, which is also used to close the version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the touch screen 403 is also used to determine that the machine alarm version number is consistent with the local alarm version number when receiving information that the version detection point is closed, and display it on the machine display interface 403-1 of the touch screen 403; the touch screen 403 is also used to determine that the machine alarm version number is inconsistent with the local alarm version number when no information that the version detection point is closed is received within a fourth preset time period, and display it on the machine display interface 403-1 of the touch screen 403.
  • an industrial computer 402 which is also used to close the version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number
  • the touch screen 403 is also used to determine that the machine alarm version number is consistent with the local alarm version number when receiving information that the version detection point is closed, and display it on the machine display interface 403-1 of the touch
  • the alarm version verification request includes at least the device resource number of the industrial computer 402; the centralized control system 401 is further used to receive the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system 401, and obtain a second verification result, including: the centralized control system 401 is also used to parse the alarm version verification request to obtain the device resource number corresponding to the industrial computer 402; the centralized control system 401 is also used to query the corresponding device resource number in the database corresponding to the centralized control system 401 based on the device resource number.
  • the query result is obtained by using the system alarm version number of the industrial control computers 402; the battery production line includes multiple industrial control computers 402, and the database contains local alarm information corresponding to all the industrial control computers 402 on the battery production line.
  • the local alarm information corresponding to different industrial control computers 402 may be the same or different; the centralized control system 401 is also used to send a system message containing the system alarm version number and the device resource number to the industrial control computer 402 when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, and perform a second version check on the local alarm version number and the system alarm version number to obtain a second check result.
  • the information synchronization system also includes: a centralized control system 401, which is also used to display a pop-up window indicating that the second verification result has passed on the system display interface 401-1 of the centralized control system 401 when the second verification result indicates that the local alarm version number is consistent with the system alarm version number; the centralized control system 401 is also used to display a pop-up window indicating that the second verification result has failed on the system display interface 401-1 when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number.
  • the information synchronization system also includes: a centralized control system 401, which is also used to generate an exception message and send the exception message to the industrial computer 402 when the query result representation database does not have a system alarm version number corresponding to the device resource number; the industrial computer 402 is also used to display the exception message on the device display interface 402-1 of the industrial computer 402 when the exception message is received.
  • a centralized control system 401 which is also used to generate an exception message and send the exception message to the industrial computer 402 when the query result representation database does not have a system alarm version number corresponding to the device resource number
  • the industrial computer 402 is also used to display the exception message on the device display interface 402-1 of the industrial computer 402 when the exception message is received.
  • the information synchronization system also includes: an industrial computer 402, which is also used to perform a third version check on the local alarm version number and the system alarm version number when a system message is received to obtain a third verification result; the industrial computer 402 is also used to display a pop-up window indicating that the third verification result has passed on the device display interface 402-1 when the third verification result indicates that the local alarm version number is consistent with the system alarm version number; the industrial computer 402 is also used to display a pop-up window indicating that the third verification result has failed on the device display interface 402-1 when the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number.
  • an industrial computer 402 which is also used to perform a third version check on the local alarm version number and the system alarm version number when a system message is received to obtain a third verification result
  • the industrial computer 402 is also used to display a pop-up window indicating that the third verification result has passed on the device display interface 402-1 when the third verification result indicates that the local alarm version number is consistent with the system alarm
  • the information synchronization system further includes: a touch screen 403, further configured to determine the multiple alarm points corresponding to the industrial computer 402 and the alarm causes and corresponding alarms of each alarm point based on the alarm configuration operation of the machine display interface 403-1 on the touch screen 403.
  • the embodiment of the present disclosure provides an information synchronization method, wherein the data acquisition tool (i.e., industrial computer) will trigger the verification trigger point in the PLC when the verification initiation conditions are met, such as the data acquisition tool imports the alarm configuration file, the engineer clicks the version verification button on the data acquisition tool interface, or the shift changes on the production line, etc., so that the touch screen sends the alarm version number in the touch screen to the data acquisition tool.
  • the data acquisition tool compares the versions, if they are consistent, the version verification is passed and the trigger point (i.e., the version detection point) is reset.
  • the touch screen on the machine does not return the version number after the specified time has passed after the trigger, the user is prompted that the verification has timed out, and the version verification is re-initiated after 10 minutes. If the returned version is inconsistent, it will not be reset, and a pop-up window will pop up to prompt the version inconsistency, and the alarm version verification process will be re-initiated after half an hour. In this way, the alarm version verification of the data acquisition tool and the touch screen forms a closed loop.
  • the data acquisition tool When the conditions for initiating the verification process are met, the data acquisition tool will also upload the current alarm version of the data acquisition tool through an HTTP call and request the centralized control system to return the alarm version in its hands.
  • the data acquisition tool and the centralized control system each compare the alarm version numbers in the interface, completing the alarm version verification between the data acquisition tool and the centralized control system, achieving a closed-loop verification between the data acquisition tool and the centralized control system.
  • the information synchronization update process provided by the embodiment of the present disclosure includes two aspects: alarm configuration standardization and alarm version verification.
  • the alarm version verification includes closed-loop alarm configuration version verification between the machine's touch screen and data acquisition tool, and between the data acquisition tool and the centralized control system.
  • the alarm points When on-site engineers set alarm information on the touch screen, they may set multiple alarm points. For example, if 500 alarm points are set on the production line, the alarm points can be standardized from the original discrete or randomly set alarm array to a text (Word) array with a fixed name.
  • FIG. 5 is a schematic diagram of the structure of the alarm information provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure defines a data structure 50 (sMsg_Bool) in the PLC.
  • the data structure 50 includes at least a shutdown reason 501 (sMsg_Bool.FirstAlarm), an alarm shutdown reason type 502 (sMsg_Bool.FirstAlarmCat), and a text array 503 (sMsg_Bool.Words).
  • Its text array 503 includes a point array 5031 (sMsg_Bool.Words.B[10000]) and a mapping array 5032 (sMsg_Bool.Words.Words[600]).
  • the text array 503 is the point array directly corresponding to all alarm points in the PLC, and has a one-to-one correspondence with the alarm points in the alarm configuration file.
  • sMsg_Bool.Words.Words[600] is a standardized Word array.
  • sMsg_Bool.Words.Words[600] and sMsg_Bool.Words.B[10000] are in a mapping relationship, with each 16-bit B array member corresponding to one Word. That is, there is a mapping relationship between 600 words and 10,000 alarm points, and one Word point reads out 16 alarm points.
  • the 16 alarm points corresponding to one Word point can refer to 16 bits of binary. Each position of 0 represents not triggered, and a 1 represents that the alarm point is triggered.
  • the embodiment of the present disclosure can provide an alarm information configuration template table. Electrical engineers only need to fill in the relevant alarm information of the corresponding touch screen in the template, and then generate three alarm configuration tables for the touch screen, data acquisition tool, and centralized control system with one click.
  • the format of the alarm configuration table can be shown in Table 2:
  • the identification number is the unique identifier of the alarm information, which can correspond to the index of the point array (sMsg_Bool.Words.B[10000]) (one ID corresponds to one alarm point).
  • the alarm type (Category) is a subdivision of the alarm severity level (Class). Class is divided into four levels: F-Alarm, Alarm, Warning, and Info, with the severity of the four levels decreasing in sequence.
  • the alarm text description (Configuration text) is a text description of this alarm information, used for alarm display on the touch screen or centralized control system.
  • the centralized control system type is a subdivision of this alarm in the centralized control system.
  • the touch screen and the data acquisition tool use the Message Queuing Telemetry Transport (MQTT) protocol to transmit messages through the following messages:
  • MQTT Message Queuing Telemetry Transport
  • Trigger_time and ts correspond to the time when the touch screen sends the message, and message is the alarm version number in the current touch screen.
  • site refers to the base code of the battery production line
  • resource refers to the device resource number of the current data acquisition tool
  • the centralized control system after receiving the message, the centralized control system returns the following message based on the actual situation:
  • code represents whether the device resource number is queried (where 0 means it is queried, and non-0 means it is not queried). If the centralized control system queries the device resource number, message returns the version number, otherwise it returns the corresponding exception message; resource returns the corresponding device resource number.
  • the data acquisition tool triggers a PLC signal.
  • the PLC controls the macro instructions in the touch screen to perform corresponding processing, and then transmits the alarm information in the touch screen to the data acquisition tool for verification.
  • the verification process mainly consists of three parts: the PLC, the touch screen, and the data acquisition tool.
  • Figure 6 is a schematic diagram of the closed-loop verification process of the touch screen and the data acquisition tool provided by the embodiment of the present disclosure. As shown in Figure 6, the closed-loop verification process of the touch screen and the data acquisition tool is implemented by steps S601 to S615:
  • Step S601 trigger an alarm check point.
  • the engineer clicks the version check button on the data acquisition tool interface, or the shift on the production line is switched, the alarm check point VersionCheckSysn (i.e., the version detection point) in the PLC is triggered.
  • triggering an alarm check point may refer to changing a logic value of the alarm check point from 0 to 1 to trigger the alarm check point.
  • Step S602 Alarm and check whether the points are written successfully.
  • step S601 if the data acquisition tool is not connected to the PLC, or the PLC does not have the alarm check point VersionCheckSysn, or the alarm check point VersionCheckSysn in the PLC is not public, or the alarm check point VersionCheckSysn in the PLC can only be read but not written, it means that the alarm check point has not been written successfully.
  • step S601 is executed again; if the alarm check point is written successfully, at this time, the data acquisition tool executes step S603 and the PLC executes step S605.
  • Step S603 Whether no feedback result is received within 15 seconds.
  • the data acquisition tool can start an asynchronous thread for timing. If the data acquisition tool does not receive the alarm information from the touch screen within 15 seconds, it is considered that the MQTT service between the data acquisition tool and the touch screen is abnormal, and step S604 is executed.
  • Step S604 The pop-up window prompts a timeout without any feedback, and the system goes into sleep mode for 10 minutes.
  • a pop-up window may be displayed on the display interface of the data acquisition tool to indicate that there has been no feedback, and step S601 may be executed again after sleeping for 10 minutes.
  • Step S605 trigger and verify the trigger point.
  • the PLC program when the PLC program finds that the trigger point VersionCheckSysn is set to True or set to 1, it calls the touch screen's macro command to check whether the MQTT connection is normal.
  • a macro event or macro command is a predefined command or function that can be used to execute an operation.
  • Step S606 triggering a touch screen macro event.
  • the touch screen macro will first check whether the MQTT connection is normal. If it is not normal, the touch screen will directly pop up a window. The system prompts that the MQTT connection is abnormal and ends the touch screen related actions. That is, the touch screen pops up a window and then goes silent.
  • Step S607 Obtain the alarm configuration version number of the touch screen.
  • the touch screen collects the alarm configuration version number of the touch screen, packages it and publishes it to the VersionCheck (i.e. version verification) topic of the MQTT service.
  • VersionCheck i.e. version verification
  • Step S608 Publish to the version verification topic.
  • Step S609 Obtain the version number of the touch screen.
  • the data acquisition tool subscribes to the version verification topic of the MQTT service.
  • the MQTT service receives a message related to the alarm information of the touch screen, a corresponding event is triggered to obtain the version number of the touch screen.
  • Step S610 Determine whether the alarm version number is consistent with the alarm version number of the touch screen.
  • the data acquisition tool determines whether the alarm version number of the local device is consistent with the alarm version number of the touch screen. If they are consistent, step S611 is executed; if they are inconsistent, step S612 is executed.
  • Step S611 Close the alarm check point.
  • a pop-up window will pop up to prompt that the alarm version verification has passed, and the alarm verification point will be closed.
  • Step S612 A pop-up window prompts that the versions are inconsistent and the program goes into hibernation for 30 minutes.
  • the trigger point will not be reset, and a pop-up window will pop up to prompt that the alarm versions are inconsistent. After sleeping for 30 minutes, the process returns to step S601.
  • Step S613 Determine whether the data acquisition tool returns version consistency information within 5 seconds.
  • the machine touch screen determines whether the data acquisition tool returns version consistency information within 5 seconds. If it returns, step S614 is executed; if not, step S615 is executed.
  • Step S614 Close the waiting thread.
  • the machine touch screen finds that the trigger point (i.e., the alarm verification point) is closed, it is considered that the alarm verification has passed, and a pop-up window prompts that the verification is completed.
  • the trigger point i.e., the alarm verification point
  • Step S615 A pop-up window prompts that the version is inconsistent with the data acquisition tool.
  • the verification between the centralized control system and the data acquisition tool is initiated by the data acquisition tool, which packages the local alarm configuration version and sends a Post request to the centralized control system. After receiving it, the centralized control system compares the machine alarm version and returns the alarm version on the centralized control system for the data acquisition tool to compare.
  • This verification process consists of two parts: the data acquisition tool and the centralized control system.
  • Figure 7 is a schematic diagram of the closed-loop verification process of the centralized control system and the data acquisition tool provided in an embodiment of the present disclosure. As shown in Figure 7, the closed-loop verification process of the centralized control system and the data acquisition tool is implemented by steps S701 to S714:
  • Step S701 Obtain local alarm configuration information.
  • the data acquisition tool collects local alarm configuration information of the data acquisition tool, including alarm version number, device resource number, site and other information, packages it and sends it to the centralized control system via a message request (ie, Post request).
  • a message request ie, Post request
  • Step S702 Pack and upload the message request.
  • a message request (ie, a Post request) is a request method in the HTTP protocol for submitting data to a server (ie, a centralized control system).
  • a server ie, a centralized control system.
  • the data is included in the request.
  • Step S703 parse the message request.
  • the centralized control system parses the message to obtain information such as the alarm version number, device resource number, and site of the data acquisition tool.
  • Step S704 Determine whether the machine exists.
  • the centralized control system after the centralized control system receives the alarm configuration information from the data acquisition tool, it queries the database of the centralized control system to see whether the device resource number exists. If the device resource number does not exist or the alarm version number does not exist, it returns a message prompt to the data acquisition tool, sets the code to non-zero, and ends this verification.
  • code represents whether the device resource number is found. 0 means it is found, and non-zero means it is not found.
  • Step S705 Send the alarm version number of the centralized control system.
  • Step S706 Determine whether the alarm version numbers are consistent.
  • step S707 is executed to update the version consistency mark of the alarm configuration interface of the centralized control system; if the versions are inconsistent, step S708 is executed to update the verification result of the alarm version configuration interface of the centralized control system.
  • Step S707 Update status display verification passed.
  • Step S708 The update status shows that the versions are inconsistent.
  • Step S710 Compare version numbers.
  • Step S711 A pop-up window prompts that the verification is abnormal.
  • Step S712 Determine whether the alarm version numbers are consistent.
  • the data acquisition tool determines whether the alarm version number sent by the centralized control system is consistent with the alarm version number of the local device. If the version numbers are consistent, the verification is successful and step S713 is executed. If not, step S712 is executed and a pop-up window prompts that the current alarm version numbers are inconsistent.
  • Step S713 A pop-up window prompts that the versions are inconsistent.
  • Step S714 A pop-up window appears to indicate that the verification is successful.
  • the disclosed embodiment standardizes the alarm points in the PLC, maps them all in an array, and provides an alarm version configuration template with macros that can be used to generate three configuration files for the touch screen, data acquisition tool, and centralized control system with one click after the configuration is completed. Because the touch screen uses the template table to generate the configuration, the corresponding data acquisition tool alarm configuration and centralized control system alarm configuration will be generated at the same time.
  • the standardized alarm configuration is an Excel file, which can be configured after being successfully parsed and verified in the imported data acquisition tool. If the touch screen updates the alarm configuration without updating the data acquisition tool, the automatic alarm version verification process will be triggered at the latest when the shift changes. If the versions are found to be inconsistent, an alarm window will pop up automatically.
  • the disclosed embodiment realizes closed-loop verification of alarm configuration versions of different display devices on the production line and realizes the automatic alarm version verification function.
  • the alarm configuration table of the same version of touch screen, data acquisition tool, and centralized control system can be generated with one click through a master table.
  • the configuration table can also be used to import instead of manually updating the configuration file, thereby improving the production line efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • General Factory Administration (AREA)

Abstract

Provided are an information synchronization method and system. The method comprises: when an information synchronization condition on a battery production line is triggered, an industrial personal computer (402) acquires current machine alarm configuration information of a touch screen (403), the machine alarm configuration information at least comprising a machine alarm version number (S101); the industrial personal computer (402) performs a first version check on the machine alarm version number and a local alarm version number in current local alarm configuration information of the industrial personal computer (402), so as to obtain a first check result (S102); when the first check result represents that the machine alarm version number is consistent with the local alarm version number, the industrial personal computer (402) sends to a centralized control system (401) an alarm version check request containing the local alarm configuration information (S103); and the centralized control system (401) receives the alarm version check request, and performs a second version check on the local alarm version number and a system alarm version number in current system alarm configuration information of the centralized control system (401) to obtain a second check result, so as to synchronize alarm information among the touch screen (403), the centralized control system (401) and the industrial personal computer (402) (S104).

Description

信息同步方法及系统Information synchronization method and system

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本公开基于申请号为202410211703.2、申请日为2024年02月27日、发明名称为“信息同步方法及系统”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is based on Chinese patent application number 202410211703.2, application date February 27, 2024, and invention name “Information Synchronization Method and System”, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this disclosure as a reference.

技术领域Technical Field

本公开实施例涉及智能制造技术领域,涉及但不限于一种信息同步方法及系统。The embodiments of the present disclosure relate to the field of intelligent manufacturing technology, and are related to, but not limited to, an information synchronization method and system.

背景技术Background Art

在电池的生产过程中,为了保证生产安全,在产线上设置了多个报警点位,每个报警点位对应一个报警序号,当某一报警点位被触发时,生产线上的各显示单元显示被触发的报警点位的报警序号,以提醒生产线上的工程师对该报警点位处进行处理。During the battery production process, in order to ensure production safety, multiple alarm points are set up on the production line. Each alarm point corresponds to an alarm serial number. When an alarm point is triggered, each display unit on the production line displays the alarm serial number of the triggered alarm point to remind the engineers on the production line to deal with the alarm point.

但是,各显示单元处的报警点位表是由用户在前端页面手工录入,然后存储于各显示单元的数据库中。如果工程师在生产现场对报警点位表进行了修改,而没有对其他显示单元处的报警点位进行同步更新,可能会出现修改后的报警点位被触发,其他显示单元处显示的报警点位与生产线上实际被触发的报警点位不同的问题。因此,如何确定生产线上各显示单元处的报警信息是否同步是当前亟待解决的问题。However, the alarm point table for each display unit is manually entered by the user on the front-end interface and then stored in the database of each display unit. If an engineer modifies the alarm point table at the production site without simultaneously updating the alarm points on other display units, the modified alarm point may be triggered, and the alarm point displayed on other display units may be different from the actual alarm point triggered on the production line. Therefore, how to determine whether the alarm information displayed by each display unit on the production line is a pressing issue.

发明内容Summary of the Invention

为解决相关技术存在的问题,本公开实施例提供一种信息同步方法及系统,在信息同步条件被触发之后,进行触摸屏与工控机、工控机与集控系统两两之间的报警信息校验,解决了相关技术中不同显示单元中报警信息不同,导致其他显示单元处显示的报警点位与生产线上实际被触发的报警点位不同的问题。In order to solve the problems existing in the related technology, the embodiments of the present disclosure provide an information synchronization method and system. After the information synchronization condition is triggered, alarm information verification is performed between the touch screen and the industrial computer, and between the industrial computer and the centralized control system. This solves the problem in the related technology that the alarm information in different display units is different, resulting in the alarm points displayed on other display units being different from the alarm points actually triggered on the production line.

第一方面,本公开实施例提供一种信息同步方法,所述信息同步方法包括:在电池生产线上的信息同步条件被触发的情况下,工控机获取触摸屏当前的机台报警配置信息;所述机台报警配置信息至少包括机台报警版本号;所述工控机对所述机台报警版本号与所述工控机当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果;在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机向所述集控系统发送包含所述本地报警配置信息的报警版本校验请求;集控系统响应于所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,以实现所述触摸屏、所述集控系统和所述工控机之间的报警信息同步。In a first aspect, an embodiment of the present disclosure provides an information synchronization method, which includes: when an information synchronization condition on a battery production line is triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen; the machine alarm configuration information includes at least a machine alarm version number; the industrial computer performs a first version verification on the machine alarm version number and a local alarm version number in the current local alarm configuration information of the industrial computer, and obtains a first verification result; when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request containing the local alarm configuration information to the centralized control system; the centralized control system responds to the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result, so as to realize alarm information synchronization between the touch screen, the centralized control system and the industrial computer.

上述实施例中,在信息同步条件被触发的情况下,对电池生产线上的多个显示设备中的报警信息进行同步校验,减少了工程师对触摸屏的报警信息进行更新之后,不能保证会同时更新集控系统和工控机的报警配置表,会出现触摸屏、集控系统和工控机三处的报警信息不一致,导致其他显示设备处的工程师无法解决产线上真正出现的报警的问题,使得生产线上各处的工程师都能及时了解产线上出现的报警问题,提高了产线上报警信息的处理效率,也提高了产线生产的安全性。In the above embodiment, when the information synchronization condition is triggered, the alarm information in multiple display devices on the battery production line is synchronously checked, which reduces the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time. The alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problem on the production line. This allows engineers at various locations on the production line to understand the alarm problems on the production line in a timely manner, improves the efficiency of processing alarm information on the production line, and also improves the safety of production line production.

在一些实施例中,所述工控机获取触摸屏当前的机台报警配置信息,包括:所述工控机触发控制器中的版本检测点位;所述控制器在所述版本检测点位被触发的情况下,调用所述触摸屏的操作指令对所述工控机与所述触摸屏之间的通信通道进行检测,得到检测结果;所述工控机在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息。In some embodiments, the industrial computer obtains the current machine alarm configuration information of the touch screen, including: the industrial computer triggers the version detection point in the controller; when the version detection point is triggered, the controller calls the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain the detection result; when the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel.

在一些实施例中,所述信息同步系统还包括发布订阅服务;所述信息同步方法还包括:所述触摸屏在所述通信通道连接正常的情况下,将包含所述机台报警配置信息的机台报文发布至所述发布 订阅服务的版本检测主题中;其中,所述工控机订阅所述版本检测主题;所述工控机在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息,包括:所述工控机在所述通信通道连接正常,且所述版本检测主题中出现所述机台报文的情况下,所述工控机获取所述机台报文中的所述机台报警配置信息。In some embodiments, the information synchronization system further includes a publish-subscribe service; the information synchronization method further includes: the touch screen publishes the machine message containing the machine alarm configuration information to the publishing The industrial computer subscribes to the version detection topic of the subscription service; wherein, the industrial computer subscribes to the version detection topic; the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel when the communication channel is connected normally, including: when the industrial computer is connected normally to the communication channel and the machine message appears in the version detection topic, the industrial computer obtains the machine alarm configuration information in the machine message.

上述实施例中,工控机和触摸屏之间通过发布订阅服务实现数据交互,提高了交互效率和交互数据的准确性;同时,工控机和触摸屏之间不直接通信,减少了由于网络波动等原因造成数据在传输过程中丢失的情况。In the above embodiment, data interaction is achieved between the industrial computer and the touch screen through the publish-subscribe service, which improves the interaction efficiency and the accuracy of the interaction data; at the same time, the industrial computer and the touch screen do not communicate directly, which reduces the loss of data during transmission due to network fluctuations and other reasons.

在一些实施例中,所述信息同步方法还包括:所述工控机在所述版本检测点位被触发,且在所述版本检测点位触发后第一预设时间段内所述版本检测主题中未出现所述机台报文的情况下,确定所述发布订阅服务异常,并在第二预设时间段后再次触发所述版本检测点位;所述工控机在所述版本检测点位未被触发的情况下,在第三预设时间段后再次触发所述版本检测点位。In some embodiments, the information synchronization method also includes: when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, the industrial computer determines that the publish-subscribe service is abnormal and triggers the version detection point again after a second preset time period; when the version detection point is not triggered, the industrial computer triggers the version detection point again after a third preset time period.

上述实施例中,针对版本检测点位未被触发和发布订阅服务连接异常的问题,设置了解决方案,通过再次触发版本检测点位实现工控机与触摸屏之间的有效校验。In the above embodiment, a solution is provided for the problem that the version detection point is not triggered and the publish-subscribe service connection is abnormal. By triggering the version detection point again, an effective verification between the industrial computer and the touch screen is achieved.

在一些实施例中,所述信息同步方法还包括:在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机关闭控制器中的版本检测点位;所述触摸屏在接收到所述版本检测点位关闭的信息的情况下,确定所述机台报警版本号与所述本地报警版本号一致,并显示于所述触摸屏的机台显示界面;所述触摸屏在第四预设时间段内未接收到所述版本检测点位关闭的信息的情况下,所述触摸屏确定所述机台报警版本号与所述本地报警版本号不一致,并显示于所述触摸屏的机台显示界面。In some embodiments, the information synchronization method also includes: when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer turns off the version detection point in the controller; when the touch screen receives the information that the version detection point is closed, it determines that the machine alarm version number is consistent with the local alarm version number, and displays it on the machine display interface of the touch screen; when the touch screen does not receive the information that the version detection point is closed within a fourth preset time period, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number, and displays it on the machine display interface of the touch screen.

上述实施例中,在工控机确定出与触摸屏的报警信息一致或不一致时,将结果反馈至触摸屏,实现了工控机与触摸屏之间的校验信息同步。In the above embodiment, when the industrial computer determines whether the alarm information is consistent or inconsistent with the alarm information of the touch screen, the result is fed back to the touch screen, thereby achieving synchronization of verification information between the industrial computer and the touch screen.

在一些实施例中,所述报警版本校验请求至少包括工控机的设备资源号;所述集控系统接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,包括:所述集控系统对所述报警版本校验请求进行解析,得到所述工控机对应的设备资源号;所述集控系统基于所述设备资源号,在所述集控系统对应的数据库中查询与所述设备资源号对应的系统报警版本号,得到查询结果;其中,所述电池生产线包括多个工控机,所述数据库中包含所述电池生产线上全部工控机对应的本地报警信息,不同工控机对应的本地报警信息相同或不同;在所述查询结果表征所述数据库中存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统将包含所述系统报警版本号和所述设备资源号的系统报文发送至所述工控机,并对所述本地报警版本号与所述系统报警版本号进行第二版本校验,得到第二校验结果。In some embodiments, the alarm version verification request includes at least the device resource number of the industrial computer; the centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result, including: the centralized control system parses the alarm version verification request to obtain the device resource number corresponding to the industrial computer; the centralized control system queries the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number, and obtains a query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different; when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, the centralized control system will send a system message containing the system alarm version number and the device resource number to the industrial computer, and perform a second version verification on the local alarm version number and the system alarm version number to obtain a second verification result.

上述实施例中,工控机是在与触摸屏的报警信息一致的情况下,发起集控系统的报警信息校验,因此,在集控系统的报警信息与工控机的报警信息一致时能够说明触摸屏、集控系统和工控机之间的报警信息一致,实现了触摸屏、集控系统和工控机之间的报警信息同步。In the above embodiment, the industrial computer initiates the alarm information verification of the centralized control system when the alarm information is consistent with the alarm information of the touch screen. Therefore, when the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, it can be said that the alarm information between the touch screen, the centralized control system and the industrial computer is consistent, thereby realizing the synchronization of alarm information among the touch screen, the centralized control system and the industrial computer.

在一些实施例中,所述信息同步方法还包括:在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述集控系统的系统显示界面显示表征所述第二校验结果通过的弹窗;在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述系统显示界面显示表征所述第二校验结果未通过的弹窗。In some embodiments, the information synchronization method also includes: when the second verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the second verification result has passed is displayed on the system display interface of the centralized control system; when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the second verification result has failed is displayed on the system display interface.

上述实施例中,集控系统的系统显示界面显示本地报警版本号与系统报警版本号的校验结果,以提示集控系统的工程师对集控系统的报警信息进行更新,实现了集控系统与工控机的报警信息同步。In the above embodiment, the system display interface of the centralized control system displays the verification result of the local alarm version number and the system alarm version number to prompt the engineers of the centralized control system to update the alarm information of the centralized control system, thereby realizing the synchronization of the alarm information of the centralized control system and the industrial computer.

在一些实施例中,所述信息同步方法还包括:在所述查询结果表征所述数据库中不存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统生成异常报文,并将所述异常报文发送至所述工控机;所述工控机在接收到所述异常报文的情况下,在所述工控机的设备显示界面显示所述异常报文。In some embodiments, the information synchronization method also includes: when the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, the centralized control system generates an exception message and sends the exception message to the industrial computer; when the industrial computer receives the exception message, the industrial computer displays the exception message on the device display interface of the industrial computer.

上述实施例中,集控系统在查询到没有工控机对应的报警版本号时,将查询结果反馈至工控机,以提示工控机,实现了工控机与集控系统的交互。In the above embodiment, when the centralized control system finds that there is no alarm version number corresponding to the industrial computer, it feeds back the query result to the industrial computer to prompt the industrial computer, thereby realizing the interaction between the industrial computer and the centralized control system.

在一些实施例中,所述信息同步方法还包括:所述工控机在接收到所述系统报文的情况下,对所述本地报警版本号与所述系统报警版本号进行第三版本校验,得到第三校验结果;在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述设备显示界面显示表征所述第三校验结果通过的弹窗;在所述第三校验结果表征所述本地报警版本号与所述系统报警版 本号不一致的情况下,在所述设备显示界面显示表征所述第三校验结果未通过的弹窗。In some embodiments, the information synchronization method further includes: when the industrial computer receives the system message, performing a third version check on the local alarm version number and the system alarm version number to obtain a third check result; when the third check result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third check result is passed is displayed on the device display interface; when the third check result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third check result is passed is displayed on the device display interface; If the numbers are inconsistent, a pop-up window indicating that the third verification result has failed is displayed on the device display interface.

上述实施例中,工控机的设备显示界面显示本地报警版本号与系统报警版本号的校验结果,实现了集控系统与工控机的报警信息同步。In the above embodiment, the device display interface of the industrial computer displays the verification result of the local alarm version number and the system alarm version number, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.

在一些实施例中,所述信息同步方法还包括:所述触摸屏基于针对所述触摸屏的机台显示界面的报警配置操作,确定所述工控机对应的多个报警点位和各报警点位对应的报警原因和报警类型;所述触摸屏对所述至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位;所述触摸屏基于所述报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的所述机台报警配置信息、所述本地报警配置信息和所述系统报警配置信息;所述工控机基于针对所述工控机的设备显示界面的第一数据导入操作,将所述本地报警配置信息导入所述工控机的配置文件中;所述集控系统基于针对所述集控系统的系统显示界面的第二数据导入操作,将所述系统报警配置信息导入所述集控系统的配置文件中。In some embodiments, the information synchronization method also includes: the touch screen determines the multiple alarm points corresponding to the industrial computer and the alarm cause and alarm type corresponding to each alarm point based on the alarm configuration operation for the machine display interface of the touch screen; the touch screen performs standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein, one alarm field corresponds to multiple alarm points; the touch screen generates the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template; the industrial computer imports the local alarm configuration information into the configuration file of the industrial computer based on the first data import operation for the device display interface of the industrial computer; the centralized control system imports the system alarm configuration information into the configuration file of the centralized control system based on the second data import operation for the system display interface of the centralized control system.

上述实施例中,对报警点位进行标准化,减少了数据量,提高了数据传输的通信效率;同时触摸屏、集控系统和工控机使用同一版本的报警配置表,使得触摸屏、集控系统和工控机三处的报警信息一致,提高了产线上报警信息的处理效率,也提高了产线生产的安全性。In the above embodiment, the alarm points are standardized, the amount of data is reduced, and the communication efficiency of data transmission is improved; at the same time, the touch screen, the centralized control system and the industrial computer use the same version of the alarm configuration table, so that the alarm information of the touch screen, the centralized control system and the industrial computer are consistent, which improves the processing efficiency of the alarm information on the production line and also improves the safety of the production line.

第二方面,本公开实施例提供一种信息同步系统,所述信息同步系统包括触摸屏、集控系统和工控机;其中,所述工控机,用于在电池生产线上的信息同步条件被触发的情况下,获取触摸屏当前的机台报警配置信息;所述机台报警配置信息至少包括机台报警版本号;所述工控机,还用于对所述机台报警版本号与所述工控机当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果;所述工控机,还用于在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,向所述集控系统发送包含所述本地报警配置信息的报警版本校验请求;所述集控系统,用于响应于所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,以实现所述触摸屏、所述集控系统和所述工控机之间的报警信息同步。In a second aspect, an embodiment of the present disclosure provides an information synchronization system, which includes a touch screen, a centralized control system and an industrial computer; wherein the industrial computer is used to obtain the current machine alarm configuration information of the touch screen when the information synchronization condition on the battery production line is triggered; the machine alarm configuration information at least includes a machine alarm version number; the industrial computer is also used to perform a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result; the industrial computer is also used to send an alarm version verification request containing the local alarm configuration information to the centralized control system when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the centralized control system is used to perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system in response to the alarm version verification request to obtain a second verification result, so as to realize alarm information synchronization between the touch screen, the centralized control system and the industrial computer.

上述实施例中,在信息同步条件被触发的情况下,对电池生产线上的多个显示设备中的报警信息进行同步校验,减少了工程师对触摸屏的报警信息进行更新之后,不能保证会同时更新集控系统和工控机的报警配置表,会出现触摸屏、集控系统和工控机三处的报警信息不一致,导致其他显示设备处的工程师无法解决产线上真正出现的报警的问题,提高了产线上报警信息的处理效率,也提高了产线生产的安全性。In the above embodiment, when the information synchronization condition is triggered, the alarm information in multiple display devices on the battery production line is synchronously checked, which reduces the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration table of the centralized control system and the industrial computer will be updated at the same time. As a result, the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the problem of the actual alarm on the production line, thereby improving the efficiency of processing alarm information on the production line and also improving the safety of production line production.

在一些实施例中,所述信息同步系统还包括控制器;其中,所述工控机,还用于触发所述控制器中的版本检测点位;所述控制器,用于在所述版本检测点位被触发的情况下,调用所述触摸屏的操作指令对所述工控机与所述触摸屏之间的通信通道进行检测,得到检测结果;所述工控机,还用于在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息。In some embodiments, the information synchronization system also includes a controller; wherein the industrial computer is also used to trigger the version detection point in the controller; the controller is used to call the operation instructions of the touch screen to detect the communication channel between the industrial computer and the touch screen when the version detection point is triggered, and obtain the detection result; the industrial computer is also used to obtain the current machine alarm configuration information of the touch screen based on the communication channel when the communication channel is connected normally.

在一些实施例中,所述信息同步系统还包括发布订阅服务;所述触摸屏,用于在所述工控机与所述触摸屏之间的通信通道连接正常的情况下,将包含所述机台报警配置信息的机台报文发布至所述发布订阅服务的版本检测主题中;其中,所述工控机订阅所述版本检测主题;所述工控机,还用于在所述通信通道连接正常,且所述版本检测主题中出现所述机台报文的情况下,所述工控机获取所述机台报文中的所述机台报警配置信息。In some embodiments, the information synchronization system also includes a publish-subscribe service; the touch screen is used to publish the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service when the communication channel between the industrial computer and the touch screen is connected normally; wherein the industrial computer subscribes to the version detection topic; the industrial computer is also used to obtain the machine alarm configuration information in the machine message when the communication channel is connected normally and the machine message appears in the version detection topic.

在一些实施例中,所述信息同步系统还包括:所述工控机,还用于在所述版本检测点位被触发,且在所述版本检测点位触发后第一预设时间段内所述版本检测主题中未出现所述机台报文的情况下,确定所述发布订阅服务异常,并在第二预设时间段后再次触发所述版本检测点位;所述工控机,还用于在所述版本检测点位未被触发的情况下,在第三预设时间段后再次触发所述版本检测点位。In some embodiments, the information synchronization system also includes: the industrial computer is also used to determine that the publish-subscribe service is abnormal when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, and trigger the version detection point again after a second preset time period; the industrial computer is also used to trigger the version detection point again after a third preset time period when the version detection point is not triggered.

在一些实施例中,所述信息同步系统还包括:所述工控机,还用于在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,关闭控制器中的版本检测点位;所述触摸屏,还用于在接收到所述版本检测点位关闭的信息的情况下,确定所述机台报警版本号与所述本地报警版本号一致,并显示于所述触摸屏的机台显示界面;所述触摸屏,还用于在第四预设时间段内未接收到所述版本检测点位关闭的信息的情况下,所述触摸屏确定所述机台报警版本号与所述本地报警版本号不一致,并显示于所述触摸屏的机台显示界面。In some embodiments, the information synchronization system also includes: the industrial computer is further used to close the version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the touch screen is further used to determine that the machine alarm version number is consistent with the local alarm version number when receiving information that the version detection point is closed, and display it on the machine display interface of the touch screen; the touch screen is also used to determine that the machine alarm version number is inconsistent with the local alarm version number when no information that the version detection point is closed is received within a fourth preset time period, and display it on the machine display interface of the touch screen.

在一些实施例中,所述报警版本校验请求至少包括工控机的设备资源号;所述集控系统,还用于接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息 中的系统报警版本号进行第二版本校验,得到第二校验结果,包括:所述集控系统,还用于对所述报警版本校验请求进行解析,得到所述工控机对应的设备资源号;所述集控系统,还用于基于所述设备资源号,在所述集控系统对应的数据库中查询与所述设备资源号对应的系统报警版本号,得到查询结果;其中,所述电池生产线包括多个工控机,所述数据库中包含所述电池生产线上全部工控机对应的本地报警信息,不同工控机对应的本地报警信息相同或不同;所述集控系统,还用于在所述查询结果表征所述数据库中存在与所述设备资源号对应的系统报警版本号的情况下,将包含所述系统报警版本号和所述设备资源号的系统报文发送至所述工控机,并对所述本地报警版本号与所述系统报警版本号进行第二版本校验,得到第二校验结果。In some embodiments, the alarm version verification request includes at least the device resource number of the industrial computer; the centralized control system is further used to receive the alarm version verification request, compare the local alarm version number with the current system alarm configuration information of the centralized control system, and verify the local alarm version number with the current system alarm configuration information of the centralized control system. The system alarm version number in the battery production line is subjected to a second version check to obtain a second check result, including: the centralized control system is further used to parse the alarm version check request to obtain the device resource number corresponding to the industrial computer; the centralized control system is further used to query the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number to obtain a query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different; the centralized control system is further used to send a system message containing the system alarm version number and the device resource number to the industrial computer when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, and perform a second version check on the local alarm version number and the system alarm version number to obtain a second check result.

在一些实施例中,所述信息同步系统还包括:所述集控系统,还用于在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述集控系统的系统显示界面显示表征所述第二校验结果通过的弹窗;所述集控系统,还用于在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述系统显示界面显示表征所述第二校验结果未通过的弹窗。In some embodiments, the information synchronization system also includes: the centralized control system is also used to display a pop-up window indicating that the second verification result has passed on the system display interface of the centralized control system when the second verification result indicates that the local alarm version number is consistent with the system alarm version number; the centralized control system is also used to display a pop-up window indicating that the second verification result has failed on the system display interface when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number.

在一些实施例中,所述信息同步系统还包括:所述集控系统,还用于在所述查询结果表征所述数据库中不存在与所述设备资源号对应的系统报警版本号的情况下,生成异常报文,并将所述异常报文发送至所述工控机;所述工控机,还用于在接收到所述异常报文的情况下,在所述工控机的设备显示界面显示所述异常报文。In some embodiments, the information synchronization system also includes: the centralized control system is also used to generate an exception message and send the exception message to the industrial computer when the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database; the industrial computer is also used to display the exception message on the device display interface of the industrial computer when receiving the exception message.

在一些实施例中,所述信息同步系统还包括:所述工控机,还用于在接收到所述系统报文的情况下,对所述本地报警版本号与所述系统报警版本号进行第三版本校验,得到第三校验结果;所述工控机,还用于在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述设备显示界面显示表征所述第三校验结果通过的弹窗;所述工控机,还用于在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述设备显示界面显示表征所述第三校验结果未通过的弹窗。In some embodiments, the information synchronization system also includes: the industrial computer is also used to perform a third version verification on the local alarm version number and the system alarm version number when the system message is received to obtain a third verification result; the industrial computer is also used to display a pop-up window on the device display interface indicating that the third verification result has passed when the third verification result indicates that the local alarm version number is consistent with the system alarm version number; the industrial computer is also used to display a pop-up window on the device display interface indicating that the third verification result has failed when the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number.

在一些实施例中,所述信息同步系统还包括:所述触摸屏,还用于基于针对所述触摸屏的机台显示界面的报警配置操作,确定所述工控机对应的多个报警点位和各报警点位对应的报警原因和报警类型;所述触摸屏,还用于对所述至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位;所述触摸屏,还用于基于所述报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的所述机台报警配置信息、所述本地报警配置信息和所述系统报警配置信息;所述工控机,还用于基于针对所述工控机的设备显示界面的第一数据导入操作,将所述本地报警配置信息导入所述工控机的配置文件中;所述集控系统,还用于基于针对所述集控系统的系统显示界面的第二数据导入操作,将所述系统报警配置信息导入所述集控系统的配置文件中。In some embodiments, the information synchronization system also includes: the touch screen is also used to determine the multiple alarm points corresponding to the industrial computer and the alarm cause and alarm type corresponding to each alarm point based on the alarm configuration operation of the machine display interface of the touch screen; the touch screen is also used to standardize the at least one alarm point to obtain an alarm array including at least one alarm field; wherein, one alarm field corresponds to multiple alarm points; the touch screen is also used to generate the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template; the industrial computer is also used to import the local alarm configuration information into the configuration file of the industrial computer based on the first data import operation of the device display interface of the industrial computer; the centralized control system is also used to import the system alarm configuration information into the configuration file of the centralized control system based on the second data import operation of the system display interface of the centralized control system.

上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本公开实施例提供的信息同步方法的一个可选的流程示意图一;FIG1 is a first optional flow chart of an information synchronization method according to an embodiment of the present disclosure;

图2是本公开实施例提供的信息同步方法的一个可选的流程示意图二;FIG2 is a second optional flow chart of the information synchronization method provided in an embodiment of the present disclosure;

图3是本公开实施例提供的信息同步方法的一个可选的流程示意图三;FIG3 is a third optional flow chart of the information synchronization method provided in an embodiment of the present disclosure;

图4是本公开实施例提供的信息同步系统的结构示意图;FIG4 is a schematic diagram of the structure of an information synchronization system provided by an embodiment of the present disclosure;

图5是本公开实施例提供的报警信息的结构示意图;FIG5 is a schematic diagram of the structure of alarm information provided by an embodiment of the present disclosure;

图6是本公开实施例提供的触摸屏和数采工具的闭环校验流程示意图;FIG6 is a schematic diagram of a closed-loop calibration process of a touch screen and a data acquisition tool provided in an embodiment of the present disclosure;

图7是本公开实施例提供的集控系统和数采工具闭环校验流程示意图。FIG7 is a schematic diagram of a closed-loop calibration process of a centralized control system and data acquisition tools provided by an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,所描述的实施例不应视为对本公开的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。 In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。除非另有定义,本公开实施例所使用的所有的技术和科学术语与属于本公开实施例的技术领域的技术人员通常理解的含义相同。本公开实施例所使用的术语只是为了描述本公开实施例的目的,不是旨在限制本公开。In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present disclosure have the same meaning as commonly understood by those skilled in the art to which the embodiments of the present disclosure belong. The terms used in the embodiments of the present disclosure are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

目前,从市场形势的发展来看,动力电池的应用越加广泛。动力电池不仅被应用于水力、火力、风力和太阳能电站等储能电源系统,而且还被广泛应用于电动自行车、电动摩托车、电动汽车等电动交通工具,以及军事装备和航空航天等多个领域。随着动力电池应用领域的不断扩大,其市场的需求量也在不断地扩增。Currently, market developments indicate that power batteries are becoming increasingly widely used. They are not only used in energy storage systems such as hydropower, thermal, wind, and solar power plants, but are also widely used in electric vehicles like electric bicycles, electric motorcycles, and electric vehicles, as well as in military equipment and aerospace. As power battery applications continue to expand, market demand is also growing.

本公开人注意到,在电池制造工序中,为了确保电池生产线能够顺利生产出合格的电池产品,在产线上设置了多个报警点位,每个报警点位对应一个报警序号,当某一报警点位被触发时,生产线上的各显示单元显示被触发的报警点位的报警序号,以提醒生产线上的工程师对报警点位处进行处理。The present inventors noticed that in the battery manufacturing process, in order to ensure that the battery production line can smoothly produce qualified battery products, multiple alarm points are set on the production line. Each alarm point corresponds to an alarm serial number. When a certain alarm point is triggered, each display unit on the production line displays the alarm serial number of the triggered alarm point to remind the engineers on the production line to deal with the alarm point.

但是,相关技术中的报警配置是由电气工程师根据可编程逻辑控制器(PLC,Programmable Logic Controller)程序的报警点位和现场机台上触摸屏内的报文,配置一张报警信息表,然后由工程师导入集控系统中,经过集控系统解析后,可以导出一份可扩展标记语言(XML,eXtensible Markup Language)文件或表格(excel)文件,并由工程师手动拷贝内容到工控机的配置文件中。相关技术中的报警信息配置表是根据生产线中的实际报警点位在触摸屏进行配置的,如果电气工程师直接更新触摸屏内的报警信息,不能保证会同时更新集控系统和工控机的报警配置表,会出现触摸屏、集控系统和工控机三处的报警信息不一致的问题,导致工程师无法确定和解决产线上真正出现的问题,使得电池生产出错。However, the alarm configuration in the related art is that the electrical engineer configures an alarm information table based on the alarm points of the programmable logic controller (PLC) program and the message on the touch screen of the on-site machine. The alarm information table is then imported into the centralized control system by the engineer. After being parsed by the centralized control system, an extensible markup language (XML) file or spreadsheet (Excel) file can be exported, and the engineer manually copies the content to the configuration file of the industrial computer. The alarm information configuration table in the related art is configured on the touch screen according to the actual alarm points in the production line. If the electrical engineer directly updates the alarm information on the touch screen, there is no guarantee that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time. The alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, which will make it impossible for engineers to determine and solve the real problems on the production line, resulting in errors in battery production.

为了解决相关技术中产线各处的报警信息不一致的问题,申请人研究发现,可以在一些预先设置的触发条件下,工控机获取触摸屏的报警信息,与导入的报警信息或者工控机本地的报警信息进行一致性校验,在一致性校验通过的情况下,工控机获取集控系统的报警信息并进行一致性校验,从而实现触摸屏、集控系统和工控机三处的报警信息的同步校验,解决了生产线各处的报警信息不一致的问题。In order to solve the problem of inconsistent alarm information at various locations on the production line in related technologies, the applicant has discovered that under some pre-set trigger conditions, the industrial computer can obtain the alarm information of the touch screen and perform a consistency check with the imported alarm information or the local alarm information of the industrial computer. If the consistency check passes, the industrial computer obtains the alarm information of the centralized control system and performs a consistency check, thereby realizing the synchronous verification of the alarm information of the touch screen, the centralized control system and the industrial computer, solving the problem of inconsistent alarm information at various locations on the production line.

基于上述发明构思,本公开实施例提供一种信息同步方法,信息同步方法应用于电池生产线的信息同步系统,信息同步系统至少包括配置在电池生产线总服务器上的集控系统和各工艺段上的现场机台里的触摸屏和工控机,触摸屏可以是现场机台上的人机显示模组(HMI,Human Machine Interface),工控机可以是位于现场机台中的上位机,工控机中安装有数据采集软件,用于从控制器中采集工控机对应的生产设备的运行数据。每个现场机台的工控机对应电池生产线上的至少一个生产设备,生产设备可以是指生产线上的机械手、电芯卷绕机、极柱焊接设备、电池组装设备和产品运输车(AGV,Automated Guided Vehicle)等设备。Based on the above-mentioned inventive concept, an embodiment of the present disclosure provides an information synchronization method, which is applied to the information synchronization system of a battery production line. The information synchronization system includes at least a centralized control system configured on the main server of the battery production line and a touch screen and an industrial computer in the on-site machine on each process section. The touch screen can be a human-machine interface (HMI) on the on-site machine, and the industrial computer can be a host computer located in the on-site machine. The industrial computer is installed with data acquisition software for collecting operating data of the production equipment corresponding to the industrial computer from the controller. The industrial computer of each on-site machine corresponds to at least one production equipment on the battery production line. The production equipment can refer to equipment such as robots, cell winding machines, pole welding equipment, battery assembly equipment, and product transport vehicles (AGV, Automated Guided Vehicle) on the production line.

响应于电池生产线上的信息同步条件被触发,工控机获取触摸屏当前的包括机台报警版本号的机台报警配置信息,工控机对机台报警版本号与工控机当前的本地报警配置信息中的本地报警版本号进行校验,在机台报警版本号与本地报警版本号一致的情况下,工控机向集控系统发送包含本地报警配置信息的报警版本校验请求,集控系统对本地报警版本号与集控系统当前的系统报警配置信息中的系统报警版本号进行校验,基于校验结果更新集控系统的系统显示界面,以实现了电池生产线上触摸屏、集控系统和工控机等多个显示设备之间的报警信息同步。In response to the information synchronization condition on the battery production line being triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen including the machine alarm version number, and the industrial computer verifies the machine alarm version number with the local alarm version number in the current local alarm configuration information of the industrial computer. When the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request containing the local alarm configuration information to the centralized control system. The centralized control system verifies the local alarm version number with the system alarm version number in the current system alarm configuration information of the centralized control system, and updates the system display interface of the centralized control system based on the verification result, thereby realizing the synchronization of alarm information between multiple display devices such as the touch screen, centralized control system and industrial computer on the battery production line.

这样,本公开实施例在信息同步条件被触发的情况下,对电池生产线上的多个显示设备中的报警信息进行同步校验,减少了工程师对触摸屏的报警信息进行更新之后,不能保证会同时更新集控系统和工控机的报警配置表,会出现触摸屏、集控系统和工控机三处的报警信息不一致,导致其他显示设备处的工程师无法解决产线上真正出现的报警的问题,使得生产线上各处的工程师都能及时了解产线上出现的报警问题,提高了产线上报警信息的处理效率,提高了产线生产的安全性。In this way, when the information synchronization condition is triggered, the embodiment of the present disclosure synchronously verifies the alarm information in multiple display devices on the battery production line, reducing the situation where after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration table of the centralized control system and the industrial computer will be updated at the same time. As a result, the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problem on the production line. This allows engineers at various locations on the production line to understand the alarm problems on the production line in a timely manner, improves the processing efficiency of alarm information on the production line, and improves the safety of production on the production line.

本公开实施例公开的电池生产线生产的电池包可以但不限用于车辆、船舶或飞行器等用电装置中。可以使用具备本公开公开的电池包、电池等组成该用电装置的电源系统,这样,有利于缓解并自动调节电芯膨胀力恶化,补充电解液消耗,提升电池性能的稳定性和电池寿命。The battery packs produced by the battery production line disclosed in the embodiments of the present disclosure can be used, but are not limited to, in electrical devices such as vehicles, ships, or aircraft. A power supply system comprising the battery packs and batteries disclosed herein can be used to alleviate and automatically regulate deterioration in cell expansion, replenish electrolyte consumption, and improve battery performance stability and battery life.

本公开实施例公开的电池生产线生产的电池包可以作为电源的用电装置,用电装置可以为但不限于手机、平板、笔记本电脑、电动玩具、电动工具、电瓶车、电动汽车、轮船、航天器等等。其中,电动玩具可以包括固定式或移动式的电动玩具,例如,游戏机、电动汽车玩具、电动轮船玩具和电动飞机玩具等等,航天器可以包括飞机、火箭、航天飞机和宇宙飞船等等。 The battery packs produced by the battery production line disclosed in the embodiments of the present disclosure can be used as power sources for electrical devices, which may include, but are not limited to, mobile phones, tablets, laptops, electric toys, power tools, electric vehicles, electric cars, ships, spacecraft, and the like. Electric toys may include fixed or mobile electric toys, such as game consoles, electric car toys, electric ship toys, and electric airplane toys, and spacecraft may include airplanes, rockets, space shuttles, and spacecraft, among others.

本公开实施例中,电池生产线生产的电池包可以由多个电池串并联形成,其中,电池可以是电池单体。电池单体是指能够实现化学能和电能相互转换的基本单元,可以用于制作电池模组或电池包,从而用于向用电装置供电。电池单体可以为二次电池,二次电池是指在电池单体放电后可通过充电的方式使活性材料激活而继续使用的电池单体。电池单体可以为锂离子电池、钠离子电池、钠锂离子电池、锂金属电池、钠金属电池、锂硫电池、镁离子电池、镍氢电池、镍镉电池、铅蓄电池等,本公开实施例对此并不限定。In the embodiments of the present disclosure, the battery pack produced by the battery production line may be formed by a plurality of batteries connected in series and in parallel, wherein the battery may be a battery cell. A battery cell refers to a basic unit that can realize the mutual conversion of chemical energy and electrical energy, and can be used to make a battery module or a battery pack, thereby being used to supply power to an electrical device. The battery cell may be a secondary battery, which refers to a battery cell that can be continuously used by activating the active material by charging after the battery cell is discharged. The battery cell may be a lithium-ion battery, a sodium-ion battery, a sodium-lithium-ion battery, a lithium metal battery, a sodium metal battery, a lithium-sulfur battery, a magnesium-ion battery, a nickel-hydrogen battery, a nickel-cadmium battery, a lead-acid battery, etc., and the embodiments of the present disclosure are not limited thereto.

在一些实施例中,电池包中包含多个电芯,多个电芯之间可串联或并联或混联,混联是指多个电芯中既有串联又有并联。通过电芯的电芯极柱与汇流组件焊接实现多个电芯之间的串联或并联或混联。其中,每个电芯可以为二次电池或一次电池;还可以是锂硫电池、钠离子电池或镁离子电池,但不局限于此。电芯可呈圆柱体、扁平体、长方体或其它形状等。In some embodiments, a battery pack includes multiple cells, which can be connected in series, in parallel, or in a hybrid configuration. A hybrid configuration refers to a combination of series and parallel connections. The series, parallel, or hybrid configuration of the cells is achieved by welding the cell terminals to a busbar assembly. Each cell can be a secondary battery or a primary battery; it can also be a lithium-sulfur battery, a sodium-ion battery, or a magnesium-ion battery, but is not limited thereto. The cells can be cylindrical, flat, rectangular, or have other shapes.

在本公开实施例中,信息同步方法不仅可以应用于电池生产线,还可以应用于任一种生产线,例如,汽车生产线或钢铁制造生产线,本公开实施例对信息同步方法的具体应用场景不做限制。In the embodiments of the present disclosure, the information synchronization method can be applied not only to battery production lines, but also to any production line, such as an automobile production line or a steel manufacturing production line. The embodiments of the present disclosure do not limit the specific application scenarios of the information synchronization method.

接下来基于信息同步方法应用于电池生产线为例进行说明。在一个电池生产线上具有一个集控系统,集控系统可以布置在电池生产线的总服务器上。该电池生产线包含多个工艺段,例如,极片卷绕、电芯成组、电池包寻址和电池焊接等工艺段,每个工艺段通过多个生产设备来执行该工艺段上的多种工艺操作,例如焊接工艺中除了焊接机器人,还有移动电池包的生产设备,还有移动电池包的生产设备、电芯卷绕的设备、电池组装设备和焊接时放置汇流片的生产设备。每个工艺段配置有包含工控机和HMI的现场机台,工控机通过控制器(即PLC)来采集生产设备的运行数据,现场的工程师可以基于HMI根据生产现场的情况进行报警信息的设置,并将报警信息导入工控机和集控系统。Next, we will explain the application of the information synchronization method to the battery production line as an example. There is a centralized control system on a battery production line, and the centralized control system can be deployed on the main server of the battery production line. The battery production line includes multiple process sections, such as pole piece winding, cell grouping, battery pack addressing and battery welding. Each process section uses multiple production equipment to perform multiple process operations on the process section. For example, in addition to the welding robot, there are also production equipment for mobile battery packs, production equipment for mobile battery packs, equipment for cell winding, battery assembly equipment, and production equipment for placing busbars during welding. Each process section is equipped with an on-site machine including an industrial computer and an HMI. The industrial computer collects the operating data of the production equipment through the controller (ie, PLC). The on-site engineer can set the alarm information based on the situation of the production site based on the HMI, and import the alarm information into the industrial computer and the centralized control system.

图1是本公开实施例提供的信息同步方法的一个可选的流程示意图一,如图1所示,本公开实施例提供的信息同步方法可以通过步骤S101至步骤S104实现:FIG1 is a first optional flow chart of an information synchronization method provided by an embodiment of the present disclosure. As shown in FIG1 , the information synchronization method provided by an embodiment of the present disclosure can be implemented through steps S101 to S104:

步骤S101、在电池生产线上的信息同步条件被触发的情况下,工控机获取触摸屏当前的机台报警配置信息;所述机台报警配置信息至少包括机台报警版本号。Step S101: When an information synchronization condition on a battery production line is triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen; the machine alarm configuration information at least includes a machine alarm version number.

在本公开实施例中,信息同步条件可以是指工控机导入HMI配置的报警配置文件、工程师点击工控机界面上的报警版本校验组件或产线上的班次切换等条件。其中,工控机导入报警配置文件可以是指工程师在机台的触摸屏生成报警配置文件之后,工程师手动将报警配置文件导入至工控机,此时工控机基于导入的报警配置文件与触摸屏的报警配置文件进行对比,确认导入的报警配置文件是否与触摸屏当前的报警配置文件相同。In the disclosed embodiments, information synchronization conditions may include conditions such as the industrial computer importing an alarm configuration file configured in the HMI, an engineer clicking the alarm version verification component on the industrial computer interface, or a shift change on the production line. Importing an alarm configuration file to the industrial computer may mean that an engineer generates an alarm configuration file on the machine's touch screen and then manually imports the alarm configuration file to the industrial computer. The industrial computer then compares the imported alarm configuration file with the alarm configuration file on the touch screen to confirm whether the imported alarm configuration file is the same as the current alarm configuration file on the touch screen.

在一些实施例中,工控机的设备显示界面上有报警版本校验组件,工程师点击之后,工控机会对工控机当前的报警配置文件与工控机的报警配置文件进行对比,确认工控机当前的报警配置文件是否与触摸屏当前的报警配置文件相同。In some embodiments, there is an alarm version verification component on the device display interface of the industrial computer. After the engineer clicks it, the industrial computer will compare the current alarm configuration file of the industrial computer with the alarm configuration file of the industrial computer to confirm whether the current alarm configuration file of the industrial computer is the same as the current alarm configuration file of the touch screen.

在一些实施例中,电池生产线可以是12小时换班一次,每换班一次需要进行校验一次。In some embodiments, the battery production line may have a 12-hour shift, and calibration is required after each shift.

在一些实施例中,现场的工程师可以基于触摸屏根据生产现场的情况进行报警信息的设置和更新,每修改一次,机台报警配置信息的机台报警版本号会改变,因此,工控机进行与触摸屏之间的闭环校验时,可以对报警版本号进行对比,报警版本号不同则说明报警信息不同。例如,工程师根据实际现场的需求在触摸屏上定义了500个报警点,形成报警版本号为V1的报警信息,并将报警版本号为V1的报警信息导入至工控机和集控系统。但是,在现场情况发生变更,基于触摸屏在报警版本号为V1的报警信息加了一个报警点,形成报警版本号为V2的报警信息,新加之后的报警版本号为V2的报警信息与报警版本号为V1的报警信息不是同一个版本,导致触摸屏的机台报警信息与工控机和集控系统的报警信息不同。In some embodiments, on-site engineers can set and update alarm information based on the situation at the production site based on the touch screen. Each time the alarm configuration information is modified, the machine alarm version number will change. Therefore, when the industrial computer performs a closed-loop calibration with the touch screen, the alarm version numbers can be compared. Different alarm version numbers indicate different alarm information. For example, an engineer defines 500 alarm points on the touch screen based on the actual site needs, forming alarm information with an alarm version number of V1, and imports the alarm information with an alarm version number of V1 into the industrial computer and the centralized control system. However, when the situation at the site changes, an alarm point is added to the alarm information with an alarm version number of V1 based on the touch screen, forming an alarm information with an alarm version number of V2. The newly added alarm information with an alarm version number of V2 is not the same version as the alarm information with an alarm version number of V1, resulting in the machine alarm information on the touch screen being different from the alarm information on the industrial computer and the centralized control system.

在一些实施例中,机台报警配置信息还可以包括每个报警点的识别号(ID,Identity document),每个报警点的类型、文字说明和严重等级等信息。当某个报警点被触发后,例如,生产线上的安全门被打开,此时,触摸屏、工控机和集控系统的显示界面会提示该报警点被触发,并显示该报警点的详细信息,以提示对应的处理工程师对该报警进行处理。In some embodiments, the machine alarm configuration information may also include an identification number (ID) for each alarm point, as well as information such as the alarm type, text description, and severity level. When an alarm point is triggered, for example, a safety door on a production line is opened, the touch screen, industrial computer, and centralized control system display interface will indicate that the alarm point has been triggered and display detailed information about the alarm point, prompting the corresponding processing engineer to handle the alarm.

步骤S102、所述工控机对所述机台报警版本号与所述工控机当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果。Step S102: The industrial computer performs a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result.

在一些实施例中,工控机可以是在工程师导入报警配置文件的时候进行第一版本校验,以确定导入的报警配置文件是否与触摸屏当前的机台报警信息为同一版本;也可以是在生产线班次切换和工程师点击设备显示界面上的报警版本校验组件时,工控机对设备当前的使用的本地报警配置信息中的本地报警版本号与机台报警版本号进行校验,判断是否是同一版本。 In some embodiments, the industrial computer can perform a first version check when the engineer imports the alarm configuration file to determine whether the imported alarm configuration file is the same version as the current machine alarm information on the touch screen; or when the production line shift switches and the engineer clicks the alarm version verification component on the device display interface, the industrial computer can verify the local alarm version number and the machine alarm version number in the local alarm configuration information currently used by the device to determine whether they are the same version.

在一些实施例中,第一版本校验可以是对机台报警版本号与本地报警版本号进行对比,还可以是基于触摸屏的机台报警配置信息和工控机的本地报警配置信息进行对比,对比每一个ID对应的报警信息是否相同。第一校验结果包括一致和不一致两种结果。In some embodiments, the first version check can be performed by comparing the machine alarm version number with the local alarm version number, or by comparing the machine alarm configuration information on the touch screen with the local alarm configuration information on the industrial computer to see whether the alarm information corresponding to each ID is the same. The first check result can include either a consistent or inconsistent result.

步骤S103、在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机向集控系统发送包含所述本地报警配置信息的报警版本校验请求。Step S103: When the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request including the local alarm configuration information to the centralized control system.

在一些实施例中,在触摸屏的机台报警版本号与工控机的本地报警版本号一致,即触摸屏的机台报警配置信息与工控机的本地报警配置信息一致的情况下,向集控系统发送报警版本校验请求,以请求集控系统对工控机与集控系统的报警信息进行校验,以实现触摸屏、工控机和集控系统之间的闭环校验。In some embodiments, when the machine alarm version number of the touch screen is consistent with the local alarm version number of the industrial computer, that is, the machine alarm configuration information of the touch screen is consistent with the local alarm configuration information of the industrial computer, an alarm version verification request is sent to the centralized control system to request the centralized control system to verify the alarm information of the industrial computer and the centralized control system, so as to realize closed-loop verification between the touch screen, the industrial computer and the centralized control system.

在一些实施例中,工控机向集控系统发送请求可以通过Post请求实现,Post请求是超文本传输协议(HTTP,Hyper Text Transfer Protocol)协议中的一种请求方法,在Post请求中,数据可以被包含在请求体中,即本公开工控机向集控系统发送报警版本校验请求时,将工控机的本地报警配置信息封装在请求中发送给集控系统,以使得集控系统基于本地报警配置信息进行校验。In some embodiments, the industrial computer can send a request to the centralized control system through a Post request. The Post request is a request method in the Hyper Text Transfer Protocol (HTTP). In the Post request, data can be included in the request body. That is, when the industrial computer of the present invention sends an alarm version verification request to the centralized control system, the local alarm configuration information of the industrial computer is encapsulated in the request and sent to the centralized control system, so that the centralized control system performs verification based on the local alarm configuration information.

在一些实施例中,响应于第一校验结果表征机台报警版本号与本地报警版本号不一致,说明工控机当前的报警信息与触摸屏的报警信息不同,此时需要弹窗提示,以提示现场工程师重新导入触摸屏最新版本的报警信息。In some embodiments, in response to the first verification result indicating that the machine alarm version number is inconsistent with the local alarm version number, it means that the current alarm information of the industrial computer is different from the alarm information of the touch screen. At this time, a pop-up window prompt is required to prompt the on-site engineer to re-import the latest version of the alarm information of the touch screen.

步骤S104、所述集控系统接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,以实现所述触摸屏、所述集控系统和所述工控机之间的报警信息同步。Step S104: The centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result to achieve alarm information synchronization between the touch screen, the centralized control system and the industrial computer.

在一些实施例中,集控系统响应于报警版本校验请求,获取工控机的本地报警配置信息和本地报警版本号,与集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,确定集控系统的报警信息与工控机的报警信息是否一致。In some embodiments, the centralized control system responds to the alarm version verification request, obtains the local alarm configuration information and local alarm version number of the industrial computer, performs a second version verification with the system alarm version number in the current system alarm configuration information of the centralized control system, and determines whether the alarm information of the centralized control system is consistent with the alarm information of the industrial computer.

在一些实施例中,第二版本校验可以是对系统报警版本号与本地报警版本号进行对比,还可以是基于集控系统的系统报警配置信息和工控机的本地报警配置信息进行对比,对比每一个ID对应的报警信息是否相同。第二校验结果包括一致和不一致两种结果。In some embodiments, the second version check can be performed by comparing the system alarm version number with the local alarm version number, or by comparing the system alarm configuration information of the centralized control system with the local alarm configuration information of the industrial computer to see whether the alarm information corresponding to each ID is the same. The second check result can be either consistent or inconsistent.

在一些实施例中,集控系统在确定集控系统的报警信息与工控机的报警信息一致时,弹窗提示校验通过;在确定集控系统的报警信息与工控机的报警信息不一致时,弹窗提示与工控机的报警信息不同。In some embodiments, when the centralized control system determines that the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, a pop-up window prompts that the verification has passed; when it determines that the alarm information of the centralized control system is inconsistent with the alarm information of the industrial computer, a pop-up window prompts that the alarm information is different from the alarm information of the industrial computer.

这里,由于工控机是在与触摸屏的报警信息一致的情况下,发起集控系统的报警信息校验,因此,在集控系统的报警信息与工控机的报警信息一致时能够说明触摸屏、集控系统和工控机之间的报警信息一致,实现了触摸屏、集控系统和工控机之间的报警信息同步。Here, since the industrial computer initiates the alarm information verification of the centralized control system when the alarm information is consistent with the alarm information of the touch screen, when the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, it can be said that the alarm information between the touch screen, the centralized control system and the industrial computer is consistent, thereby realizing the synchronization of alarm information between the touch screen, the centralized control system and the industrial computer.

本公开实施例在信息同步条件被触发的情况下,对电池生产线上的多个显示设备中的报警信息进行同步校验,减少了工程师对触摸屏的报警信息进行更新之后,不能保证会同时更新集控系统和工控机的报警配置表,会出现触摸屏、集控系统和工控机三处的报警信息不一致,导致其他显示设备处的工程师无法解决产线上真正出现的报警的问题,使得生产线上各处的工程师都能及时了解产线上出现的报警问题,提高了产线上报警信息的处理效率,也提高了产线生产的安全性。In the embodiment of the present disclosure, when the information synchronization condition is triggered, the alarm information in multiple display devices on the battery production line is synchronously checked, thereby reducing the situation where, after the engineer updates the alarm information of the touch screen, it cannot be guaranteed that the alarm configuration tables of the centralized control system and the industrial computer will be updated at the same time. As a result, the alarm information of the touch screen, the centralized control system and the industrial computer will be inconsistent, resulting in engineers at other display devices being unable to solve the actual alarm problems on the production line. This allows engineers at various locations on the production line to promptly understand the alarm problems on the production line, thereby improving the efficiency of processing alarm information on the production line and also improving the safety of production line production.

在一些实施例中,工控机与触摸屏之间可以通过消息队列遥测传输(MQTT,Message Queuing Telemetry Transport)协议进行通讯,通过MQTT服务进行工控机与触摸屏之间的通信,可以避免工控机与触摸屏直接通信时,因网络波动等原因造成数据丢失的问题。因此,步骤S101中工控机获取触摸屏当前的机台报警配置信息可以通过步骤S01至步骤S03实现:In some embodiments, the industrial computer and the touch screen can communicate via the Message Queuing Telemetry Transport (MQTT) protocol. Using the MQTT service to communicate between the industrial computer and the touch screen can avoid data loss due to network fluctuations and other issues when the industrial computer and the touch screen communicate directly. Therefore, in step S101, the industrial computer can obtain the current machine alarm configuration information of the touch screen through steps S01 to S03:

步骤S01、所述工控机触发控制器中的版本检测点位。Step S01: The industrial computer triggers a version detection point in the controller.

在一些实施例中,信息同步系统还包括控制器,控制器可以是指可编程逻辑控制器(PLC)、单片机、中位机以及上位机中的任意一种,工控机通过触发PLC中的版本检测点位,来确定工控机与触摸屏之间的MQTT服务是否正常,并在MQTT服务正常的情况下,触摸屏将机台报警配置信息发送至工控机。In some embodiments, the information synchronization system also includes a controller, which can refer to any one of a programmable logic controller (PLC), a single-chip microcomputer, an intermediate computer, and a host computer. The industrial computer determines whether the MQTT service between the industrial computer and the touch screen is normal by triggering the version detection point in the PLC. When the MQTT service is normal, the touch screen sends the machine alarm configuration information to the industrial computer.

在一些实施例中,控制器中的版本检测点位可以是PLC中的布尔点,例如VersionCheckSysn点,触发控制器中的版本检测点位可以是指,将PLC中的VersionCheckSysn点置为true,以触发控制器中的版本检测点位。In some embodiments, the version check point in the controller can be a Boolean point in the PLC, such as the VersionCheckSysn point. Triggering the version check point in the controller can mean setting the VersionCheckSysn point in the PLC to true to trigger the version check point in the controller.

步骤S02、所述控制器在所述版本检测点位被触发的情况下,调用所述触摸屏的操作指令对所述工控机与所述触摸屏之间的通信通道进行检测,得到检测结果。Step S02: When the version detection point is triggered, the controller calls the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain a detection result.

在本公开实施例中,触摸屏的操作指令可以是指触摸屏的宏指令,宏指令是预定义的命令或函 数,可以通过宏指令来执行操作,这里,在版本检测点位被触发的情况下,控制器可以调用触摸屏的宏指令检测工控机与触摸屏之间的通信通道(即MQTT服务)是否连接正常,检测结果包括连接正常和异常两种。In the embodiment of the present disclosure, the operation instruction of the touch screen may refer to the macro instruction of the touch screen. The macro instruction is a predefined command or function. Here, when the version detection point is triggered, the controller can call the touch screen's macro instructions to detect whether the communication channel (i.e., MQTT service) between the industrial computer and the touch screen is connected normally. The detection results include normal connection and abnormal connection.

步骤S03、所述工控机在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息。Step S03: When the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel.

在一些实施例中,在通信通道连接正常的情况下,触摸屏将当前的机台报警配置信息发送给工控机。In some embodiments, when the communication channel connection is normal, the touch screen sends the current machine alarm configuration information to the industrial computer.

在一些实施例中,信息同步系统还包括发布订阅服务,工控机订阅所述发布订阅服务。这里,发布订阅服务基于MQTT实现,发布订阅服务中具有多个主题,触摸屏将当前的机台报警配置信息上传至发布订阅服务的主题中,工控机订阅该主题以获取触摸屏当前的机台报警配置信息。In some embodiments, the information synchronization system further includes a publish-subscribe service, to which the industrial computer subscribes. The publish-subscribe service is implemented based on MQTT and includes multiple topics. The touch screen uploads the current machine alarm configuration information to a topic in the publish-subscribe service, and the industrial computer subscribes to the topic to obtain the current machine alarm configuration information from the touch screen.

因此,本公开实施例提供的信息同步方法还可以包括:所述触摸屏在所述通信通道连接正常的情况下,将包含所述机台报警配置信息的机台报文发布至所述发布订阅服务的版本检测主题中。Therefore, the information synchronization method provided by the embodiment of the present disclosure may further include: when the communication channel is connected normally, the touch screen publishes the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service.

在一些实施例中,工控机订阅版本检测主题,以基于MQTT服务获取版本检测主题中的数据。In some embodiments, the industrial computer subscribes to the version detection topic to obtain data in the version detection topic based on the MQTT service.

在一些实施例中,机台报文可以如下所示:
In some embodiments, the machine message may be as follows:

其中,Trigger_time和ts对应的是触摸屏发送机台报文的时间,message就是当前触摸屏里的机台报警版本号。Among them, Trigger_time and ts correspond to the time when the touch screen sends the machine message, and message is the machine alarm version number in the current touch screen.

对应地,步骤S03可以通过以下步骤实现:所述工控机在所述通信通道连接正常,且所述版本检测主题中出现所述机台报文的情况下,所述工控机获取所述机台报文中的所述机台报警配置信息。Correspondingly, step S03 can be implemented by the following steps: when the communication channel is connected normally and the machine message appears in the version detection topic, the industrial computer obtains the machine alarm configuration information in the machine message.

在一些实施例中,工控机订阅了版本检测主题,当发布订阅服务出现机台报文,工控机获取所述机台报文中的机台报警配置信息,用于比对触摸屏上传的机台报警版本号和工控机的本地报警版本号是否一致,一致则复位版本检测点位,不一致就不复位版本检测点位。In some embodiments, the industrial computer subscribes to a version detection topic. When a machine message appears in the publish-subscribe service, the industrial computer obtains the machine alarm configuration information in the machine message to compare whether the machine alarm version number uploaded by the touch screen is consistent with the local alarm version number of the industrial computer. If they are consistent, the version detection point is reset; if they are inconsistent, the version detection point is not reset.

本公开实施例中,工控机和触摸屏之间通过MQTT服务实现数据交互,可以避免工控机与触摸屏直接通信时,因网络波动等原因造成数据丢失的问题,提高了交互效率和交互数据的准确性。In the disclosed embodiment, data interaction is achieved between the industrial computer and the touch screen through the MQTT service, which can avoid the problem of data loss caused by network fluctuations and other reasons when the industrial computer and the touch screen communicate directly, thereby improving the interaction efficiency and the accuracy of the interaction data.

在一些实施例中,本公开实施例提供的信息同步方法还包括步骤S04和步骤S05:In some embodiments, the information synchronization method provided by the embodiments of the present disclosure further includes steps S04 and S05:

步骤S04、所述工控机在所述版本检测点位被触发,且在所述版本检测点位触发后第一预设时间段内所述版本检测主题中未出现所述机台报文的情况下,确定所述发布订阅服务异常,并在第二预设时间段后再次触发所述版本检测点位。Step S04: When the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, the industrial computer determines that the publish-subscribe service is abnormal, and triggers the version detection point again after a second preset time period.

在一些实施例中,第一预设时间段可以是15秒(s),第二预设时间段可以是10分钟,在版本检测点位被触发的情况下,如果15s内发布订阅服务的版本检测主题中没有出现机台报文,说明发布订阅服务的连接异常,工控机可以在10分钟后再次触发版本检测点位,再次执行前述步骤。In some embodiments, the first preset time period can be 15 seconds (s), and the second preset time period can be 10 minutes. When the version detection point is triggered, if no machine message appears in the version detection topic of the publish-subscribe service within 15 seconds, it means that the connection of the publish-subscribe service is abnormal. The industrial computer can trigger the version detection point again after 10 minutes and execute the above steps again.

步骤S05、所述工控机在所述版本检测点位未被触发的情况下,在第三预设时间段后再次触发所述版本检测点位。Step S05: If the version detection point is not triggered, the industrial computer triggers the version detection point again after a third preset time period.

在一些实施例中,如果工控机与PLC未连接、PLC中没有版本检测点位、PLC中的版本检测点位未公开,或者PLC中的版本检测点位只能读不能写时,版本检测点位不会被触发,此时工控机可以在15s之后再次触发版本检测点位。In some embodiments, if the industrial computer is not connected to the PLC, there is no version detection point in the PLC, the version detection point in the PLC is not public, or the version detection point in the PLC can only be read but not written, the version detection point will not be triggered. At this time, the industrial computer can trigger the version detection point again after 15 seconds.

本公开实施例针对版本检测点位未被触发和发布订阅服务连接异常的问题,设置了解决方案,通过再次触发版本检测点位实现工控机与触摸屏之间的有效校验。The embodiment of the present disclosure provides a solution to the problem that the version detection point is not triggered and the publish-subscribe service connection is abnormal. By triggering the version detection point again, effective verification between the industrial computer and the touch screen is achieved.

在一些实施例中,在工控机中的报警版本号与触摸屏的报警版本号一致的情况下,弹窗提示报警版本校验通过,并关闭PLC中的触发点位。因此,本公开实施例提供的信息同步方法还可以包括步骤S06至步骤S08:In some embodiments, when the alarm version number in the industrial computer is consistent with the alarm version number on the touch screen, a pop-up window will be displayed to indicate that the alarm version verification has passed, and the trigger point in the PLC will be closed. Therefore, the information synchronization method provided in the embodiment of the present disclosure may also include steps S06 to S08:

步骤S06、在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机关闭控制器中的版本检测点位。Step S06: When the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer turns off the version detection point in the controller.

在一些实施例中,在工控机中的报警版本号与触摸屏的报警版本号一致的情况下,在信息同步 条件再次被触发之前,不会再对工控机中的报警版本号与触摸屏的报警版本号进行对比,此时,可以关闭PLC中的版本检测点位,即将版本检测点位置为False。In some embodiments, when the alarm version number in the industrial computer is consistent with the alarm version number of the touch screen, Before the condition is triggered again, the alarm version number in the industrial computer will not be compared with the alarm version number of the touch screen. At this time, the version detection point in the PLC can be turned off, that is, the version detection point position is set to False.

步骤S07、所述触摸屏在接收到所述版本检测点位关闭的信息的情况下,确定所述机台报警版本号与所述本地报警版本号一致,并显示于所述触摸屏的机台显示界面。Step S07: Upon receiving the information indicating that the version detection point is closed, the touch screen determines that the machine alarm version number is consistent with the local alarm version number, and displays the result on the machine display interface of the touch screen.

在一些实施例中,在工控机关闭PLC中的版本检测点位之后,触摸屏接收到版本检测点位关闭的信息,则触摸屏确认工控机中的报警版本号与触摸屏的报警版本号一致,可以将一致的结果通过弹窗提示在触摸屏的机台显示界面上。In some embodiments, after the industrial computer turns off the version detection point in the PLC, the touch screen receives the information that the version detection point is turned off, and the touch screen confirms that the alarm version number in the industrial computer is consistent with the alarm version number of the touch screen, and the consistent result can be prompted on the machine display interface of the touch screen through a pop-up window.

步骤S08、所述触摸屏在第四预设时间段内未接收到所述版本检测点位关闭的信息的情况下,所述触摸屏确定所述机台报警版本号与所述本地报警版本号不一致,并显示于所述触摸屏的机台显示界面。Step S08: If the touch screen does not receive the information indicating that the version detection point is closed within a fourth preset time period, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number and displays it on the machine display interface of the touch screen.

在一些实施例中,第四预设时间段可以是5s,触摸屏在5s内未接收到版本检测点位关闭的信息,触摸屏确定机台报警版本号与本地报警版本号不一致,可以将不一致的结果通过弹窗提示显示于触摸屏的机台显示界面。In some embodiments, the fourth preset time period can be 5s. If the touch screen does not receive the information that the version detection point is closed within 5s, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number, and the inconsistent result can be displayed on the machine display interface of the touch screen through a pop-up prompt.

在本公开实施例中,在工控机确定出与触摸屏的报警信息一致或不一致时,将结果反馈至触摸屏,实现了校验信息同步。In the embodiment of the present disclosure, when the industrial computer determines whether the alarm information is consistent or inconsistent with the alarm information of the touch screen, the result is fed back to the touch screen, thereby achieving synchronization of verification information.

在一些实施例中,报警版本校验请求至少包括工控机的设备资源号,图2是本公开实施例提供的信息同步方法的一个可选的流程示意图二,如图2所示,上述实施例中的步骤S104可以通过步骤S201至步骤S203实现:In some embodiments, the alarm version verification request includes at least the device resource number of the industrial computer. FIG2 is a second optional flow chart of the information synchronization method provided in an embodiment of the present disclosure. As shown in FIG2 , step S104 in the above embodiment can be implemented through steps S201 to S203:

步骤S201、所述集控系统对所述报警版本校验请求进行解析,得到所述工控机对应的设备资源号。Step S201: The centralized control system parses the alarm version verification request to obtain the device resource number corresponding to the industrial computer.

在一些实施例中,集控系统对工控机发送的报警版本校验请求进行解析,得到工控机的设备报警配置信息,设备报警配置信息至少包括工控机对应的设备资源号。In some embodiments, the centralized control system parses the alarm version verification request sent by the industrial computer to obtain the device alarm configuration information of the industrial computer. The device alarm configuration information at least includes the device resource number corresponding to the industrial computer.

这里,设备资源号是电池生产线中每个工控机的唯一索引标识,集控系统可以根据该设备资源号确定集控系统的数据库中是否存在该工控机的报警信息。Here, the device resource number is a unique index identifier of each industrial computer in the battery production line. The centralized control system can determine whether the alarm information of the industrial computer exists in the database of the centralized control system according to the device resource number.

集控系统设置在电池生产线的总服务器上,集控系统的数据库中包括电池生产线上全部现场机台的HMI设置的报警信息和不同工艺段的工控机对应的数据,不同工艺段对应的报警信息不同,因此,集控系统进行校验时,是通过工控机的设备资源号,确定该工控机对应的报警信息,并进行校验。The centralized control system is set up on the main server of the battery production line. The database of the centralized control system includes the alarm information set by the HMI of all on-site machines on the battery production line and the data corresponding to the industrial computers in different process sections. The alarm information corresponding to different process sections is different. Therefore, when the centralized control system is verified, the equipment resource number of the industrial computer is used to determine the alarm information corresponding to the industrial computer and perform verification.

在一些实施例中,集控系统与工控机之间的通信可以基于超文本传输协议(HTTP,Hyper Text Transfer Protocol)实现,例如,报警版本校验请求可以基于HTTP协议中的POST请求实现,可以是"https://tomapisit.catlbattery.com/tom-app/v1/6/resource/plc/tomToClink?site={site}&resource={resource}&resPlcVersion={resPlcVersion}",其中,site指的是电池生产线对应的基地代号,resource指的是当前工控机的设备资源号,resPlcVersion是当前工控机的报警版本号。In some embodiments, the communication between the centralized control system and the industrial computer can be implemented based on the Hypertext Transfer Protocol (HTTP). For example, the alarm version verification request can be implemented based on the POST request in the HTTP protocol, which can be "https://tomapisit.catlbattery.com/tom-app/v1/6/resource/plc/tomToClink?site={site}&resource={resource}&resPlcVersion={resPlcVersion}", where site refers to the base code corresponding to the battery production line, resource refers to the device resource number of the current industrial computer, and resPlcVersion is the alarm version number of the current industrial computer.

步骤S202、所述集控系统基于所述设备资源号,在所述集控系统对应的数据库中查询与所述设备资源号对应的系统报警版本号,得到查询结果;其中,所述电池生产线包括多个工控机,所述数据库中包含所述电池生产线上全部工控机对应的本地报警信息,不同工控机对应的本地报警信息相同或不同。Step S202: The centralized control system queries the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number to obtain the query result; wherein, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers is the same or different.

在本公开实施例中,电池生产线包括多个工控机,数据库中包含所述电池生产线上全部工控机对应的本地报警信息,即集控系统有电池生产线上所有工控机(即现场机台)的报警信息,由于不同机台对应的生产设备不同,因此,不同工控机对应的本地报警信息相同或不同。In the embodiment of the present disclosure, the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, that is, the centralized control system has the alarm information of all industrial computers (that is, on-site machines) on the battery production line. Since different machines correspond to different production equipment, the local alarm information corresponding to different industrial computers is the same or different.

这里,集控系统基于工控机的设备资源号,在集控系统对应的数据库中查询是否存在与设备资源号对应的系统报警版本号,即查询是否存在与设备资源号对应的系统报警配置信息。在有对应的系统报警配置信息时,基于系统配置报警信息得到与该工控机对应的系统报警版本号。Here, the centralized control system uses the IPC's device resource number to query its database for a system alarm version number corresponding to the device resource number. Specifically, it queries the database for system alarm configuration information corresponding to the device resource number. If the corresponding system alarm configuration information exists, the system alarm version number corresponding to the IPC is obtained based on the system alarm configuration information.

步骤S203、在所述查询结果表征所述数据库中存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统将包含所述系统报警版本号和所述设备资源号的系统报文发送至所述工控机,并对所述本地报警版本号与所述系统报警版本号进行第二版本校验,得到第二校验结果。Step S203: When the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, the centralized control system sends a system message containing the system alarm version number and the device resource number to the industrial computer, and performs a second version verification on the local alarm version number and the system alarm version number to obtain a second verification result.

在一些实施例中,如果数据库中存在与设备资源号对应的系统报警版本号,可以将包含系统报警版本号的系统报文发送至工控机,系统报文可以如下:

In some embodiments, if a system alarm version number corresponding to the device resource number exists in the database, a system message containing the system alarm version number may be sent to the industrial computer. The system message may be as follows:

其中,code代表是否查询到设备资源号,0是查询到(即code==0),非0是没查到(即code!=0),如果集控系统查询到设备资源号,message就返回系统版本号,反之则返回对应异常报文;resource返回的是对应的工控机的设备资源号。Among them, code represents whether the device resource number is queried. 0 means it is queried (i.e., code == 0), and non-zero means it is not queried (i.e., code != 0). If the centralized control system queries the device resource number, message returns the system version number, otherwise it returns the corresponding exception message; resource returns the device resource number of the corresponding industrial computer.

在一些实施例中,集控系统将包含系统报警版本号的系统报文发送至工控机之后,集控系统可以对工控机的本地报警版本号与系统报警版本号进行第二版本校验,得到第二校验结果。In some embodiments, after the centralized control system sends the system message containing the system alarm version number to the industrial computer, the centralized control system can perform a second version verification on the local alarm version number of the industrial computer and the system alarm version number to obtain a second verification result.

本公开实施例在工控机是在与触摸屏的报警信息一致的情况下,发起集控系统的报警信息校验,因此,在集控系统的报警信息与工控机的报警信息一致时能够说明触摸屏、集控系统和工控机之间的报警信息一致,实现了触摸屏、集控系统和工控机之间的报警信息同步。In the embodiment of the present disclosure, when the alarm information of the industrial computer is consistent with the alarm information of the touch screen, the alarm information verification of the centralized control system is initiated. Therefore, when the alarm information of the centralized control system is consistent with the alarm information of the industrial computer, it can be indicated that the alarm information between the touch screen, the centralized control system and the industrial computer is consistent, thereby realizing the synchronization of alarm information among the touch screen, the centralized control system and the industrial computer.

在一些实施例中,本公开实施例提供的信息同步方法还可以包括步骤S10和步骤S11:In some embodiments, the information synchronization method provided by the embodiments of the present disclosure may further include steps S10 and S11:

步骤S10、在所述查询结果表征所述数据库中不存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统生成异常报文,并将所述异常报文发送至所述工控机。Step S10: When the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, the centralized control system generates an abnormal message and sends the abnormal message to the industrial computer.

在一些实施例中,如果集控系统查询到数据库中不存在与所述设备资源号对应的系统报警版本号,生成异常报文,此时,异常报文中code非0,并将所异常报文发送至工控机。In some embodiments, if the centralized control system finds that the system alarm version number corresponding to the device resource number does not exist in the database, an exception message is generated. At this time, the code in the exception message is not 0, and the exception message is sent to the industrial computer.

步骤S11、所述工控机在接收到所述异常报文的情况下,在所述工控机的设备显示界面显示所述异常报文。Step S11: When the industrial computer receives the abnormal message, the industrial computer displays the abnormal message on the device display interface of the industrial computer.

工控机在接收到异常报文之后,可以弹窗提示校验异常。After receiving the abnormal message, the industrial computer can pop up a window to prompt the verification abnormality.

本公开实施例的集控系统在查询到没有工控机对应的报警版本号时,将查询结果反馈至工控机,以提示工控机对应的工程师进行处理,实现了工控机与集控系统的交互。When the centralized control system of the disclosed embodiment finds that there is no alarm version number corresponding to the industrial computer, it feeds back the query result to the industrial computer to prompt the engineer corresponding to the industrial computer to handle it, thereby realizing the interaction between the industrial computer and the centralized control system.

本公开实施例中,集控系统的系统显示界面显示本地报警版本号与系统报警版本号的校验结果,以提示集控系统的工程师对集控系统的数据库进行更新,实现了集控系统与工控机的报警信息同步。In the disclosed embodiment, the system display interface of the centralized control system displays the verification results of the local alarm version number and the system alarm version number to prompt the engineers of the centralized control system to update the database of the centralized control system, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.

在一些实施例中,在一些实施例中,本公开实施例提供的信息同步方法还可以包括步骤S12至步骤S14:In some embodiments, in some embodiments, the information synchronization method provided by the embodiments of the present disclosure may further include steps S12 to S14:

步骤S12、所述工控机在接收到所述系统报文的情况下,对所述本地报警版本号与所述系统报警版本号进行第三版本校验,得到第三校验结果。Step S12: When the industrial computer receives the system message, it performs a third version check on the local alarm version number and the system alarm version number to obtain a third check result.

在本公开实施例中,集控系统在查询到工控机对应的系统报警版本号之后,将包含系统报警版本号的系统报文发送至工控机,工控机响应于系统报文,对工控机的本地报警版本号与集控系统的系统报警版本号进行第三版本校验,得到第三校验结果。In the embodiment of the present disclosure, after the centralized control system queries the system alarm version number corresponding to the industrial computer, it sends a system message containing the system alarm version number to the industrial computer. The industrial computer responds to the system message, performs a third version verification on the local alarm version number of the industrial computer and the system alarm version number of the centralized control system, and obtains a third verification result.

步骤S13、在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述设备显示界面显示表征所述第三校验结果通过的弹窗。Step S13: When the third verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third verification result is passed is displayed on the device display interface.

步骤S14、在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述设备显示界面显示表征所述第三校验结果未通过的弹窗。Step S14: When the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the third verification result has failed is displayed on the device display interface.

在本公开实施例中,工控机的设备显示界面显示本地报警版本号与系统报警版本号的校验结果,实现了集控系统与工控机的报警信息同步。In the disclosed embodiment, the device display interface of the industrial computer displays the verification result of the local alarm version number and the system alarm version number, thereby realizing the synchronization of alarm information between the centralized control system and the industrial computer.

在一些实施例中,现场的工程师在触摸屏设置报警信息时,可能会设置多个报警点位,例如在生产线上设置了500个报警点位,此时数据量较大,在传输和导入时容易出错,手动复制报警配置信息,一旦出现错误就直接导致配置功能异常,影响工控机和集控系统的其他功能使用,甚至配置文件损坏,因此,可以对数据进行标准化,以减少数据量,提高通讯效率。图3是本公开实施例提供的信息同步方法的一个可选的流程示意图三,如图3所示,本公开实施例提供的信息同步方法还可以包括步骤S301至步骤S305:In some embodiments, when setting alarm information on the touch screen, on-site engineers may set multiple alarm points. For example, if 500 alarm points are set on the production line, the amount of data is large and errors are prone to occur during transmission and import. Manually copying the alarm configuration information will directly lead to abnormal configuration functions once an error occurs, affecting the use of other functions of the industrial computer and the centralized control system, and even damaging the configuration file. Therefore, the data can be standardized to reduce the amount of data and improve communication efficiency. Figure 3 is an optional flow diagram of the information synchronization method provided by the embodiment of the present disclosure. As shown in Figure 3, the information synchronization method provided by the embodiment of the present disclosure can also include steps S301 to S305:

步骤S301、所述触摸屏基于针对所述触摸屏的机台显示界面的报警配置操作,确定所述工控机对应的多个报警点位和各报警点位对应的报警原因和报警类型。Step S301: The touch screen determines a plurality of alarm points corresponding to the industrial computer and an alarm cause and an alarm type corresponding to each alarm point based on an alarm configuration operation on a machine display interface of the touch screen.

在一些实施例中,报警配置操作可以包括但不限于选中操作、确定操作翻页操作、滚动操作等。选择操作可以是用户通过输入组件或设备在触摸屏的机台显示界面中输入/选择的指令。其中,输入组件或设备可以包括但不限于键盘、鼠标、触控屏、触控板或音频输入器等。例如,工程师可以在触摸屏的机台显示界面的配置组件中选择至少一个报警点位和各报警点位的报警原因和报警类型,例如,安全门未关闭点位的报警原因是安全门未关闭,报警类型可以包含F-Alarm、Alarm、Warning、Info四个等级,报警紧急程度依次降低等。In some embodiments, the alarm configuration operation may include but is not limited to a selection operation, a confirmation operation, a page turning operation, a scrolling operation, and the like. The selection operation may be an instruction input/selected by the user through an input component or device in the machine display interface of the touch screen. Among them, the input component or device may include but is not limited to a keyboard, a mouse, a touch screen, a touchpad, or an audio input device, and the like. For example, an engineer can select at least one alarm point and the alarm cause and alarm type of each alarm point in the configuration component of the machine display interface of the touch screen. For example, the alarm cause of the safety door not closed point is that the safety door is not closed. The alarm type may include four levels: F-Alarm, Alarm, Warning, and Info, and the alarm urgency decreases in sequence.

本公开实施例对设备选择操作的实施方式不作限定。 The embodiments of the present disclosure do not limit the implementation of the device selection operation.

步骤S302、所述触摸屏对所述至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位。Step S302: The touch screen performs standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein one alarm field corresponds to multiple alarm points.

在一些实施例中,电池生产线上的报警点位较多,为了减少数据量,可以对至少一个报警点位进行标准化处理,从原本离散或者随意设置的报警点位标准化为一个固定名字的文字(Word)数组。In some embodiments, there are many alarm points on the battery production line. In order to reduce the amount of data, at least one alarm point can be standardized from the originally discrete or randomly set alarm point to a text (Word) array with a fixed name.

例如,在生产线上设置了10000个报警点位,每个报警点位都包括报警原因、报警类型,对报警点位标准化之后可以得到一个具有600个字段(word)的报警数组,报警数组中的每个字段与报警配置文件中的报警点位一一对应,例如,每16个报警点位对应一个字段。即600个字段与10000个报警点位之间具有映射关系,一个Word点读出16个报警点位。这里,一个字段对应的16个报警点位可以是指16位的二进制,每个位置为0代表该位置对应的报警点位不触发,里面有1代表该报警点位被触发。For example, 10,000 alarm points are set up on a production line. Each alarm point includes the alarm cause and alarm type. After standardizing the alarm points, an alarm array with 600 fields (words) can be obtained. Each field in the alarm array corresponds one-to-one with an alarm point in the alarm configuration file. For example, every 16 alarm points correspond to one field. That is, there is a mapping relationship between the 600 fields and the 10,000 alarm points, and one word point reads out 16 alarm points. Here, the 16 alarm points corresponding to one field can refer to 16 bits of binary. Each position of 0 means that the alarm point corresponding to that position is not triggered, and a 1 means that the alarm point is triggered.

步骤S303、所述触摸屏基于所述报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的所述机台报警配置信息、所述本地报警配置信息和所述系统报警配置信息。Step S303: The touch screen generates the machine alarm configuration information, the local alarm configuration information and the system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template.

在本公开实施例中,预设的报警版本配置模板可以包括识别号、报警类型、报警文字说明和报警严重等级等信息。在得到报警数组之后,可以生成具有相同报警信息的机台报警配置信息、本地报警配置信息和系统报警配置信息。In the disclosed embodiment, the preset alarm version configuration template may include information such as identification number, alarm type, alarm text description, and alarm severity level. After obtaining the alarm array, machine alarm configuration information, local alarm configuration information, and system alarm configuration information with the same alarm information may be generated.

这里,预设的报警版本配置模板可以如表1所示:Here, the preset alarm version configuration template can be shown in Table 1:

表1
Table 1

其中,识别号(ID,Identity document)是报警信息的唯一标识,对应报警数组的索引,一个ID对应一个报警字段。报警原因(Category)是报警类型(Class)的细分,例如报警原因为安全门未关闭,报警类型(Class)可以分为F-Alarm、Alarm、Warning、Info四个等级,四个等级的严重程度依次降低。报警文字说明(Configuration text)是对本报警信息的文字说明,用于触摸屏或集控系统进行报警展示。集控系统类型(TOM-Type)是该报警在集控系统的细分,用于集控系统展示报警的具体原因。Among them, the identification number (ID, Identity document) is the unique identifier of the alarm information, corresponding to the index of the alarm array, and one ID corresponds to one alarm field. The alarm cause (Category) is a subdivision of the alarm type (Class). For example, if the alarm cause is that the safety door is not closed, the alarm type (Class) can be divided into four levels: F-Alarm, Alarm, Warning, and Info. The severity of the four levels decreases in turn. The alarm text description (Configuration text) is a text description of this alarm information, which is used for alarm display on the touch screen or centralized control system. The centralized control system type (TOM-Type) is a subdivision of the alarm in the centralized control system, which is used for the centralized control system to display the specific cause of the alarm.

其中,机台报警配置信息存储在触摸屏中,当某个报警点位被触发时,触摸屏的机台显示界面弹窗提示被触发的报警点位的具体信息;本地报警配置信息和系统报警配置信息分别被导入至工控机和集控系统中,在某个报警点位被触发时,集控系统的集控显示界面和工控机的设备显示界面弹窗提示被触发的报警点位的具体信息。Among them, the machine alarm configuration information is stored in the touch screen. When a certain alarm point is triggered, the machine display interface of the touch screen pops up to prompt the specific information of the triggered alarm point; the local alarm configuration information and the system alarm configuration information are imported into the industrial computer and the centralized control system respectively. When a certain alarm point is triggered, the centralized control display interface of the centralized control system and the equipment display interface of the industrial computer pop up to prompt the specific information of the triggered alarm point.

步骤S304、所述工控机基于针对所述工控机的设备显示界面的第一数据导入操作,将所述本地报警配置信息导入所述工控机的配置文件中。Step S304: The industrial computer imports the local alarm configuration information into a configuration file of the industrial computer based on a first data import operation on a device display interface of the industrial computer.

步骤S305、所述集控系统基于针对所述集控系统的系统显示界面的第二数据导入操作,将所述系统报警配置信息导入所述集控系统的配置文件中。Step S305 : The centralized control system imports the system alarm configuration information into a configuration file of the centralized control system based on a second data import operation on the system display interface of the centralized control system.

在一些实施例中,第一数据导入操作和第二数据导入操作可以是指通过外设存储设备(例如,U盘(USB flash disk))中保存的本地报警配置信息和系统报警配置信息,进行手动导入。如此,触摸屏、工控机和集控系统采用同一版本的报警信息,如此以实现触摸屏、工控机和集控系统之间的报警信息同步。In some embodiments, the first data import operation and the second data import operation may be performed manually by importing local alarm configuration information and system alarm configuration information stored in an external storage device (e.g., a USB flash drive). In this way, the touch screen, the industrial computer, and the centralized control system use the same version of alarm information, thereby achieving alarm information synchronization between the touch screen, the industrial computer, and the centralized control system.

本公开实施例对报警点位进行标准化,减少了数据量,提高了通信效率;同时触摸屏、集控系统和工控机使用同一版本的报警配置表,使得触摸屏、集控系统和工控机三处的报警信息一致,提高了产线上报警信息的处理效率,也提高了产线生产的安全性。The disclosed embodiment standardizes the alarm points, reduces the amount of data, and improves communication efficiency; at the same time, the touch screen, the centralized control system, and the industrial computer use the same version of the alarm configuration table, so that the alarm information of the touch screen, the centralized control system, and the industrial computer are consistent, which improves the processing efficiency of the alarm information on the production line and also improves the safety of the production line.

本公开实施例提供一种信息同步系统,图4是本公开实施例提供的信息同步系统的结构示意图,如图4所示,信息同步系统至少包括集控系统401、工控机402和触摸屏403。An embodiment of the present disclosure provides an information synchronization system. FIG4 is a structural diagram of the information synchronization system provided by the embodiment of the present disclosure. As shown in FIG4 , the information synchronization system at least includes a centralized control system 401 , an industrial computer 402 and a touch screen 403 .

在一些实施例中,一个电池生产线上配置有一个集控系统401,集控系统401可以布置在电池生产线的总服务器上,该电池生产线包含多个待配置工艺段,例如,极片卷绕、电芯成组、电池包寻址和电池焊接等工艺段,每个工艺段通过多个生产设备来执行该工艺操作,例如焊接工艺中的焊接机器人。每个工艺段配置有包含工控机402和触摸屏403的现场机台,触摸屏403为人机交互模组,现场的工程师可以基于触摸屏403根据生产现场的情况进行报警信息的修改和更新。In some embodiments, a battery production line is equipped with a centralized control system 401, which can be deployed on the battery production line's main server. The battery production line includes multiple process sections to be configured, such as electrode winding, cell grouping, battery pack addressing, and battery welding. Each process section is performed by multiple production equipment, such as welding robots in the welding process. Each process section is equipped with an on-site machine including an industrial computer 402 and a touch screen 403. Touch screen 403 is a human-computer interaction module. On-site engineers can use touch screen 403 to modify and update alarm information based on the production site conditions.

在一些实施例中,工控机402用于在电池生产线上的信息同步条件被触发的情况下,获取触摸屏403当前的机台报警配置信息;机台报警配置信息至少包括机台报警版本号;还用于对机台报警 版本号与工控机402当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果,在工控机402的设备显示界面402-1显示第一校验结果,并将第一校验结果发送至触摸屏403,触摸屏403的机台显示界面403-1也可以显示第一校验结果。In some embodiments, the industrial computer 402 is used to obtain the current machine alarm configuration information of the touch screen 403 when the information synchronization condition on the battery production line is triggered; the machine alarm configuration information includes at least the machine alarm version number; and is also used to The version number is verified with the local alarm version number in the current local alarm configuration information of the industrial computer 402 to obtain a first verification result. The first verification result is displayed on the device display interface 402-1 of the industrial computer 402, and the first verification result is sent to the touch screen 403. The machine display interface 403-1 of the touch screen 403 can also display the first verification result.

在一些实施例中,工控机402还用于在第一校验结果表征机台报警版本号与本地报警版本号一致的情况下,向集控系统401发送包含本地报警配置信息的报警版本校验请求。In some embodiments, the industrial computer 402 is further configured to send an alarm version verification request including local alarm configuration information to the centralized control system 401 when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number.

集控系统401用于响应于报警版本校验请求,对本地报警版本号与集控系统401当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,基于第二校验结果更新集控系统401的系统显示界面401-1,以实现触摸屏、集控系统和工控机之间的报警信息同步。The centralized control system 401 is used to respond to the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system 401, obtain a second verification result, and update the system display interface 401-1 of the centralized control system 401 based on the second verification result to achieve synchronization of alarm information between the touch screen, the centralized control system and the industrial computer.

在一些实施例中,集控系统401还用于将第二校验结果发送至工控机402。In some embodiments, the centralized control system 401 is further configured to send the second verification result to the industrial computer 402 .

在一些实施例中,信息同步系统还包括控制器;工控机402还用于触发控制器中的版本检测点位;控制器用于在版本检测点位被触发的情况下,调用触摸屏403的操作指令对工控机402与触摸屏403之间的通信通道进行检测,得到检测结果;工控机402还用于在通信通道连接正常的情况下,基于通信通道获取触摸屏403当前的机台报警配置信息。In some embodiments, the information synchronization system also includes a controller; the industrial computer 402 is also used to trigger the version detection point in the controller; the controller is used to call the operation instructions of the touch screen 403 to detect the communication channel between the industrial computer 402 and the touch screen 403 when the version detection point is triggered, and obtain the detection result; the industrial computer 402 is also used to obtain the current machine alarm configuration information of the touch screen 403 based on the communication channel when the communication channel connection is normal.

在一些实施例中,信息同步系统还包括发布订阅服务;触摸屏403用于在工控机402与触摸屏403之间的通信通道连接正常的情况下,触摸屏403将包含机台报警配置信息的机台报文发布至发布订阅服务的版本检测主题中;其中,工控机订阅发布订阅服务的版本检测主题;工控机402还用于在通信通道连接正常,且版本检测主题中出现机台报文的情况下,工控机获取机台报文中的机台报警配置信息。In some embodiments, the information synchronization system also includes a publish-subscribe service; the touch screen 403 is used to publish the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service when the communication channel between the industrial computer 402 and the touch screen 403 is connected normally; wherein, the industrial computer subscribes to the version detection topic of the publish-subscribe service; the industrial computer 402 is also used to obtain the machine alarm configuration information in the machine message when the communication channel is connected normally and the machine message appears in the version detection topic.

在一些实施例中,信息同步系统还包括:工控机402,还用于在版本检测点位被触发,且在版本检测点位触发后第一预设时间段内版本检测主题中未出现机台报文的情况下,确定发布订阅服务异常,并在第二预设时间段后再次触发版本检测点位;工控机402,还用于在版本检测点位未被触发的情况下,在第三预设时间段后再次触发版本检测点位。In some embodiments, the information synchronization system also includes: an industrial computer 402, which is also used to determine that the publish-subscribe service is abnormal when the version detection point is triggered and no machine message appears in the version detection topic within the first preset time period after the version detection point is triggered, and to trigger the version detection point again after the second preset time period; the industrial computer 402 is also used to trigger the version detection point again after the third preset time period when the version detection point is not triggered.

在一些实施例中,信息同步系统还包括:工控机402,还用于在第一校验结果表征机台报警版本号与本地报警版本号一致的情况下,关闭控制器中的版本检测点位;触摸屏403,还用于在接收到版本检测点位关闭的信息的情况下,确定机台报警版本号与本地报警版本号一致,并显示于触摸屏403的机台显示界面403-1;触摸屏403,还用于在第四预设时间段内未接收到版本检测点位关闭的信息的情况下,触摸屏403确定机台报警版本号与本地报警版本号不一致,并显示于触摸屏403的机台显示界面403-1。In some embodiments, the information synchronization system also includes: an industrial computer 402, which is also used to close the version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; the touch screen 403 is also used to determine that the machine alarm version number is consistent with the local alarm version number when receiving information that the version detection point is closed, and display it on the machine display interface 403-1 of the touch screen 403; the touch screen 403 is also used to determine that the machine alarm version number is inconsistent with the local alarm version number when no information that the version detection point is closed is received within a fourth preset time period, and display it on the machine display interface 403-1 of the touch screen 403.

在一些实施例中,报警版本校验请求至少包括工控机402的设备资源号;集控系统401,还用于接收到报警版本校验请求,对本地报警版本号与集控系统401当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,包括:集控系统401,还用于对报警版本校验请求进行解析,得到工控机402对应的设备资源号;集控系统401,还用于基于设备资源号,在集控系统401对应的数据库中查询与设备资源号对应的系统报警版本号,得到查询结果;其中,电池生产线包括多个工控机402,数据库中包含电池生产线上全部工控机402对应的本地报警信息,不同工控机402对应的本地报警信息相同或不同;集控系统401,还用于在查询结果表征数据库中存在与设备资源号对应的系统报警版本号的情况下,将包含系统报警版本号和设备资源号的系统报文发送至工控机402,并对本地报警版本号与系统报警版本号进行第二版本校验,得到第二校验结果。In some embodiments, the alarm version verification request includes at least the device resource number of the industrial computer 402; the centralized control system 401 is further used to receive the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system 401, and obtain a second verification result, including: the centralized control system 401 is also used to parse the alarm version verification request to obtain the device resource number corresponding to the industrial computer 402; the centralized control system 401 is also used to query the corresponding device resource number in the database corresponding to the centralized control system 401 based on the device resource number. The query result is obtained by using the system alarm version number of the industrial control computers 402; the battery production line includes multiple industrial control computers 402, and the database contains local alarm information corresponding to all the industrial control computers 402 on the battery production line. The local alarm information corresponding to different industrial control computers 402 may be the same or different; the centralized control system 401 is also used to send a system message containing the system alarm version number and the device resource number to the industrial control computer 402 when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, and perform a second version check on the local alarm version number and the system alarm version number to obtain a second check result.

在一些实施例中,信息同步系统还包括:集控系统401,还用于在第二校验结果表征本地报警版本号与系统报警版本号一致的情况下,在集控系统401的系统显示界面401-1显示表征第二校验结果通过的弹窗;集控系统401,还用于在第二校验结果表征本地报警版本号与系统报警版本号不一致的情况下,在系统显示界面401-1显示表征第二校验结果未通过的弹窗。In some embodiments, the information synchronization system also includes: a centralized control system 401, which is also used to display a pop-up window indicating that the second verification result has passed on the system display interface 401-1 of the centralized control system 401 when the second verification result indicates that the local alarm version number is consistent with the system alarm version number; the centralized control system 401 is also used to display a pop-up window indicating that the second verification result has failed on the system display interface 401-1 when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number.

在一些实施例中,信息同步系统还包括:集控系统401,还用于在查询结果表征数据库中不存在与设备资源号对应的系统报警版本号的情况下,生成异常报文,并将异常报文发送至工控机402;工控机402,还用于在接收到异常报文的情况下,在工控机402的设备显示界面402-1显示异常报文。In some embodiments, the information synchronization system also includes: a centralized control system 401, which is also used to generate an exception message and send the exception message to the industrial computer 402 when the query result representation database does not have a system alarm version number corresponding to the device resource number; the industrial computer 402 is also used to display the exception message on the device display interface 402-1 of the industrial computer 402 when the exception message is received.

在一些实施例中,信息同步系统还包括:工控机402,还用于在接收到系统报文的情况下,对本地报警版本号与系统报警版本号进行第三版本校验,得到第三校验结果;工控机402,还用于在第三校验结果表征本地报警版本号与系统报警版本号一致的情况下,在设备显示界面402-1显示表征第三校验结果通过的弹窗;工控机402,还用于在第三校验结果表征本地报警版本号与系统报警版本号不一致的情况下,在设备显示界面402-1显示表征第三校验结果未通过的弹窗。In some embodiments, the information synchronization system also includes: an industrial computer 402, which is also used to perform a third version check on the local alarm version number and the system alarm version number when a system message is received to obtain a third verification result; the industrial computer 402 is also used to display a pop-up window indicating that the third verification result has passed on the device display interface 402-1 when the third verification result indicates that the local alarm version number is consistent with the system alarm version number; the industrial computer 402 is also used to display a pop-up window indicating that the third verification result has failed on the device display interface 402-1 when the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number.

在一些实施例中,信息同步系统还包括:触摸屏403,还用于基于针对触摸屏403的机台显示界面403-1的报警配置操作,确定工控机402对应的多个报警点位和各报警点位对应的报警原因和 报警类型;触摸屏403,还用于对至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位;触摸屏403,还用于基于报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的机台报警配置信息、本地报警配置信息和系统报警配置信息;工控机402,还用于基于针对工控机402的设备显示界面402-1的第一数据导入操作,将本地报警配置信息导入工控机402的配置文件中;集控系统401,还用于基于针对集控系统401的系统显示界面401-1的第二数据导入操作,将系统报警配置信息导入集控系统401的配置文件中。In some embodiments, the information synchronization system further includes: a touch screen 403, further configured to determine the multiple alarm points corresponding to the industrial computer 402 and the alarm causes and corresponding alarms of each alarm point based on the alarm configuration operation of the machine display interface 403-1 on the touch screen 403. Alarm type; the touch screen 403 is also used to standardize at least one alarm point to obtain an alarm array including at least one alarm field; wherein, one alarm field corresponds to multiple alarm points; the touch screen 403 is also used to generate machine alarm configuration information, local alarm configuration information and system alarm configuration information with the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point and the preset alarm version configuration template; the industrial computer 402 is also used to import the local alarm configuration information into the configuration file of the industrial computer 402 based on the first data import operation for the device display interface 402-1 of the industrial computer 402; the centralized control system 401 is also used to import the system alarm configuration information into the configuration file of the centralized control system 401 based on the second data import operation for the system display interface 401-1 of the centralized control system 401.

需要说明的是,本公开实施例中系统的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果,因此不做赘述。对于本系统实施例中未披露的技术细节,请参照本公开方法实施例的描述而理解。It should be noted that the description of the system in the embodiment of the present disclosure is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated here. For technical details not disclosed in the embodiment of the system, please refer to the description of the method embodiment of the present disclosure for understanding.

下面,将说明本公开实施例在一个实际的应用场景中的示例性应用,具体涉及一种数据采集工具(即工控机)的报警校验流程。The following describes an exemplary application of an embodiment of the present disclosure in a practical application scenario, specifically involving an alarm verification process of a data acquisition tool (ie, an industrial computer).

基于相关技术存在的问题,本公开实施例提供一种信息同步方法,其中,数采工具(即工控机)会在满足校验发起的条件下,例如数采工具导入报警配置文件、工程师点击数采工具界面上的版本校验按钮或产线上的班次切换等,会通过触发PLC中的校验触发点,让触摸屏发送触摸屏中的报警版本号给数采工具,经过数采工具比对,版本一致就通过版本校验并复位触发点(即版本检测点位)。如果触发之后超过指定时长,机台上的触摸屏没有返回版本号,则提示用户校验超时,并在10分钟后重新发起版本校验。如果返回的版本不一致则不复位,并弹窗提示版本不一致,且在半小时后重新发起报警版本校验流程。这样数采工具和触摸屏的报警版本校验就形成闭环。Based on the problems existing in the related art, the embodiment of the present disclosure provides an information synchronization method, wherein the data acquisition tool (i.e., industrial computer) will trigger the verification trigger point in the PLC when the verification initiation conditions are met, such as the data acquisition tool imports the alarm configuration file, the engineer clicks the version verification button on the data acquisition tool interface, or the shift changes on the production line, etc., so that the touch screen sends the alarm version number in the touch screen to the data acquisition tool. After the data acquisition tool compares the versions, if they are consistent, the version verification is passed and the trigger point (i.e., the version detection point) is reset. If the touch screen on the machine does not return the version number after the specified time has passed after the trigger, the user is prompted that the verification has timed out, and the version verification is re-initiated after 10 minutes. If the returned version is inconsistent, it will not be reset, and a pop-up window will pop up to prompt the version inconsistency, and the alarm version verification process will be re-initiated after half an hour. In this way, the alarm version verification of the data acquisition tool and the touch screen forms a closed loop.

在满足发起校验流程的条件时,数采工具也会通过调用Http接口,上传当前数采工具的报警版本,并要求集控系统返回集控系统手里的报警版本。数采工具和集控系统各自拿着接口中的报警版本号进行比对,完成数采工具和集控系统之间的报警版本校验,实现数采工具和集控系统之间的闭环校验。When the conditions for initiating the verification process are met, the data acquisition tool will also upload the current alarm version of the data acquisition tool through an HTTP call and request the centralized control system to return the alarm version in its hands. The data acquisition tool and the centralized control system each compare the alarm version numbers in the interface, completing the alarm version verification between the data acquisition tool and the centralized control system, achieving a closed-loop verification between the data acquisition tool and the centralized control system.

本公开实施例提供信息同步更新流程包括报警配置标准化和报警版本校验两方面,其中,报警版本校验包括机台的触摸屏和数采工具、数采工具和集控系统之间的闭环报警配置版本校验。The information synchronization update process provided by the embodiment of the present disclosure includes two aspects: alarm configuration standardization and alarm version verification. Among them, the alarm version verification includes closed-loop alarm configuration version verification between the machine's touch screen and data acquisition tool, and between the data acquisition tool and the centralized control system.

现场的工程师在触摸屏设置报警信息时,可能会设置多个报警点位,例如在生产线上设置了500个报警点位,此时可以对报警点位进行标准化,从原本离散或者随意设置的报警数组标准化为一个固定名字的文字(Word)数组。When on-site engineers set alarm information on the touch screen, they may set multiple alarm points. For example, if 500 alarm points are set on the production line, the alarm points can be standardized from the original discrete or randomly set alarm array to a text (Word) array with a fixed name.

图5是本公开实施例提供的报警信息的结构示意图,本公开实施例在PLC定义了一个数据结构50(sMsg_Bool),数据结构50至少包括停机原因501(sMsg_Bool.FirstAlarm)、报警停机原因类型502(sMsg_Bool.FirstAlarmCat),文字数组503(sMsg_Bool.Words)。其文字数组503包括点位数组5031(sMsg_Bool.Words.B[10000])和映射数组5032(sMsg_Bool.Words.Words[600]),文字数组503是所有报警点位在PLC中直接对应的点位,和报警配置文件中的报警点位一一对应,sMsg_Bool.Words.Words[600]是标准化后的Word数组,sMsg_Bool.Words.Words[600]和sMsg_Bool.Words.B[10000]是映射关系,每16位B数组成员对应一个Word。即600个word与10000个报警点位之间具有映射关系,一个Word点读出16个报警点位。这里,一个Word点对应的16个报警点位可以是指16位的二进制,每个位置为0代表不触发,里面有1代表该报警点位被触发。Figure 5 is a schematic diagram of the structure of the alarm information provided by an embodiment of the present disclosure. The embodiment of the present disclosure defines a data structure 50 (sMsg_Bool) in the PLC. The data structure 50 includes at least a shutdown reason 501 (sMsg_Bool.FirstAlarm), an alarm shutdown reason type 502 (sMsg_Bool.FirstAlarmCat), and a text array 503 (sMsg_Bool.Words). Its text array 503 includes a point array 5031 (sMsg_Bool.Words.B[10000]) and a mapping array 5032 (sMsg_Bool.Words.Words[600]). The text array 503 is the point array directly corresponding to all alarm points in the PLC, and has a one-to-one correspondence with the alarm points in the alarm configuration file. sMsg_Bool.Words.Words[600] is a standardized Word array. sMsg_Bool.Words.Words[600] and sMsg_Bool.Words.B[10000] are in a mapping relationship, with each 16-bit B array member corresponding to one Word. That is, there is a mapping relationship between 600 words and 10,000 alarm points, and one Word point reads out 16 alarm points. Here, the 16 alarm points corresponding to one Word point can refer to 16 bits of binary. Each position of 0 represents not triggered, and a 1 represents that the alarm point is triggered.

基于图5提供的数据结构,本公开实施例可以提供一种报警信息配置模板表,电气工程师只需要在模板中填写对应触摸屏的相关报警信息后,一键生成供给触摸屏、数采工具和集控系统的三张报警配置表。这里,报警配置表的格式可以如表2所示:Based on the data structure provided in Figure 5, the embodiment of the present disclosure can provide an alarm information configuration template table. Electrical engineers only need to fill in the relevant alarm information of the corresponding touch screen in the template, and then generate three alarm configuration tables for the touch screen, data acquisition tool, and centralized control system with one click. Here, the format of the alarm configuration table can be shown in Table 2:

表2
Table 2

其中,识别号(ID,Identity document)是报警信息的唯一标识,可以对应点位数组(sMsg_Bool.Words.B[10000])的索引(一个ID对应一个报警点位)。报警类型(Category)是报警严重等级(Class)的细分,Class分为F-Alarm、Alarm、Warning、Info四个等级,四个等级的严重程度依次降低。报警文字说明(Configuration text)是对本报警信息的文字说明,用于触摸屏或集控系统进行报警展示。集控系统类型(TOM-Type)是该报警在集控系统的细分。Among them, the identification number (ID, Identity document) is the unique identifier of the alarm information, which can correspond to the index of the point array (sMsg_Bool.Words.B[10000]) (one ID corresponds to one alarm point). The alarm type (Category) is a subdivision of the alarm severity level (Class). Class is divided into four levels: F-Alarm, Alarm, Warning, and Info, with the severity of the four levels decreasing in sequence. The alarm text description (Configuration text) is a text description of this alarm information, used for alarm display on the touch screen or centralized control system. The centralized control system type (TOM-Type) is a subdivision of this alarm in the centralized control system.

在一些实施例中,为了保证机台的触摸屏和数采工具、数采工具和集控系统之间的闭环报警配置版本校验。 In some embodiments, in order to ensure closed-loop alarm configuration version verification between the machine's touch screen and data acquisition tool, and between the data acquisition tool and the centralized control system.

这里,触摸屏到数采工具使用的是消息队列遥测传输协议通讯(MQTT,Message Queuing Telemetry Transport),通过如下报文实现消息传输:
Here, the touch screen and the data acquisition tool use the Message Queuing Telemetry Transport (MQTT) protocol to transmit messages through the following messages:

其中,Trigger_time和ts对应的是触摸屏发送报文的时间,message是当前触摸屏里的报警版本号。Among them, Trigger_time and ts correspond to the time when the touch screen sends the message, and message is the alarm version number in the current touch screen.

在一些实施例中,数采工具到集控系统通过Post请求实现,例如"https://tomapisit.catlbattery.com/tom-app/v1/6/resource/plc/tomToClink?site={site}&resource={resource}&resPlcVersion={resPlcVersion}",其中,site指的是电池生产线的基地代号,resource指的是当前数采工具的设备资源号,resPlcVersion是当前数采工具的报警版本号。In some embodiments, the data acquisition tool is sent to the centralized control system through a Post request, for example, "https://tomapisit.catlbattery.com/tom-app/v1/6/resource/plc/tomToClink?site={site}&resource={resource}&resPlcVersion={resPlcVersion}", where site refers to the base code of the battery production line, resource refers to the device resource number of the current data acquisition tool, and resPlcVersion is the alarm version number of the current data acquisition tool.

在一些实施例中,集控系统收到报文后,根据实际返回如下报文:
In some embodiments, after receiving the message, the centralized control system returns the following message based on the actual situation:

其中,code代表是否查询到设备资源号(其中,0是查询到,非0是没查到),如果集控系统查询到设备资源号,message就返回版本号,反之则返回对应异常报文;resource返回的是对应的设备资源号。Among them, code represents whether the device resource number is queried (where 0 means it is queried, and non-0 means it is not queried). If the centralized control system queries the device resource number, message returns the version number, otherwise it returns the corresponding exception message; resource returns the corresponding device resource number.

在一些实施例中,当校验流程开始时,数采工具会触发一个PLC信号,PLC控制触摸屏中的宏指令做相应处理后,把触摸屏中的报警信息传给数采工具做校验。该校验流程主要由PLC、触摸屏和数采工具三个部分组成。图6是本公开实施例提供的触摸屏和数采工具的闭环校验流程示意图,如图6所示,触摸屏和数采工具的闭环校验流程由步骤S601至步骤S615实现:In some embodiments, when the verification process begins, the data acquisition tool triggers a PLC signal. The PLC controls the macro instructions in the touch screen to perform corresponding processing, and then transmits the alarm information in the touch screen to the data acquisition tool for verification. The verification process mainly consists of three parts: the PLC, the touch screen, and the data acquisition tool. Figure 6 is a schematic diagram of the closed-loop verification process of the touch screen and the data acquisition tool provided by the embodiment of the present disclosure. As shown in Figure 6, the closed-loop verification process of the touch screen and the data acquisition tool is implemented by steps S601 to S615:

步骤S601、触发报警校验点位。Step S601: trigger an alarm check point.

在一些实施例中,在数采工具导入报警配置文件、工程师点击数采工具界面上的版本校验按钮或产线上的班次切换等情况下,触发PLC中的报警校验点位VersionCheckSysn(即版本检测点位)。In some embodiments, when the data acquisition tool imports the alarm configuration file, the engineer clicks the version check button on the data acquisition tool interface, or the shift on the production line is switched, the alarm check point VersionCheckSysn (i.e., the version detection point) in the PLC is triggered.

在一些实施例中,触发报警校验点位可以是指将报警校验点位的逻辑值由0变为1,以实现触发该报警校验点位。In some embodiments, triggering an alarm check point may refer to changing a logic value of the alarm check point from 0 to 1 to trigger the alarm check point.

步骤S602、报警校验点位是否成功写入。Step S602: Alarm and check whether the points are written successfully.

在一些实施例中,如果数采工具与PLC未连接,或者PLC没有报警校验点位VersionCheckSysn,或者PLC中的报警校验点位VersionCheckSysn未公开,或者PLC中的报警校验点位VersionCheckSysn只能读不能写时,说明该报警校验点位未写入成功,此时,休眠15秒后,再次执行步骤S601;如果报警校验点位写入成功,此时,数采工具执行步骤S603,PLC执行步骤S605。In some embodiments, if the data acquisition tool is not connected to the PLC, or the PLC does not have the alarm check point VersionCheckSysn, or the alarm check point VersionCheckSysn in the PLC is not public, or the alarm check point VersionCheckSysn in the PLC can only be read but not written, it means that the alarm check point has not been written successfully. At this time, after sleeping for 15 seconds, step S601 is executed again; if the alarm check point is written successfully, at this time, the data acquisition tool executes step S603 and the PLC executes step S605.

步骤S603、是否超过15s没收到反馈结果。Step S603: Whether no feedback result is received within 15 seconds.

在一些实施例中,如果点位触发成功,数采工具可以开启一个异步线程进行计时,数采工具如果在15s没收到触摸屏的报警信息,即认为数采工具与触摸屏之间的MQTT服务异常,执行步骤S604。In some embodiments, if the point trigger is successful, the data acquisition tool can start an asynchronous thread for timing. If the data acquisition tool does not receive the alarm information from the touch screen within 15 seconds, it is considered that the MQTT service between the data acquisition tool and the touch screen is abnormal, and step S604 is executed.

步骤S604、弹窗提示超时未反馈,休眠10分钟。Step S604: The pop-up window prompts a timeout without any feedback, and the system goes into sleep mode for 10 minutes.

在一些实施例中,数采工具如果在15s没收到报警校验点位成功写入的反馈结果,可以在数采工具的显示界面进行弹窗提示超时未反馈,休眠10分钟后再次执行步骤S601。In some embodiments, if the data acquisition tool does not receive feedback that the alarm verification point has been successfully written within 15 seconds, a pop-up window may be displayed on the display interface of the data acquisition tool to indicate that there has been no feedback, and step S601 may be executed again after sleeping for 10 minutes.

步骤S605、触发校验触发点。Step S605: trigger and verify the trigger point.

在一些实施例中,PLC程序发现触发点VersionCheckSysn被置为True或者被置为1时,调用触摸屏的宏指令检查MQTT连接是否正常。这里,宏事件或者宏指令是预定义的命令或函数,可以通过宏事件来执行操作。In some embodiments, when the PLC program finds that the trigger point VersionCheckSysn is set to True or set to 1, it calls the touch screen's macro command to check whether the MQTT connection is normal. Here, a macro event or macro command is a predefined command or function that can be used to execute an operation.

步骤S606、触发触摸屏宏事件。Step S606: triggering a touch screen macro event.

在一些实施例中,触摸屏宏指令会先检查MQTT连接是否正常,如果不正常,触摸屏直接弹窗 提示MQTT连接异常,并结束触摸屏相关动作,即触摸屏弹窗提示后静默。In some embodiments, the touch screen macro will first check whether the MQTT connection is normal. If it is not normal, the touch screen will directly pop up a window. The system prompts that the MQTT connection is abnormal and ends the touch screen related actions. That is, the touch screen pops up a window and then goes silent.

步骤S607、获取触摸屏的报警配置版本号。Step S607: Obtain the alarm configuration version number of the touch screen.

在MQTT连接正常的情况下,触摸屏采集触摸屏的报警配置版本号,打包发布到MQTT服务的VersionCheck(即版本校验)主题中。When the MQTT connection is normal, the touch screen collects the alarm configuration version number of the touch screen, packages it and publishes it to the VersionCheck (i.e. version verification) topic of the MQTT service.

步骤S608、发布至版本校验主题。Step S608: Publish to the version verification topic.

步骤S609、获取触摸屏的版本号。Step S609: Obtain the version number of the touch screen.

在一些实施例中,数采工具订阅了MQTT服务的版本校验主题,当MQTT服务出现触摸屏的报警信息的相关报文,就触发对应事件,获取触摸屏的版本号。In some embodiments, the data acquisition tool subscribes to the version verification topic of the MQTT service. When the MQTT service receives a message related to the alarm information of the touch screen, a corresponding event is triggered to obtain the version number of the touch screen.

步骤S610、判断与触摸屏的报警版本号是否一致。Step S610: Determine whether the alarm version number is consistent with the alarm version number of the touch screen.

在一些实施例中,数采工具判断本机的报警版本号与触摸屏的报警版本号是否一致,一致则执行步骤S611;不一致则执行步骤S612。In some embodiments, the data acquisition tool determines whether the alarm version number of the local device is consistent with the alarm version number of the touch screen. If they are consistent, step S611 is executed; if they are inconsistent, step S612 is executed.

步骤S611、关闭报警校验点位。Step S611: Close the alarm check point.

在一些实施例中,本机的报警版本号与触摸屏的报警版本号一致就弹窗提示报警版本校验通过,关闭报警校验点位。In some embodiments, if the alarm version number of the local device is consistent with the alarm version number of the touch screen, a pop-up window will pop up to prompt that the alarm version verification has passed, and the alarm verification point will be closed.

步骤S612、弹窗提示版本不一致,休眠30分钟。Step S612: A pop-up window prompts that the versions are inconsistent and the program goes into hibernation for 30 minutes.

在一些实施例中,本机的报警版本号与触摸屏的报警版本号不一致就不复位触发点,并弹窗提示报警版本不一致,休眠30分钟后回到步骤S601。In some embodiments, if the alarm version number of the local device is inconsistent with the alarm version number of the touch screen, the trigger point will not be reset, and a pop-up window will pop up to prompt that the alarm versions are inconsistent. After sleeping for 30 minutes, the process returns to step S601.

步骤S613、确定数采工具5秒内是否返回版本一致信息。Step S613: Determine whether the data acquisition tool returns version consistency information within 5 seconds.

在一些实施例中,机台触摸屏确定数采工具5秒内是否返回版本一致信息,返回则执行步骤S614;未返回则执行步骤S615。In some embodiments, the machine touch screen determines whether the data acquisition tool returns version consistency information within 5 seconds. If it returns, step S614 is executed; if not, step S615 is executed.

步骤S614、关闭等待线程。Step S614: Close the waiting thread.

在一些实施例中,机台触摸屏发现触发点(即报警校验点位)被关闭,就认为报警校验通过,弹窗提示,完成校验。In some embodiments, when the machine touch screen finds that the trigger point (i.e., the alarm verification point) is closed, it is considered that the alarm verification has passed, and a pop-up window prompts that the verification is completed.

步骤S615、弹窗提示与数采工具版本不一致。Step S615: A pop-up window prompts that the version is inconsistent with the data acquisition tool.

在一些实施例中,集控系统与数采工具之间的校验由数采工具发起,将本地的报警配置版本打包发送Post请求到集控系统,集控系统收到后对机台报警版本进行比对,并返回集控系统上的报警版本,让数采工具比对。本校验流程由数采工具和集控系统两个部分组成。图7是本公开实施例提供的集控系统和数采工具闭环校验流程示意图,如图7所示,集控系统和数采工具闭环校验流程由步骤S701至步骤S714实现:In some embodiments, the verification between the centralized control system and the data acquisition tool is initiated by the data acquisition tool, which packages the local alarm configuration version and sends a Post request to the centralized control system. After receiving it, the centralized control system compares the machine alarm version and returns the alarm version on the centralized control system for the data acquisition tool to compare. This verification process consists of two parts: the data acquisition tool and the centralized control system. Figure 7 is a schematic diagram of the closed-loop verification process of the centralized control system and the data acquisition tool provided in an embodiment of the present disclosure. As shown in Figure 7, the closed-loop verification process of the centralized control system and the data acquisition tool is implemented by steps S701 to S714:

步骤S701、获取本地报警配置信息。Step S701: Obtain local alarm configuration information.

在一些实施例中,数采工具收集本数采工具的本地报警配置信息,包括报警版本号、设备资源号和站点等信息,打包通过报文请求(即Post请求)发送给集控系统。In some embodiments, the data acquisition tool collects local alarm configuration information of the data acquisition tool, including alarm version number, device resource number, site and other information, packages it and sends it to the centralized control system via a message request (ie, Post request).

步骤S702、打包上传报文请求。Step S702: Pack and upload the message request.

在一些实施例中,报文请求(即Post请求)是HTTP协议中用于向服务器(即集控系统)提交数据的一种请求方法,在Post请求中,数据被包含在请求中。In some embodiments, a message request (ie, a Post request) is a request method in the HTTP protocol for submitting data to a server (ie, a centralized control system). In a Post request, the data is included in the request.

步骤S703、解析报文请求。Step S703: parse the message request.

在一些实施例中,集控系统收到报文请求后,对报文进行解析,得到数采工具的报警版本号、设备资源号和站点等信息。In some embodiments, after receiving the message request, the centralized control system parses the message to obtain information such as the alarm version number, device resource number, and site of the data acquisition tool.

步骤S704、确定机台是否存在。Step S704: Determine whether the machine exists.

在一些实施例中,集控系统收到数采工具的报警配置信息后,查询集控系统的数据库是否存在这个设备资源号,如果设备资源号不存在或报警版本号不存在,就返回数采工具报文提示,code置为非0,结束本次校验。In some embodiments, after the centralized control system receives the alarm configuration information from the data acquisition tool, it queries the database of the centralized control system to see whether the device resource number exists. If the device resource number does not exist or the alarm version number does not exist, it returns a message prompt to the data acquisition tool, sets the code to non-zero, and ends this verification.

在一些实施例中,code代表是否查询到设备资源号,0是查询到,非0是没查到。In some embodiments, code represents whether the device resource number is found. 0 means it is found, and non-zero means it is not found.

步骤S705、发送集控系统的报警版本号。Step S705: Send the alarm version number of the centralized control system.

在一些实施例中,当集控系统查询到设备资源号对应的报警版本号,返回数采工具报文code=0,并将集控系统的报警版本号发送至数采工具,供数采工具进行校验。In some embodiments, when the centralized control system queries the alarm version number corresponding to the device resource number, it returns a message code=0 to the data acquisition tool and sends the alarm version number of the centralized control system to the data acquisition tool for verification.

步骤S706、判断报警版本号是否一致。Step S706: Determine whether the alarm version numbers are consistent.

在一些实施例中,当集控系统查询到设备资源号对应的报警版本号,返开始校验集控系统的报警版本号和数采工具的报警版本号,如果一致,执行步骤S707,给集控系统的报警配置界面更新版本一致的标记;如果版本不一致,执行步骤S708,更新集控系统报警版本配置界面的校验结果。In some embodiments, when the centralized control system queries the alarm version number corresponding to the device resource number, it starts to verify the alarm version number of the centralized control system and the alarm version number of the data acquisition tool. If they are consistent, step S707 is executed to update the version consistency mark of the alarm configuration interface of the centralized control system; if the versions are inconsistent, step S708 is executed to update the verification result of the alarm version configuration interface of the centralized control system.

步骤S707、更新状态显示校验通过。 Step S707: Update status display verification passed.

步骤S708、更新状态显示版本不一致。Step S708: The update status shows that the versions are inconsistent.

步骤S709、判断是否code==0。Step S709: Determine whether code == 0.

在一些实施例中,数采工具收到集控系统返回的报文后,解析是否code=0,如果不为0,弹窗提示返回的报文信息;如果code=0,就从报文中截取集控系统的报警版本号,和本地的报警版本号对比,如果版本号一致,说明校验通过,执行步骤S709,如果不一致,执行步骤S710,弹窗提示当前报警版本号不一致。In some embodiments, after the data acquisition tool receives the message returned by the centralized control system, it analyzes whether code = 0. If it is not 0, a pop-up window prompts the returned message information; if code = 0, the alarm version number of the centralized control system is intercepted from the message and compared with the local alarm version number. If the version numbers are consistent, it means that the verification is passed and step S709 is executed. If they are inconsistent, step S710 is executed and a pop-up window prompts that the current alarm version number is inconsistent.

步骤S710、比对版本号。Step S710: Compare version numbers.

步骤S711、弹窗提示校验异常。Step S711: A pop-up window prompts that the verification is abnormal.

步骤S712、判断报警版本号是否一致。Step S712: Determine whether the alarm version numbers are consistent.

在一些实施例中,数采工具判断集控系统发送的报警版本号是否与本机的报警版本号一致。如果版本号一致,说明校验通过,执行步骤S713,如果不一致,执行步骤S712,弹窗提示当前报警版本号不一致。In some embodiments, the data acquisition tool determines whether the alarm version number sent by the centralized control system is consistent with the alarm version number of the local device. If the version numbers are consistent, the verification is successful and step S713 is executed. If not, step S712 is executed and a pop-up window prompts that the current alarm version numbers are inconsistent.

步骤S713、弹窗提示版本不一致。Step S713: A pop-up window prompts that the versions are inconsistent.

步骤S714、弹窗提示校验通过。Step S714: A pop-up window appears to indicate that the verification is successful.

本公开实施例对PLC中的报警点位进行标准化,全部映射在一个数组中,提供一个报警版本配置模板,里面有宏可以在配置完成,点击一键生成适用于触摸屏、数采工具、集控系统的三个配置文件,因为触摸屏用模板表生成配置,同时就会生成对应数采工具报警配置和集控系统报警配置。标准化生成的报警配置是一个Excel文件,在导入数采工具中被成功解析并校验通过后,即可完成配置。如果触摸屏更新报警配置时,没有去更新数采工具,最晚会在换班时触发自动报警版本校验流程,如果发现版本不一致,则自动弹窗报警。The disclosed embodiment standardizes the alarm points in the PLC, maps them all in an array, and provides an alarm version configuration template with macros that can be used to generate three configuration files for the touch screen, data acquisition tool, and centralized control system with one click after the configuration is completed. Because the touch screen uses the template table to generate the configuration, the corresponding data acquisition tool alarm configuration and centralized control system alarm configuration will be generated at the same time. The standardized alarm configuration is an Excel file, which can be configured after being successfully parsed and verified in the imported data acquisition tool. If the touch screen updates the alarm configuration without updating the data acquisition tool, the automatic alarm version verification process will be triggered at the latest when the shift changes. If the versions are found to be inconsistent, an alarm window will pop up automatically.

本公开实施例实现了生产线上不同显示设备的报警配置版本闭环校验,实现了自动报警版本校验功能,同时,可以通过一张母表一键生成同一版本的触摸屏、数采工具、集控系统的报警配置表,还能够使用配置表导入代替手动更新配置文件,提升了产线效率。The disclosed embodiment realizes closed-loop verification of alarm configuration versions of different display devices on the production line and realizes the automatic alarm version verification function. At the same time, the alarm configuration table of the same version of touch screen, data acquisition tool, and centralized control system can be generated with one click through a master table. The configuration table can also be used to import instead of manually updating the configuration file, thereby improving the production line efficiency.

以上所述,仅为本公开的实施例而已,并非用于限定本公开的保护范围。凡在本公开的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本公开的保护范围之内。 The above description is merely an embodiment of the present disclosure and is not intended to limit the scope of protection of the present disclosure. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present disclosure are included in the scope of protection of the present disclosure.

Claims (20)

一种信息同步方法,所述信息同步方法包括:An information synchronization method, comprising: 在电池生产线上的信息同步条件被触发的情况下,工控机获取触摸屏当前的机台报警配置信息;所述机台报警配置信息至少包括机台报警版本号;When the information synchronization condition on the battery production line is triggered, the industrial computer obtains the current machine alarm configuration information of the touch screen; the machine alarm configuration information at least includes the machine alarm version number; 所述工控机对所述机台报警版本号与所述工控机当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果;The industrial computer performs a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result; 在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机向集控系统发送包含所述本地报警配置信息的报警版本校验请求;If the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer sends an alarm version verification request containing the local alarm configuration information to the centralized control system; 所述集控系统接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,以实现所述触摸屏、所述集控系统和所述工控机之间的报警信息同步。The centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result to achieve synchronization of alarm information between the touch screen, the centralized control system and the industrial computer. 根据权利要求1所述的信息同步方法,其中,所述工控机获取触摸屏当前的机台报警配置信息,包括:The information synchronization method according to claim 1, wherein the industrial computer obtains the current machine alarm configuration information of the touch screen, including: 所述工控机触发控制器中的版本检测点位;The industrial computer triggers the version detection point in the controller; 所述控制器在所述版本检测点位被触发的情况下,调用所述触摸屏的操作指令对所述工控机与所述触摸屏之间的通信通道进行检测,得到检测结果;When the version detection point is triggered, the controller calls the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain a detection result; 所述工控机在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息。When the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel. 根据权利要求2所述的信息同步方法,其中,所述信息同步系统还包括发布订阅服务;所述信息同步方法还包括:The information synchronization method according to claim 2, wherein the information synchronization system further includes a publish-subscribe service; the information synchronization method further includes: 所述触摸屏在所述通信通道连接正常的情况下,将包含所述机台报警配置信息的机台报文发布至所述发布订阅服务的版本检测主题中;其中,所述工控机订阅所述版本检测主题;When the communication channel is connected normally, the touch screen publishes the machine message containing the machine alarm configuration information to the version detection topic of the publish-subscribe service; wherein the industrial computer subscribes to the version detection topic; 所述工控机在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息,包括:When the communication channel is connected normally, the industrial computer obtains the current machine alarm configuration information of the touch screen based on the communication channel, including: 所述工控机在所述通信通道连接正常,且所述版本检测主题中出现所述机台报文的情况下,所述工控机获取所述机台报文中的所述机台报警配置信息。When the communication channel is connected normally and the machine message appears in the version detection topic, the industrial computer obtains the machine alarm configuration information in the machine message. 根据权利要求3所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to claim 3, wherein the information synchronization method further comprises: 所述工控机在所述版本检测点位被触发,且在所述版本检测点位触发后第一预设时间段内所述版本检测主题中未出现所述机台报文的情况下,确定所述发布订阅服务异常,并在第二预设时间段后再次触发所述版本检测点位;The industrial computer determines that the publish-subscribe service is abnormal when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, and triggers the version detection point again after a second preset time period; 所述工控机在所述版本检测点位未被触发的情况下,在第三预设时间段后再次触发所述版本检测点位。When the version detection point is not triggered, the industrial computer triggers the version detection point again after a third preset time period. 根据权利要求1至4任一项所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to any one of claims 1 to 4, wherein the information synchronization method further comprises: 在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,所述工控机关闭控制器中的版本检测点位;When the first verification result indicates that the machine alarm version number is consistent with the local alarm version number, the industrial computer turns off the version detection point in the controller; 所述触摸屏在接收到所述版本检测点位关闭的信息的情况下,确定所述机台报警版本号与所述本地报警版本号一致,并显示于所述触摸屏的机台显示界面;When the touch screen receives the information indicating that the version detection point is closed, it determines that the machine alarm version number is consistent with the local alarm version number and displays it on the machine display interface of the touch screen; 所述触摸屏在第四预设时间段内未接收到所述版本检测点位关闭的信息的情况下,所述触摸屏确定所述机台报警版本号与所述本地报警版本号不一致,并显示于所述触摸屏的机台显示界面。When the touch screen does not receive the information that the version detection point is closed within a fourth preset time period, the touch screen determines that the machine alarm version number is inconsistent with the local alarm version number and displays it on the machine display interface of the touch screen. 根据权利要求1至5任一项所述的信息同步方法,其中,所述报警版本校验请求至少包括工控机的设备资源号;The information synchronization method according to any one of claims 1 to 5, wherein the alarm version verification request at least includes a device resource number of the industrial computer; 所述集控系统接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,包括:The centralized control system receives the alarm version verification request, performs a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtains a second verification result, including: 所述集控系统对所述报警版本校验请求进行解析,得到所述工控机对应的设备资源号;The centralized control system parses the alarm version verification request to obtain the device resource number corresponding to the industrial computer; 所述集控系统基于所述设备资源号,在所述集控系统对应的数据库中查询与所述设备资源号对应的系统报警版本号,得到查询结果;其中,所述电池生产线包括多个工控机,所述数据库中包含所述电池生产线上全部工控机对应的本地报警信息,不同工控机对应的本地报警信息相同或不同;The centralized control system queries the system alarm version number corresponding to the device resource number in the database corresponding to the centralized control system based on the device resource number to obtain a query result; wherein the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers may be the same or different; 在所述查询结果表征所述数据库中存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统将包含所述系统报警版本号和所述设备资源号的系统报文发送至所述工控机,并对所述本地报警版本号与所述系统报警版本号进行第二版本校验,得到第二校验结果。 When the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, the centralized control system will send a system message containing the system alarm version number and the device resource number to the industrial computer, and perform a second version verification on the local alarm version number and the system alarm version number to obtain a second verification result. 根据权利要求6所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to claim 6, wherein the information synchronization method further comprises: 在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述集控系统的系统显示界面显示表征所述第二校验结果通过的弹窗;If the second verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the second verification result is passed is displayed on the system display interface of the centralized control system; 在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述系统显示界面显示表征所述第二校验结果未通过的弹窗。When the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the second verification result has failed is displayed on the system display interface. 根据权利要求6所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to claim 6, wherein the information synchronization method further comprises: 在所述查询结果表征所述数据库中不存在与所述设备资源号对应的系统报警版本号的情况下,所述集控系统生成异常报文,并将所述异常报文发送至所述工控机;When the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, the centralized control system generates an abnormal message and sends the abnormal message to the industrial computer; 所述工控机在接收到所述异常报文的情况下,在所述工控机的设备显示界面显示所述异常报文。When the industrial computer receives the abnormal message, the industrial computer displays the abnormal message on a device display interface of the industrial computer. 根据权利要求8所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to claim 8, wherein the information synchronization method further comprises: 所述工控机在接收到所述系统报文的情况下,对所述本地报警版本号与所述系统报警版本号进行第三版本校验,得到第三校验结果;When the industrial computer receives the system message, it performs a third version check on the local alarm version number and the system alarm version number to obtain a third check result; 在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述设备显示界面显示表征所述第三校验结果通过的弹窗;If the third verification result indicates that the local alarm version number is consistent with the system alarm version number, a pop-up window indicating that the third verification result is passed is displayed on the device display interface; 在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述设备显示界面显示表征所述第三校验结果未通过的弹窗。When the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number, a pop-up window indicating that the third verification result has failed is displayed on the device display interface. 根据权利要求1至9任一项所述的信息同步方法,其中,所述信息同步方法还包括:The information synchronization method according to any one of claims 1 to 9, wherein the information synchronization method further comprises: 所述触摸屏基于针对所述触摸屏的机台显示界面的报警配置操作,确定所述工控机对应的多个报警点位和各报警点位对应的报警原因和报警类型;The touch screen determines the multiple alarm points corresponding to the industrial computer and the alarm cause and alarm type corresponding to each alarm point based on the alarm configuration operation on the machine display interface of the touch screen; 所述触摸屏对所述至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位;The touch screen performs standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein one alarm field corresponds to multiple alarm points; 所述触摸屏基于所述报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的所述机台报警配置信息、所述本地报警配置信息和所述系统报警配置信息;The touch screen generates the machine alarm configuration information, the local alarm configuration information, and the system alarm configuration information having the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point, and a preset alarm version configuration template; 所述工控机基于针对所述工控机的设备显示界面的第一数据导入操作,将所述本地报警配置信息导入所述工控机的配置文件中;The industrial computer imports the local alarm configuration information into a configuration file of the industrial computer based on a first data import operation on a device display interface of the industrial computer; 所述集控系统基于针对所述集控系统的系统显示界面的第二数据导入操作,将所述系统报警配置信息导入所述集控系统的配置文件中。The centralized control system imports the system alarm configuration information into a configuration file of the centralized control system based on a second data import operation on a system display interface of the centralized control system. 一种信息同步系统,所述信息同步系统包括触摸屏、集控系统和工控机;其中,An information synchronization system, comprising a touch screen, a centralized control system and an industrial computer; wherein, 所述工控机,用于在电池生产线上的信息同步条件被触发的情况下,获取触摸屏当前的机台报警配置信息;所述机台报警配置信息至少包括机台报警版本号;The industrial computer is used to obtain the current machine alarm configuration information of the touch screen when the information synchronization condition on the battery production line is triggered; the machine alarm configuration information at least includes the machine alarm version number; 所述工控机,还用于对所述机台报警版本号与所述工控机当前的本地报警配置信息中的本地报警版本号进行第一版本校验,得到第一校验结果;The industrial computer is further configured to perform a first version verification on the machine alarm version number and the local alarm version number in the current local alarm configuration information of the industrial computer to obtain a first verification result; 所述工控机,还用于在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,向所述集控系统发送包含所述本地报警配置信息的报警版本校验请求;The industrial computer is further configured to send an alarm version verification request containing the local alarm configuration information to the centralized control system when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; 所述集控系统,用于响应于所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,以实现所述触摸屏、所述集控系统和所述工控机之间的报警信息同步。The centralized control system is used to respond to the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtain a second verification result to achieve alarm information synchronization between the touch screen, the centralized control system and the industrial computer. 根据权利要求11所述的信息同步系统,其中,所述信息同步系统还包括控制器;其中,The information synchronization system according to claim 11, wherein the information synchronization system further comprises a controller; wherein, 所述工控机,还用于触发所述控制器中的版本检测点位;The industrial computer is also used to trigger the version detection point in the controller; 所述控制器,用于在所述版本检测点位被触发的情况下,调用所述触摸屏的操作指令对所述工控机与所述触摸屏之间的通信通道进行检测,得到检测结果;The controller is configured to, when the version detection point is triggered, call the operation instruction of the touch screen to detect the communication channel between the industrial computer and the touch screen to obtain a detection result; 所述工控机,还用于在所述通信通道连接正常的情况下,基于所述通信通道获取所述触摸屏当前的所述机台报警配置信息。The industrial computer is further configured to obtain the current machine alarm configuration information of the touch screen based on the communication channel when the communication channel is connected normally. 根据权利要求11或12所述的信息同步系统,其中,所述信息同步系统还包括发布订阅服务;The information synchronization system according to claim 11 or 12, wherein the information synchronization system further comprises a publish-subscribe service; 所述触摸屏,用于在所述工控机与所述触摸屏之间的通信通道连接正常的情况下,将包含所述机台报警配置信息的机台报文发布至所述发布订阅服务的版本检测主题中;其中,所述工控机订阅所述版本检测主题;The touch screen is configured to publish a machine message containing the machine alarm configuration information to a version detection topic of the publish-subscribe service when the communication channel between the industrial computer and the touch screen is connected normally; wherein the industrial computer subscribes to the version detection topic; 所述工控机,还用于在所述通信通道连接正常,且所述版本检测主题中出现所述机台报文的情况下,所述工控机获取所述机台报文中的所述机台报警配置信息。 The industrial computer is further configured to obtain the machine alarm configuration information in the machine message when the communication channel connection is normal and the machine message appears in the version detection topic. 根据权利要求13所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to claim 13, wherein the information synchronization system further comprises: 所述工控机,还用于在所述版本检测点位被触发,且在所述版本检测点位触发后第一预设时间段内所述版本检测主题中未出现所述机台报文的情况下,确定所述发布订阅服务异常,并在第二预设时间段后再次触发所述版本检测点位;The industrial computer is further configured to, when the version detection point is triggered and the machine message does not appear in the version detection topic within a first preset time period after the version detection point is triggered, determine that the publish-subscribe service is abnormal, and trigger the version detection point again after a second preset time period; 所述工控机,还用于在所述版本检测点位未被触发的情况下,在第三预设时间段后再次触发所述版本检测点位。The industrial computer is further configured to trigger the version detection point again after a third preset time period if the version detection point is not triggered. 根据权利要求11至14任一项所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to any one of claims 11 to 14, wherein the information synchronization system further comprises: 所述工控机,还用于在所述第一校验结果表征所述机台报警版本号与所述本地报警版本号一致的情况下,关闭控制器中的版本检测点位;The industrial computer is further configured to disable a version detection point in the controller when the first verification result indicates that the machine alarm version number is consistent with the local alarm version number; 所述触摸屏,还用于在接收到所述版本检测点位关闭的信息的情况下,确定所述机台报警版本号与所述本地报警版本号一致,并显示于所述触摸屏的机台显示界面;The touch screen is further configured to, upon receiving information indicating that the version detection point is closed, determine that the machine alarm version number is consistent with the local alarm version number, and display the result on the machine display interface of the touch screen; 所述触摸屏,还用于在第四预设时间段内未接收到所述版本检测点位关闭的信息的情况下,所述触摸屏确定所述机台报警版本号与所述本地报警版本号不一致,并显示于所述触摸屏的机台显示界面。The touch screen is further configured to determine that the machine alarm version number is inconsistent with the local alarm version number when no information about the version detection point being closed is received within a fourth preset time period, and to display the information on the machine display interface of the touch screen. 根据权利要求11至15任一项所述的信息同步系统,其中,所述报警版本校验请求至少包括工控机的设备资源号;The information synchronization system according to any one of claims 11 to 15, wherein the alarm version verification request at least includes a device resource number of the industrial computer; 所述集控系统,还用于接收到所述报警版本校验请求,对所述本地报警版本号与所述集控系统当前的系统报警配置信息中的系统报警版本号进行第二版本校验,得到第二校验结果,包括:The centralized control system is further configured to receive the alarm version verification request, perform a second version verification on the local alarm version number and the system alarm version number in the current system alarm configuration information of the centralized control system, and obtain a second verification result, including: 所述集控系统,还用于对所述报警版本校验请求进行解析,得到所述工控机对应的设备资源号;The centralized control system is further configured to parse the alarm version verification request to obtain a device resource number corresponding to the industrial computer; 所述集控系统,还用于基于所述设备资源号,在所述集控系统对应的数据库中查询与所述设备资源号对应的系统报警版本号,得到查询结果;其中,所述电池生产线包括多个工控机,所述数据库中包含所述电池生产线上全部工控机对应的本地报警信息,不同工控机对应的本地报警信息相同或不同;The centralized control system is further configured to query, based on the device resource number, a system alarm version number corresponding to the device resource number in a database corresponding to the centralized control system to obtain a query result; wherein the battery production line includes multiple industrial computers, and the database contains local alarm information corresponding to all industrial computers on the battery production line, and the local alarm information corresponding to different industrial computers may be the same or different; 所述集控系统,还用于在所述查询结果表征所述数据库中存在与所述设备资源号对应的系统报警版本号的情况下,将包含所述系统报警版本号和所述设备资源号的系统报文发送至所述工控机,并对所述本地报警版本号与所述系统报警版本号进行第二版本校验,得到第二校验结果。The centralized control system is also used to send a system message containing the system alarm version number and the device resource number to the industrial computer when the query result indicates that there is a system alarm version number corresponding to the device resource number in the database, and perform a second version verification on the local alarm version number and the system alarm version number to obtain a second verification result. 根据权利要求16所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to claim 16, wherein the information synchronization system further comprises: 所述集控系统,还用于在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述集控系统的系统显示界面显示表征所述第二校验结果通过的弹窗;The centralized control system is further configured to display a pop-up window indicating that the second verification result has passed on the system display interface of the centralized control system when the second verification result indicates that the local alarm version number is consistent with the system alarm version number; 所述集控系统,还用于在所述第二校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述系统显示界面显示表征所述第二校验结果未通过的弹窗。The centralized control system is further configured to display a pop-up window on the system display interface indicating that the second verification result has failed when the second verification result indicates that the local alarm version number is inconsistent with the system alarm version number. 根据权利要求16所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to claim 16, wherein the information synchronization system further comprises: 所述集控系统,还用于在所述查询结果表征所述数据库中不存在与所述设备资源号对应的系统报警版本号的情况下,生成异常报文,并将所述异常报文发送至所述工控机;The centralized control system is further configured to generate an exception message when the query result indicates that the system alarm version number corresponding to the device resource number does not exist in the database, and send the exception message to the industrial computer; 所述工控机,还用于在接收到所述异常报文的情况下,在所述工控机的设备显示界面显示所述异常报文。The industrial computer is further configured to display the abnormal message on a device display interface of the industrial computer when the abnormal message is received. 根据权利要求18所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to claim 18, wherein the information synchronization system further comprises: 所述工控机,还用于在接收到所述系统报文的情况下,对所述本地报警版本号与所述系统报警版本号进行第三版本校验,得到第三校验结果;The industrial computer is further configured to perform a third version check on the local alarm version number and the system alarm version number upon receiving the system message, to obtain a third check result; 所述工控机,还用于在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号一致的情况下,在所述设备显示界面显示表征所述第三校验结果通过的弹窗;The industrial computer is further configured to display a pop-up window on the device display interface indicating that the third verification result has passed if the third verification result indicates that the local alarm version number is consistent with the system alarm version number; 所述工控机,还用于在所述第三校验结果表征所述本地报警版本号与所述系统报警版本号不一致的情况下,在所述设备显示界面显示表征所述第三校验结果未通过的弹窗。The industrial computer is further configured to display a pop-up window on the device display interface indicating that the third verification result has failed when the third verification result indicates that the local alarm version number is inconsistent with the system alarm version number. 根据权利要求11至19任一项所述的信息同步系统,其中,所述信息同步系统还包括:The information synchronization system according to any one of claims 11 to 19, wherein the information synchronization system further comprises: 所述触摸屏,还用于基于针对所述触摸屏的机台显示界面的报警配置操作,确定所述工控机对应的多个报警点位和各报警点位对应的报警原因和报警类型;The touch screen is further configured to determine, based on an alarm configuration operation on a machine display interface of the touch screen, a plurality of alarm points corresponding to the industrial computer and an alarm cause and an alarm type corresponding to each alarm point; 所述触摸屏,还用于对所述至少一个报警点位进行标准化处理,得到包括至少一个报警字段的报警数组;其中,一个报警字段对应多个报警点位;The touch screen is further configured to perform standardization processing on the at least one alarm point to obtain an alarm array including at least one alarm field; wherein one alarm field corresponds to multiple alarm points; 所述触摸屏,还用于基于所述报警数组、各报警点位对应的报警原因、各报警点位对应的报警类型和预设的报警版本配置模板,生成具有相同报警版本号的所述机台报警配置信息、所述本地报警配置信息和所述系统报警配置信息; The touch screen is further configured to generate the machine alarm configuration information, the local alarm configuration information, and the system alarm configuration information having the same alarm version number based on the alarm array, the alarm cause corresponding to each alarm point, the alarm type corresponding to each alarm point, and a preset alarm version configuration template; 所述工控机,还用于基于针对所述工控机的设备显示界面的第一数据导入操作,将所述本地报警配置信息导入所述工控机的配置文件中;The industrial computer is further configured to import the local alarm configuration information into a configuration file of the industrial computer based on a first data import operation on a device display interface of the industrial computer; 所述集控系统,还用于基于针对所述集控系统的系统显示界面的第二数据导入操作,将所述系统报警配置信息导入所述集控系统的配置文件中。 The centralized control system is further configured to import the system alarm configuration information into a configuration file of the centralized control system based on a second data import operation on a system display interface of the centralized control system.
PCT/CN2024/102644 2024-02-27 2024-06-28 Information synchronization method and system Pending WO2025179739A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410211703.2A CN117784741B (en) 2024-02-27 2024-02-27 Information synchronization method and system
CN202410211703.2 2024-02-27

Publications (1)

Publication Number Publication Date
WO2025179739A1 true WO2025179739A1 (en) 2025-09-04

Family

ID=90380095

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/102644 Pending WO2025179739A1 (en) 2024-02-27 2024-06-28 Information synchronization method and system

Country Status (2)

Country Link
CN (1) CN117784741B (en)
WO (1) WO2025179739A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117784741B (en) * 2024-02-27 2024-07-23 宁德时代新能源科技股份有限公司 Information synchronization method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032033B1 (en) * 2001-11-30 2006-04-18 Microsoft Corporation Handling collisions during synchronization of data between client and server computers
CN102005818A (en) * 2010-11-10 2011-04-06 国电南瑞科技股份有限公司 Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN108737210A (en) * 2018-04-23 2018-11-02 国网江西省电力有限公司电力科学研究院 It is a kind of based on the intelligent substation configuration file check method monitored in real time
CN112287648A (en) * 2020-10-27 2021-01-29 国电南瑞科技股份有限公司 A method for generating and synchronizing data point table of substation monitoring system based on SCD
CN114495463A (en) * 2022-03-31 2022-05-13 浙江中控技术股份有限公司 Alarm synchronization system and alarm synchronization method
CN117784741A (en) * 2024-02-27 2024-03-29 宁德时代新能源科技股份有限公司 Information synchronization method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265385A (en) * 1996-03-28 1997-10-07 Hitachi Ltd Software integrity management method
JPH09319564A (en) * 1996-05-27 1997-12-12 Mitsubishi Electric Corp Version check method and computer device implementing the method
US8548010B2 (en) * 2000-01-19 2013-10-01 Sony Corporation Method and apparatus for event-based synchronization of information between communication devices
JP2007201692A (en) * 2006-01-25 2007-08-09 Nec Computertechno Ltd Alarm signal control method and device, and electronic equipment employing same
US20080270629A1 (en) * 2007-04-27 2008-10-30 Yahoo! Inc. Data snychronization and device handling using sequence numbers
CN103746840B (en) * 2013-12-30 2017-05-17 迈普通信技术股份有限公司 Method and system for automatic checking of software version information of network equipment
AU2017207319B2 (en) * 2016-01-11 2018-05-24 Equinix, Inc. Architecture for data center infrastructure monitoring
US11402940B2 (en) * 2019-02-25 2022-08-02 Manufacturing Resources International, Inc. Monitoring the status of a touchscreen
CN113900988A (en) * 2021-11-11 2022-01-07 中广核工程有限公司 Drawing and data processing method and device, computer equipment and storage medium
CN116743824A (en) * 2023-06-12 2023-09-12 青岛海信日立空调系统有限公司 Control method and device of centralized control equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032033B1 (en) * 2001-11-30 2006-04-18 Microsoft Corporation Handling collisions during synchronization of data between client and server computers
CN102005818A (en) * 2010-11-10 2011-04-06 国电南瑞科技股份有限公司 Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN108737210A (en) * 2018-04-23 2018-11-02 国网江西省电力有限公司电力科学研究院 It is a kind of based on the intelligent substation configuration file check method monitored in real time
CN112287648A (en) * 2020-10-27 2021-01-29 国电南瑞科技股份有限公司 A method for generating and synchronizing data point table of substation monitoring system based on SCD
CN114495463A (en) * 2022-03-31 2022-05-13 浙江中控技术股份有限公司 Alarm synchronization system and alarm synchronization method
CN117784741A (en) * 2024-02-27 2024-03-29 宁德时代新能源科技股份有限公司 Information synchronization method and system

Also Published As

Publication number Publication date
CN117784741A (en) 2024-03-29
CN117784741B (en) 2024-07-23

Similar Documents

Publication Publication Date Title
CN117784740B (en) Parameter configuration method and system
CN109213132B (en) Method, device and equipment for generating UDS (Universal description System) diagnosis interface software
CN104065545A (en) RS485 bus communication method based on Modbus protocol and power electronic system based on the communication method
CN117784741B (en) Information synchronization method and system
US20220237029A1 (en) Battery management system and controlling method thereof
CN116560721B (en) Vehicle diagnostic systems, methods and electronic devices
WO2025077250A1 (en) Electric energy scheduling policy determination method and apparatus, and computer device and storage medium
CN102984737A (en) Unified parameter configuration method and device for wireless network
CN116118510A (en) Fault diagnosis method, device, equipment and storage medium
CN111752592A (en) A method, client and system for version management and control of secondary equipment in a power system
CN117808496B (en) Method for checking cell inbound and cell inbound system
AU2024287265A1 (en) Electric vehicle charging and discharging operation control platform
Gong et al. Intelligent networking model at the edge of the power Internet of Things
CN113655737A (en) A system and method for rapid upgrade of vehicle electronic controller via CAN transmission
CN118748670A (en) Address allocation method, battery management system and electronic device
WO2025077043A1 (en) End-of-line testing method and system
CN112214257B (en) A method and device for displaying massive load data based on menu-based dynamic configuration
WO2024198906A1 (en) Remote management method and apparatus for vehicle, and device and storage medium
CN110989508A (en) Process decoupling and process combination control system of multi-level standard module
CN116853152A (en) Timing management system and timing management method for electric vehicles
CN116933569A (en) Multi-scale mixed model construction method and device for energy storage digital twin body
CN116388155A (en) Energy scheduling method and device for energy storage system
CN117610518B (en) Engineering bill of materials generation method and device, electronic equipment and storage medium
KR20240153778A (en) Apparutus for managing manufacturing process of battery
Bukin et al. Methodology for developing software for data exchange controllers used in power electronics and industrial automation systems

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24926608

Country of ref document: EP

Kind code of ref document: A1