Page 1 of 1

OPC Groups - smothing

Posted: Sat Sep 01, 2018 12:14 am
by jeissonsierrac
Hello Everyone!

I have a problem with the configuration of the OPC driver groups, I have 3 groups configured as shown in the attached image, when I configure a DPE with an OPC addres and assign any of the groups I configure it with low level old / new comparisor so that the value is not overwritten unless the value changes; additionally configure a smoothing "old / new comparison" to avoid overwriting the value; but the address continues to overwrite the value I appreciate if you can help me with the problem. Image

Re: OPC Groups - smothing

Posted: Thu Sep 06, 2018 7:06 pm
by jeissonsierrac
Hello, trying to solve the problem make the same configuration with another project, but it is working in Wincc Oa 3.14 P020 and works correctly, I think the problem only occurs on the Wincc oa 3.16 P001.
some idea to solve the problem

I appreciate if you can help me or indicate any suggestions to solve the issue.

Re: OPC Groups - smothing

Posted: Fri Sep 07, 2018 1:32 pm
by Gertjan van Schijndel
By default the general query (GQ) values are not smoothed. Is in your case the general query bit (or other bits) set for the values that you want to have smoothed?

Enabling the smoothing for all values can be done by setting '_Driver.SM' to 0.

Re: OPC Groups - smothing

Posted: Fri Sep 07, 2018 7:38 pm
by jeissonsierrac
Hello!
I did the change that suggest you, but when I write in the DPE "_Driver .SM" 0, the value is not updated, even if the changes are presented in that OPC address, when I rewrite the value in 1 immediately write me the current value of the server.

when I write the DPE "_Driver .SM" in 1, the write time in the DPE configured with the OPc address is updated every 3 seconds but the time is updated every 1 ms

the attached video shows how the system is writing the data and in the attached images you can see the configuration of the group and the DPE

I appreciate your help.

Other idea.

https://www.winccoa.com/fileadmin/image ... es/OPC.zip

Re: OPC Groups - smoothing

Posted: Tue Sep 11, 2018 5:22 pm
by Gertjan van Schijndel
The increments of 1 millisecond are because the timestamps of the values are not in sync with the WinCC OA server (in the movie the invalid info bit 'S' indicates this). Check if the time is correct on the OPC DA server and device. Or let the opc driver ignore the timestamps by setting the 'opc' config entry 'timeStampFromServer'.
The values read by the refresh timer have the general query bit set (in the movie the query info bit 'G' indicates this), which are not smoothed with the '_Driver.SM = 1' setting. Disable the refresh timer by setting to zero or use a much bigger interval.