When the non-inverting input (+) is higher than the inverting input (-), the comparator output switches to the POSITIVE voltage supply. On the contrary, the non-inverting input (+) is lower than the inverting input (-), the output switches to the NEGATIVE voltage supply.
The inverting input (-) is grounded, so someone would expect that the turn-on and off point would be the ground (0). The function of the ST comes from the feedback resistor RFB. When for example the output of the comparator is to the POSITIVE voltage supply, then the non-inverting input has through the RFB this voltage. The same happens when the output is to the NEGATIVE power supply.
The voltage needed to switch the output of the comparator must be above or below zero (ground), according to the POSITIVE and NEGATIVE power supply and according to the resistors RI and RFB. More specific, the formula to calculate the threshold voltage is: