An AML language verification method

Through the AML language performance verification method, the efficiency bottleneck of AML language when the data volume increases and the accuracy of data exchange between heterogeneous devices is solved, and a performance verification system is established to realize the efficient, accurate and flexible data processing of AML language. , improving the efficiency and disaster tolerance of production control.

CN111796828BActive Publication Date: 2024-11-19GUANGZHOU ZHIXUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910569248.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-27
Publication Date
2024-11-19
Estimated Expiration
2039-06-27

AI Technical Summary

Technical Problem

When the data volume of existing AML languages ​​increases, will there be bottlenecks in the generation and parsing efficiency? In data exchange between heterogeneous devices, the accuracy and security of file parsing are difficult to guarantee, and there is a lack of cross-environment verification methods.

Method used

A method of performance verification of AML language is proposed. Through generation and parsing efficiency verification, the data volume comparison difference is increased, and the programs written in JAVA, C, Visual Basic and other languages ​​are combined to simulate heterogeneous devices to generate and parse AML files, and establish performance verification The system, including engineering information storage center, human-computer interface, control switchboard and equipment, realizes real-time status detection and alarm, and adopts consistency and robustness verification processes.

Benefits of technology

It improves the performance verification capabilities of the AML language, ensures the efficiency and accuracy of data transmission, enhances the disaster recovery and flexibility of production control, optimizes the production process, and achieves cross-environment adaptability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111796828B_ABST
    Figure CN111796828B_ABST
Patent Text Reader

Abstract

The present invention proposes an AML language verification method, including consistency verification and robustness verification; the consistency verification includes the following steps: step one: AutomationMLEditor generation, language parsing; step two: language generation, AutomationMLEditor loading; step three: language generation, language parsing; the robustness verification includes the following steps: step A: parsing according to the data of the error sample to verify its robustness; step B: XML uses DTD and XSD to verify the robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of AML language technology, and in particular to an AML language verification method. Background Art

[0002] Automation Markup Language (AML) is an XML-based factory engineering data exchange format that complies with the GB / T XXX series of standards. The data exchange format (Automation Markup Language, AML) defined in the GB / T XXX series of standards is a data format based on the extensible XML (XML) architecture. It is used to support data exchange between heterogeneous engineering tools.

[0003] AML aims to establish connections between engineering tools in different fields, such as mechanical equipment engineering, electrical design, process engineering, process control engineering, human-machine interface development, PLC programming and robot programming.

[0004] AML follows an object-oriented approach to storing engineering information and allows modeling the physical and logical components of a factory using data objects that encapsulate different aspects. An object can contain other sub-objects and can also belong to a larger combination or aggregation. A typical object in a factory automation project contains topological information, geometric information, motion information, and logical information, while the latter covers sequence, behavior, and control. Therefore, object-oriented data structures, geometric information, motion information, and logical information have become an important focus of data exchange in the engineering field.

[0005] AML integrates existing industrial data formats used to store and exchange different aspects of engineering information. These data formats are implemented independently according to their own specifications and are not branches of AML.

[0006] The core of AML is CAEX, a top-level data format that connects various data formats. Therefore, AML has its inherent distributed document structure.

[0007] AML integrates existing industrial data formats used to store and exchange engineering signals in different fields, so it has a wide range of applications in the framework of intelligent manufacturing systems. AML stores engineering information in an object-oriented paradigm and allows modeling of the actual components of the factory, converting them into data objects that encapsulate different aspects of content.

[0008] AML work is mainly carried out by WG9: AML (Engineering Data Interaction Format) working group under SC65E, the sub-technical committee of the IEC / TC65 Industrial Process Measurement, Measurement and Automation Standardization Technical Committee, which specifies the engineering data interaction format for data engineering design between different engineering tools. Currently, SC65E has released the IEC 62714 series of standards on AML, and it is clear that the series of standards will consist of several parts for different aspects of AML:

[0009] ——Part 1: Architecture and general requirements (IEC 62714-1:2014);

[0010] ——Part 2: Role library (IEC 62714-2:2015);

[0011] ——Part 3: Geometry and motion information (IEC 62714-3 Ed.1.0);

[0012] ——Part 4: Logical information.

[0013] In the process of industrial automation, various parameters in industrial production are used as control purposes to achieve various process controls on equipment. AML is a carrier of information and relationships that describes engineering elements such as the topology, geometry, motion, behavior, and sequence information of equipment. Through the description language, it determines how equipment collaborates, receives and feeds back information in the production process to achieve the expected processing goals.

[0014] Initiated by German automobile manufacturer Daimler, the AutomationML (Automation Markup Language) organization was established in conjunction with industrial enterprises such as ABB, KUKA, Rockwell Automation, Siemens, and some software and service providers, in order to jointly define and standardize an intermediate format for digital factories - Automation Markup Language AML. The AML standard is a free and open standard that is mainly used in manufacturing automation, including robots and logistics, but not limited to these. Its innovation lies mainly in: combining the standards accepted by many important engineering aspects under a single root format (XML format) for application.

[0015] In the process of industrial automation, various parameters in industrial production are used as control purposes to achieve various process controls on equipment. AML is a carrier of information and relationships that describes engineering elements such as the topology, geometry, motion, behavior, and sequence information of equipment. Through the description language, it determines how equipment collaborates, receives and feeds back information in the production process to achieve the expected processing goals. Summary of the invention

[0016] The present invention proposes an AML language performance verification method, which verifies the generation efficiency and parsing efficiency through language, compares the differences by increasing the amount of data, and understands whether the performance of the AML language itself will encounter bottlenecks due to the amount of data.

[0017] In the AML language performance verification method proposed in the present invention, since data will inevitably involve three stages of data assembly, transmission, and parsing during the transmission process, and since the transmission is subject to the control of the protocol and the network, and the amount of data in the AML format is not large, the transmission link can be basically ignored, and the efficiency of generation and parsing is mainly considered.

[0018] The AML language performance verification method proposed in the present invention comprises the following steps:

[0019] Step 1: Verify generation efficiency and parsing efficiency through language;

[0020] Step 2: Compare the differences by increasing the amount of data to determine whether the AML language performance has reached a bottleneck due to the amount of data.

[0021] The verification generation efficiency comprises the following steps:

[0022] Step A: Enter the size of the AML file you want to generate;

[0023] Step B: Read the AML format file;

[0024] Step C: Insert node data, construct the data of the input AML file, and record the generation start time;

[0025] Step D: Generate standard size AML data and record the generation end time;

[0026] Step E: Calculate the generation time by using a time calculator.

[0027] The verification of the parsing efficiency comprises the following steps:

[0028] Step I: Read the AML file and record the reading time;

[0029] Step II: Parse the AML file content and record the end time;

[0030] Step III: Calculate the parsing time using the time calculator.

[0031] In the present invention, the method of increasing the amount of data is: verifying sample data of different sizes, expanding the data samples by multiple different sizes, and verifying in an arithmetic increasing manner.

[0032] In the present invention, the AML language includes: JAVA, C, Visual Basic. Programs written in JAVA, C, Visual Basic and other three languages ​​are used for verification.

[0033] In the present invention, AutomationMLEditor is used to parse AML files of 1 to 10M, which is convenient for intuitively viewing the AML files generated by the program.

[0034] In the present invention, the AML language performance verification method automatically generates files of corresponding sizes according to the rules of the AML format through programs written in three languages, and realizes the automatic generation of AML files of corresponding data sizes according to the AML engineering data format standard. The verification program can automatically calculate the generation and parsing time and store the results of the parsing time. The performance technical effect of simulating multiple heterogeneous devices to generate and parse AML files in three languages ​​is realized.

[0035] The present invention also proposes an AML language performance verification system, specifically an AML language performance verification system in an industrial simulation environment, and its flow chart is as follows: Figure 1 As shown, including:

[0036] Engineering information storage center;

[0037] Human-machine interface, through which the status information of all online devices under the network topology is obtained, the operating status of the devices is checked, and the simulation of factory equipment information collection is realized; the historical operating information of all devices stored in the engineering information storage center is checked through the human-machine interface, so as to track the operating status of a single device;

[0038] The control switchboard controls the scene, is responsible for reporting data from the terminal and sending it to multiple designated terminals, and can realize engineering data exchange in a network environment to simulate information communication between factory equipment;

[0039] The device sends out erroneous AML data through the device, and the control switchboard can identify the erroneous data and feed back to the human-machine interface.

[0040] In the present invention, the equipment list is coded by C language; the control switchboard is written by JAVA language; the human-machine interface is composed of a PC browser; and the engineering information storage center is composed of a database server.

[0041] In the present invention, both the device and the control switchboard have the ability to generate and analyze AML data.

[0042] In the present invention, the control switchboard is composed of the following modules: a module for communicating with a human-machine interface, a module for issuing instructions, a module for processing instructions, a module for receiving information, and a module for communicating with an information storage center.

