Issue
MP-X programs are put into a halted state with an error stating "Tried to divide by Zero"
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)