omron — A2W_Pushbutton_Brochure_EN_201805_A47IE01

29 4. Specify the condition to change the background color in [Expression], the color at the time when the conditions is “False” in [OffColor], and the color at the time when the condition is “True” in [OnColor]. Note that for the Shape objects you can only modify the color of background. Unlike the Lamp objects, you cannot change the color of the frame. 5. To add a label, select [Standard Controls] – [Label] in the Toolbox. Drag and drop it to the object that has been created up until Step 4 to add an arbitrary text. As is the case with the Rectangle objects, you can change the state of the Label objects by specifying “ColorChange” in the [Animations] tab.

Except for the frame color, you can reproduce the function almost equivalent to that of Bit Lamp objects. 6. Like a Data Lamp object, if you wish to use a function of switching the state depending on the variable value, select “ColorChange (Analog)” in Step 3. to use a function of switching the state depending on the variable value, select “ColorChange (Analog)” in Step 3. 7. Set the variable that controls state change in [Expression] under [Animations], and click the cross (+) in [ColorRanges]. 8. A setting field is added under [ColorRanges]. Set the condition in [StartValue]. Set also the background color in [Color] for the cases where the condition specified in [StartValue] is met.

The example on the right shows that if the value of Variable “SampleA” becomes 5 or greater, the background color turns white. To add more conditions, click the cross (+) in [ColorRanges] to add the setting fields. [ColorRanges]. Set the condition in [StartValue]. Set also the background color in [Color] for the cases where the condition specified in [StartValue] is met. The example on the right shows that if the value of Variable “SampleA” becomes 5 or greater, the background color turns white. To add more conditions, click the cross (+) in [ColorRanges] to add the setting fields.