13.5.1 Procedure - Changing Word Address Bits (Bit Settings)

In the following procedure, error information from a device/PLC is mapped to each bit in a word address (D100). When an error occurs, the corresponding word address bit turns ON and a lamp set up with that same word address displays its associated color.

  1. From the [Parts (P)] menu, point to [Switch Lamp (C)] and select [Lamp (L)] or click to place a lamp on the screen.

  2. Double-click the placed lamp. The Switch/Lamp dialog box appears. Click [Extended].

  3. Set the [Number of States] and [State Switch Condition]. Setting the [Number of States] to 3 or more allows you to set [State Switch Condition].
    (For example, [Number of States] = 17, [State Switch Condition] = Change state by bit)

  4. Specify the address to display the color coding of the lamp in [Word Address] (for example, D100),

  5. In [Select Shape], select the lamp shape for each [State].

  6. Click the [Color] tab. In the [Select State] list, select [State 0] and define its [Display Color].
    [State 0] is the state where all the specified bit addresses are OFF.

     

    • You can define each [State] by setting its corresponding bit address to either ON (1) or OFF (0).
       

      State

      Description

      [State 0]

      All 0

      [State 1]

      Only Bit 0 is 1

      [State 2]

      Only Bit 1 is 1

      [State 3]

      Only Bit 2 is 1

      [State 4]

      Only Bit 3 is 1

      [State 5]

      Only Bit 4 is 1

      [State 6]

      Only Bit 5 is 1

      [State 7]

      Only Bit 6 is 1

      [State 8]

      Only Bit 7 is 1

      [State 9]

      Only Bit 8 is 1

      [State 10]

      Only Bit 9 is 1

      [State 11]

      Only Bit 10 is 1

      [State 12]

      Only Bit 11 is 1

      [State 13]

      Only Bit 12 is 1

      [State 14]

      Only Bit 13 is 1

      [State 15]

      Only Bit 14 is 1

      [State 16]

      Only Bit 15 is 1

      :

      :

      [State 32]

      Only Bit 31 is 1

    • When multiple bits are turned ON at the same time, lamps are displayed in ascending order from "Bit 0" to "Bit 15".

  7. Select [State 1] in [Select State] and set the [Display Color]. [State 1] is the state in which "Bit 0" of Word Address D100 is ON.

  8. Set the [Display Color] for [State 2] to [State 16].

    • Depending on the shape, the color setup procedure may differ from the procedure described above. Click [Select Shape]. The [Select State] window appears. Select the state and click [Open] to define the shape and color for that state.

    • Depending on the shape, you may not be able to change the color.

  9. Click the [Label] tab and define the text label for each state. Specify the font type and size, then type the text and click [OK].
     

    • When you select a lamp and press the [F2] key, you can directly edit the text on the label.