Division by zero in application
Vacon · NXS NXP
Was bedeutet 49 ?
A division by zero error has occurred within the custom application program running on the drive. This indicates a mathematical error in the program logic, which can cause the drive to halt or behave unpredictably. If left unaddressed, the drive cannot execute the affected part of the application, disrupting operations.
Häufige Ursachen
- An application program variable used as a divisor has reached a value of zero (e.g., in a speed scaling calculation).
- Incorrect scaling factors or offsets in the application program, leading to unexpected zero values in calculations.
- Missing or invalid input data (e.g., from an analogue input or fieldbus) being used in a division operation.
- Software bug or logical flaw in the custom application code uploaded to the drive (e.g., a function block outputting zero incorrectly).
Reparaturschritte & Checkliste
Klicken Sie auf Schritte, um Ihren Fortschritt zu verfolgen.
- 1
Identify the specific application program (e.g., using NCDrive or a similar programming tool) running on the drive.
- 2
Review the application code for any division operations where the divisor could potentially become zero.
- 3
Implement conditional checks (e.g., IF divisor = 0 THEN assign value 1) before division operations in the application program.
- 4
Trace the values of variables involved in recent division operations using online monitoring tools.
- 5
Download the corrected application program to the drive and retest the functionality.
- 6
Verify the integrity of input signals (e.g., 4-20mA, 0-10V) that feed into the application logic.