0

Problem rounding in OPC DA Collector

I'm having issues using the "Round" function in "Data Transform" in OPC DA Canary Logger Administrator (Canary version 22). I have tried things like Round(x,2) and the tag shows "red" and isn't logged. Am I using the wrong format?

As to why I'm trying to do this (in case there is a better way to handle this) I have a floating point data item coming from Kepware OPC server for a modbus PLC where it looks like there might be noise being logged. For example, when the machine is stopped, I have values like in the attached. I'm assuming that I can fix this by rounding. 

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi James Wise ,

    The OPC DA logger does not have a Round function available, but if you would like to cut down on the noise, the better approach would be to use the "Dead Band" option instead. This is the column next to the "Data Transform" within the table of the logger. It is an absolute value dead band, so the value would have to change by the amount specified in order for us to log it.

    Like
print this pagePrint this page
Like Follow
  • Status Answered
  • 1 yr agoLast active
  • 2Replies
  • 58Views
  • 2 Following