32bit floating-point value is not shown correctly

Hello,

when I try to show a 32bit floating-point value (which correlates "REAL" inside the PLC and "Float" for OPC UA), the value is not shown correctly.

When I enter the value "0.12" into the input field, the correct value "0.12" is written into the PLC, but the HMI shows "0.11999999731779099".

When I use a 64bit floating-point value (which correlates "LREAL" inside the PLC and "Double" for OPC UA), everything works fine.

Best reply by webiq-sk
View original
1 reply