Smoothing Problem

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
shokkul
Posts:37
Joined: Mon Feb 25, 2019 8:50 am

Smoothing Problem

Post by shokkul »

Hello All,

We encountered a problem about _smooth config. Long story short we use smooth config for one float dpe that is connected to plc by s7Plus (LReal), it is value dependent and the deadband value is absolute and 0,100. So when the connected plc value changes 0.100, sometimes smooth config discards value changes sometimes not. But when we change the deadband value to 0.099 change is always detected. It seems like its a floating point problem due to conversion. How can we solve this issue without changing deadband value? The config settings are attached below.

Thanks in advance

Image

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Smoothing Problem

Post by leoknipp »

This is behaviour is possible related to the fact that a floating point value has a limited precision.
If you want to do a value based comparison you can possibly use a _msg_conv config to limit the number of digits which are used in WinCC OA. For a converted value possibly the value comparison works better.

Best Regards
Leopold Knipp
Senior Support Specialist

shokkul
Posts:37
Joined: Mon Feb 25, 2019 8:50 am

Re: Smoothing Problem

Post by shokkul »

Hello, we changed deadband into 0.100 - epsilon number and it worked this way ( even though on para it still shows as 0.100. Thanks for the reply

3 posts • Page 1 of 1