Applies To:
  • CitectSCADA 2.01 2.10 3.00 3.10 3.21 4.00

Summary:
Question: There is a task rescheduling problem that is exhibited by displaying pepino as an animation, starting prueba and then changing the time (as for daylight saving):

TimeSet(DateAdd(TimeCurrent(),3600),0) - increase one hour
TimeSet(DateAdd(TimeCurrent(),-3600),0) - decrease one hour
FUNCTION
prueba()
   WHILE 1 DO
      pepino = pepino + 1;
      sleep(5);
   END
END

 

Solution:
CIT has confirmed this to be a problem in Citect for Windows versions 2.01 to 3.21 and 4.00. This problem has been fixed in version 4.10 and 3.30.

This problem was partly fixed in version 3.10. In versions before 3.1 the problem would occur every time the time was changed. After version 3.10 the problem will only occur under some critical timing conditions.

You may also work around this problem by using SleepMS(5000); instead of Sleep(5). This solution is only available on version 3.21 or 4.x as these are the only versions which support the function SleepMS().

 

Keywords:
 

Attachments