Accueil > Community > FPScript > alternative zu Arduino´s constrain? > Reply To: alternative zu Arduino´s constrain?

#34309
Robert DemmelRobert Demmel
Participant

Hi,

ist das hier die eleganteste Lösung?

Dim Flow = P_230V * 1000 / 1 kW * 1 L / (1.16 h / 1 h ) / 60 / ( ‘Tf_Wasser_VorL_’ – ‘Tf_Wasser_RückL_’ ) * 1 °C / 1 min
For Each Row i In Flow Do
 If Flow.Y > 4 Then
   Flow.Y = 4
 ElseIf Flow.Y < -4 Then
   Flow.Y = -4
//Else Flow = Flow
 End
End
Flow