Applies To:
  • CitectSCADA 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectHMI 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0


When we configure the Process Analyst Pens' default span time either via:

- Process Analyst Properties ->  Appearance -> 'Main page' tab -> Default Settings -> all pens -> axis -> default span)
- by using cicode (call the _ObjectCallMethod(hPen, SetDefaultSpan, **value**)

The setting is not reflected in runtime where if you have pre-existing pens being trended. The default span is still 10 minutes.



Briefly explained, the default span is used by the Process Analyst when the Operator or User clicks the Reset to Default Span button, or if the pen is added in pen unlocked mode, or if the pen is the first one added to a display.

If you're setting the span value as a default setting for all new pens, the new span value is inherited by all news pens created.

Therefore, in order for existing pens to recognize the default span settings, you will need to reset them. However, there is no direct way to do this.

You can do this by either:

- Adding the "Reset to Default Span" button in the toolbars (Process Analyst settings -> Appearance -> 'Toolbars' tab -> add Reset to Default Span button to the toolbar.
- By using cicode -> call _ObjectCallMethod(hPen, "ResetToDefaultSpan")