[Ri...] Posted Monday at 12:40 PM Share Posted Monday at 12:40 PM (edited) I have this PCM code I use on a PCM enabled system: PN="57094-97" //Manually set for each program part number setRecordHead("u_PartNumb",PN) // OpWoID=getRecordHead("u_WorkOrderID") //Fix 12.15.25 OpPartNumb=getRecordHead("u_PartNumb") OpFam=getRecordHead("planid") //Program ID // inspPath = getActualInspectionDir()+"\" fileName = "setRunID2.txt" deleteFile(inspPath+fileName) addToFile(inspPath+fileName, OpPartNumb) addToFile(inspPath+fileName, OpWoID) addToFile(inspPath+fileName, getRecordHead("dmesn") ) fileName = "setRunID3.txt" inspPath = getActualInspectionDir()+"\" deleteFile(inspPath+fileName) addToFile(inspPath+fileName, getRecordHead("dmesn") ) //End New All of the above helps collect data to write files. Is there a way to create the files at run time (Post) without a PCM license? All of the data in the text files created work with a PowerShell program to move files from location to location. See: Any help is appreciated. Edited Monday at 01:10 PM Link to comment Share on other sites More sharing options...
[Ma...] Posted Monday at 01:21 PM Share Posted Monday at 01:21 PM I think creating files can be done without pcm - would be better to just save all info into CSV file which will python script read later on? Link to comment Share on other sites More sharing options...
[Ri...] Posted Monday at 01:31 PM Author Share Posted Monday at 01:31 PM I am trying to utilize one script for all programs to move/copy files to a network location, easier to manage. The script is very similar to my link (It has been updated a bit, which I will post later after fixing some latency issues). Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in