[0043] In the present invention, the information of the client workstation is displayed through a human-machine interface.

[0044] Currently, in the entire verification system, the client is displayed through the terminal console. If the information of the client workbench can be displayed through the human-computer interface, the verification effect will be more intuitive.

[0045] The AML language performance verification system proposed in the present invention can display and record the collected equipment status information, motion information, and fault information in real time. If a fault or abnormality occurs, the control center can issue an alarm and initiate other control measures. In order to conduct real-time detection, evaluation and comparative analysis of the system operation status; the equipment has achieved communication connection, and the production information and machine status are collected by the information storage center of the production line control core. The establishment of a web monitoring network can easily realize the expansion of external access to convey production control information; the equipment operation sequence can be configured on the PC side to realize the scheduling of equipment production. Dynamic adjustment of production assembly parameters can optimize the production process. The verification device is configurable, and the verification of various processes can be realized through parameter configuration; it has good performance in production management and process control, and realizes the simulation of the production control process with minimum cost.

[0046] The devices simulated by C language and the switchboard simulated by JAVA language exchange data through the lower-level TCP method to ensure the stability, reliability and efficiency of the data. The information sending process uses a multi-threaded asynchronous method to avoid the blocking problem of sending tasks. The system architecture is a DCS distributed control system. External devices transmit device status information to the control switchboard through the "heartbeat" method to display it on the human-machine interface, and historical data can be viewed in near real time. The reported data is stored in the engineering data storage center in a heterogeneous manner, and the engineering data storage center can be dynamically expanded according to actual needs.

[0047] The present invention also proposes an AML language verification method, including consistency verification and robustness verification;

[0048] The consistency check, its flow chart is as follows Fig.14 As shown, the following steps are included:

[0049] Step 1: AutomationMLEditor generates and parses the language;

[0050] Step 2: Language generation, AutomationMLEditor loading;

[0051] Step 3: Language generation and language analysis.

[0052] The step 1 is manually edited by the AutomationMLEditor tool to generate a standard AML format and save it as an .aml format file; after reading the .aml format file, the .aml format file is parsed according to the process and the corresponding object and relationship information is constructed to achieve a display effect similar to that of the AutomationMLEditor tool to compare the data structure.

[0053] In the step 2, the object and relationship structure are constructed with reference to the AutomationMLEditor tool to generate an .aml file, and the file is loaded through the AutomationMLEditor tool. If the file can be loaded normally, the generated data is available and complete.

[0054] In the step three, the object and relationship structure are constructed with reference to the AutomationMLEditor tool to generate an .aml file, and the file is parsed by a Visual Basic program to compare the data structure differences.

[0055] The robustness check, its flow chart is as follows Fig.15 As shown, the following steps are included:

[0056] Step A: Analyze the data of the error sample to verify its robustness;

[0057] Step B: XML uses DTD and XSD to verify robustness.

[0058] The step A comprises:

[0059] Step A1: Prepare incomplete AML data;

[0060] Step A2: Tool / parser verification;

[0061] Step A3: Throws an error message.

[0062] The step A1 comprises:

[0063] Step A11: Modify the syntax or label information in the original correct AML data;

[0064] Step A12: Delete necessary structures to form incomplete AML data.

[0065] The step A11 comprises:

[0066] a) Delete necessary closing information;

[0067] b) The start and end tags are inconsistent;

[0068] c) Modify the relationship between devices;

[0069] d) Establishing incorrect correspondence between labels and attributes.

[0070] In step B, DTD is used to verify whether the document complies with the specification and whether the elements and tags are used correctly by comparing the XML document with the DTD file.

[0071] The verification using XSD in step B includes:

[0072] Use a specified XML Schema to validate an XML document to check whether the XML document meets its requirements;

[0073] Use XML Schema to specify the allowed structure and content of an XML document, and use this to check whether the XML document is valid;

[0074] Parse with a general-purpose XML parser.

[0075] In the present invention, the AML language verification method maintains the same structure and logical content between the AML file generated by the AutomationMLEditor tool and the AML files generated and parsed in three languages. The three languages ​​simulate heterogeneous systems generate consistent indicators of AML files according to rules, and also achieve the consistency indicators of AML files generated by heterogeneous systems. The correctness specification of the generated AML files is achieved through DTD, and the files generated not in accordance with AML rules cannot be parsed by programs and tools.

[0076] In the present invention, the consistency index, generation efficiency and parsing efficiency of the AML file are crucial to the AML language.

