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
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
173
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
0
Views
73
I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
93
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
97
Back
Top Bottom