Siemens SINUMERIK codes
Siemens SINUMERIKProgram/G-codeIntermediate20-40 minutes

14017

Siemens 14017 - Block syntax error when calling the subroutine via M function

Block syntax error when calling the subroutine via M function

When calling M code subroutine with parameter transfer, an illegal syntax was detected: - Address extension not programmed as a constant. - M function value not programmed as a constant. Note: If a parameter transfer has been programmed via MD10718 $MN_M_NO_FCT_CYCLE_PAR for an M function replacement, the following restriction applies to this M function: both the address extension and the M function value must be programmed for replacement as constants Control reaction: Correction block is reorganized. Interface signals are set. Alarm display.

Safety

  • Only qualified personnel should diagnose and clear control alarms; follow the machine builder's safety procedures and lockout/tagout where hardware work is required.

Common Causes

  • When calling M code subroutine with parameter transfer, an illegal syntax was detected: - Address extension not programmed as a constant.
  • - M function value not programmed as a constant.
  • Note: If a parameter transfer has been programmed via MD10718 $MN_M_NO_FCT_CYCLE_PAR for an M function replacement, the following restriction applies to this M function: both the address extension and the M function value must be programmed for replacement as constants

Troubleshooting Steps

  1. 1Change the programming of the M function.
  2. 2Clear alarm with NC START or RESET key and continue the program

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.