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.

DMX with LM4
#1
http://openrb.com/example-dmx-lighting-c...-with-lm2/

According to the link, I added a script in user libraries along with DMX handler script in resident script and also created an event script to mark DMX objects. But, when I trigger KNX group addresses as specified in DMX mark scripts none of DMX channels are triggering.
What am I missing in the setup?
DMX ballasts are connected to first RS485 port of LM4.
Reply
#2
Did you specify a correct RS485 port name in the handler script? In your case it should be '/dev/RS485-1'
Reply
#3
Okay.
What are the group addresses to be triggered?
I've created multiple objects with DMX tags and KNX group addresses 1-byte scaling (like 3/1/1, 3/1/2, etc.) in Objects tab; with last part of KNX group address as DMX channel nos.
So, where in the scripts the KNX main group address and KNX middle group address ought to be specified in order to get triggered in KNX bus?
Reply
#4
you need to add Event-based script and specify DMX (if it is the name you have tagged DMX objects) as group address /tag.
Then you can add the following script which will update all marked DMX group addresses with the value you set from visualization or other script:

Code:
require('user.dmx')
-- get ID as group address last part (x/y/ID)
id = tonumber(event.dst:split('/')[3])
-- get event value (1 byte scaling)
value = event.getvalue()
-- convert from [0..100] to [0..255]
value = math.floor(value * 2.55)
-- set channel ID value
DMX.set(id, value)
Reply


Forum Jump: