Jump to content

Extract values from a program without PCM?


---
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

 Share

×
×
  • Create New...