Applies To:
  • CitectSCADA 6.10 Service Pack B, 7.00, 7.10 
  • Vijeo Citect 6.10 Service Pack B, 7.00, 7.10

If you manually set the trend scale for your trend pens on a page which is based on the xp_style.trend template from the CSV_Include project, the 1st trend pen will not retain the set trend scale when you navigate away from the trend page and back to it. The rest of the trend pens, however, will retain their set trend scales.


Every time you navigate to a page which is based on the xp_style.trend template (e.g. the CSV_Trend page) the following Cicode is executed via a Cicode object (AN423):

The problem actually occurs when the CSV_Trend_SetPens Cicode function is called. It gets to a point where it calls the TrnSetPen Cicode function for the 1st pen and halts, resulting in the scale being reset for that pen.

This issue has been raised with Citect developers and will be looked at for future versions. In the mean time, you can workaround this problem by doing the following:

1. Open the xp_style.trend template from the CSV_Include project and save it into your own project so that you do not modify CSV_Include project.
2. Open the xp_style.trend template from your  own project project and remove the CSV_Trend_SetPens and CSV_Trend_ScaleDigital lines of Code from the Cicode object (AN423) so all that remains is the following:

3. Save the template and click on Tools > Updates in the Graphics Builder for any projects which contain a page that is using the xp_style.trend template.

xp_style, trend, scales, CSV_Trend