Problem whit simple-modbus

can you help me?

Considering that the code you posted does not even compile, no.