float Cycl.-T
Lenze · 9300 Series
What does 0210 mean?
A float error, such as division by zero, has occurred in the cyclic task (PLC_PRG ID 1) during real number calculations. This indicates an issue within the PLC program's arithmetic operations that impacts the cyclic execution.
Common Causes
- Division by zero within the `PLC_PRG` cyclic task, typically from user-defined calculations involving process variables (e.g., `MOTOR_SPEED / LOAD_FACTOR`).
- Floating-point overflow or underflow occurring in complex mathematical functions (e.g., PID calculations, scaling functions) within the `PLC_PRG`.
- Uninitialized or corrupted real-type variables used in arithmetic operations, leading to unpredictable `NAN` (Not A Number) results.
- Input sensor values (e.g., analog inputs on `AI_Channel_1`) converted to `REAL` falling outside expected ranges, causing invalid mathematical operations.
Repair Steps & Checklist
Click steps to track your progress.
- 1
1. Connect to the controller with the programming environment and use the debugger to pinpoint the exact line of code within `PLC_PRG` causing the float error.
- 2
2. Add conditional logic to all division operations in `PLC_PRG` to prevent division by zero (e.g., `IF Denominator <> 0.0 THEN Output := Numerator / Denominator; END_IF;`).
- 3
3. Validate all real-type input variables from analog modules (e.g., `AI_01_Value`) using `LIMIT` or range checks before they are used in calculations.
- 4
4. Initialize all `REAL` variables at declaration or upon program start to a known valid value (e.g., `0.0`) to avoid using uninitialized data.
- 5
5. Monitor CPU load and memory usage (e.g., using `Task Info` view in the programming tool) for the cyclic task to detect potential resource contention affecting calculations.