Jump to content

Pallet in autorun


Recommended Posts

Hello
I want to measure components with 2 different sets of tolerances A and B on a 32 stations pallet
I've done this:

if getRecordHead("palletlocationnumber") == getRecordHead("firstpalletlocationnumber") then

mypath=getActualInspectionDir()+"\parameter\"
myrunlist=inquireList("Please select","Tool A","Tool B")
if myrunlist==""
message("operator has cancelled")
endInspection()
else
readPCMFile(mypath+myrunlist+".para")
message(myrunlist+" tolerance set have been loaded")
endif
endif
redrawCAD()


And it works fine... for the first part of the pallet after that routine goes back to parameters saved.
Is there a way to make calypso to keep parameters loaded with the first part so the operator does not have to confirm choice 32 times each 90 seconds?
Link to comment
https://qualityforum.zeiss.com/topic/12768-pallet-in-autorun/
Share on other sites

Save the choice to a temporary file that you run if getRecordHead("palletlocationnumber") <> getRecordHead("firstpalletlocationnumber").


Something like this: I probably missed something but I think you get the idea.

//defines paths
Path_tempFile = "C:\temp\choice.txt"
mypath=getActualInspectionDir()+"\parameter\"

//conditional delete of temp file
if getRecordHead("palletlocationnumber") == getRecordHead("firstpalletlocationnumber") then
deleteFile(Path_tempFile)
endif

//inquires for myrunlist and stores it if the file is missing. Runs the file if it is present.
if fileExists(Path_tempFile) == false
myrunlist=inquireList("Please select","Tool A","Tool B")
addToFile(Path_tempFile,"myrunlist = " +qm() + myrunlist +qm())
else
runPCMFile(Path_tempFile)
endif

//Sets parameters according to choice or stored file.
if myrunlist==""
message("operator has cancelled")
endInspection()
else
readPCMFile(mypath+myrunlist+".para")
display(myrunlist+" tolerance set have been loaded")
endif


redrawCAD()
Link to comment
https://qualityforum.zeiss.com/topic/12768-pallet-in-autorun/#findComment-64256
Share on other sites

×
×
  • Create New...