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

Summary:
Looking at various user projects I have seen on many occasions that you are abusing the ReRead function. You should not have to use the function ReRead() except in the following cases. 

Solution:
If you abuse the ReRead() function you will slow down your cicode and generate extra read requests to the I/O Server which will degrade the performance of your system.

You should call the ReRead() function after you have used the Sleep function to sleep for a long time. When you cicode wakes up then the I/O data associated with the task may be stale.

WHILE TRUE DO
   .....
   Sleep(60); // Sleep for 60 seconds
   ReRead(0); // Re read the data from the I/O Server
END

There was a problem associated with the TaskNew() function which required the use of the ReRead() function. This problem has been fixed in version 3.00 and the ReRead's are no longer required. See Q1541 for more information.

 

Keywords:
 

Attachments