FileWriteFields Question for WonderWare InTouch

So you know have RunData 1 to RunData 3, for Date, Time and Data from tag.?
How often do you want to save the file?
Save on time change?
Save on data change?
 
Last edited:
Yes on data change i want save new file. But in some cases the billet weight can be identical then it should not overwrite the old one
 
Last edited:
the is my script right now and the file is saving on this name, 19072020.CSV

FileName = Text ($Day, "00") +Text ($Month, "00") + Text ($Year, "00") + ".CSV";

FileWriteMessage( "D:\logfile" + FileName+".csv", -1, $DateString + ", " + $TimeString + ", " + Text( CPU21_BZ90_DSP_R112, "#.00" ),1 );


i just want to add after date 1 , 2 , 3 ,4.....incremental serial number for every new file
 
Last edited:

Similar Topics

How can i get the value, suppose I have a slider and # (analog value display). I want to use the filewritefields and filewritemessage to see the...
Replies
0
Views
1,504
I recently uploaded an aplication from a Panel View, created a new screen and now that I've downloaded it to the Panel View, all the texts have...
Replies
9
Views
155
I have never had the pleasure of working with a "Thermistor" until now and have a question. The Thermistor is a 10KOhm 4-20mA 2-wire device and I...
Replies
4
Views
136
Hi All, So I have a main routine with an instruction that's executed by XIC "Run" I have a JSR located on a rung below it. In the logic for that...
Replies
6
Views
242
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
104
Back
Top Bottom