Applies To:
  • CitectSCADA 7.0
  • CitectHMI 7.0
  • CitectFacilities 7.0

Summary:

TrnPrint() cicode function does not print out the trend comments. Prior to upgrading to version 7.0 this function worked as expected.

 

Solution:

This is a known issue in CitectSCADA Version 7.0. We are currently investigating the problem. As an interim work-around you can modify the _FindCommentFromPen cicode function in the zoom.ci cicode file in the Include project as below:



STRING FUNCTION _FindCommentFromPen(STRING sPen)

STRING sComment = "";
STRING sName = "";
STRING sCluster = "";
INT hTrendBrowse = -1;
INT status = 0;
INT getcorrect = 0;
    IF sPen <> "" THEN 
        hTrendBrowse = TrnBrowseOpen("", "NAME,COMMENT,CLUSTER", "");
        IF hTrendBrowse <> -1 THEN 
            status = TrnBrowseFirst(hTrendBrowse);
            WHILE ((status=0) AND (NOT getcorrect))DO 
                sName = TrnBrowseGetField(hTrendBrowse,"NAME");
                sCluster = TrnBrowseGetField(hTrendBrowse,"CLUSTER");
                IF sCluster+"."+sName = sPen THEN 
                    sComment = TrnBrowseGetField(hTrendBrowse, "COMMENT");
                    getCorrect = 1;
                ELSE 
                    status = TrnBrowseNext(hTrendBrowse);
                END 
            END 
           END 
    END 
    IF hTrendBrowse <> -1 THEN 
        TrnBrowseClose(hTrendBrowse);
    
END 
    return sComment;
END

 


Keywords:
 

Attachments