Alarms & Guards

Stop the machine deliberately when a measurement is out of tolerance.

A macro that can measure should also be able to refuse. #3000 = 105 (MESSAGE) raises a real Haas alarm with your text on the screen and stops the program — far better than quietly cutting a scrap part. The number is the alarm code; the text in parentheses shows on the control.

Read firstHaas Alarms & DiagnosticsReference for Haas NGC alarms and diagnostics: how alarm numbers are organized, macro-generated alarms with #3000 and #3006, probe alarms, the Diagnostics tab, and a shop-floor debugging workflow.

Your turn

A measured deviation is waiting in #101. If its magnitude is more than 0.05, raise an alarm with #3000. Otherwise set #102 to 1 to mark the part good.

The machine gives you

0.02 over — inside tolerance:#101 = 0.02
0.08 over — out of tolerance:#101 = 0.08
0.08 under — out of tolerance the other way:#101 = -0.08

Your program is run once for each set of conditions. It has to work for all of them.

Loading...

This is a learning simulation — always prove out a program on the actual control before you cut metal.