Applies To:
  • CitectSCADA 1.00, 1.01, 1.10, 1.11, 1.20, 2.00, 2.01

Summary:
How do I modify the Citect colour palette? 

Solution:
One CITECT.PAL file can be found in the C:\CITECT\BIN and another for each of the user projects in C:\CITECT\USER\⁢project>. You should only modify the CITECT.PAL file contained in the C:\CITECT\USER\⁢project> directory. This is the file that Citect uses to determine the colours to be used in the runtime system (and in CTDraw).

The file in the C:\CITECT\BIN directory is used by Citect when a new user project is created and should not be changed unless you want all new projects to have a different colour pallete to the one provided with Citect. For this reason, this file has read only attributes. If you decide to change this file, you should first make a copy of the original so that you will be able to recover the default colour settings. Once you have made the required changes, you should keep a copy of the modified file because it will be overwritten if the Citect software is re-installed or upgraded.

In the CITECT.PAL file there are 128 rows and seven columns of numbers. Each row represents one of the 128* available colours in Citect. The first column is the colour index number and is not normally changed by the user. The second, third and fourth columns represent the ratios of red, green and blue for the ON colour. The fifth, sixth and seventh columns represent the ratios of red, green and blue for the OFF colour. For all non-flashing colours, the ON colour ratios are the same as the OFF colour ratios. The colour ratios are represented by a value ranging from 0(dark) to 255(light). In addition to the seven columns of numbers, there is a column of the colour names. These names do not affect the operation of colour palette and are only used for comments.

*Only available provided that the display card supports 256 colours and that the Microsoft Windows graphics driver is setup correctly.

For examples, to change black to white, change:

Col. NO On Col. Off Col. Name
Red Green Blue Red Green Blue
000 000 000 000 000 000 000 "Black"

To

000 255 255 255 255 255 255 "white"

To adjust dark green lighter, change:

Col. NO On Col. Off Col. Name
Red Green Blue Red Green Blue
002 000 128 000 000 128 000 "green"

To

002 000 192 000 000 192 000 "Mid Green"

To change flashing white/black to flashing white/grey, change

Col. NO On Col. Off Col. Name
Red Green Blue Red Green Blue
119 255 255 255 000 000 000 "Flash White"

To

119 255 255 255 192 192 192 "Flsh W Bk"
 

Keywords:
 

Attachments