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

Summary:

Some of the CSV_Multimontior Functions return the error code 257 ("Value out of range") and this will interfere with the customer's error handling mechanisms.  


Solution:

Citect has confirmed this to be a problem and as a work around the following functions have to be modified in the CSV_MultiMonitors.ci file in CSV_Include project. Add the IsError() function (in red) as shown below.

INT

FUNCTION

_msLastPageQue_ArraySet(INT iIndex1, INT iIndex2, INT iIndex3, STRING sValue)

    ErrSet(1);

    msLastPageQue[iIndex1][iIndex2][iIndex3] = sValue;

    msLastPageQue_[iIndex1][iIndex2][iIndex3] = StrMid(sValue, 127, 127);

    IsError(); // Clear any errors.

    ErrSet(0);

    RETURN 0;

END

















PRIVATE

_msRecentAction_ArraySet(INT iIndex, STRING sValue)

    ErrSet(1);

    msRecentAction[iIndex] = sValue;

    msRecentAction_[iIndex] = StrMid(sValue, 127, 127);

    IsError(); // Clear any errors.

    ErrSet(0);

    RETURN 0;

END













Keywords:
 

Attachments