Managing the hardware configuration at runtime using template files

<< 点击显示目录 >>

主页  mappServices帮助手册 > mapp IO 管理硬件配置 > 开始
 >

Managing the hardware configuration at runtime using template files

本节介绍如何使用 MpIOImport 和模板文件在运行时管理硬件配置。

运行时管理硬件配置一节中 ,包括所有可能模块在内的硬件配置已从 AS 传输到控制器。导入文件用于确定应在何处使用哪些模块。

模板文件提供了另一种更灵活的硬件模块引用方式。该项目只包含所需的目标系统,在我们的例子中是 X20 控制器,不包含任何其他模块。现在应在运行时导入各种模块。

这可以通过模板文件完成。硬件配置可以通过这种方式在运行时更改。这也意味着可以根据需要更改和调整导入文件。这样就可以实现不同的机器类型。

gt2_template_concept

本节主题

创建项目

添加 mapp 组件

准备导入文件和模板文件

添加程序

添加和配置功能块

生成文件结构

测试程序

 


This section explains how to use MpIOImport and template files to manage the hardware configuration at runtime.

In section Managing the hardware configuration at runtime, the hardware configuration including all possible modules was transferred from Automation Studio to the controller. The import file was used to determine which modules should be used and where.

Template files provide another way to reference hardware modules with more flexibility. The project only contains the desired target system, in our case an X20 controller, without any further modules. Various modules should now be imported at runtime.

This is done using template files. The hardware configuration can be changed at runtime in this way. This also means that the import file can be changed and adapted as required. This allows different machine types to be implemented.

gt2_template_concept

Topics in this section:

Creating a project

Adding the mapp component

Preparing the import and template files

Adding a program

Adding and configuring function blocks

Generating the file structure

Testing the program