Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00

Summary:
I have a PgKeyboard [LBUTTON_CMD_DN] attached to the same AN that a trend is displayed on and when the keyboard entry is true a function is called. This all works correctly but the DspGetAnCur command in the function that is called returns a value of '-1' instead of '40' as it should!

The manual says that the function has to be called from one of the "Page Forms" which I assume this is. It also says that if it is called from outside the ""Page animation system"" it will return '-1' - if the keyboard [button as well?] is not part of the "Page animation system" could the manual be updated to be less ambiguous."

 

Solution:
You are correct in saying that this function cannot be called from the Page keyboard forms. This function cannot be called from the button or keyboard form. The function DspGetAnCur() can only be called on the display animation forms. It is not valid to call this function from any command cicode as once that cicode is started from the page it is no longer attached to that animation point, but runs on as a background cicode thread. 

Keywords:
 

Attachments