Lenze · 9300 Series
A float error, such as division by zero, has occurred in the system task (ID 0) during real number calculations. This indicates an issue within the program code's arithmetic operations, leading to an imprecise or undefined result.
Click steps to track your progress.
1. Identify the specific system-level function or block causing the floating-point error using the controller's diagnostic log or debugger (e.g., `TaskID: 0`).
2. Review the source code for the identified system task, focusing on division, square root, or logarithm operations that might receive invalid inputs.
3. Implement explicit checks for denominator values being non-zero before division (e.g., `IF Denom <> 0.0 THEN Result := Num / Denom END_IF;`).
4. Scale input variables or intermediate calculation results to prevent overflow or underflow conditions for 32-bit or 64-bit real numbers.
5. Test the modified program by simulating extreme input values that previously triggered the fault, ensuring robust error handling.