04.06.2024, 14:02
Hello, I have a Connector Bridge RS485 Interface device. Can you send the script how to send such commands through modbus.
I am trying the common function:
function blind(command)
require('serial')
port = serial.open('/dev/RS485-1', { baudrate = 9600, parity = 'none', databits = 8, stopbits = 1 })
port:flush()
port:write(command)
port:close()
end
Example event script:
]
blind('!000V?;')
I am attaching the command of the device
Thank you
I am trying the common function:
function blind(command)
require('serial')
port = serial.open('/dev/RS485-1', { baudrate = 9600, parity = 'none', databits = 8, stopbits = 1 })
port:flush()
port:write(command)
port:close()
end
Example event script:
]
blind('!000V?;')
I am attaching the command of the device
Thank you