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.

RS232 - DAYTON AMP
#1
Hello guys, 

I'm trying to integrate Dayton amp with the LM5 through RS232, I don't know what's wrong. 

I have created a virtual point to send an on-off command  to zone 1, but it didn't work.
in the bellow picture of the registers of the amp.

this is the script that i have used 

require('serial')

device = '/dev/RS232'

port = serial.open(device, { baudrate = 9600, parity = 'none', databits = 8, stopbits = 1  })

-- get value of KNX object
value = event.getvalue()

if (value == true) then
  -- send power on command with returns to make them stick
  char = "<01PR01\r" 
  port:write(char)
else
  -- send power off command
  char = "<01PR00\r" 
  port:write(char)
end

-- close port
port:close()


       
Reply


Messages In This Thread
RS232 - DAYTON AMP - by fahd-bnh - 15.09.2021, 13:28
RE: RS232 - DAYTON AMP - by admin - 16.09.2021, 07:33
RE: RS232 - DAYTON AMP - by fahd-bnh - 16.09.2021, 08:05
RE: RS232 - DAYTON AMP - by fahd-bnh - 22.09.2021, 08:01
RE: RS232 - DAYTON AMP - by admin - 22.09.2021, 12:52

Forum Jump: