Siemens SINUMERIK codes
Siemens SINUMERIKServo/AxisBasic10-20 minutes

12720

Siemens 840D 12720 - Channel block program number for macro call (G65/G66) missing

Channel block program number for macro call (G65/G66) missing

During macro call with G65/G66 no program number was defined. The program number must be programmed with address "P".

Safety

  • Refer to Siemens documentation
  • Ensure qualified technician performs repairs

Common Causes

  • G65 or G66 command issued without P address parameter specifying the macro program number
  • P parameter omitted or deleted during program editing
  • Incorrect syntax in macro call block - P value not properly formatted as numeric
  • Program loaded from external source with incomplete macro call syntax
  • CNC operator manually entered G65/G66 without required P parameter in MDI mode

Troubleshooting Steps

  1. 1Review the program at the indicated block number and verify G65 or G66 command contains P address with valid program number (e.g., G65 P1234)
  2. 2Check program source files and CAM post-processor output to confirm macro calls are generated with P parameter syntax
  3. 3Verify the referenced macro program number exists in the CNC memory or external program storage
  4. 4Edit the program block to add or correct the P parameter with appropriate program number and retest
  5. 5Clear the alarm, reload the corrected program, and execute single block to confirm macro call processes without error

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.