Linking with PLC
In the simplest case, the Color Control can be used to represent a color variable from the PLC. For this purpose, for example, a PLC variable of type TcVnVector4_LREAL
is linked to the ColorSymbol
attribute. Other permitted data types are INT
, REAL
, TcVnVector3_LREAL
.
Now PLC variable and the control are synchronized with each other:
The fourth element of the PLC array is ignored, because by default only three channels are displayed as RGB in the control. This can be set via the color format.