Applies To:
  • CitectSCADA

Summary:
Is is possible to adjust the cache time at runtime? 

Solution:
You can adjust the cache time by using the CACHE command in the Citect kernel. If you need to adjust the cache time from cicode you can execute any kernel command using the KerCmd() cicode function. So to adjust the cache time use the following:

FUNCTION
SetCacheTime(STRING sDevice, INT nTime)
   KerCmd("main", "cache " + sDevice + " " + nTime : #####);
END

This function will only adjust the cache time if called on the I/O server. In version 3.40 and 4.20 you can also call IODeviceControl with mode 4 to flush the cache. Again this will only flush the cache if called on the I/O server.

 

Keywords:
 

Attachments