[0077] At present, there is no engineering practice in the industry to verify AML, which has broken through the accuracy of parsing AML files between heterogeneous languages, the security of transmission and storage, and the limitation of a single environment for AML file verification. The present invention simulates heterogeneous devices through C language, and performs performance verification on the adaptability of the language to the industrial production control process in an industrial simulation environment.

[0078] The beneficial effect of the present invention is that the AML language performance verification method and device proposed in the present invention can be reflected in the improvement of yield, quality, accuracy and efficiency, saving of energy consumption, raw materials and processes, simplicity of processing, operation, control and use, control or eradication of environmental pollution, and the emergence of useful performance (technical indicators).

[0079] Information transmission uses tokens to ensure the consistency of information transmitted between devices. Redundant terminals are used to improve the disaster tolerance of the system. Various industrial production control scenarios are simulated by dynamically configuring external devices, and the system operation efficiency is improved by parallel execution schemes. The parser ensures that file transmission is not distorted through powerful document pre-parsing control. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 It is a flow chart of the AML language performance verification system of the present invention.

[0081] Figure 2 This is the overall idea of ​​the verification method described in the present invention.

[0082] Figure 3 This is a schematic diagram of the scene design in Example 1.

[0083] Figure 4 This is a schematic diagram of memory storage in Example 1.

[0084] Figure 5 , 6 , 7, 8, 9, 10, 11, 12, and 13 are schematic diagrams of the steps in Example 1.

[0085] Fig.14 This is a flow chart of the AML language consistency verification of the present invention.

[0086] Fig.15 The figure is a flow chart of the robustness verification of the AML language of the present invention.

[0087] Fig.16 Schematic diagram of the AutomationMLEditor tool calibration.

[0088] Fig.17 A diagram showing the Visual Basic parser validation.

[0089] Fig.18 , 19 20 is a flow chart of the AML language performance verification method.

[0090] Fig.21 A schematic diagram of the topological structure.

[0091] Fig. 22 , 23 , 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33 are schematic diagrams of the steps in Example 4.

[0092] Fig.34 , 35 , 36, 37, 38, 39, 40, 41, 42, and 43 are schematic diagrams of the steps in Example 5. DETAILED DESCRIPTION

[0093] The present invention is further described in detail with reference to the following specific examples and drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the contents specifically mentioned below, are all common knowledge and common common sense in the art and are not particularly limited by the present invention.

[0094] The overall steps of the verification method of the present invention are as follows Figure 2 As shown:

[0095] The standardized AML file is used as a unified data source to generate standardized and standard AML files through the AutomationMLEditor tool, and parsed through languages ​​such as JAVA, C, Visual Basic, etc. Similarly, the standardized AML files generated by the language according to the specification can also be parsed by the AutomationMLEditor tool and other languages.

[0096] Bidirectional generation and parsing are performed using the AutomationMLEditor tool and languages ​​such as JAVA, C, and Visual Basic to eliminate language impact and test the performance of the AML language.

[0097] 1. Generate data in AML format through AutomationMLEditor tool and parse it in JAVA, C, Visual Basic and other languages;

[0098] 2. Generate data in AML format through JAVA, C, Visual Basic language and parse it with AutomationMLEditor tool.

[0099] When receiving and feeding back information, consistency and completeness of the information must be maintained.

[0100] The verification process of this embodiment is as follows: Figure 3 The following is a scenario design, in which the user generates a standard AML file and parses the AML data source through a generator and a parser. This process is a cyclic, closed-loop process, and AML data can be generated and parsed by any generator to ensure that data is not lost.

[0101] 1. Standard AML data source: It is a series of data sets, including entity attributes, relationships, etc. These contents are not converted into the standard AML format and stored in memory, such as Figure 4 shown.

[0102] After the relationship between objects is defined logically, it is converted into a specific AML format through a specific language and generator.

[0103] 2. Read the data source: After the generator obtains the logical definition of objects and relationships, it completes the information correspondence between the data source and the physical results through language development and manual drawing.

[0104] 3. Construct AML data: The data source being read is constructed according to the AML generation rules, and the data source is analyzed and combined to form data in AML format and stored in memory.

[0105] 4. Generate AML file: Output the constructed AML data and generate an entity .aml format file.

[0106] 5. Read AML file: The parser reads and identifies the .aml file and determines whether the file is legal.

[0107] 6. Parsing AML files: After reading the AML file, the data stream is read into the memory through the file reading function, and the memory is sorted and combined through language control, and the data is extracted according to the AML rules and combined into a new data structure.

