Hi, I am currently encountering an issue using the clamping feature on tags.
I have a tag that is clamped between [0-4.4]. Currently if the REAL value in the PLC is set to [4.4], the conversion results in the value being [4.400000095] in Ignition. Since [4.400000095 > 4.4] the value is considered out of the limits.
I do not want to increase the upper clamp limit, since 4.4 is truly the maximum the user should be able to enter.
Is there any method to clamp the number after it has been formatted? Or are there other potential solutions?
Apologies on my poor phrasing of the question. I did determine that the value in Ignition is correct in terms of its IEEE-754 representation. I was optimistic in thinking that there may be a method to clamp the value after it is formatted.
Would you say the only solution would be to increase the upper limit by an amount that is less than the formatting? For example, if I format the number to two decimal places (#,##0.00) then I need set the upper limit to 4.401.
I played with this a little and the only thing that makes it work like you want is using a double precision value in the OPC/PLC source instead of single precision.
Otherwise you'll have to play with increasing the eng limits. All the clamping/scaling/etc is pre-format.