Pro codes · Fanuc

#3000 / #3006 — User alarm and stop with message (Fanuc)

User alarm and stop with message. Writing #3000 = n (MESSAGE) stops the machine with alarm 3000 + n and your message. #3006 = 1 (MESSAGE) stops like M00 and shows the message; the operator continues…

By cnccode · Updated
On this page
  1. What it does
  2. Example
  3. Tips
  4. More: macro and system variables
  5. Frequently asked questions
PropertyValue
Code#3000 / #3006
ControlFanuc
TopicMacro and system variables
Syntax#3000 = <0–200> (MESSAGE)

What it does

Writing #3000 = n (MESSAGE) stops the machine with alarm 3000 + n and your message. #3006 = 1 (MESSAGE) stops like M00 and shows the message; the operator continues with cycle start. The best way to make macros safe: check every argument and stop with a clear text.

Example

Fanuc
IF [#18 EQ #0] THEN #3000 = 1 (R MISSING)
IF [#500 GE 500] THEN #3000 = 2 (TOOL LIFE OVER)
#3006 = 1 (TURN PART 180 DEG)

Tips

  • Run the "tool life counter" example in the Macro B simulator to see #3000 working.

Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.

Try it without a machine

The Macro B simulator runs variables, G65 calls, #3000 alarms, G10 and system variables block by block.

Open the Macro B simulator

More: macro and system variables

Frequently asked questions

What is #3000 / #3006 on Fanuc?
User alarm and stop with message. Writing #3000 = n (MESSAGE) stops the machine with alarm 3000 + n and your message. #3006 = 1 (MESSAGE) stops like M00 and shows the message; the operator continues with cycle start. The best way to make macros safe: check every argument and stop with a…
Was this page helpful?