15.11.2024, 17:05
Hello everyone,
Is it possible to convert RS485 command this to modbus RTU.
if not port then
require('serial')
port = serial.open('/dev/RS485-1', { baudrate = 9600, parity = 'none', databits = 8, stopbits = 1 ,duplex = 'half'})
port:flush()
end
if port then
commandWrite = string.char(0x63, 0x67, 0x67, 0xD5, 0xD5, 0x67, 0x67, 0x66,0x66 ,0xD)
port:write(commandWrite)
port:close()
end
Is it possible to convert RS485 command this to modbus RTU.
if not port then
require('serial')
port = serial.open('/dev/RS485-1', { baudrate = 9600, parity = 'none', databits = 8, stopbits = 1 ,duplex = 'half'})
port:flush()
end
if port then
commandWrite = string.char(0x63, 0x67, 0x67, 0xD5, 0xD5, 0x67, 0x67, 0x66,0x66 ,0xD)
port:write(commandWrite)
port:close()
end
FN485 All Units Communication Protocol v121.pdf (Size: 1.71 MB / Downloads: 10)