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.

Modbus RTU to TCP bridging
#3
Thanks Daniel! Smile

I have tried this script, but as far as I can see, this script needs to map all modbus registers through knx before exposing them to modbus TCP again.
Wouldn't that make the original modbus addressing shift, so that I need to create new profiles on my receiving PLC?

So the first mapping defined in the list of registers, eg GA 1/3/67, would be exposed on Modbus TCP as register 0 and so on.

-- list of register mapping, starting from 0
registers = { '1/3/67' }

-- list of register data types, element count must match registers table
regdt = { dt.float32 }

I was looking for a solution were i could poll the modbus RTU devices by their actual modbus ID, and same register for each ID.

For instance:

ID: Register: Desc:
151 3019 Voltage A-B for slave #151
152 3019 Voltage A-B for slave #152
153 3019 Voltage A-B for slave #153

Is that possible?
Best regards
Christian
Reply


Messages In This Thread
RE: Modbus RTU to TCP bridging - by Daniel - 20.05.2021, 07:37
RE: Modbus RTU to TCP bridging - by christian.hegland@caverion.com - 20.05.2021, 18:51
RE: Modbus RTU to TCP bridging - by Daniel - 21.05.2021, 07:42
RE: Modbus RTU to TCP bridging - by admin - 21.05.2021, 13:06
RE: Modbus RTU to TCP bridging - by cekca - 27.05.2021, 07:27

Forum Jump: