Hi,
I would like to do a min/max check on ~50 Floating point values. I would prefer to use a pointer to avoid to call the min/max check block more than once (I assume that the only one set point is changed on the HMI during one scan cycle).
this is how it is done now (~50 times):
any suggestions?
Thanks
I would like to do a min/max check on ~50 Floating point values. I would prefer to use a pointer to avoid to call the min/max check block more than once (I assume that the only one set point is changed on the HMI during one scan cycle).
this is how it is done now (~50 times):
Code:
L "Set_point".Valve_DT3 //DB80
L "Cmp".Valve_DT3 //DB81
==R
JC NDT3
CALL "Min Max Limit Check" //FC21
MN :="Set_point_Min".Valve_DT3 //DB82
IN :="Set_point".Valve_DT3
MX :="Set_point_Max".Valve_DT3 //DB83
RET_VAL:="Cmp".Valve_DT3
L "Cmp".Valve_DT3
T "Set_point".Valve_DT3
NDT3: NOP 0
any suggestions?
Thanks