Can't read inputRegister : Modbus RTU rs485

First: the posted code isn't complete, it doesn't compile.

Check the result code you get and post the value you get!

As you failed to post a link to that device's manual the following is wild guessing: Is the register address 30001 correct? Have you tried to use address 1? As many PLCs distinguish the register type only by the register address they use ranges for the types.