[0108] 7. Construct data: After the data is parsed, it will be constructed into a special data structure according to the characteristics of the language and stored in the memory, forming a standard AML data source for regenerating data in AML format.

[0109] The consistency verification method in this embodiment is as follows:

[0110] 1. AutomationMLEditor generation, language parsing

[0111] Based on the above scenario, this example verifies the use of AutomationMLEditor tool and JAVA, C, VisualBasic three languages ​​to simulate the scenario of using AML language to control the control process of automobile assembly line equipment. These three languages ​​have mature applications in the transmission and control of instructions for small equipment. First, manually edit through the AutomationMLEditor tool to generate a standard AML format and save it as a .aml format file, such as Figure 5 shown.

[0112] The generated data is in text format and can be viewed by a text editor, such as Figure 6 .

[0113] Taking Visual Basic program as an example, after reading the .aml file, the file can be parsed according to the process and the corresponding object and relationship information can be constructed to achieve a display effect similar to that of the AutomationMLEditor tool, such as Figure 7 .

[0114] Figure 8 For comparison purposes, the data structure can be basically restored completely.

[0115] 2. Language generation, AutomationMLEditor loading

[0116] Take Visual Basic program as an example, refer to AutomationMLEditor tool to build object and relationship structure, generate .aml file, and load it through AutomationMLEditor tool. Fig. 9 shown.

[0117] The .aml file generated according to the data format, such as Fig.10 As shown:

[0118] Load the generated AML data in the AutomationMLEditor tool. If it can be loaded normally, it means that the generated data is usable and complete. Fig.11 shown.

[0119] 3. Language generation and language analysis

[0120] Take Visual Basic program as an example, refer to AutomationMLEditor tool to build object and relationship structure, generate .aml file, and parse it through Visual Basic program to compare the differences. Fig. 9 .

[0121] The .aml file generated according to the data format, such as Fig.10 shown.

[0122] The results after self-generation and parsing using Visual Basic are as follows Fig.12 shown.

[0123] like Fig.13 , through comparison we can know.

[0124] Through the above verification, we can know that no matter whether AML language is generated and parsed by AutomationMLEditor tool or JAVA, C, Visual Basic language, through the generation and parsing of the above three methods, we can know that the .aml files generated by AML language can be parsed without language restriction, which ensures consistency in the generation and parsing process.

[0125] The robustness check in this embodiment, which is also called fault tolerance, is used to test whether the system can automatically recover or ignore the fault and continue to run when a fault occurs.

[0126] AML is an extension based on XML. The grammatical rules of XML require a relatively structured structure. Strict grammar and structure are a mechanism to ensure robustness. XML interpreter is an application that performs grammatical parsing and error detection on XML documents.

[0127] Since AML is a descriptive language that is not executable by itself, the robustness test of AML mainly verifies its robustness by analyzing AML’s error samples.

[0128] The robustness check for AML inherits the robustness of XML, so it can be processed using the general XML check method. Existing languages ​​have very strict checks for XML parsing, such as JAVA, C, Visual Basic, etc., which all provide corresponding parsers.

[0129] This embodiment verifies that three languages ​​are selected for verification, namely JAVA, C, and Visual Basic, and XML's own verification mode is also adopted.

[0130] The robustness verification method in this embodiment is as follows:

[0131] 1. The AutomationMLEditor tool and the three languages ​​JAVA, C, and Visual Basic use the provided XML parsing tools to parse the data according to the error samples to verify its robustness.

[0132] 1: Modify the syntax or label information in the original correct AML data.

[0133] e) Delete necessary closing information.

[0134] f) The start and end tags are inconsistent.

[0135] g) Modify the relationship between devices, such as reversing the subordinate or parent-child relationship.

[0136] h) Establishing incorrect correspondence between labels and attributes, such as adding attribute information of action execution to the description of the device.

[0137] 2: Delete necessary structures to form incomplete AML data

[0138] For example, in the generated .aml script, replace the InstanceHierarchy tag with InstanceHierarchy_TMP. The effect of parsing through tools and languages ​​is as follows:

[0139] 1. AutomationMLEditor tool verification

[0140] The AutomationMLEditor tool cannot load data that has been modified to an incorrect label, such as Fig.16 shown.

[0141] 2. Visual Basic parser verification

[0142] The Visual Basic parser cannot load data that has been modified into an incorrect tag, such as Fig.17 shown.

[0143] 2. XML uses DTD and XSD to verify its robustness.

