Shares.xml
- Last UpdatedJan 24, 2023
- 1 minute read
The shares.xml file is used to host shared information.
All the Item type nodes automatically share one or more attribute. This is generally their value.
However, there is often the need to share other parameters among the application nodes, such as range limits, inspection states, variables, commands, and so on. This information is stored in the shares.xml.
Alternative method
Another option would be to locate the share clauses near the relevant node definitions. This is another good approach. The unified file is used because it is typically produced automatically and applies the mapping rules of the Bridge Generator.
For details, see Sharing variables.
Code example
This is a code example for Shares.xml.
<share direction="inout" field="maps.showNodes" />
<share field="actionPerformedLog.value" direction="inout" />
<share field="inspectableValves_override.value" direction="inout" />
<share field="set_weatherState.execute" direction="inout" />
<share field="set_fogIntensity.execute" direction="inout" />
<share field="set_snowIntensity.execute" direction="inout" />
<share field="set_rainIntensity.execute" direction="inout" />
<share field="set_windDirection.execute" direction="inout" />
<share field="set_windIntensity.execute" direction="inout" />
<share field="0800-RF001.rotationSpeed" direction="in" />
<share field="0800-RF002.rotationSpeed" direction="in" /> <!--... -->