Lenze · 9300 Series
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.
Click steps to track your progress.
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. 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. 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. 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. 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.