Machinery TwinDocs

Appearance

Colors, visibility, and driving both from variables.

Color

Each object's color has three sources, chosen in the Model section:

ModeBehaviour
OriginalUse the materials that came with the imported model
CustomFlat tint with a color you pick
VariableColor driven by a variable at runtime

Variable-driven color is the classic status display: bind it to a variable whose TwoValuesColor function switches between, say, green and red on a threshold, an andon light on the machine, or the machine part itself blushing red on an alarm from the PLC.

Visibility

Two controls, combinable:

  • The visibility toggle, a static show/hide from the object tree.
  • A visibility variable, when set, the object is visible while the variable is greater than 0.

Variable-driven visibility is how you fake discrete events cheaply: products appearing at an infeed (Products_Present from the PLC), a part vanishing when picked, tool changes.

On this page