Applies To:
  • CitectSCADA

Summary:
Although TAGREAD & TAGWRITE would return errors (by using the cicode function IsError()), they did not return any actual driver errors. 

Solution:
This problem has been resolved in Obsidian. TagREADs return the driver error code as well as other system errors, when an IsError() function call is done directly after a TAGREAD in the code, e.g.

INT FUNCTION
TestTagRead(STRING sTag)
    INT nRead;

    nRead = TagRead(sTag);
    ErrorCode=IsError();
    RETURN nRead;
END

Due to the way TAGWRITEs are done for efficiency, the driver error code is NOT returned for TAGWRITE .

Thus it is recommended for critical updates, that a TAGREAD is done after the TAGWRITE, to confirm that

the write actually occured.

 

Keywords:
 

Attachments