Applies To:
  • CitectSCADA 5.41, 5.42, 5.50, 6.00
  • CitectHMI 5.41, 5.42, 5.50, 6.00

TrnPlot prints out a trend graph, but the data in the graph is printed backwards. This only occurs if you do not pass a trend AN number to TrnPlot. 

If you pass the AN number of a trend display object to TrnPlot, it gets the display parameters from the trend display. Otherwise, if you pass AN 0, it uses a default display mode taken from the Citect Include project. Unfortunately, the default display mode is incorrect in the above Citect versions. For Citect versions 5.31 and 5.40, see KB Article Q3450 instead. For CitectSCADA 5.41 to 5.50 change the following line in in the Include project.

Note: Modifying the Include project is not recommended unless it is necessary. Installing Citect service packs or releases may overwrite the Include project files, so it will be necessary to redo any changes. The Include project is not backed up when you back up your project. Please make a copy of any files that you modify in case the changes do not work as expected.

Original code:


Corrected code:


Citect has confirmed this to be a problem in CitectHMI/SCADA version 5.41 to 6.00. This problem has been fixed in version 6.10