Lenze · 9300 Series
A float error, such as division by zero, has occurred in task 1 (ID 2) during real number calculations. This indicates an issue within the program code specific to task 1's arithmetic operations.
Click steps to track your progress.
1. Use the PLC programming environment's debugger to identify the specific function block or line of code within Task 1 where the floating-point exception occurs.
2. Insert explicit checks for boundary conditions or zero denominators before critical arithmetic operations in Task 1 (e.g., `IF Input_B > 1E-6 THEN Result := Input_A / Input_B; END_IF;`).
3. Verify the range and validity of all input variables to Task 1, especially those coming from other tasks or external I/O (e.g., checking `AnalogSensorValue` range).
4. Review and adjust scaling factors or intermediate variable types (`REAL` vs `LREAL`) in Task 1 calculations to prevent precision loss or magnitude overflow.
5. Recompile and download only Task 1's program code (if possible) after modifications and then monitor its execution closely in debug mode.