Jump to content

PCM off-line to live machine


---
 Share

Recommended Posts

I created a family of part program with PCM on my planner seat. Transferred it to a live machine (without PCM) it worked fine.
Created a second program with PCM, off-line, it won't work. I get error message; "Option PCM not available"

The only difference between the two programs is the one that worked used this

Run=inquireList("Which mini-plan do you wish to run?","Operation-10","Operation-20")
setRunID(Run)

if Run=="Operation-10","Operation-20" then setRunID(Run)

endif

The one that didn't work used this;

Part_Number = inquireList("Which part number are you inspecting?","118675","118676","118677","118678","118679")
selectCase Part_Number
case "118675"
readPCMFile(dir + "\118675 Op-10.PARA")
loadCADFile(dir+"\118675 - Turn-Blank.sab")

case "118676"
readPCMFile(dir + "\118676 Op-10.PARA")
loadCADFile(dir+"\118676 - Turn-Blank.sab")

case "118677"
readPCMFile(dir + "\118677 Op-10.PARA")
loadCADFile(dir+"\118677 - Turn-Blank.sab")

case "118678"
readPCMFile(dir + "\118678 Op-10.PARA")
loadCADFile(dir+"\118678 - Turn-Blank.sab")

case "118679"
readPCMFile(dir + "\118679 Op-10.PARA")
loadCADFile(dir+"\118679 - Turn-Blank.sab")

endSelect
Link to comment
Share on other sites

Hi,

the problem is the use of "readPCMFile"
You need PCM licence to use that functionality.
The only workaround I know without PCM is to use .txt files with lists (addToFile to add an element to the list and readListFile to read the list)
It's not as easy and comfortable as with a .para file, but you can still do a lot of things.
Link to comment
Share on other sites

By the way, you can certainly simplify your code by removing the selectCase and integrating the Part_Number variable directly into your directory.
This will save you from having to complete the list if new variants are added to the list! Think lazy 🤣
readPCMFile(dir + "\"+Part_Number+" Op-10.PARA")
loadCADFile(dir+"\"+Part_Number+" - Turn-Blank.sab")
Link to comment
Share on other sites

 Share

×
×
  • Create New...