Scheduled Cicode

Hi;

I want a function in Cicode to run continuously for a time period that I set. For example, the code I wrote will run every 20sec in the background . How do I make this application?

I am using Power Scada Operation to develop my project.

The function will be as follows;

/////////////////////////////////////////////////////////////
FUNCTION
Schedule()
INT nIntTagValue;
WHILE 1 DO
nIntTagValue = TagRead("VALUE");
nIntTagValue = (nIntTagValue/2) * 3;
TagWrite("VALUE_CALC", nIntTagValue);
END
END
/////////////////////////////////////////////////////////////

Thank you for your reply.

Parents
  • If you enable events on your computer ([Event]Server=1), any events named global will automatically run in the client process. If you want other event names to run, then you need to run the Setup Wizard and choose which events will run in which process. Also, event names are actually group names, so you can give multiple events the same name. I recommend you name them according to the computer/process where they need to run like Client, AlarmServers, PrimaryTrend, IOServer_P, etc.
Reply
  • If you enable events on your computer ([Event]Server=1), any events named global will automatically run in the client process. If you want other event names to run, then you need to run the Setup Wizard and choose which events will run in which process. Also, event names are actually group names, so you can give multiple events the same name. I recommend you name them according to the computer/process where they need to run like Client, AlarmServers, PrimaryTrend, IOServer_P, etc.
Children
No Data