Jump to content

Write to a file using PCM


---
 Share

Recommended Posts

I want to pass a PCM variable to a text file, how do I do that?
setRunID
This is the Mini Plan name selected by the user; I need to write it to a text file that will always overwrite itself.
The file will stay with the CMM program.
Any help is appreciated.
Link to comment
Share on other sites

Hallo

PreSetting of inspection
----------------------------------------------------
inspPath = getActualInspectionDir()+"\"
fileName = "runInfo.txt"

deleteFile(inspPath+fileName)
addToFile(inspPath+fileName, getRunID())
-------------------------------------------------------
create a new file during start CNC run

Klaus
Link to comment
Share on other sites

and I'm wasting time looking for a Write to file command.... 🙄
🤣

Thank you!

I will test this tomorrow.
if (num_bores==3) and (miniselection=="Finished Bore Characteristics")
setRunID("3 Finished Bore Characteristics")
//New 12.12.23
inspPath = getActualInspectionDir()+"\"
fileName = "setRunID.txt"
deleteFile(inspPath+fileName)
addToFile(inspPath+fileName, getRunID())
//End New
endif
Link to comment
Share on other sites

 Share

×
×
  • Create New...