Mod-Operator supplies a faulty value for Modulo Division by zero (elimination)
Which products are affected?
EVS93xx-EI (Servo PLC Version 6.5 DSMC control board)
EVS93xx-ET (Servo PLC Version 6.5 DSMC control board)
EPL-10200-EI (Drive PLC Version 6.5)
Eliminated function restriction:
The Mod-Operator supplies the correct value '0' as return value for Modulo Division by zero.
Example in ST (structured text):
Var1:= 9 MOD 0; (*Var1= 0*)
Which products are affected? EVS93xx-EI (Servo PLC Version 6.2 DSMC control board) EVS93xx-ET (Servo PLC Version 6.2 DSMC control board) EPL-10200-EI (Drive PLC Version 6.2)
What happens? The Mod-Operator indicates a wrong result for the Modulo Division by zero. In general: The Mod-Operator supplies the integer remainder of a division. For example in ST (structured text): Faulty actual status: Var1:= 9 MOD 0; (*Var1= 9*) Correct return value (set): Var1:= 9 MOD 0; (*Var1= 0*) Correct return value: Var1:= 9 MOD 2; (*Var1= 1*)
When does the problem occur? The problem occurs during Modulo Division by zero.
Possible diagnostics? None.
Short-term measures/recommendations? It must be ensured in the program that the dividend (denominator) cannot assume the value 'zero'.
Evaluation: The function restriction is eliminated in a more recent version of the operating system.