[Ch...] Posted February 13 Share Posted February 13 Hi all, exist a good method to cancel a pcm script and measure program? most times lot of deep if else endif are needed, when i want do lot of routines like checking, convert and verify an input string of part id. or settings nominal and tolerance values for some features. i wish, there is an exit or return and exit measure program command. i don't like cncBreak() because this raises errors and put the cmm traffic light in red state. I'm not sure, does endInspection() stop the complete measure program, or will i get a pdf protocol and dfq export? do you have better methods? i think maybe i should do somethin like this: clearParameters() bContinue = true //Step 1 if (bContinue) //do this ... //result bad bContinue = false end if //Step 2 if (bContinue) //do other ... //result bad bContinue = false end if //Step 3 if (continue) //do something ... //result bad bContinue = false end if //Finish if (bContinue == false) //stop message("some bad things happen") cncBreak() end if Link to comment Share on other sites More sharing options...
[Jo...] Posted February 13 Share Posted February 13 I believe you are looking for "endInspection()" Link to comment Share on other sites More sharing options...
[Ch...] Posted February 16 Author Share Posted February 16 Thank you for your answer. If i understand, the pdf protocol and qdas export executes in this case. That's not what i'd like. Link to comment Share on other sites More sharing options...
Popular Post [Er...] Posted February 16 Popular Post Share Posted February 16 endInspection("NO_DATA_OUTPUT") 4 1 Link to comment Share on other sites More sharing options...
[Ri...] Posted February 16 Share Posted February 16 Ditto to what Lord Calypso said. endInspection is a much better command than cncBreak as cncBreak will "red-light" the machine/software. I have ran into some unique cases though where I could not get endInspection to reliably function, mainly things like inside of a repeat function. 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