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,502
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
2
Views
34
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
89
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
197
Good morning! Let me start by saying, I am still learning about this type of HMI programming. I recently watched a video about recipes and how it...
Replies
4
Views
195
Back
Top Bottom