This is a problem that has been dogging me for a month.
I am trying to set up a method of logging the current values of some variables (or tags) in WinCC to a text file.
.txt or .csv doesn't matter.
WinCC seems to have many methods for getting information into it, but it greedyly holds this infomation and does not let it go.
The main method I have been trying is to use the C script fprintf function.
Example of a test piece:
File *Fp;
Fp = fopen ("c:\\test.txt", "a");
fprintf(Fp, "Testing Testing 123 \n");
fclose(Fp):
After compiling and debugging, I get no errors, but no file is created and nothing is logged. I haven't tried an actual variable yet, since if this doesn't work, a variable would not work either.
Anyone have any ideas, tips or pointers?
Thanks,
Doug
I am trying to set up a method of logging the current values of some variables (or tags) in WinCC to a text file.
.txt or .csv doesn't matter.
WinCC seems to have many methods for getting information into it, but it greedyly holds this infomation and does not let it go.
The main method I have been trying is to use the C script fprintf function.
Example of a test piece:
File *Fp;
Fp = fopen ("c:\\test.txt", "a");
fprintf(Fp, "Testing Testing 123 \n");
fclose(Fp):
After compiling and debugging, I get no errors, but no file is created and nothing is logged. I haven't tried an actual variable yet, since if this doesn't work, a variable would not work either.
Anyone have any ideas, tips or pointers?
Thanks,
Doug