<< 点击显示目录 >> 主页 mappView帮助助手 > mapp View帮助信息 > 工程 > 变量和数据 > Binding > Array binding |
如果需要一个数组中的变量,则使用数组绑定。
数据转发取决于所选择的绑定类型。
例子
<Binding mode="oneWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gMainLogic.par.coffeeTypes[2]" attribute="value" />
<Target xsi:type="brease" widgetRefId="OutputCoffeeType" contentRefId="myContent" attribute="value" />
</Binding>
<Binding mode="oneWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gMainLogic.par.coffeeTypes[2]" attribute="node" />
<Target xsi:type="brease" widgetRefId="OutputCoffeeType" contentRefId="myContent" attribute="node" />
</Binding>
属性"xsi:type"指定了哪种类型的数据源被绑定。
属性 refId 以及属性 widgetRefId 和 contentRefId (对于widget)引用数据源。
详情请见 可能的数据源。
使用案例