<< 点击显示目录 >> 主页
mappServices帮助手册 > mapp IO 管理硬件配置 > 概念 Changing the I/O mapping structure |
"IO Chanel "用于指定 IO 通道。只有在 IO 映射结构需要更改时才会定义。
•Attributes
•Kind: 指定 I/O 通道的更改方式。(例如,"Kind=Clear "用于删除)。
•Type: 必须使用 "类型 "指定 I/O 通道的数据类型。
I/O 通道可以通过某些混合模块(如 X67BC7321 模块)改变方向。如果要改变方向,必须在参数节点中指定。例如,如果所有 I/O 通道都被定义为输入,而其中一个通道应被指定为输出,则定义如下:
<Parameter ID="Direction04" Value="output" />
这将 I/O 通道 4 的方向改为输出。因此,有必要从 I/O 映射中删除 "DigitalInput04"("Kind=Clear")并添加 "DigitalOutpu04"。然后就可以将 PV 作为选项映射到该输出端:
<IOCFG xmlns="http://www.br-automation.com/AR/IO" Version="2.0">
<Module ID="IF7.ST1" Source="AR" SourceName="MyMixedModule">
<Parameter ID="Direction04" Value="output" />
<IO Channel="DigitalInput04" Kind="Clear" />
<IO Channel="DigitalOutput04" Kind="Out" Type="BOOL" />
<LN ID="DigitalOutput04" DPName="MyTestVar"/>
</Module>
</IOCFG>
要了解数字输出 04 上的信息,请查看 iomap.xml 文件。必须在 AS 中进行所需的更改(将输入改为输出),然后进行编译。之后,可以在临时目录下浏览 iomap.xml 文件:
"IO Chanel" is used to specify the IO channel. This is only defined if the IO mapping structure should be changed.
•Attributes
•Kind: Specifies how the I/O channel should be changed. (For example, "Kind=Clear" is used to delete).
•Type: The data type of the I/O channel must be specified with "Type".
An I/O channel can change direction with some mixed modules, such as the X67BC7321 module. If the direction should be changed, this must be specified in the parameter node. If all I/O channels are defined as inputs and one of them should be specified as an output, for example, this is defined as follows:
<Parameter ID="Direction04" Value="output" />
This changes the direction of I/O channel 4 to an output. It is therefore necessary to remove "DigitalInput04" from I/O mapping ("Kind=Clear") and add "DigitalOutpu04". Then a PV can be mapped to this output as an option:
<IOCFG xmlns="http://www.br-automation.com/AR/IO" Version="2.0">
<Module ID="IF7.ST1" Source="AR" SourceName="MyMixedModule">
<Parameter ID="Direction04" Value="output" />
<IO Channel="DigitalInput04" Kind="Clear" />
<IO Channel="DigitalOutput04" Kind="Out" Type="BOOL" />
<LN ID="DigitalOutput04" DPName="MyTestVar"/>
</Module>
</IOCFG>
To find out what information is on digital output 04, check file iomap.xml. The desired change must be made in AS (change input to output) and then compiled. Afterwards, it is possible to navigate to the iomap.xml file in the temp directory: