KUKA Robot codes
KUKA RobotSystemBasic

KRC0711

KUKA Robot KRC0711 - “EXT”/“EXTFCT”/“IMPORT” NOT ALLOWED HERE 2047

“EXT”/“EXTFCT”/“IMPORT” NOT ALLOWED HERE 2047

This alarm occurs when an EXT, EXTFCT, or IMPORT declaration is used in a context where it is not permitted within the KRL program structure. The compiler rejects the statement because external declarations are only allowed in specific program scopes, typically at the module level or in appropriate declaration sections.

Common Causes

  • EXT/EXTFCT/IMPORT declaration placed inside a function or subroutine body instead of at module level
  • External declaration located after executable statements in the same scope
  • IMPORT statement used in an incorrect program section or nested scope
  • EXTFCT declaration attempted within a local function definition
  • Multiple or conflicting external declarations in non-global scope areas

Troubleshooting Steps

  1. 1Review the KRL program file and locate the line number where the alarm is triggered
  2. 2Move all EXT, EXTFCT, and IMPORT declarations to the beginning of the module before any executable code
  3. 3Ensure external declarations are placed at the global/module scope level, not inside function or subroutine blocks
  4. 4Verify the program structure follows KRL syntax rules where declarations precede all procedure definitions and statements
  5. 5Check for any nested or conditional declarations and relocate them to the appropriate module-level scope
  6. 6Recompile the program after correcting the declaration locations and verify the alarm is resolved

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.