Modbus protocol Implimentation

HI, I use exactly this example and all is working well excpeted I can't write the input/output registers 4000.
I use ModbsuScan32 to ckeck. I read all register and write output register 0-9999 but not the 4000-4999.
Some one can one can help me ?