Jump to content

Extract values from a program without PCM?


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
×
×
  • Create New...