Configuring current schedule event colors

Event colors that are configured at the component level, apply to the current schedule. You use facets to configure these colors. Facet-configured event colors override any colors globally sourced from schedule lexicon keys (if applicable), as well as default colors.
Prerequisites: Your schedule exists in the station.
This procedure uses the EnumSchedule as an example.

Perform the following steps:
  1. Expand Config > Drivers > NiagaraNetwork > NiagaraStation > Schedules, right-click EnumSchedule and click Views > AX Property Sheet.
  2. To open the Config Facets window, click the Facets chevron (Image).
    The Config Facets window opens.
    Image
  3. To add a new key for colors, click Image.
    The framework adds a row to the table.
    Image
  4. Specify the following properties:
    1. For Key, enter the word colors in the key column.
    2. For Type, select EnumRange from the drop-down list.
    The framework updates the row in the table.
    Image
  5. To define the range of colors for enum schedules, click Image at the right end of the row.
    This window opens:
    Image
  6. To open the Enum window, click Image.
    The Enum window opens.
    Image
  7. To add facet entries for colors click the left-side (Ordinal) field and enter a number, then in the right-side field enter either a color name or color code and click Add.
    The framework adds the color definition as a row in the enum facets table.
    Image

    The example above shows colors assigned to two enum states corresponding to ordinals 1 and 2. For BooleanSchedules, the ordinals used are 0 (false) and 1 (true). For numeric and string schedules use the ordinal value 0 (bajaux only).

  8. After defining all the colors you need (enum facets can assign many different colors), return to the Config Facets window by clicking OK.
    The framework displays the color values you added in the Value column of the table.
    Image
  9. To return to the schedule’s Property Sheet click OK, then, to save the Property Sheet, click Save.
    Image
The schedule immediately reflects the new event colors. Each enum schedule supports a total of 14 colors beginning with zero (0). If you specify an ordinal number greater than 13, the assigned colors repeat beginning with the color associated with zero (0).

Ordinal Value, Color

0, dark red

1, dark green

2, dark purple

3, dark blue

4, dark indigo

5, dark orange

6, gray

7, red

8, green

9, purple

10, blue

11, indigo

12, orange

13, khaki

null, silver gray

14, repeat 0

15, repeat 1