Question details

CompactHMI real data type decimals of PLC variable

Hello,

I have a problem with PLC real data type variable decimals in CompactHMI. Real variable value with more than 2 decimals doesn’t have same value in PLC and in HMI, e.g. PLC_value=8.5051 and same variable HMI_value=8.5078. In HMI I am using data type PLC_Real4.

I would appreciate if someone could tell me is this problem about wrong HMI data type selection or some configuration error in signal / HMI object?

Voted best answer

Thank you for the tip, I tried this solution before. It works if I am only reading the PLC variable in HMI but with controllable variables, I don’t know where to make the calculation. With read-only variable, I divided variable value in HMI object, but same method doesn’t work with input field object.

And I would also like to know what is the reason for this behavior; is it a configuration error?