Loop Variable Type Mismatch
Kuka · KSS 5.2
¿Qué significa 2263 ?
This error indicates that a loop variable, such as 'I' in the example, has not been declared as an integer (INT) data type. In KRL programming, counters for counting loops must always be of type INT for correct operation. This prevents the compiler from properly interpreting and executing the loop.
Causas comunes
- A variable intended for a loop operation has an incompatible data type.
- Attempted to assign a value of the wrong type to a loop control variable.
- Mismatch between declared type and actual type of loop counter or iterator.
- Compiler error related to loop variable declaration or usage.
- Incorrect data type used in a loop condition or update statement.
Pasos de reparación & Lista de verificación
Haga clic en los pasos para seguir su progreso.
- 1
Open the source file (e.g., 'ERROR.SRC') in the editor.
- 2
Locate the line number 24 where the error is indicated.
- 3
Insert the declaration 'INT I' before the 'INI' line in the program, ensuring the 'DEF ERROR ( )' line is visible to enable this insertion.
- 4
To display the meaning of the error number online, navigate to the menu function 'Variable' --> 'Single', then enter '&2263' in the input box 'Name' and press Enter.