[0144] 1: The validation mode of XML files ensures the correctness of XML files. There are two commonly used validation modes: DTD and XSD.

[0145] a) Use DTD for verification

[0146] DTD (Document Type Definition) is a document type definition, an XML constraint model language, a validation mechanism for XML files, and a part of XML files. DTD is an effective way to ensure that the format of XML documents is correct. You can compare XML documents with DTD files to see whether the documents comply with the specifications and whether the elements and tags are used correctly.

[0147] b) Use XSD for verification

[0148] XML Schema language is XSD (XML Schemas Definition). XML Schema describes the structure of an XML document. You can use a specified XML Schema to validate an XML document to check whether the XML document meets its requirements. Document designers can use XML Schema to specify the allowed structure and content of an XML document, and can use this to check whether an XML document is valid. XML Schema itself is an XML document that conforms to the XML syntax structure. It can be parsed by a general XML parser.

[0149] In the AML specification, we can see that the introduced XSD is CAEX_ClassModel_V2.15.xsd. CAEX_ClassModel_V2.15.xsd can be used to verify the legality and integrity of the document.

[0150] The data transmission process inevitably involves three stages: data assembly, transmission, and parsing. Since the transmission is subject to the control of the protocol and the network, and the amount of data in the AML format is not large, the transmission link can be basically ignored, and the main consideration is the efficiency of generation and parsing.

[0151] The efficiency of generation and parsing is verified through language, and the differences are compared by increasing the amount of data to understand whether the performance of the AML language itself will be bottlenecked by this amount.

[0152] The flowchart of the AML language performance verification method is as follows Figure 18-20 shown.

[0153] (1) Generation time span: the time from the start of generation to the formation of the .aml file;

[0154] (2) Parsing time span: the time consumed from reading the .aml file to displaying the data.

[0155] Table 1: Tools, development languages, and scenario selection

[0156] Serial number Language or tool name Development content Remark 1 AutomationMLEditor Generating and parsing large files Check how long it takes to load. 2 JAVA Generate and parse programs Record generation and parsing time consumption. 3 C Generate and parse programs Record generation and parsing time consumption. 4 Visual Basic Generate and parse programs Record generation and parsing time consumption.

[0157] The sample data in this embodiment needs to be provided in different sizes for verification, and is expanded in 10 different sizes, with the initial value being 1M, the second being 10M, and each subsequent increase of 10M for verification.

[0158] The AML language performance verification scheme and effect in this embodiment are as follows:

[0159] Table 2: C language

[0160]

[0161]

[0162] Table 3: VB language

[0163]

[0164]

[0165] Table 4: JAVA language

[0166]

[0167] This embodiment proposes a method for verifying the engineering data exchange format for industrial automation system engineering, and performs communication simulation of AML data according to the actual application scenario of an automobile assembly production line.

[0168] In the operation of automated factory equipment, various devices need to work together through the enterprise's communication network. This process involves data generation, transmission, processing, storage, and display.

[0169] This embodiment simulates the construction of a device structure based on a common factory automation device network topology and simulates actual usage scenarios in industrial automation production through data transmission between devices.

[0170] The central control system consists of a device list coded in C language, a control switchboard written in JAVA language, a PC browser forming a human-machine interface, and a database server forming an engineering information storage center. Both the device and the control switchboard have the ability to generate and analyze AML data. Fig.21 shown.

[0171] The AML language performance verification system in the industrial simulation environment of this embodiment includes: an engineering information storage center; a human-machine interface; a control switchboard; and equipment. The verification steps of the verification device are as follows:

[0172]

[0173] The following scenario tests are performed under the device network structure:

[0174] (1) The device reads all device status information and displays it on the terminal page

[0175] Through the PC-side human-machine interface, we can obtain the status information of all online devices under the network topology and view the operating status of the devices, thereby simulating the collection of factory equipment information.

[0176] After starting the server, enter http: / / 127.0.0.1:8080 / aml / home in the browser to enter the human-machine interface. Fig. 22 shown.

[0177] Start each client, such as Fig.23 After the terminal is started, the human-machine control interface is displayed, as shown in the figure below: Fig.24 .

[0178] (2) Two-way communication between equipment and switchboard

[0179] The console simulates the switchboard control scenario and is responsible for reporting data from the terminal and sending it to multiple designated terminals. It can realize engineering data exchange in a network environment and thus simulate information communication between factory equipment.

[0180] Select the terminal and click "Send file to device" to send data to the terminal. Fig.25 .

