ID 20574

Division by 0.

Description

The calculation of a mathematical expression with the combined assignment operator /= detects, that the divisor is zero (nil).

Example:

Wrong:
N10  P1=0
:
N500  P2/=P1
:
N1000 M30

 

Correct:
N10  P1=0
:
N495 $IF P1 != 0
N500   P2/=P1
N505 $ENDIF
:
N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify NC program. Ensure by a $IF-construct, that the division is only executed for divisor values unequal to zero (nil).

Parameter

%1:

Error value [-]

Value of divisor

Error type

1, Error message from NC program.