KUKA Robot codes
KUKA RobotSystemBasic

KRC0394

KUKA Robot KRC0394 - <path> IS NOT A DIRECTORY

<path> IS NOT A DIRECTORY

The file path specified in a command references an invalid subdirectory structure that does not exist on the controller. This error typically occurs when using file system commands with incorrect directory syntax or non-existent folder paths in KRL programs or WorkVisual projects.

Common Causes

  • Typographical error in directory path specification during file operations
  • Attempting to access subdirectories that do not exist on the KRC4 controller
  • Using forward slashes instead of backslashes or incorrect path separators in file commands
  • Referencing deleted or moved directories in KRL file I/O operations
  • Incorrect syntax in DIR or file access commands with invalid nested folder notation

Troubleshooting Steps

  1. 1Verify the complete file path syntax using the KUKA smartPAD file browser to confirm directory structure exists
  2. 2Check the KRL program code for spelling errors and ensure proper path separator usage for the operating system
  3. 3Use the DIR command without subdirectory parameters to list available directories on the controller
  4. 4Confirm that referenced directories exist by navigating through WorkVisual project structure
  5. 5Review KRL file I/O function calls to ensure proper path string formatting and syntax compliance
  6. 6If necessary, recreate the required directory structure or update the program to use existing valid paths

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.