12.02.2018, 11:18
thanks for all answers!
So if want to read out the outdoortemp ga 0/1/0 (2 byte float value), to the modbus, should i type in to the coil mapping or register mapping?
Is there anything more i have to change except the ip-adress port, slavenumber ?
-- 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 }
So if want to read out the outdoortemp ga 0/1/0 (2 byte float value), to the modbus, should i type in to the coil mapping or register mapping?
Is there anything more i have to change except the ip-adress port, slavenumber ?
-- 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 }