42336members
215701posts

MP-X program halted with "Tried to divide by Zero" error

MP-X program halted with "Tried to divide by Zero" error

Issue

MP-X programs are put into a halted state with an error stating "Tried to divide by Zero"

halted programs.png

Product Line

EcoStruxure Building Operation

Environment

  • Building Operation Multi-purpose VAV (All Versions)
  • Building Operation Multi-purpose Controller (All Versions)

Cause

The halted program has within itself or a function used within the program have a divisor that equals or can become zero. An example would be if using Scan as a divisor.

Resolution

Ensure that no divisor can possibly become zero. One way to do this would be to either set the divisor to a value greater than zero prior to using it or including (+.00001) into the divisor.

Example:

(Err-Lerr)/(Scan +.00001)

Tags (5)
Labels (1)
100% helpful (3/3)