Running CITECT Cicode permanently

Join Date
Jun 2007
Location
uk
Posts
1,538
I have a small piece of Cicode i need to run all the time as it scales a value in from a device which changes its scale factor from time to time, does anybody know how i can configure Citect to run a piece of cicode (setup as a function at the moment) all the time ?

i have trawled the manual\help but its not jumping out at me

cheers
 
Last edited:
Have a read on tasks, especially new tasks. Start the new task when citect starts which calls your function. Put all your existing function code inside a while 1 do loop, with a sleep or sleepms added. ie

Function X
While 1 do
Code;
Code;
Code;
SleepMS(100;
END

It will work without starting a new task but since Citect is multitasking then it is best to unload a cyclic thing like this to a new task.
Regards Alan Case
 
Alan Case said:
Have a read on tasks, especially new tasks. Start the new task when citect starts which calls your function. Put all your existing function code inside a while 1 do loop, with a sleep or sleepms added. ie

Function X
While 1 do
Code;
Code;
Code;
SleepMS(100;
END

It will work without starting a new task but since Citect is multitasking then it is best to unload a cyclic thing like this to a new task.
Regards Alan Case

That does the trick, thanks !!
 
Last edited:
Create an animation movements equiptment in Vijeo Citect v7.20 sp3

Dear all, Can I ask something ?

I can't create any animation movement at equiptment design in my HMI
can you tell me how to create this use a cicode? like a fluid flowing on the pipe. or agitator movement to left or right ?

Thank you for your help:nodi::nodi:
 

Similar Topics

I've trouble about my final instalation of citect, I can't use Citect Runtime because there is an error BEX fault modul MSVCR90.dll I have to...
Replies
0
Views
1,489
I have no experience with Eaton HMIs. I downloaded the Galileo software and I am trying to get the file on a HMI (XV-102-H3-70twrl-10) to modify a...
Replies
5
Views
162
How to fix if appears code “$115 plc-restart running” on the screen OP17
Replies
5
Views
269
Here's what happened, Operator turned on the disconnect for an auger while it was still running to cut power. Auger DID in fact turn off, but the...
Replies
8
Views
364
Hi! I am trying to run the 'SimpleSample' (https://infosys.beckhoff.com/content/1033/TF5100_TC3_NC_I/Resources/3438746891/.zip ) to understand the...
Replies
2
Views
117
Back
Top Bottom