FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

342

Fanuc 342 - Canned cycle not ready

CANNED CYCLE NOT READY

Fanuc PS program alarm 342: CANNED CYCLE NOT READY. 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 342 occurs when a canned cycle (G73, G74, G76, G80-G89) is called without the proper modal conditions or required parameters being set. This typically happens when initial point positioning has not been established, required addresses are missing, or incompatible G-codes are active when the canned cycle is executed.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Review the program lines immediately before the canned cycle call. Verify that X, Y positioning moves are completed before the canned cycle is initiated.

  2. 2

    Check that the R address (retract/reference plane) is specified in the canned cycle block and that its value is logical relative to the Z initial position.

  3. 3

    Ensure G90 (absolute) or G91 (incremental) mode is correctly set for your application. Verify Z-axis current position is above the R plane in absolute mode.

  4. 4

    Add an explicit positioning move (G00 Z__ or G00 X__ Y__ Z__) to establish the initial point before the canned cycle line, then re-run the 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.