<< 点击显示目录 >> 主页 exOS使用助手 > exOS Automation Help > Development > Programming > Data communication > Datamodel description > Datamodel definition files |
exOS通信应用程序接口使用一个预编译的C头文件,以便在不同操作系统和编译器之间通信时补偿不同的字节间距。所有软件模块都需要这个头文件,才能通过exOS通信应用程序接口进行通信。
数据模型定义文件是通过 exOS 软件包 <GenerateDatamodel> 命令或用于VsCode的exOS 组件生成器为IEC.typ文件生成的。
此exOS数据模型定义包括一个datamodel_connect()自动生成函数(用于连接到数据集消息路由器)、针对Linux和AR使用<stdint.h>和<stdbool.h>的数据类型结构定义,以及用于exOS数据集消息路由器的JSON数据模型描述。
The exOS communication API utilizes a pre-compiled C header file in order to compensate for different Byte paddings when communicating between different Operating Systems and compilers. This headerfile is needed for all software modules in order to communicate via the exOS Communication API.
The datamodel definition files are generated for an IEC .typ file via the exOS package <GenerateDatamodel> command or via the exOS Component Generator for VsCode.
This exOS datamodel definition includes a datamodel_connect() auto-generated function (to be used to connect to the Dataset Message Router), the datatype structure definition using <stdint.h> and <stdbool.h> for Linux and AR, and a JSON datamodel description for the exOS Dataset Message Router.