This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Bacnet Client app auto mapping
#4
You can use a script instead. But all communication (reading and writing) should be in a single resident script. Otherwise the communication can fail randomly if LM tries to read and write at the same time. If you need to read many objects at once you can use bacnet.scandevice():
https://forum.logicmachine.net/showthrea...7#pid22457

Since instant reaction is not needed for AC units you can do it like this:
- Read current values from the AC unit, update status objects if needed
- Compare status values with current control values in LM objects, write back to BACnet if values are different
Keep in mind that setpoint values might have a slight difference due to how floating point numbers and handled so direct comparison might not work, use this:
Code:
if math.abs(control - status) > 0.1 then
  write()
end
Reply


Messages In This Thread
Bacnet Client app auto mapping - by AEK - 21.11.2021, 21:07
RE: Bacnet Client app auto mapping - by AEK - 21.11.2021, 21:36
RE: Bacnet Client app auto mapping - by admin - 22.11.2021, 07:07
RE: Bacnet Client app auto mapping - by AEK - 20.08.2024, 16:30

Forum Jump: