can anyone (maybe S. Bierl himself?) help me out on this one: typically, you feed in sensor values of type INT into the “Ap” input of the “BkAp” function block from the Burklimat NG library just like the documentation suggests. This works as intended.
I now have the issue that i receive very large values over M-Bus from some metering devices (Energy Count/Power/Flow/Volume Count) of type REAL. I would have to multiply those values with 10 to preserve one decimal point before converting them from REAL to INT to further use them on the “Ap” input of the “BkAp” block. But since those values are already very large (>32767) even before multiplying they won’t fit into a tag of type INT.
Would the “BkAp” block work with DINT on the “Ap” input aswell even though the documentation doesn’t say anything about using anything besides INT? That would solve my problem. If not im open to suggestions on how i could solve this.
Yes I am aware of that. Thats why i mentioned S. Bierl. To my knowledge, he is the main developer behind the Burklimat NG library. I just wanted to ask here instead of via E-Mail to make the answer available to everyone who stumbles across this post. I may contact him directly though and share his answer here (if he is ok with that ofc).
Hi Rudi. What is the status of your topic? Did you can in contact with author? Is it solved? Can you share a summary with us so others can also benefit from it?
Hey,
didn’t get around to asking him yet. This issue got buried beneath other (non-B&R related) issues. I temporarily solved it by decreasing the accuracy of the values by dividing them by 1000 to fit them in the smaller INT datatype and adjusting the unit value of the function block accordingly.
You can probably close this topic.