Applies To:
  • CitectSCADA 5.00

Summary:
Is ReRead absolutely not required anymore for Cicode? If it is required, under what conditions? 

Solution:
With Version 5.0 Citect will call ReRead automaticly for you, however it uses mode 0. As the [Code]TimeData defaults to 3000 ms, the data will only be updated every 3 seconds. If you wanted the data to update faster than every 3 seconds you could adjust the [Code]TimeData parameter. However this will affect every cicode task on that computer. If you only need one cicode task to have fast update it would be better to just call ReRead with mode 1. This way it only affects that cicode thread. For example:

WHILE TRUE DO
   TagA = TagB; // your calculations here

   SleepMS(100); // Sleep to stop overload
   ReRead(1); // force update of TagB
END

 

Keywords:
 

Attachments