FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

340

Fanuc 340 - Canned cycle parameter error

CANNED CYCLE PARAMETER ERROR

Fanuc PS program alarm 340: CANNED CYCLE PARAMETER ERROR. This alarm is triggered by an illegal or incorrectly formatted command in the part program, or a programming condition that the Fanuc control cannot execute.

Root Cause Summary

Alarm 340 occurs when a canned cycle (G73, G74, G76, G80-G89, etc.) contains invalid parameters, missing required values, or logically impossible combinations. This is a programming error where the control cannot execute the cycle due to incorrect R-plane values, feed depths, missing coordinates, or parameters that violate the cycle's operational logic.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Review the canned cycle block in the program and identify the R and Z values (or X for lathe radial drilling).

  2. 2

    Verify R-plane is above (greater Z value in milling) the final depth Z value. For G98 return, ensure R is also below the initial starting height.

  3. 3

    Check that R and Z are not equal values, as this creates zero depth condition.

  4. 4

    Correct the R or Z parameter to establish proper clearance and depth relationship, then reset alarm and restart program.

Service Recommended confidence

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.