FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
a month 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.
a month ago - last edited a month 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?
a month 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:
4 weeks ago
Thank you for the clarification, hugely helpful.
4 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
2 weeks ago - last edited 2 weeks 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