Fanuc · Turning cycles
Fanuc alarm 062: Illegal command in G71-G76
Most often: depth of cut 0. First step: check every value of both cycle lines.
On this page
What it means
A value in the cycle is zero, negative or makes no sense. On 0i-D, 0i-F and the 30i series the same alarm has the number PS0062.
Common causes
- Depth of cut 0
- Thread height or first cut missing in G76
- Minimum cut bigger than the first cut
How to clear it
- Check every value of both cycle lines
- G76: P and Q values without decimal point are in 0.001 mm
Example
G71 U0 R0.5G71 U2. R0.5Before you continue: After the correction do not start in the middle of the program. Go back to the last tool change, use single block and a low rapid override, and watch the distance to go.
Tools that help
- Thread & Tap Drill CalculatorCalculate tap drill size, thread percentage, pitch diameter, minor diameter and thread…
- CNC Lathe SimulatorFree online CNC lathe simulator in 3D. Runs Fanuc-style turning programs with G71, G72…
Related codes
- G71 — Stock Removal in Turning (Roughing Cycle)
- G76 — Threading Cycle (Lathe) / Fine Boring (Mill)
- G74 — Left-Hand Tapping (Mill) / Face Peck Drilling (Lathe)
- G75 — Grooving Cycle (Lathe X)
Same group: turning cycles
- Fanuc alarm 050: CHF/CNR not allowed in thrd blk
- Fanuc alarm 061: Address P/Q not found in G70-G73
- Fanuc alarm 063: Sequence number not found
- Fanuc alarm 064: Shape program not monotonously
- Fanuc alarm 065: Illegal command in G71-G73
- Fanuc alarm 066: Improper G-code in G71-G73
Number and message follow the Fanuc 0i, 16, 18 and 21 series. Wording can differ a little between models. Alarms from 1000 upwards and messages from 2000 upwards come from the machine builder in most cases: look in the manual of the machine, not of the control. Fanuc and Grbl are names of their owners. This site is independent.
The alarm comes back?
Post the block before the alarm, your control model and what you have checked.
Ask the community