TConnolly
Lifetime Supporting Member
Redlion G306
I'm trying to set the minimum value data limit of a tag named CT01_HighAlarmSet where the minimum value is CT01_Setpoint+(2*CT01PropBand)+1 using the complex statement
return (CT01_Setpoint+(2*CT01_PropBand)+1);
The problem is CT01_PropBand is a floating point number and I get the error message that returned value must be an integer. There is no error message if I omit the floating point tag. What function do I use to cast CT01_PropBand as an integer?
edit:
I tried making an internal integer tag itag1 and using
itag1 := 2*CT01_PropBand
return (CT01_Setpoint+itag1+1);
still no joy.
I'm trying to set the minimum value data limit of a tag named CT01_HighAlarmSet where the minimum value is CT01_Setpoint+(2*CT01PropBand)+1 using the complex statement
return (CT01_Setpoint+(2*CT01_PropBand)+1);
The problem is CT01_PropBand is a floating point number and I get the error message that returned value must be an integer. There is no error message if I omit the floating point tag. What function do I use to cast CT01_PropBand as an integer?
edit:
I tried making an internal integer tag itag1 and using
itag1 := 2*CT01_PropBand
return (CT01_Setpoint+itag1+1);
still no joy.
Last edited: