Display float value
- vy.nguyenthanh@biendongco.vn
- Posts:13
- Joined: Wed Sep 18, 2019 10:49 am
Display float value
Hi everyone, I'm using WinCC OA 3.16 P014 I have a problem when I display float value from a dpe connected to a tag (datatype real) of PLCSim and the value of this tag is 20.8, my textfield display 20.799999237061 but when I disconnect with the tag of PLCSim and enter value in datapoint parameterization, the value displayed on textfield is 20.8
- paramesh1985
- Posts:81
- Joined: Thu Sep 25, 2014 6:03 am
Re: Display float value
Hi,
Could you please check your dpe format.
set the dpe format as per your requirement . you can able to find the dpe format in the config "_common".
Please check.
regards,
r.paramesh
Could you please check your dpe format.
set the dpe format as per your requirement . you can able to find the dpe format in the config "_common".
Please check.
regards,
r.paramesh
- vy.nguyenthanh@biendongco.vn
- Posts:13
- Joined: Wed Sep 18, 2019 10:49 am
Re: Display float value
Dear R.Paramesh,
I've checked your suggestion and it works in my situation. Thank you very much for your support!
Regard,
vy.nguyenthanh
I've checked your suggestion and it works in my situation. Thank you very much for your support!
Regard,
vy.nguyenthanh
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Display float value
If you want to limit the number of digits after the comma for a float value received from the PLC you can use the message conversion config with the option "Adjustable accuracy".
Limiting the precision of the float value is also necessary if you want to use smoothing of float values.
Best Regards
Leopold Knipp
Senior Support Specialist
Limiting the precision of the float value is also necessary if you want to use smoothing of float values.
Best Regards
Leopold Knipp
Senior Support Specialist