I am currently using an Epic Controller to operate a machine, I have a string table that get created and populated at the end of specific run time, I am working on saving the table to a text file for future viewing by other users. I saw couple posts about writing text file or save to file which were really helpful, the challenge for me is appending the file name with the run name that get assigned to a variable at the start of each run.
is it possible to append the file name in a way like the following ? file:w,run name.txt where run name is a string?
I have also noticed quite alot of posts involve functions that are non existing under command help on Pac Control Pro, one quick example that comes to mind which I saw when I was reviewing other posts is āsInfoToLogā function. Is there an additional location for command library beside the PAC Commands Help?
I am fairly new to the system (just a bit over 10 days), I understand it highly likely that the answers to these question exist somewhere in the software. Any pointers would be much appreciated.
I have looked into getting you examples. I apologize, I must have read the examples incorrectly. I went back and turned out I was confusing string variables with function names.
Again, sorry for the delay getting back to you, bit slammed in here at the momentā¦
Its a two step process if I understand your question.
First, you have your string variable that is the name of the batch or run time stamp. Another part of your code makes that string that we will use to write the fileā¦ Will leave that to you. Just remember it will end up the file name, so no spaces or / in it. Think of it as a Linux file name and you will be on the right track.
Then, step one, make the string that will become the communication handle.
As far as writing it to a shared drive. No.
Linux can not map to a network drive unless you have done something very sneaky in the shell, and if you have, please share it as I would LOVE to know how to connect to a shared drive from PAC Control.
That is interestingā¦ SNAP PAC Controllers have even less than zero chance of writing to a network drive. They donāt have Linux or shell or anything sneaky to enable any network mapping of drives.
I am really wondering what is going on here.
I have checked the older software, and they way it was setup based on my limited understanding I believe the previous engineer used Pac display configurator to save the logs in a form of recipe files (.rcp) in a network location.
How they manged to do that? I honestly dont know. Based on what I have read in the forums, Groov doesnāt have such capability. Am I correct to assume that?
These same files were used to be called later in the software again to read their content, and used for calculations which they were written into the same files.
Ah, PAC Display, Ok, things are sort of falling into place nowā¦
As you know PAC Display runs on Windows and that same computer has the mapped network drive on it, so it can read and write to the āNā drive with no problem.
There is a whole chapter in the PAC Display users guide as well as many posts here on the forums about using Recipe files. Its a very common way of moving data in and out of a controller to the computer hard drive.
Yes. groov EPIC can use recipes. No problem. The groov EPIC runs the PAC Control engine, so all the tags can be saved to your network drive on your Windows PC via the PAC Display recipe file.
When you say it canāt do it, I think you are thinking of groov View. It does not have the recipe function. But I can assure you, that using the EPIC controller can use PAC Display recipe files no problem.
Here is the one thing I canāt quite figure outā¦ you mentioned the PAC Control comm file handle:
That does not make sense.
The mapped drive āNā is on the Windows PC, thatās where the recipe file is being written, in the recipe command, not the comm handleā¦
Is there any chance you guys are running (were running) SoftPAC?
Thatās the PAC Control engine that runs on Windows.
Since its running on the same Windows PC it has access to the mapped drives and thatās the only way I can think that comm file handle you show will work.
(Related trivia, I had to run SoftPAC on a PC that I needed to log some data to Dropbox).
Thank you for pointing this out, I will need to review this to get more familiar with the process.
Oh, that was something I thought is feasible to do with the epic (not on the older machine) but i have revised it since you pointed that out it cant be done that way.
Now I am writing to the unsecured storage: