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 variables: import massive
#16
I sent you already full example above.  You need to fill these arrays


Code:
 -- list of coil mapping, starting from 0
 coils = { '1/1/1', '1/1/2' }

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

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

[*]

Coils are binary objects and there you just add group addresses.
Registers are numeric objects and there you also have to add group addresses. 
For registers you also have to add register dpt in regdt table.  In this example group 2/2/2 is dt.int8, and group 3/3/3 is dt.uint16.  For each register you need to add dpt in next table in the same order.
Hope this is clear.
------------------------------
Ctrl+F5
Reply


Messages In This Thread
RE: Modbus variables: import massive - by Daniel - 02.04.2019, 11:25

Forum Jump: