EasyManua.ls Logo

Embedded Systems LogiMachine5 Power - DMX Interconnection with LM; DMX Function

Embedded Systems LogiMachine5 Power
254 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
205
set data transfer register (dtr)
0..255
initialise
randomise
compare
+
withdraw
set search address (h)
0..255
set search address (m)
0..255
set search address (l)
0..255
program short address
0..63
verify short address
+
0..63
query short address
+
physical selection
enable device type x
0..255
15. DMX interconnection with LM
DMX protocol support is realized upon RS485 serial port.
DMX function
Add the following user library in Scripting
User libraries.
local luadmx =
require('luadmx')
module('DMX', package.seeall)
local DMX = {}
-- default params
local defaults = {
-- storage key
skey = 'dmx_line_1',
-- RS-485 port
port = '/dev/RS485',
-- number of calls per second
resolution = 20,
-- total number of channels to use
channels = 3,
-- transition time in seconds, does not include DMX transfer time
transition = 2,
}
-- value setter
function set(chan, val, key)
key = key or defaults.skey
chan = tonumber(chan) or 0
val = tonumber(val) or -1

Table of Contents