ljean / modbus-tk

Create Modbus app easily with Python
Other
566 stars 212 forks source link

How to add a block of Input Registers in slave ? #135

Closed capslocknanda closed 3 years ago

capslocknanda commented 3 years ago

Hi, Can any-one help me with how to add an input register (Read-only (30001-39999)) block in slave? I saw procedures to add others (coil, holding registers, discrete inputs). Is there any way to use commands like these (slave_1.add_block('0', cst.HOLDING_REGISTERS, 0, 16)). Thank you in advance.

capslocknanda commented 3 years ago

Found ANALOG_REGISTER which works as INPUT REGISTER in this package.