[An...] Posted March 1, 2022 Share Posted March 1, 2022 Is there such a command? In my Qualification program I want to prompt the operator to clean or straighten stylus based on the measurement result. Currently I have messages that come up when the straightness or sigma is OOT prompting the operator to straighten the stylus, but I would like it to automatically rerun these OOT features after the operator confirms they have fixed the stylus. Link to comment Share on other sites More sharing options...
[SH...] Posted March 8, 2022 Share Posted March 8, 2022 Please sign in to view this quote. I think you can use formula and conditions.. Link to comment Share on other sites More sharing options...
[Ch...] Posted April 6, 2022 Share Posted April 6, 2022 Here is a PCM Example from Calypso user guide : This should be a good start .. Task with PCM functions 1.Place a loop with 6 repetitions around the characteristic. 2.Point to the Break Condition field, open the shortcut menu and select Formula... The Formula dialog box appears on the screen.3.In the Boolean Expression (Yes / No Test) field, define “status_5==1” as the abortion condition and click OK.4.Write the following program code into the field for the output parameters of the characteristic: //************************************************************************************************ // Measure Circle hole_5 , check roundness; if out of tolerance, interrupt CNC and request next // task: repeat feature or measure next feature or terminate CNC run. //************************************************************************************************ // Defining starting conditions status_5 = 2 hole_5 = getActual("DIN Round_hole_5").actual // If out of tolerance, open a window and inquire CNC End, Continue or Repeat if hole_5 > 0.01 then message("DIN Roundness of hole_5 is:" ,hole_5) status_5 = inquire("1=CNC-End, 2=Continue, 3=Repeat. Enter a number") message(status_5,"Is your entry correct?", "DIN-Roundness of hole_5 is", hole_5) if status_5 == 2 then message("CNC run will be continued") status_5 = 2 endif endif if status_5 == 1 then message("The CNC run will be terminated due to excess tolerance in hole_5.") cncBreak() endif if status_5 == 3 then message("The circle measurement is repeated.") if LOOP1 == 5 then message("CNC run will be terminated due to too many loop runs in hole_5.") cncBreak() endif endif print("Status is",status_5, "DIN Roundness of hole_5 is", hole_5) 5.You can now run the measurement plan. 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