[0181] After receiving the request, the terminal starts parsing and displays the parsing results, such as Fig.26 .

[0182] The C parser parses the file, such as Fig. 27 .

[0183] (3) The historical action information of all devices can be viewed through the human-machine interface

[0184] Through the human-machine interface, you can view the historical operation information of all devices stored in the server, thereby tracking the operating status of a single device.

[0185] The terminal reports the correct aml, such as Fig.28 .

[0186] The terminal reports an error in the aml file, such as Fig.29 .

[0187] The console checks the data reported by the terminal, such as Fig.30 .

[0188] (4) The device generates erroneous AML data, which the host can identify and issue an error warning on the human-machine interface. The device 1 sends erroneous AML data, which the host can identify and feedback to the human-machine interface.

[0189] check:

[0190] × indicates that the uploaded aml file is incorrect, √ indicates that the uploaded aml file is correct and can be parsed normally. Fig.31 .

[0191] Click View to let the Java parser parse the wrong file, and the parsing failure will be prompted, such as Fig.32 .

[0192] View the correct aml and parsing interface, such as Fig.33 .

[0193] Verification of production control process in automobile assembly line

[0194] In the process of industrial automation production, various parameters in industrial production are used as control purposes to achieve various process controls of equipment. AML is a carrier of information and relationships that describes engineering elements such as the topology, geometry, motion, behavior and sequence information of the equipment. Through the description language, it determines how the equipment collaborates in the production process, receives and feeds back information to achieve the expected processing goals.

[0195] Both JAVA and C languages ​​have mature applications in command transmission and control of equipment. This embodiment verifies the control scenario of simulating the control process of automobile assembly line equipment using AML language.

[0196] According to the production process control process, the model is Fig.21 As shown in the figure, device 1 represents a conveyor belt, device 2 represents a turning device, and device 3 represents an assembly device.

[0197] The simulation verification steps are as follows:

[0198] (1) Send the AML file to device 1 through the human-machine interface and the control switchboard to start the operation of device 1, simulating the start-up transmission of the conveyor belt.

[0199] Through the human-machine interface, select the terminal equipment (steering equipment, assembly equipment), then select the production equipment, simulate the conveyor belt, and click "Send production request to equipment" to send it. Fig.34 .

[0200] (2) After receiving the console command, device 1 triggers the conveyor belt to work, and after a period of time, sends the AML file to device 2. After receiving the information, device 2 performs language analysis to simulate the turning of the vehicle body. Then, it sends the AML file to device 3.

[0201] The terminal with IP address 192.168.8.78 (device 1) simulates the conveyor belt, and after receiving the request, it triggers the production. After completion, it sends a request to the "steering device" at 192.168.8.59 (device 2), such as Fig.35 .

[0202] (3) Device 3 receives and parses the AML file to simulate the assembly process of the car wheel, and pushes the AML data after the assembly is completed to the console.

[0203] After receiving the request, (Device 2) starts to assemble, and after assembling, sends a request to the assembly device at 192.168.8.77 (Device 3), such as Fig.36 .

[0204] (4) After receiving the data synthesized by the device 3 terminal, the console can display the assembled AML information on the human-machine interface to show the generated product information.

[0205] After receiving the request, (device 3) performs data synthesis and sends it to the console after synthesis is completed, such as Fig.37 .

[0206] (5) The above process can be performed step by step by setting the number of wheels to be assembled at a time during the assembly process on the human-machine interface to verify the adaptability of the system and the AML language.

[0207] Check the results, such as Fig.38 , 39 .

[0208] The aml file used in this test has only one node in the InternalElement device list before it is sent, such as Fig.40 ; After assembly, there are 4 more nodes, as expected, such as Fig.41 .

[0209] Assembly synthesis: combine the data reported by the terminal into a file, and then send it to the Java parser for parsing, such as Fig.42 .

[0210] Can correctly parse, such as Fig.43 .

[0211] Through the above steps, the synthesis and transmission simulation of AML data in the transportation, steering, assembly and other processes in automobile assembly production control can be realized. Its design concept can be extended to other occasions of industrial field control.

[0212] Embodiments 4 and 5 of the present invention both use computer control, network and information processing technology, and are representative in the industrial production control process. The JAVA language and C language simulation constitute the terminal equipment to test the performance of the AML language in data generation, storage, transmission, synthesis display, etc. in the simulated industrial production environment.

