[Ri...] Posted December 12, 2023 Share Posted December 12, 2023 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 More sharing options...
[Kl...] Posted December 12, 2023 Share Posted December 12, 2023 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 More sharing options...
[Ri...] Posted December 12, 2023 Author Share Posted December 12, 2023 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 More sharing options...
[Ri...] Posted December 13, 2023 Author Share Posted December 13, 2023 Klaus-Dieter Hermann-Kessler, your suggestion worked well. Thank you. 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