Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Example: Bridge settings for bistable selectors

  • Last UpdatedSep 04, 2024
  • 1 minute read

This topic shows an example of the typical bridging settings for bistable selectors. Bistable means having two stable states.

  • This code example is for a two-state selector, such as manual-auto. These are often mapped into AVEVA™ Dynamic Simulator as discrete.

  • Since they can be read and write on both sides (3DRT and process simulator), they need some rules.

  • The DYNSIM variable must have a mode that is direct or mixed.

Code example

This code example shows the typical bridge settings for bistable selectors.

<mapping type="ItemKnob" name="" outputEnabled="true">

<shares>

</shares>

<dynsim>

<discrete name="{name}" direction="inout" mode="mixed" />

</dynsim>

<mwpl>

<sfloat name="{name}.value"/>

</mwpl>

<rules>

<trigger from="dynsim:{name}" to="mwpl:{name}.value" value="[?@dynsim:{name}@,0,1]"/>

<trigger to="dynsim:{name}" from="mwpl:{name}.value" value="[?@mwpl:{name}.value@==0]"/>

</rules>

</mapping>

TitleResults for “How to create a CRG?”Also Available in