Error: division by zero

This error occurred on the IPCB.1.This error occurred on the IPCB.1.

The solution is to modify the scripts - zero must not be written anywhere there, but use a constant instead. That is, place: RCWareApp.SetAnalogConstant (15, 0); use: RCWareApp.SetAnalogConstant (15, zero); and in global definitions have: var zero: int = 0;