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 = 1 (MESSAGE) raises a real alarm with your text on the screen and stops the program — far better than quietly cutting a scrap part.

Read firstAlarms & TimersFanuc macro alarm generation with #3000, operator messages with #3006, clock variables #3001/#3002, and date/time variables #3011/#3012.

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.