hexagon logo

Is there a command in PC-DMIS to stop/cancel execution?

Hi All,

I have a simple part program that measure a component.
The first thing I do is measure a plane, if the plane shows a flatness error greater than 7 microns I inform the operator, i.e.

IF/FLAT1.MEAS >0.007
COMMENT/OPER,NO,"Please Contact Cell Engineer"
,"Flatness of Fixture Greater than 7 microns"
,"Measured value:" + FLAT1.MEAS
END_IF/

The problem is my message to the operators has OK and CANCEL buttons. If the operator clicks CANCEL then the program execution is aborted (perfect!). However, if the operator clicks OK the program continues.

Is it possible to just have an OK button, which once clicked forces the program execution to be aborted (like CANCEL does on my current message) ??

Any help would be much appreciated.

Thanks,
robovanbasten