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.

RS485
#1
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

.pdf   FN485 All Units Communication Protocol v121.pdf (Size: 1.71 MB / Downloads: 10)
Reply
#2
It's a custom protocol that's not compatible with Modbus. You have to use a single resident script for integration because RS485 port cannot be shared between multiple scripts.
Reply


Forum Jump: