10.11.1 Procedure - Creating a Color-Changing Switch

Create a Switch which changes color (OFF: Green, ON: Red) each time it is pressed and the Bit Address (M100) operation occurs.

  1. On the [Parts (P)] menu, point to [Switch Lamp], and select [Bit Switch (B)], or click to place a switch on the screen.

  2. Double-click the placed Switch part. The following dialog box appears.

  3. In [Select Shape], select the Switch shape.

  4. Set up the [Bit Address] that you want to operate when you touch the switch.

  5. From [Bit Action], choose [Bit Invert].

  6. On the [Lamp Feature] tab, select the [Lamp Feature] check box and click [Copy from Switch]. The same address as the one designated on the [Switch Feature] tab will appear in [Bit Address].

  7. On the [Color] tab, set the OFF state switch color (green).

  8. In [Select State], select [ON] and set the ON state switch color (red).

  9. As needed, set the text to display in each state on the [Label] tab, and click [OK].