FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
3 weeks ago
Trying to figure out if there is a way I can trigger a changed based on a float value?
The 0-1 for boolean values works fine, cant seem to figure it out with a float.
tried >5 <5 for changes, and it always seems to convert to a string type comparison.
Thanks in advance.
Solved! Go to Solution.
3 weeks ago - last edited 3 weeks ago
This is working for me with integer and float item parameters. I can also select either integer or numeric comparisons in the image changer. This is in WebIQ 2.15.7.
Are you sure your active pressure is a float and is set to the comparison values?
3 weeks ago
Here some basics for the image changer:
When you want to display different images for ranges of number, you can solve it like this:
3 weeks ago
Thank you for the clarification, hugely helpful.
3 weeks ago
@dwoodlock Alternatively, you can also convert the range of the float number into an INT so that the image changer can be used. You can do this in the PLC or WebIQ. Here an example for the PLC.
IF (rFloat>30) THEN
iImgId := 3;
ELSIF (rFloat>20) THEN
iImgId := 2;
ELSIF (rFloat>10) THEN
iImgId := 1;
END_IF
a week ago - last edited a week ago
I ended up just making the determination from a binary within the plc program instead of trying to use the float. KISS philosophy.
Thanks