Managing the hardware configuration

<< 点击显示目录 >>

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

Managing the hardware configuration

AS 项目传输到控制器时,包括 AR 配置 (AR)、I/O 映射 (IO) 和 NC 映射表 (NC)。除固件外,这些信息对于正确配置硬件和建立与软件的连接也是必不可少的。所有必要的数据都存储在 ROM 中。

hardware_config_management

文件存储在 ROM 中,然后在每次重启时加载到 DRAM 中。

hardware_config_management_refresh

使用 MpIO

如果需要在不使用 AS 的情况下在运行时操作配置,可以使用 mapp IO来实现 。如果  启用了功能块 MpIOImport ,则会首先创建活动配置文件的备份。

hardware_config_management_backup

在此,配置文件(更确切地说是 AR 配置、I/O 映射和 NC 映射表)被复制到 mapp IO 配置中定义的备份文件设备中

导入 "命令

通过 "导入 "命令, MpIOImport 还可将输入 "文件名 "中定义的文件复制到备份文件设备中。

hardware_config_management_import

此时,使用 AS 定义的第一个硬件配置处于激活状态。不过,下一步将根据备份文件设备上的数据生成新的硬件配置。根据 MpIO 配置中 "主配置 "参数 的不同,它将基于 AS 硬件配置或导入文件:

无: 新硬件配置基于导入文件。AS 提供的数据仅供参考。

Automation Runtime: 仍以 AS 提供的硬件配置为基础,导入文件用于扩展特定接口(如 X20CP1586 上的 IF6、X2X)。

如果新硬件配置是根据备份文件设备上的数据生成的,则会立即应用。

hardware_config_management_edit

根据新硬件配置是只更改 I/O 映射还是同时更改 AR 配置,控制器将重新启动。

每次重启控制器时,硬件配置将继续从 ROM 加载,但其对应的不再是使用 AS 传输的硬件配置,而是使用 MpIOImport 导入的硬件配置。

hardware_config_management_backup_refresh

 


When an Automation Studio project is transferred to the controller, it includes the AR configuration (AR), I/O mapping (IO) and the NC mapping table (NC). In addition to the firmware, this information is necessary for the proper configuration of the hardware and to establish the connection to the software. All data necessary for this is stored in ROM.

hardware_config_management

The files are stored in ROM, where they are then loaded to DRAM during each restart.

hardware_config_management_refresh

Using MpIO

If the configuration should be manipulated at runtime without using Automation Studio, this can be achieved using mapp IO. If function block MpIOImport is enabled, a backup of the active configuration files is created first.

hardware_config_management_backup

Here, the configuration files (more precisely the AR configuration, I/O mapping and NC mapping table) are copied to a backup file device, which is defined in the mapp IO configuration.

Command "Import"

With command "Import", MpIOImport additionally copies the file defined via input "FileName" to the backup file device.

hardware_config_management_import

At this point, the first hardware configuration defined using Automation Studio is active. A new hardware configuration will be generated in the next step from the data present on the backup file device, however. Depending on parameter "Master configuration" in the MpIO configuration, it will be based on either the Automation Studio hardware configuration or the import file:

None: The new hardware configuration is based on the import file. The data provided by Automation Studio serves only as a reference.

Automation Runtime: The hardware configuration provided by Automation Studio remains the basis, and the import file is used to extend a certain interface (e.g. IF6, X2X on X20CP1586).

If the new hardware configuration is generated from the data on the backup file device, then it will be applied immediately.

hardware_config_management_edit

Depending on whether the new hardware configuration only changes the I/O mapping or the AR configuration as well, then the controller will restart.

The hardware configuration continues to be loaded from ROM each time the controller is restarted, but it corresponds no longer to the hardware configuration transferred using Automation Studio, but instead the hardware configuration that was imported using MpIOImport.

hardware_config_management_backup_refresh