hexagon logo

End Routine

What is the purpose of the End Routine command I sometimes see on programs that I didn't write?
Parents
  • ROUTINE/END forces the measuring routine to cancel execution. I have mainly seen it used with flow control commands the stop the execution after some condition is met.

    For example, where I work, we have an IF statement near the beginning of all of our measuring routine to check if the part temperature is within 68+/-2degF. If the part temperature is outside of this range an operator comment pops up to say the part is too hot or cold. If the operator clicks OK and tries to resume the program from that point there is a ROUTINE/END command right after it that forces the program to stop.

    I have also used it in conjunction with test points at the beginning of a measuring routine to check that a temporary part locator has been removed, check that a clamp has been positioned right, make sure the right part is loaded, that sort of thing.
Reply
  • ROUTINE/END forces the measuring routine to cancel execution. I have mainly seen it used with flow control commands the stop the execution after some condition is met.

    For example, where I work, we have an IF statement near the beginning of all of our measuring routine to check if the part temperature is within 68+/-2degF. If the part temperature is outside of this range an operator comment pops up to say the part is too hot or cold. If the operator clicks OK and tries to resume the program from that point there is a ROUTINE/END command right after it that forces the program to stop.

    I have also used it in conjunction with test points at the beginning of a measuring routine to check that a temporary part locator has been removed, check that a clamp has been positioned right, make sure the right part is loaded, that sort of thing.
Children
No Data