LED Color Change
LED color change can be done by the following ways.
- Using simple Boolean control and set the colors  property.
- Using direct Color Box control.
Using Colors  property of Boolean Control
Colors  property of Boolean control will have array of 1, 2 or 4 elements. Each element will be a cluster of foreground and background colors. If array size is 1, same color will be used for all states. If the array size is 2, first element value will be used for the False and True to False states and the second value will be used for the True and False to True states.
True to False and False to True states can be set only when LED mechanical action is Switch/Latch when released.
Using Color box
Color box control can be used directly in front panel. Color box constant or U32 has to be wired to it.
Following is an example which changes color based on the state selection. Boolean color is changed by using Colors  property and Color Box value is set directly.
Note: In Security system application [CLD sample exam], color change is one of the requirements which can be done by these methods.