So I am not a Modbus expert, but have definitely written information to a PLC in the past. As far as I know you cannot write to input registers, I presume you can write to output registers (are they called coils?). I don't have the toolkits installed on my PC right now so I cannot check.
This code below works fine for setting Holding Registers. Have you tried writing to the Holding Registers? I