02.04.2019, 11:25
I sent you already full example above. You need to fill these arrays
[*]
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.
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
Ctrl+F5