CN111796828A - An AML language verification method - Google Patents
An AML language verification method Download PDFInfo
- Publication number
- CN111796828A CN111796828A CN201910569248.2A CN201910569248A CN111796828A CN 111796828 A CN111796828 A CN 111796828A CN 201910569248 A CN201910569248 A CN 201910569248A CN 111796828 A CN111796828 A CN 111796828A
- Authority
- CN
- China
- Prior art keywords
- aml
- language
- data
- file
- information
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/81—Indexing, e.g. XML tags; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
本发明提出了一种AML语言校验方法,包括一致性校验和健壮性校验;所述一致性校验包括以下步骤:步骤一:AutomationMLEditor生成,语言解析;步骤二:语言生成,AutomationMLEditor加载;步骤三:语言生成,语言解析;所述健壮性校验包括以下步骤:步骤A:在按照错误样本的数据情况下进行解析,以校验其健壮性;步骤B:XML利用DTD和XSD来校验健壮性。
The present invention provides an AML language verification method, including consistency verification and robustness verification; the consistency verification includes the following steps: Step 1: Generation of AutomationMLEditor, language analysis; Step 2: generation of language, loading of AutomationMLEditor ; Step 3: language generation, language parsing; the robustness check includes the following steps: Step A: parsing according to the data of the wrong sample to verify its robustness; Step B: XML utilizes DTD and XSD to Check robustness.
Description
技术领域technical field
本发明涉及AML语言技术领域,尤其涉及一种AML语言校验方法。The invention relates to the technical field of AML language, in particular to an AML language verification method.
背景技术Background technique
自动化标记语言Automation Markup Language(以下简称AML)是符合GB/T XXX系列标准的基于XML语言的工厂工程数据交换格式,GB/T XXX系列标准中定义的数据交换格式(自动化标识语言,AML)是一种基于可扩展语言(XML)架构的数据格式,它被用于支持异构工程工具之间的数据交换。Automation Markup Language (hereinafter referred to as AML) is an XML-based factory engineering data exchange format that complies with GB/T XXX series standards. The data exchange format (Automation Markup Language, AML) defined in GB/T XXX series standards is A data format based on the Extensible Language (XML) schema that is used to support data exchange between heterogeneous engineering tools.
AML旨在建立不同领域的工程工具之间的联系,例如机械装备工程、电气设计、过程工程、过程控制工程、人机界面开发、PLC编程和机器人编程等。AML aims to establish linkages 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 robotics programming.
AML遵循面向对象的方法存储工程信息,并且允许用封装有不同方面内容的数据对象对工厂的物理和逻辑组成部分进行建模。一个对象可包含其他子对象,也可隶属于一个更大的组合或聚合。工厂自动化项目中一个典型对象包含拓扑信息、几何信息、运动信息以及逻辑信息,而逻辑信息涵盖了序列、行为和控制。因此,面向对象的数据结构、几何信息、运动信息和逻辑信息就成为了工程领域中数据交换的一个重要焦点。AML follows an object-oriented approach to storing engineering information and allows the physical and logical components of a factory to be modeled with data objects that encapsulate different aspects. An object can contain other sub-objects, and can also be part of a larger group or aggregate. A typical object in a factory automation project contains topology information, geometric information, motion information, and logic information, and logic information covers sequence, behavior, and control. Therefore, object-oriented data structures, geometric information, motion information and logic information have become an important focus of data exchange in the engineering field.
AML整合了现有的用来存储和交换工程信息中不同方面内容的工业数据格式。这些数据格式按照各自的规范独立实施,并不属于AML的分支。AML integrates existing industrial data formats used to store and exchange different aspects of engineering information. These data formats are implemented independently in accordance with their respective specifications and are not branches of AML.
AML的核心是联系各种数据格式的顶层数据格式CAEX。因此,AML有其固有的分布式文档结构。The core of AML is the top-level data format CAEX that links various data formats. Therefore, AML has its inherent distributed document structure.
AML整合现有用来在不同领域内存储和交换工程信号的工业数据格式,因此在智能制造体系框架下,有着非常广泛的应用。AML以面向对象范型的方式储存工程信息,并且允许对工厂的实际组成部分进行建模,将它们转化为封装有不同方面内容的数据对象。AML integrates existing industrial data formats used to store and exchange engineering signals in different fields, so it has a very wide range of applications under the framework of intelligent manufacturing systems. AML stores engineering information in an object-oriented paradigm and allows modeling of the actual components of a factory, turning them into data objects that encapsulate different aspects.
AML工作主要由IEC/TC65工业过程测量、测量和自动化标准化技术委员会分技术委员会SC65E企业系统中的设备和集成下设的WG9:AML(工程数据交互格式)工作组负责,该工作组为不同工程工具间的数据工程设计规定工程数据交互格式。目前SC65E已经发布了IEC 62714关于AML的系列标准,并明确该系列标准将由针对AML不同方面的几个部分组成:The AML work is mainly responsible for the WG9: AML (Engineering Data Interaction Format) working group under the IEC/TC65 Industrial Process Measurement, Measurement and Automation Standardization Technical Committee Subcommittee SC65E Equipment and Integration in Enterprise Systems. The data engineering design between tools specifies the engineering data interaction format. At present, SC65E has released a series of standards for AML in IEC 62714, and it is clear that this series of standards will consist of several parts for different aspects of AML:
——第1部分:架构和通用要求(IEC 62714-1:2014);- Part 1: Architecture and general requirements (IEC 62714-1:2014);
——第2部分:角色库(IEC 62714-2:2015);- Part 2: Character library (IEC 62714-2:2015);
——第3部分:几何和运动信息(IEC 62714-3 Ed.1.0);- Part 3: Geometric and kinematic information (IEC 62714-3 Ed.1.0);
——第4部分:逻辑信息。- Part 4: Logical information.
在工业自动化处理过程中,会以工业生产中的各种参数为控制目的,实现对设备的各种过程控制,AML即为描述设备的拓扑、几何、运动、行为和序列信息等工程元素的信息和关系的载体,通过描述语言,确定设备在生产过程中如何协同,接收和反馈信息从而达到预期的处理目标。In the process of industrial automation processing, various parameters in industrial production are used as control purposes to realize various process control of equipment. AML is the information describing engineering elements such as topology, geometry, motion, behavior, and sequence information of equipment. And the carrier of the relationship, through the description language, to determine how the equipment cooperates in the production process, receives and feedback information to achieve the expected processing goals.
由德国的汽车制造商Daimler发起,联合了ABB、KUKA、Rockwell Automation、Siemens等工业企业以及一些软件和服务商,成立了AutomationML(Automation MarkupLanguage)组织,为的就是通过共同定义数字化工厂的一种中间格式——自动化标记语言AML,并进行标准化。AML标准是一种免费的开放标准,主要用于制造自动化,包括机器人和物流,但不局限于此。其创新主要在于:在一个单一的根格式(XML格式)下将许多重要工程方面所接受的标准综合起来予以应用。Initiated by the German car manufacturer Daimler, it has united industrial companies such as ABB, KUKA, Rockwell Automation, Siemens, as well as some software and service providers to set up the AutomationML (Automation MarkupLanguage) organization, in order to jointly define a digital factory. Format - Automated Markup Language AML, and standardized. The AML standard is a free and open standard primarily used for manufacturing automation, including but not limited to robotics and logistics. The main innovation lies in the integration and application of standards accepted by many important engineering aspects under a single root format (XML format).
在工业自动化处理过程中,会以工业生产中的各种参数为控制目的,实现对设备的各种过程控制,AML即为描述设备的拓扑、几何、运动、行为和序列信息等工程元素的信息和关系的载体,通过描述语言,确定设备在生产过程中如何协同,接收和反馈信息从而达到预期的处理目标。In the process of industrial automation processing, various parameters in industrial production are used as control purposes to realize various process control of equipment. AML is the information describing engineering elements such as topology, geometry, motion, behavior, and sequence information of equipment. And the carrier of the relationship, through the description language, to determine how the equipment cooperates in the production process, receives and feedback information to achieve the expected processing goals.
发明内容SUMMARY OF THE INVENTION
本发明提出了一种AML语言性能验证方法,通过语言来验证生成效率和解析的效率,通过增加数据量的方式对比差异性,了解AML语言本身的性能是否会因数据量而出现瓶颈。The invention proposes an AML language performance verification method, which uses language to verify the generation efficiency and parsing efficiency, and compares the differences by increasing the amount of data to understand whether the performance of the AML language itself will bottleneck due to the amount of data.
本发明提出的AML语言性能验证方法中,由于数据在传输过程中不可避免的会涉及到数据组装,传输,解析三个阶段,由于传输受制于协议和网络的控制,而AML格式的数据量并不大,因此传输环节基本可以忽略不计,主要考虑生成和解析的效率。In the AML language performance verification method proposed by the present invention, three stages of data assembly, transmission and analysis are inevitably involved in the data transmission process. Since the transmission is subject to the control of the protocol and the network, the amount of data in the AML format does not It is not large, so the transmission link can be basically ignored, and the efficiency of generation and analysis is mainly considered.
本发明提出的AML语言性能验证方法,包括以下步骤:The AML language performance verification method proposed by the present invention includes the following steps:
步骤一:通过语言来验证生成效率和解析效率;Step 1: Verify generation efficiency and parsing efficiency through language;
步骤二:通过增加数据量的方式对比差异性,确定AML语言性能是否因数据量而出现瓶颈。Step 2: Compare the differences by increasing the amount of data to determine whether the AML language performance is bottlenecked by the amount of data.
其中,所述验证生成效率包括以下步骤:Wherein, the verification generation efficiency includes the following steps:
步骤A:输入想要生成AML文件大小量;Step A: Enter the size of the AML file you want to generate;
步骤B:读取AML格式文件;Step B: Read the AML format file;
步骤C:插入节点数据,构造所输入AML文件的数据,并记录生成开始时间;Step C: Insert node data, construct the data of the input AML file, and record the generation start time;
步骤D:生成标准大小AML数据,并记录生成结束时间;Step D: Generate standard size AML data, and record the end time of generation;
步骤E:通过时间计算器计算生成时间。Step E: Calculate the generation time by the time calculator.
其中,所述验证解析效率包括以下步骤:Wherein, the verification parsing efficiency includes the following steps:
步骤I:读取所述AML文件,同时记录读取时间;Step 1: read described AML file, record reading time simultaneously;
步骤II:解析所述AML文件内容,同时记录结束时间;Step II: Parse the content of the AML file, and record the end time at the same time;
步骤III:通过时间计算器计算解析时间。Step III: Calculate the parsing time by the time calculator.
本发明中,所述增加数据量的方式为:对不同大小的样本数据进行验证,分多个不同大小的数据样本进行扩充,以大小等差递增方式进行验证。In the present invention, the method of increasing the amount of data is as follows: verifying sample data of different sizes, dividing into a plurality of data samples of different sizes for expansion, and verifying in a way of increasing the size of the same difference.
本发明中,所述AML语言包括:JAVA、C、Visual Basic。用JAVA、C、Visual Basic等3种语言编写的程序来校验。In the present invention, the AML language includes: JAVA, C, and Visual Basic. It is verified by programs written in 3 languages such as JAVA, C, and Visual Basic.
本发明中,用AutomationMLEditor解析1到10M的AML文件,便于直观查看程序生成的AML文件。In the present invention, AutomationMLEditor is used to parse AML files of 1 to 10M, which is convenient for viewing the AML files generated by the program intuitively.
本发明中,所述AML语言性能验证方法通过3种语言编写的程序按照AML格式的规则去自动生成相应大小的文件,实现了根据AML工程数据格式标准自动生成相应数据大小的AML文件。校验程序可以自动计算生成和解析时间,存储解析时间的结果。实现了用3种语言模拟多种异构设备生成和解析AML文件的性能技术效果。In the present invention, 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 realizing 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 times, and store the results of the parsing times. The performance technical effect of generating and parsing AML files by simulating multiple heterogeneous devices in three languages is realized.
本发明还提出了一种AML语言性能验证系统,具体为工业模拟环境下AML语言性能验证系统,其流程图如图1所示,包括:The present invention also proposes an AML language performance verification system, specifically an AML language performance verification system in an industrial simulation environment, the flowchart of which is shown in Figure 1, including:
工程信息存储中心;Engineering information storage center;
人机界面,通过所述人机界面获取网络拓扑结构下所有联机设备的状态信息,查看设备的运行状态,实现对工厂设备信息采集的模拟;通过所述人机界面查看所有设备存储在所述工程信息存储中心的历史运行信息,从而追踪单个设备的运行状态;The man-machine interface, through the man-machine interface, obtains the status information of all online devices under the network topology, checks the running state of the equipment, and realizes the simulation of the collection of factory equipment information; The historical operation information of the engineering information storage center, so as to track the operation status of a single device;
控制总机,所述控制总机控制场景,负责终端上报数据、下发给指定的多台终端,能够实现网络环境下的工程数据交换从而实现对工厂设备间信息通信的模拟;The control switchboard, the control switchboard controls the scene, is responsible for the terminal to report the data, and sends it to the designated multiple terminals, which can realize the engineering data exchange under the network environment and realize the simulation of the information communication between the factory equipment;
设备,通过所述设备发出错误的AML数据,所述控制总机能够识别错误数据,并反馈到所述人机界面。The device, through which the device sends out wrong AML data, the control switchboard can identify the wrong data and feed it back to the man-machine interface.
本发明中,所述设备列表由C语言编码;所述控制总机由JAVA语言编写;,所述人机界面由PC浏览器构成;所述工程信息存储中心由数据库服务器构成。In the present invention, the device list is coded by C language; the control switchboard is written by JAVA language; the man-machine interface is formed by a PC browser; and the engineering information storage center is formed by a database server.
本发明中,所述设备和所述控制总机均具备AML数据生成及解析能力。In the present invention, both the device and the control switchboard are capable of generating and parsing AML data.
本发明中,所述控制总机由以下模块构成:与人机界面通信模块,指令下发模块,指令处理模块,信息接收模块,与信息存储中心通信模块。In the present invention, the control switchboard is composed of the following modules: a communication module with the man-machine interface, an instruction issuing module, an instruction processing module, an information receiving module, and a communication module with the information storage center.
本发明中,客户端工作台的信息通过人机界面显示。In the present invention, the information of the client workbench is displayed through a man-machine interface.
目前在整个验证系统中,客户端通过终端控制台来显示,如果能把客户端工作台的信息通过人机界面显示的话,验证效果会更加直观。At present, in the whole verification system, the client is displayed through the terminal console. If the information of the client's workbench can be displayed through the man-machine interface, the verification effect will be more intuitive.
本发明提出的AML语言性能验证系统能够实时显示并记录收集设备状态信息,运动信息,故障信息。若发生故障或者异常,控制中心可以发出报警和启动其他控制措施。以便进行系统运行状态的实时检测评估和对比分析;设备均实现了通讯连接,生产的信息和机器状态被生产线控制核心的信息存储中心收集起来。建立web监控网络,可以方便的实现外部接入的拓展传达生产控制信息;可以在PC端配置设备运行顺序,实现设备的调度生产。对生产装配的参数进行动态调整,可以优化生产过程。验证装置可配置,可通过参数配置实现多种流程的校验;对生产管理和过程控制均有良好的表现,实现最小成本的生产控制过程模拟。The AML language performance verification system proposed by the present invention can display and record and collect equipment status information, motion information and fault information in real time. In case of failure or abnormality, the control center can issue an alarm and initiate other control measures. In order to carry out real-time detection, evaluation and comparative analysis of the system operating status; the equipment has realized the 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 running sequence can be configured on the PC side to realize the scheduled production of the equipment. The dynamic adjustment of the parameters of the production assembly can optimize the production process. The verification device is configurable, and the verification of various processes can be realized through parameter configuration; it has a good performance in production management and process control, and realizes the simulation of the production control process with the minimum cost.
C语言模拟的设备和JAVA语言模拟的总机通过更加底层的tcp方式交互数据以保障数据的稳定性、可靠性和高效性,信息下发过程以多线程异步方式来规避下发任务的阻塞问题。系统架构为DCS分布式控制系统,外部设备通过“心跳”方式来传输设备状态信息给控制总机显示到人机界面上,可以近实时的查看历史数据。上报数据以异构方式存储到工程数据存储中心,工程数据存储中心可以根据实际需求动态扩容。The equipment simulated by C language and the switchboard simulated by JAVA language exchange data through a lower-level tcp method to ensure the stability, reliability and efficiency of data. The system architecture is a DCS distributed control system. The external equipment transmits the equipment status information to the control switchboard and displays it on the man-machine interface through the "heartbeat" method, so that the 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.
本发明还提出了一种AML语言校验方法,包括一致性校验和健壮性校验;The present invention also provides an AML language verification method, including consistency verification and robustness verification;
所述一致性校验,其流程图如图14所示,包括以下步骤:The flow chart of the consistency check is shown in Figure 14, including the following steps:
步骤一:AutomationMLEditor生成,语言解析;Step 1: AutomationMLEditor generation, language analysis;
步骤二:语言生成,AutomationMLEditor加载;Step 2: Language generation, AutomationMLEditor loading;
步骤三:语言生成,语言解析。Step 3: Language generation, language analysis.
所述步骤一通过AutomationMLEditor工具进行手动编辑,生成标准的AML格式,并保存为.aml格式文件;读取.aml格式文件以后,按流程进行解析并构建响应的对象和关系信息,实现类似于AutomationMLEditor工具的展示效果进行对比数据结构。The first step is to manually edit through the AutomationMLEditor tool, generate a standard AML format, and save it as a .aml format file; after reading the .aml format file, parse and construct the response object and relationship information according to the process, so as to achieve something similar to AutomationMLEditor The display effect of the tool is compared with the data structure.
所述步骤二,参考AutomationMLEditor工具构建对象和关系结构,以此生成.aml文件,并通过AutomationMLEditor工具加载;如果可以正常加载,则说明生成的数据是可用的,完整的。In the second step, refer to the AutomationMLEditor tool to construct an object and relational structure, thereby generating an .aml file and loading it through the AutomationMLEditor tool; if it can be loaded normally, it means that the generated data is available and complete.
所述步骤三,参考AutomationMLEditor工具构建对象和关系结构,以此生成.aml文件,并通过Visual Basic程序进行解析,对照数据结构差异。In the third step, refer to the AutomationMLEditor tool to build an object and a relational structure, thereby generating an .aml file, and parsed by the Visual Basic program to compare the data structure differences.
所述健壮性校验,其流程图如图15所示,包括以下步骤:The robustness check, the flowchart of which is shown in Figure 15, includes the following steps:
步骤A:在按照错误样本的数据情况下进行解析,以校验其健壮性;Step A: Analyze the data according to the wrong sample to verify its robustness;
步骤B:XML利用DTD和XSD来校验健壮性。Step B: XML uses DTD and XSD to verify robustness.
所述步骤A包括:The step A includes:
步骤A1:准备不完整的AML数据;Step A1: Prepare incomplete AML data;
步骤A2:工具/解析器校验;Step A2: tool/parser verification;
步骤A3:抛出错误信息。Step A3: Throwing an error message.
所述步骤A1包括:The step A1 includes:
步骤A11:在原有正确的AML数据中修改语法或标签信息;Step A11: Modify the grammar or label information in the original correct AML data;
步骤A12:删除必要的结构,形成不完整的AML数据。Step A12: Delete necessary structures to form incomplete AML data.
所述步骤A11包括:The step A11 includes:
a)删除必要的闭合信息;a) delete the necessary closing information;
b)开始和结束标签不一致;b) The start and end tags are inconsistent;
c)修改设备与设备的关系;c) Modify the relationship between equipment and equipment;
d)制定错误的标签和属性的对应关系。d) Make the wrong label and attribute correspondence.
所述步骤B中利用DTD进行校验通过比较XML文档和DTD文件来看文档是否符合规范,元素和标签使用是否正确。In the step B, the DTD is used to verify whether the document conforms to the specification and whether the use of elements and tags is correct by comparing the XML document and the DTD file.
所述步骤B中利用XSD进行校验包括:In the step B, the verification by using XSD includes:
用一个指定的XML Schema来验证XML文档,以检查该XML文档是否符合其要求;Validate an XML document with a specified XML Schema to check whether the XML document complies with its requirements;
通过XML Schema指定一个XML文档所允许的结构和内容,并据此检查XML文档是否有效;Specify the allowed structure and content of an XML document through XML Schema, and check whether the XML document is valid according to this;
用通用的XML解析器解析。Parse with a generic XML parser.
本发明中,所述AML语言校验方法通过AutomationMLEditor工具生成的AML文件和3种语言生成和解析的AML文件是保持结构和逻辑内容一致的。实现了3种语言模拟的异构系统根据规则生成AML文件一致的指标,也实现了异构系统生成AML文件的一致性指标。实现了通过DTD以实现生成AML文件的正确性规范,通过不按照AML规则的生成的文件不能被程序和工具解析的效果。In the present invention, the AML file generated by the AML language verification method through the AutomationMLEditor tool and the AML file generated and parsed in three languages keep the same structure and logical content. Heterogeneous systems simulated by three languages generate consistent indicators of AML files according to the rules, and also realize the consistency indicators of AML files generated by heterogeneous systems. Realize the correctness specification of generating AML files through DTD, and the effect that generated files that do not follow AML rules cannot be parsed by programs and tools.
本发明中,AML文件的一致性指标和生成效率和解析效率对于AML语言至关重要。In the present invention, the consistency index, generation efficiency and parsing efficiency of the AML file are very important for the AML language.
目前,对AML的验证业界没有工程实践突破了AML文件在异构语言之间解析的准确性传输与存储的安全性,突破了AML文件验证的环境单一的限制,本发明通过C语言来模拟异构设备,并且对通过工业模拟环境下工业生产控制过程对语言的适应性进行性能验证。At present, there is no engineering practice for AML verification in the industry that breaks through the accuracy of AML file parsing between heterogeneous languages, the accuracy of transmission and the security of storage, and breaks through the limitation of a single environment for AML file verification. The present invention uses C language to simulate heterogeneous equipment, and the performance verification of the adaptability of the language through the industrial production control process in the industrial simulation environment.
本发明的有益效果在于,本发明提出的AML语言性能验证方法及装置,可以由产率、质量、精度和效率的提高,能耗、原材料、工序的节省,加工、操作、控制、使用的简便,环境污染的治理或者根治,以及有用性能的出现等方面反映出来(技术指标)。The beneficial effect of the present invention is that the AML language performance verification method and device proposed by the present invention can improve productivity, quality, precision and efficiency, save energy consumption, raw materials and procedures, and simplify processing, operation, control and use. , the treatment or radical treatment of environmental pollution, and the emergence of useful performance, etc. are reflected (technical indicators).
信息传输以令牌的方式保证设备间传输信息的一致性。通过冗余终端来提高系统的容灾性。通过动态配置外部设备的方式模拟多种工业生产控制场景,以并行执行方案的方式来提高系统运行效率,解析器通过强大的文档预解析控制保证文件传输的不失真。Information transmission ensures the consistency of information transmitted between devices in the form of tokens. The disaster tolerance of the system is improved by redundant terminals. Simulate a variety of industrial production control scenarios by dynamically configuring external devices, and improve system operation efficiency by executing the scheme in parallel. The parser ensures undistorted file transmission through powerful document pre-parsing control.
附图说明Description of drawings
图1为本发明AML语言性能验证系统的流程图。FIG. 1 is a flow chart of the AML language performance verification system of the present invention.
图2为本发明所述验证方法的总体思路。FIG. 2 is the general idea of the verification method according to the present invention.
图3为实施例1中的场景设计示意图。FIG. 3 is a schematic diagram of a scene design in
图4为实施例1中内存存储的示意图。FIG. 4 is a schematic diagram of memory storage in
图5、6、7、8、9、10、11、12、13为实施例1中各步骤的示意图。5, 6, 7, 8, 9, 10, 11, 12, and 13 are schematic diagrams of each step in Example 1.
图14为本发明AML语言一致性验证的流程图。FIG. 14 is a flow chart of the AML language consistency verification according to the present invention.
图15为本发明AML语言健壮性验证的流程图。FIG. 15 is a flow chart of the AML language robustness verification of the present invention.
图16为AutomationMLEditor工具校验的示意图。Figure 16 is a schematic diagram of AutomationMLEditor tool verification.
图17为Visual Basic解析器校验的示意图。Figure 17 is a schematic diagram of Visual Basic parser verification.
图18、19、20为对AML语言性能验证方法的流程图。Figures 18, 19, and 20 are flowcharts of a method for verifying AML language performance.
图21为拓扑结构示意图。Figure 21 is a schematic diagram of the topology.
图22、23、24、25、26、27、28、29、30、31、32、33为实施例4中各步骤的示意图。22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33 are schematic diagrams of each step in Example 4.
图34、35、36、37、38、39、40、41、42、43为实施例5中各步骤的示意图。34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , and 43 are schematic diagrams of each step in Example 5. FIG.
具体实施方式Detailed ways
结合以下具体实施例和附图,对本发明作进一步的详细说明。实施本发明的过程、条件、实验方法等,除以下专门提及的内容之外,均为本领域的普遍知识和公知常识,本发明没有特别限制内容。The present invention will be further described in detail with reference to the following specific embodiments and accompanying drawings. Except for the content specifically mentioned below, the process, conditions, experimental methods, etc. for implementing the present invention are all common knowledge and common knowledge in the field, and the present invention is not particularly limited.
本发明验证方法的总体步骤如图2所示:The overall steps of the verification method of the present invention are shown in Figure 2:
规范AML文件作为统一数据源,通过AutomationMLEditor工具生成规范和标准的AML文件,通过JAVA,C,Visual Basic等语言进行解析。同理,语言按规范生成的规范AML文件也可以被AutomationMLEditor工具和其他语言解析。The canonical AML file is used as a unified data source to generate canonical and standard AML files through the AutomationMLEditor tool, and parse through JAVA, C, Visual Basic and other languages. In the same way, the canonical AML file generated by the language can also be parsed by the AutomationMLEditor tool and other languages.
通过AutomationMLEditor工具和JAVA,C,Visual Basic等语言进行双向生成和解析,从而消除语言影响,测试AML语言的性能。Bidirectional generation and parsing are performed through the AutomationMLEditor tool and languages such as JAVA, C, Visual Basic, etc., so as to eliminate language influence and test the performance of AML language.
1、通过AutomationMLEditor工具,生成AML格式的数据后给JAVA,C,Visual Basic等语言进行解析;1. Through the AutomationMLEditor tool, generate data in AML format and parse it in JAVA, C, Visual Basic and other languages;
2、通过JAVA,C,Visual Basic语言,生成AML格式的数据后给等AutomationMLEditor工具进行解析。2. Through JAVA, C, Visual Basic language, the data in AML format is generated and analyzed by AutomationMLEditor tools.
在接收和反馈信息时,必须保持信息的一致性和完整性。Consistency and integrity of information must be maintained when receiving and feeding back information.
本实施例的验证流程,如图3所示为场景设计,设计的场景为用户通过生成器和解析器对AML数据源生成标准的AML文件和解析的过程。该流程是一个循环、闭环流程,AML数据可以被任意生成器生成和解析,保证数据不丢失。As shown in FIG. 3 , the verification process of this embodiment is a scenario design. The designed scenario is a process in which a user generates a standard AML file and parses an AML data source through a generator and a parser. The process is a cyclic and closed-loop process, and AML data can be generated and parsed by any generator to ensure that data is not lost.
1.标准AML数据源:是一系列的数据集合,包括实体属性,关系等内容,这些内容并没有转换为标准的AML格式,存入内存中,如图4所示。1. Standard AML data source: It is a series of data collections, including entity attributes, relationships, etc., which are not converted into standard AML format and stored in memory, as shown in Figure 4.
对象之间的关系通过被逻辑定义后,通过具体的语言和生成器转换成具体的AML格式表达。After the relationship between objects is logically defined, it is converted into a specific AML format through a specific language and generator.
2.读取数据源:生成器将对象和关系的逻辑定义获取以后,通过语言开发,人为绘制来完成数据源和物理结果的信息对应。2. Read the data source: After the generator obtains the logical definitions of objects and relationships, it uses language development and artificial drawing to complete the information correspondence between data sources and physical results.
3.构建AML数据:被读取的数据源通过AML的生成规则进行构建,将数据源进行分析和组合,形成AML格式的数据,并存放在内存中。3. Constructing AML data: The read data source is constructed through the generation rules of AML, and the data source is analyzed and combined to form data in AML format and stored in the memory.
4.生成AML文件:将构建完成的AML数据进行输出,生成实体的.aml格式的文件。4. Generate an AML file: output the constructed AML data to generate a file in .aml format of the entity.
5.读取AML文件:解析器读取和识别.aml文件,并判断文件是否合法。5. Read the AML file: The parser reads and recognizes the .aml file, and judges whether the file is legal or not.
6.解析AML文件:读取AML文件以后,通过文件读取功能,将数据流读入内存,并通过语言控制内存的进行整理和组合,按AML的规则抽取数据并组合成新的数据结构。6. Parse the AML file: After reading the AML file, the data stream is read into the memory through the file reading function, and the sorting and combination of the memory is controlled by language, and the data is extracted according to the rules of AML and combined into a new data structure.
7.构建数据:数据被解析后,按语言的特性会构建成特殊的数据结构存入内存中,并形成标准的AML数据源,以供再次生成AML格式的数据。7. Constructing data: After the data is parsed, it will be constructed into a special data structure and stored in memory according to the characteristics of the language, and a standard AML data source will be formed for regenerating data in AML format.
本实施例中的一致性验证方法如下:The consistency verification method in this embodiment is as follows:
1、AutomationMLEditor生成,语言解析1. AutomationMLEditor generation, language analysis
基于上述场景,本实施例验证采用AutomationMLEditor工具和JAVA,C,VisualBasic三种语言模拟了汽车装配流水线设备控制过程采用AML语言进行控制的场景,这三种语言在小型设备的指令传输和控制上都有成熟的应用。首先通过AutomationMLEditor工具进行手动编辑,生成标准的AML格式,并保存为.aml格式的文件,如图5所示。Based on the above scenario, this embodiment verifies that the automationMLEditor tool and three languages, JAVA, C, and VisualBasic are used to simulate the scenario in which the control process of the automobile assembly line equipment is controlled by the AML language. These three languages are used in the instruction transmission and control of small devices There are mature applications. First, perform manual editing through the AutomationMLEditor tool to generate a standard AML format and save it as a file in .aml format, as shown in Figure 5.
生成的数据格式为文本格式,可以通过文本编辑器打开查看,如图6。The generated data is in text format, which can be opened and viewed with a text editor, as shown in Figure 6.
以Visual Basic程序为例,读取.aml文件以后,可以按流程将文件进行解析并构建响应的对象和关系信息,实现类似于AutomationMLEditor工具的展示效果,如图7。Taking the 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 the AutomationMLEditor tool, as shown in Figure 7.
图8为对比效果图,基本可以完全还原数据结构。Figure 8 is a comparison effect diagram, the data structure can basically be completely restored.
2、语言生成,AutomationMLEditor加载2. Language generation, AutomationMLEditor loading
以Visual Basic程序为例,参考AutomationMLEditor工具构建对象和关系结构,以此生成.aml文件,并通过AutomationMLEditor工具加载。如图9所示。Taking the Visual Basic program as an example, refer to the AutomationMLEditor tool to build the object and relational structure, thereby generating the .aml file and loading it through the AutomationMLEditor tool. As shown in Figure 9.
按数据格式生成的.aml文件,如图10所示:The .aml file generated according to the data format, as shown in Figure 10:
将生成的AML数据在AutomationMLEditor工具中加载,如果可以正常加载,则说明生成的数据是可用的,完整的。如图11所示。Load the generated AML data in the AutomationMLEditor tool. If it can be loaded normally, the generated data is available and complete. As shown in Figure 11.
3、语言生成,语言解析3. Language generation, language analysis
以Visual Basic程序为例,参考AutomationMLEditor工具构建对象和关系结构,以此生成.aml文件,并通过Visual Basic程序进行解析,对照差异。如图9。Take the Visual Basic program as an example, refer to the AutomationMLEditor tool to build the object and relational structure to generate the .aml file, and analyze the difference through the Visual Basic program. Figure 9.
按数据格式生成的.aml文件,如图10所示。The .aml file generated according to the data format is shown in Figure 10.
使用Visual Basic自我生成和解析后的结果如图12所示。The result after self-generating and parsing using Visual Basic is shown in Figure 12.
如图13,通过对照可知。As shown in Figure 13, it can be seen from the comparison.
通过以上验证可以得知,AML语言无论是采用AutomationMLEditor工具或者是JAVA,C,Visual Basic语言进行生成和解析,通过上述三种方式的生成和解析可以得知遵从AML语言生成的.aml文件都可以被解析,并没有语言限制,保证了在产生和解析过程中的一致性。Through the above verification, we can know that whether the AML language is generated and parsed by the AutomationMLEditor tool or the JAVA, C, Visual Basic language, through the above three methods of generation and parsing, we can know that the .aml file generated in accordance with the AML language can be is parsed without language restrictions, ensuring consistency between generation and parsing.
本实施例中的健壮性校验,健壮性又称为容错性,用于测试系统在出现故障时,是否能够自动恢复或者忽略故障继续运行。The robustness check in this embodiment, the robustness is also called fault tolerance, is used to test whether the system can automatically recover or continue to operate regardless of the fault when a fault occurs.
AML是基于XML进行的拓展,XML的语法规则要求比较结构,严格的语法和结构就是保证健壮性的一种机制。XML解释器是对XML文档进行语法解析和错误检测的应用程序。AML is an extension based on XML. The grammar rules of XML require comparison of structure. Strict grammar and structure are a mechanism to ensure robustness. An XML interpreter is an application that parses and detects errors in XML documents.
由于AML的特性是一种描述性语言,本身不可执行,因此针对AML的健壮性测试,主要以AML的错误样本解析来校验其健壮性。Since AML is a descriptive language and cannot be executed by itself, the robustness test for AML mainly uses AML error sample parsing to verify its robustness.
针对AML的健壮性校验,本身继承了XML的健壮性,因此可以利用XML的通用校验方法处理。现有的语言中对于XML的解析都具有很严格的校验,比如JAVA,C,Visual Basic等都提供了相应的解析器。The robustness verification for AML inherits the robustness of XML, so it can be processed by using the general verification method of XML. The parsing of XML in the existing languages has very strict verification, such as JAVA, C, Visual Basic, etc. all provide corresponding parsers.
本实施例校验,选定了三种语言进行校验,分别是JAVA,C,Visual Basic,也会采用XML自身的校验模式。For the verification in this embodiment, three languages are selected for verification, namely JAVA, C, and Visual Basic, and the verification mode of XML itself is also adopted.
本实施例中的健壮性校验验证方法:The robustness check verification method in this embodiment:
一、AutomationMLEditor工具和JAVA,C,Visual Basic三种语言通过提供的XML解析工具,在按照错误样本的数据情况下进行解析,以校验其健壮性。1. AutomationMLEditor tool and JAVA, C, Visual Basic three languages, through the provided XML parsing tool, parse according to the data of the wrong sample to verify its robustness.
1:在原有正确的AML数据中修改语法或标签信息。1: Modify the syntax or label information in the original correct AML data.
e)删除必要的闭合信息。e) Delete the necessary closing information.
f)开始和结束标签不一致。f) The start and end tags are inconsistent.
g)修改设备与设备的关系,如从属或父子关系倒置。g) Modify the device-to-device relationship, such as subordinate or parent-child relationship inversion.
h)制定错误的标签和属性的对应关系,如设备的描述中加入动作执行的属性信息。h) Formulate the corresponding relationship between wrong labels and attributes, such as adding the attribute information of the action execution in the description of the device.
2:删除必要的结构,形成不完整的AML数据2: Remove necessary structures to form incomplete AML data
例如在生成的.aml脚本中,将InstanceHierarchy标签替换为InstanceHierarchy_TMP,通过工具和语言解析的效果如下:For example, in the generated .aml script, replace the InstanceHierarchy tag with InstanceHierarchy_TMP, and the effect of parsing through tools and languages is as follows:
1、AutomationMLEditor工具校验1. AutomationMLEditor tool verification
AutomationMLEditor工具无法加载被修改成错误标签的数据,如图16所示。The AutomationMLEditor tool fails to load data that has been modified into incorrect labels, as shown in Figure 16.
2、Visual Basic解析器校验2. Visual Basic parser verification
Visual Basic解析程序无法加载被修改成错误标签的数据,如图17所示。The Visual Basic parser could not load the data that was modified into the wrong label, as shown in Figure 17.
二、XML利用DTD和XSD来校验其健壮性。Second, XML uses DTD and XSD to verify its robustness.
1:XML文件的验证模式保证了XML文件的正确性,而比较常用的验证模式有两种:DTD和XSD。1: The validation mode of the XML file ensures the correctness of the XML file, and there are two commonly used validation modes: DTD and XSD.
a)采用DTD进行校验a) Use DTD for verification
DTD(Document Type Definition)即文档类型定义,是一种XML约束模式语言,是XML文件的验证机制,属于XML文件组成的一部分。DTD是一种保证XML文档格式正确的有效方法,可以通过比较XML文档和DTD文件来看文档是否符合规范,元素和标签使用是否正确。DTD (Document Type Definition) is a document type definition, which is an XML constraint schema language, a verification mechanism for XML files, and a part of XML files. DTD is an effective method to ensure the correct format of XML documents. You can compare the XML documents and DTD files to see whether the documents conform to the specification and whether the elements and tags are used correctly.
b)采用XSD进行校验b) Use XSD for verification
XML Schema语言就是XSD(XML Schemas Definition)。XML Schema描述了XML文档的结构。可以用一个指定的XML Schema来验证某个XML文档,以检查该XML文档是否符合其要求。文档设计者可以通过XML Schema指定一个XML文档所允许的结构和内容,并可据此检查一个XML文档是否是有效的。XML Schema本身是一个XML文档,它符合XML语法结构。可以用通用的XML解析器解析它。XML Schema language is XSD (XML Schemas Definition). XML Schema describes the structure of an XML document. An XML document can be validated against a specified XML Schema to check whether the XML document conforms to its requirements. Document designers can specify the allowed structure and content of an XML document through XML Schema, and can check whether an XML document is valid according to this. XML Schema itself is an XML document, which conforms to the XML syntax structure. It can be parsed with a generic XML parser.
在AML规范中可以看到引入的XSD为CAEX_ClassModel_V2.15.xsd,通过CAEX_ClassModel_V2.15.xsd就可以校验文档的合法性和完整性。In the AML specification, you can see that the imported XSD is CAEX_ClassModel_V2.15.xsd, and the validity and integrity of the document can be verified through CAEX_ClassModel_V2.15.xsd.
数据在传输过程中不可避免的会涉及到数据组装,传输,解析三个阶段,由于传输受制于协议和网络的控制,而AML格式的数据量并不大,因此传输环节基本可以忽略不计,主要考虑生成和解析的效率。The data transmission process inevitably involves three stages of data assembly, transmission, and analysis. 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 basically be ignored. Consider the efficiency of generation and parsing.
通过语言来验证生成和解析的效率,通过增加数据量的方式对比差异性,了解AML语言本身的性能是否会因此数量而出现瓶颈。Use the language to verify the efficiency of generation and parsing, and compare the differences by increasing the amount of data to understand whether the performance of the AML language itself will bottleneck due to the amount of data.
对AML语言性能验证方法的流程图如图18-20所示。The flow chart of the AML language performance verification method is shown in Figure 18-20.
(1)生成时间跨度:从生成开始到形成.aml文件的时间消耗;(1) Generation time span: the time consumption from the start of generation to the formation of the .aml file;
(2)解析时间跨度:从读取.aml文件到展示数据的时间消耗。(2) Parsing time span: the time consumption from reading the .aml file to displaying the data.
表1:工具、开发语言和场景选择Table 1: Tools, Development Language and Scenario Selection
本实施例中的样本数据需要提供不同大小的进行验证,分10个不同大小的进行扩充,初始值为1M,第二次是10M,以后每次增加10M进行验证。The sample data in this embodiment needs to provide different sizes for verification, and is divided into 10 different sizes for expansion. The initial value is 1M, the second time is 10M, and 10M is added each time for verification.
本实施例中的AML语言性能验证方案及效果如下表:The AML language performance verification scheme and effect in this embodiment are as follows:
表2:C语言Table 2: C Language
表3:VB语言Table 3: VB language
表4:JAVA语言Table 4: JAVA language
本实施例对工业自动化系统工程用工程数据交换格式的验证提出了方法,并且根据汽车装配生产线的实际应用场景进行AML数据的通信模拟。This embodiment proposes a method for verifying an 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.
在自动化工厂设备运转过程中,各种设备之间需要通过企业的通信网络来协同运作。在这个过程中会涉及到数据的生成、传输、处理、存储、显示等。In the process of automatic factory equipment operation, various equipments need to cooperate with each other through the enterprise's communication network. In this process, data generation, transmission, processing, storage, display, etc. will be involved.
本实施例根据常见的工厂自动化设备网络拓扑结构,来模拟搭建设备结构并通过设备间的数据传输来模拟工业自动化生产当中的实际使用场景。This embodiment simulates building a device structure according to a common network topology structure of factory automation equipment, and simulates an actual usage scenario in industrial automation production through data transmission between devices.
该中央控制系统由c语言编码的设备列表,JAVA语言编写的控制总机,PC浏览器构成人机界面,数据库服务器构成工程信息存储中心等构成。其中设备和控制总机均具备AML数据生成及解析能力。拓扑结构如图21所示。The central control system consists of equipment list coded in C language, control switchboard written in JAVA language, PC browser constitutes man-machine interface, database server constitutes engineering information storage center and so on. The equipment and the control switchboard are all capable of generating and parsing AML data. The topology is shown in Figure 21.
本实施例中的工业模拟环境下AML语言性能验证系统,其包括:工程信息存储中心;人机界面;控制总机;设备。所述验证装置验证步骤如下表:The AML language performance verification system in the industrial simulation environment in 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:
在该设备网络结构下做如下几个场景试验:The following scenarios are tested under the device network structure:
(1)设备读取所有设备状态信息,并显示到终端页面(1) The device reads all device status information and displays it to the terminal page
通过PC端人机操作界面,我们可获取该网络拓扑结构下所有联机设备的状态信息,查看设备的运行状态。从而实现对工厂设备信息采集的模拟。Through the PC terminal man-machine interface, we can obtain the status information of all online devices under the network topology, and check the running status of the devices. So as to realize the simulation of factory equipment information collection.
启动服务端后,在浏览器输入:http://127.0.0.1:8080/aml/home进入人机操作界面.如图22所示。After starting the server, enter: http://127.0.0.1:8080/aml/home in the browser to enter the man-machine interface, as shown in Figure 22.
启动各个客户端,如图23。终端启动完成后,人机控制界面显示,如图24。Start each client, as shown in Figure 23. After the terminal is started, the man-machine control interface is displayed, as shown in Figure 24.
(2)设备和总机间的双向通信(2) Two-way communication between the device and the switchboard
控制台模拟总机控制场景,负责终端上报数据、下发给指定的多台终端,能够实现网络环境下的工程数据交换从而实现对工厂设备间信息通信的模拟。The console simulates the switchboard control scenario, and is responsible for the terminal reporting data and sending it to multiple designated terminals. It can realize the exchange of engineering data under the network environment and realize the simulation of information communication between factory equipment.
选择终端,点“发送文件到设备”向终端下发数据,如图25。Select the terminal and click "Send file to device" to send data to the terminal, as shown in Figure 25.
终端收到请求后,启动解析器解析,并显示解析结果,如图26。After the terminal receives the request, it starts the parser parsing and displays the parsing result, as shown in Figure 26.
C解析器解析文件,如图27。The C parser parses the file, as shown in Figure 27.
(3)通过人机界面可以查看所有设备的历史动作信息(3) The historical action information of all devices can be viewed through the man-machine interface
通过人机界面可以查看所有设备存储在服务器的的历史运行信息,从而追踪单个设备的运行状态。Through the human-machine interface, you can view the historical operation information of all equipment stored in the server, so as to track the operation status of a single equipment.
终端上报正确的aml,如图28。The terminal reports the correct aml, as shown in Figure 28.
终端上报错误的aml文件,如图29。The terminal reports the wrong aml file, as shown in Figure 29.
控制台查看终端上报的数据,如图30。View the data reported by the terminal on the console, as shown in Figure 30.
(4)设备生成错误的AML数据,主机能够识别并且在人机界面发出报错警告通过设备1发出错误的AML数据,主机能够识别错误数据,并反馈到人机界面。(4) The device generates wrong AML data, and the host can identify it and issue an error warning on the man-machine interface. Through the
校验:check:
×表示上传的是错误的aml文件,√是正确的aml文件能正常解析,如图31。× indicates that the wrong aml file is uploaded, and √ indicates that the correct aml file can be parsed normally, as shown in Figure 31.
点查看让java解析器解析错误的文件,提示解析失败,如图32。Click View to let the java parser parse the wrong file, indicating that the parsing failed, as shown in Figure 32.
查看正确的aml,解析界面,如图33。Check the correct aml and parse the interface, as shown in Figure 33.
汽车装配线生产控制过程的验证Validation of Production Control Process of Automobile Assembly Line
在工业自动化生产过程中,会以工业生产中的各种参数为控制目的,实现对设备的各种过程控制,AML即为描述设备的拓扑、几何、运动、行为和序列信息等工程元素的信息和关系的载体,通过描述语言,确定设备在生产过程中如何协同,接收和反馈信息从而达到预期的处理目标。In the process of industrial automation production, various parameters in industrial production are used as control purposes to realize various process control of equipment. AML is the information describing engineering elements such as topology, geometry, motion, behavior and sequence information of equipment. And the carrier of the relationship, through the description language, to determine how the equipment cooperates in the production process, receives and feedback information to achieve the expected processing goals.
JAVA,C两种语言在设备的指令传输和控制上都有成熟的应用。本实施例验证模拟汽车装配流水线设备控制过程采用AML语言进行的控制场景。JAVA, C two languages have mature applications in the command transmission and control of the device. This embodiment verifies the control scenario in which the AML language is used to simulate the control process of the automobile assembly line equipment.
根据该生产过程控制过程进行建模如图21所示。其中:设备1代表传送带,设备2代表转向设备,设备3代表装配设备。Modeling according to the production process control process is shown in Figure 21. Among them:
模拟验证步骤如下:The simulation verification steps are as follows:
(1)通过人机界面和控制总机向设备1发送AML文件来启动设备1工作,模拟传送带的启动传送。(1) Send the AML file to the
通过人机界面,选择终端设备(转向设备,装配设备),再选择生产设备,模拟传送带,点“向设备发送生产请求”发送,如图34。Through the man-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, as shown in Figure 34.
(2)设备1收到控制台指令后,触发传送带工作,并且经过一段时间后向设备2发送AML文件,设备2接到信息后进行语言解析,来模拟实现车体的转向。进而向设备3发出AML文件。(2) After
IP为:192.168.8.78(设备1)的终端模拟传送带,再收到请求后,触发生产,完成后向192.168.8.59(设备2)的“转向设备”发送请求,如图35。The terminal whose IP is: 192.168.8.78 (device 1) simulates a conveyor belt, and after receiving the request, triggers production, and sends a request to the "steering device" of 192.168.8.59 (device 2) after completion, as shown in Figure 35.
(3)设备3收到并解析AML文件可以模拟汽车车轮的配装过程,配装完成后向控制台推送装配完成后的AML数据。(3) The
(设备2)收到请求后,开始装配,装配完后向192.168.8.77(设备3)装配设备发送请求,如图36。(Equipment 2) After receiving the request, start the assembly. After assembly, send a request to the assembly device at 192.168.8.77 (Equipment 3), as shown in Figure 36.
(4)控制台收到设备3终端合成的数据后,可以把装配完成的AML信息在人机界面显示出来,展示生成的产品信息。(4) After receiving the data synthesized by the terminal of the
(设备3)收到请求后,执行合成数据,合成完毕后发送给控制台,如图37。(Device 3) After receiving the request, execute the synthesized data, and send it to the console after the synthesis is completed, as shown in Figure 37.
(5)可通过人机界面上设置装配过程中单次装配轮子个数来逐步进行上述流程,来验证本系统及AML语言的适应性。(5) The above process can be carried out step by step by setting the number of wheels assembled in a single assembly process on the man-machine interface to verify the adaptability of the system and the AML language.
查看结果,如图38、39。View the results, as shown in Figures 38 and 39.
本次测试使用的aml文件,下发前InternalElement设备列表只有一个节点,如图40;装配完成后,多了4个节点,与预期的一致,如图41。The aml file used in this test has only one node in the InternalElement device list before delivery, as shown in Figure 40; after the assembly is completed, there are 4 more nodes, as expected, as shown in Figure 41.
装配合成:把终端上报上来的数据,组合成一个文件,再发送给java解析器解析,如图42。Assembly and synthesis: Combine the data reported by the terminal into a file, and then send it to the java parser for parsing, as shown in Figure 42.
能正确解析,如图43。can be parsed correctly, as shown in Figure 43.
通过以上几个步骤可以实现AML数据在汽车装配生产控制中的运输、转向、装配等过程的合成、传输的模拟。其设计思想可以推广至工业现场控制的其他场合。The above steps can be used to simulate the synthesis and transmission of AML data in the process of transportation, steering, and assembly in automobile assembly production control. Its design idea can be extended to other occasions of industrial field control.
本发明实施例4、5均采用计算机控制,网络及信息处理技术,在工业生产控制过程中具备一定的代表性。通过JAVA语言和C语言模拟构成终端设备来测试AML语言在模拟的工业生产环境下的数据生成、存储、传输、合成显示等性能表现。Embodiments 4 and 5 of the present invention all adopt computer control, network and information processing technologies, and have certain representation in the process of industrial production control. Through JAVA language and C language simulation to form terminal equipment to test the performance of AML language in the simulated industrial production environment, such as data generation, storage, transmission, composite display and other performance.
方案中涉及到对设备状态信息、过程信息、动作信息的的采集和处理,确定设备在生产过程中如何协同信息来达到预期处理目标,所以对AML作为信息载体来实现工业生产控制过程中生产信息的传递实验可以较高程度的模拟真实生产过程,本发明验证方案具备现实意义,可初步验证AML在实际工业生产中的性能。The scheme involves the collection and processing of equipment status information, process information, and action information, and determines how equipment cooperates with information in the production process to achieve the expected processing goals. Therefore, AML is used as an information carrier to realize the production information in the process of industrial production control. The transfer experiment of AML can simulate the real production process to a higher degree, and the verification scheme of the present invention has practical significance, and can preliminarily verify the performance of AML in actual industrial production.
表5:结果分析Table 5: Analysis of Results
本发明的保护内容不局限于以上实施例。在不背离发明构思的精神和范围下,本领域技术人员能够想到的变化和优点都被包括在本发明中,并且以所附的权利要求书为保护范围。The protection content of the present invention is not limited to the above embodiments. Variations and advantages that can occur to those skilled in the art without departing from the spirit and scope of the inventive concept are included in the present invention, and the appended claims are the scope of protection.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910569248.2A CN111796828B (en) | 2019-06-27 | 2019-06-27 | An AML language verification method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910569248.2A CN111796828B (en) | 2019-06-27 | 2019-06-27 | An AML language verification method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111796828A true CN111796828A (en) | 2020-10-20 |
| CN111796828B CN111796828B (en) | 2024-11-19 |
Family
ID=72805566
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910569248.2A Active CN111796828B (en) | 2019-06-27 | 2019-06-27 | An AML language verification method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111796828B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020112224A1 (en) * | 2001-01-31 | 2002-08-15 | International Business Machines Corporation | XML data loading |
| CN103902269A (en) * | 2012-12-27 | 2014-07-02 | 中国科学院声学研究所 | System and method for generating MIB files through XML files |
| CN104156219A (en) * | 2014-08-20 | 2014-11-19 | 国家电网公司 | A verification method of power distribution model based on ontology technology |
-
2019
- 2019-06-27 CN CN201910569248.2A patent/CN111796828B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020112224A1 (en) * | 2001-01-31 | 2002-08-15 | International Business Machines Corporation | XML data loading |
| CN103902269A (en) * | 2012-12-27 | 2014-07-02 | 中国科学院声学研究所 | System and method for generating MIB files through XML files |
| CN104156219A (en) * | 2014-08-20 | 2014-11-19 | 国家电网公司 | A verification method of power distribution model based on ontology technology |
Non-Patent Citations (1)
| Title |
|---|
| 陈曦: "自动化标记语言 Automation ML 健壮性分析及验证", 《数字技术与应用》, vol. 37, no. 5, pages 1 - 2 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111796828B (en) | 2024-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101706816B (en) | Method for detecting digitized transformer station model | |
| CN114123482A (en) | Main plant station information joint debugging decoupling method | |
| CN106951694A (en) | A kind of secondary equipment in power system on-line monitoring system adaptive modeling method | |
| CN113065256B (en) | Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file | |
| CN101751028A (en) | General calibration system of automobile electronic control unit and realizing method thereof | |
| CN116501727B (en) | Equipment data verification method, device, equipment and storage medium | |
| CN115034347B (en) | Industrial Internet of things for tracing two-dimensional code data and control method thereof | |
| CN106550038A (en) | A kind of data configuration diagnostic system of Digitizing And Control Unit and method | |
| CN114115843A (en) | Low code production method of index data and visualized data processing system thereof | |
| CN104933224A (en) | Quick configurator of electronic equipment for intelligent substation | |
| CN118276920A (en) | Structured packing export and automatic issuing method for BOM data of product structure | |
| CN117171475B (en) | OSLC-based full lifecycle requirement domain data networking method | |
| CN112949018B (en) | A system and method for creating and testing a DC transmission control and protection platform model | |
| CN113050925A (en) | Intelligent contract repairing method and device for block chain | |
| CN112416367A (en) | Application resource change influence analysis system based on software reverse disassembly and analysis | |
| CN111796828A (en) | An AML language verification method | |
| CN119576748A (en) | Program debugging method, system, computer equipment, storage medium and program product | |
| CN111796998A (en) | AML language performance verification system | |
| CN111796805A (en) | An AML language performance verification method | |
| Chen et al. | A service-oriented approach supporting model integration in model-based systems engineering | |
| CN113887754A (en) | Construction method and system of power distribution terminal unified operation and maintenance platform and constructed platform | |
| Li et al. | Data-centric workshop digital twin conceptual modeling method and application | |
| CN119011329A (en) | IO module firmware upgrading method, device, equipment and readable storage medium | |
| CN106021649A (en) | A model configuration detector used for a virtual circuit verifying platform and a control method | |
| CN117370202A (en) | Method, device, equipment and storage medium for testing full link of multiple bins |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |