Fratello,
i have changed your code a little bit, only a very simple thing in order to have two outputs.
instead of this
Code:If V < TargetTemp - Hyst then ' Below Target temperature - Hysteresis PORTA.2=1 ' Activate Warm Output PORTA.3=0 ' Deactivate Cold Output EndIf If V > TargetTemp + Hyst then ' Above Target temperature + Hysteresis PORTA.2=0 ' Deactivate Warm output PORTA.3=1 ' Activate Cold Output EndIf
i used this
and now i have two outputs. Very simple change but useful.Code:If V < TargetTemp - Hyst then ' Below Target temperature - Hysteresis PORTA.2=1 ' Activate Warm Output EndIf If V > TargetTemp + Hyst then ' Above Target temperature + Hysteresis PORTA.2=0 ' Deactivate Warm output EndIf If V2 < TargetTemp - Hyst then ' Below Target temperature - Hysteresis PORTA.3=0 ' Deactivate Cold Output EndIf If V2 > TargetTemp + Hyst then ' Above Target temperature + Hysteresis PORTA.3=1 ' Activate Cold Output EndIf
Regards,




Bookmarks