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 write speed
#1
Hi,
 
Is there any way to adjust the write speed of BACnet objects?
We have a case where we are trying to send some data to a Wago plc and the speed is too high. 
we have solved it by using os.sleep in script. But we are planning to use the scene controller in LM and not script every scene.
 
When adding a os.sleep of 0.1s it worked perfectly.
 
Any simple solution?
 
BR Even Sundgot.
Reply
#2
I suppose this might be an issue with parallel execution of write request.

You can lock parallel access via semaphores library so all writes are executed one by one:
Code:
require('sem')
require('bacnet')

value = event.getvalue()

-- wait for lock for up to 10 seconds
sem.runlocked('bacnetlock', 10, function()
  bacnet.write(127001, 'analog value', event.dstraw, value)  
end)
Reply
#3
Perfect! Thanks Smile
Reply


Forum Jump: