Applies To:
  • CitectSCADA v7.1

Summary:
FormNumPad() function fails to write a new value to the "out of range" (#RANGE) tags.
 
FormNumPad(Title, Input, Mode) -> This happens when the input tag is "out of range".

Solution:
Citect is aware of this issue which is currently being investigated.

As a Workaround, modify the following function:

Project - "Include" Project in the user folder.
Cicode File - numpad.ci file 
Function - FormNumPad(STRING sTitle, STRING sInput, INT iMode = 0) - Line number 41.

Add IsError() at the start of the code (show below), this will clear the error generated by the "out of range" issue and will not effect the rest of the code. (i.e. any other valid errors generated will pass through and wont be cleared)

Function Code:

STRING

FUNCTION FormNumPad(STRING sTitle, STRING sInput, INT iMode = 0)

STRING sVoid;

INT nExtraRows = 0;

IsError();

sTimeDel = StrLeft(WndGetFileProfile("Intl", "sTime", ":", "win.ini"), 1);

This should fix the issue and now you should be able to write new values to the out of range (#RANGE) tags, using FormNumPad() function.


Keywords:
 #RANGE, out of range, FormNumPad 

Attachments