Citect help

joigunni

Supporting Member
Join Date
Jan 2011
Location
Iceland
Posts
52
I need a little help. When I rum my program in Citect I want to be able to do some settings, for example, of variables in the calculation, or do calibrate of meters, then save the changes so next time I run the program, these settings are used.
Actually I want to be able to go into set-ups when the program is running and make any changes to the parameters, save them, and let the program use these new settings now and ever after the program is runing. How to perform this, can I use the device section to upload the changes to a text file and next time the application is started then it opens a text file and delivers the information to variables.
 
Look into disk variables
Treated as a PLC but stored on local disk from one execution to the next
I think that you only have access if citect is running.

Other option is to have a database device with the setting stored *.dbf
but you have to control when the values are copied to/from the dbf into memory variables for calculation use
As it is a dbf you can use excel to modify the values
 
Last edited:
Hi MichaelG

I'm trying to use the database approach.
Is my step right, first create a database, than enable device (pointing to the database), then make a formula in Cicode .
I created a database in dbase III and it was saved under "DATA" (pict1)
I then activate the Device (pict2)
I then made cicode (pict3)
then made a button that calls cicode
but I'm obviously doing something wrong, at least not active, nothing was saved in database.


pict1.jpg pict2.JPG pict3.JPG
 
Look at the Citect Example Project and Help for the Device functions
Example project - Look at recipe

The will be a Devopen, DevGetField, DevSetField, DevNext, DevPrev, DevClose

this is for a database

If you want to be simpler then use a txt file with you own formatting for values
 

Similar Topics

Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
73
I have DI module ICPCon M7024UD connect to my pc using COM3 MODBUS RTU and also RHT sensors are using MODBUS TCPIP.. The problem is, it cannot...
Replies
9
Views
1,667
Hello guys, I am new in this PLC programming and currently working in a smart chiller system that used Vijeo Citect 7.4. Now, my supervisor ask...
Replies
0
Views
602
Hello Everyone, I am working on reports in Vijeo Citect V7.40. I want to generate a report whenever I press the button. I am able to generate it...
Replies
0
Views
875
Excuse my inexperience with cicode, I have a citect issue I need to make "Global" where the line below is shown in bold in the below function...
Replies
10
Views
3,200
Back
Top Bottom