[0213] The scheme involves the collection and processing of equipment status information, process information, and action information, and determines how the equipment coordinates information to achieve the expected processing goals during the production process. Therefore, the experiment of using AML as an information carrier to realize the transmission of production information in the process of industrial production control can simulate the real production process to a high degree. The verification scheme of the present invention has practical significance and can preliminarily verify the performance of AML in actual industrial production.

[0214] Table 5: Results Analysis

[0215]

[0216]

[0217] The protection content of the present invention is not limited to the above embodiments. Without departing from the spirit and scope of the inventive concept, changes and advantages that can be thought of by those skilled in the art are included in the present invention and are protected by the attached claims.

Claims

1. An AML language verification and performance verification method, characterized in that: AML language performance verification includes the following steps: Step A: Verify generation efficiency and parsing efficiency through language; Step B: comparing the differences by increasing the amount of data to determine whether the performance of the AML language has a bottleneck due to the amount of data; the method of increasing the amount of data is: verifying sample data of different sizes, expanding with multiple data samples of different sizes, and verifying in an arithmetic increasing manner; the AML languages ​​include: JAVA, C, Visual Basic; programs written in JAVA, C, and Visual Basic are used for verification; The verification generation efficiency comprises the following steps: Step A11: Enter the size of the AML file you want to generate; Step A12: Read the AML format file; Step A13: insert node data, construct the data of the input AML file, and record the generation start time; Step A14: Generate standard size AML data and record the generation end time; Step A15: Calculate the generation time by a time calculator; The verification of the parsing efficiency comprises the following steps: Step A21: Read the AML file and record the reading time; Step A22: Parse the AML file content and record the end time; use AutomationMLEditor to parse the AML file of 1 to 10M to facilitate intuitive viewing of the AML file generated by the program; Step A23: Calculate the parsing time by a time calculator; The AML language performance verification method uses programs written in three languages ​​to automatically generate files of corresponding sizes according to the rules of the AML format, thereby automatically generating AML files of corresponding data sizes according to the AML engineering data format standard; the verification program automatically calculates the generation and parsing time, stores the results of the parsing time, and realizes the performance of simulating the generation and parsing of AML files by multiple heterogeneous devices using three languages; AML language verification includes consistency verification and robustness verification; The consistency check comprises the following steps: Step 1: AutomationMLEditor generates and parses the language; Step 2: Language generation, AutomationMLEditor loading; Step 3: Language generation and language analysis; The robustness check includes the following steps: Step X: Analyze the data of the error sample to verify its robustness; Step Y: XML uses DTD and XSD to verify robustness.

2. The AML language verification and performance verification method according to claim 1, characterized in that: The step 1 is manually edited by the AutomationMLEditor tool to generate a standard AML format and save it as an .aml format file; after reading the .aml format file, the .aml format file is parsed according to the process and the corresponding object and relationship information is constructed to achieve a display effect similar to that of the AutomationMLEditor tool to compare the data structure.

3. The AML language verification method according to claim 1, characterized in that: In the step 2, the object and relationship structure are constructed with reference to the AutomationMLEditor tool to generate an .aml file, and the file is loaded through the AutomationMLEditor tool. If the file can be loaded normally, the generated data is usable and complete.

4. The AML language verification and performance verification method according to claim 1, characterized in that: In the step three, the object and relationship structure are constructed with reference to the AutomationMLEditor tool to generate an .aml file, and the file is parsed by a Visual Basic program to compare the data structure differences.

5. The AML language verification and performance verification method according to claim 1, characterized in that: The step X comprises: Step X1: Prepare incomplete AML data; Step X2: Tool / parser verification; Step X3: Throws an error message.

6. The AML language verification and performance verification method according to claim 5, characterized in that: The step X1 comprises: Step X11: Modify the syntax or label information in the original correct AML data; Step X12: Delete necessary structures to form incomplete AML data.

7. The AML language verification and performance verification method according to claim 6, characterized in that: The step X11 comprises: Step X111: Delete necessary closing information; Step X112: The start and end tags are inconsistent; Step X113: Modify the relationship between devices; Step X114: Establish the correspondence between the error label and the attribute.

8. The AML language verification and performance verification method according to claim 1, characterized in that: In the step Y, DTD is used to verify whether the document complies with the specification and whether the elements and tags are used correctly by comparing the XML document with the DTD file.

9. The AML language verification and performance verification method according to claim 1, characterized in that: The verification using XSD in step Y includes: Use a specified XML Schema to validate an XML document to check whether the XML document meets its requirements; Use XML Schema to specify the allowed structure and content of an XML document, and use this to check whether the XML document is valid; Parse with a general-purpose XML parser.