KUKA Robot codes
KUKA RobotSystemBasic

KRC0564

KUKA Robot KRC0564 - Error at format selection no. <number of incorrect format selection>

Error at format selection no. <number of incorrect format selection>

The CWRITE instruction contains parameter values that do not conform to the specified format definition. This mismatch between data type, size, or format specification causes the instruction to fail during execution or program compilation.

Common Causes

  • Data type of parameter does not match format specification such as integer passed to float format field
  • Array or string variable size exceeds the maximum length defined in the format specification
  • Format selection number references undefined or corrupted format entry in the KRL program or system library
  • Incorrect format specification syntax in CWRITE instruction preventing proper data serialization
  • Mismatch between structure definition and actual data passed to CWRITE causing field offset errors

Troubleshooting Steps

  1. 1Review the format specification number and verify it matches a valid format definition declared earlier in the KRL program
  2. 2Check the data type of each parameter against the corresponding format field to ensure type compatibility
  3. 3Measure the size of string and array variables and confirm they do not exceed the byte length specified in the format definition
  4. 4Examine the CWRITE instruction syntax in the program editor for proper comma placement and parameter ordering
  5. 5Declare explicit variable types using INT, REAL, CHAR array declarations and match them exactly to format field definitions
  6. 6Compile the program with the KRC4 syntax checker in WorkVisual or smartPAD to identify format mismatch errors with line numbers

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.