it is working. thanks bobc.
i test some of numbers is the result is true?
My test numbers are
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,20,31,33,35,126,127,128,200, ,10000,20000,25000,3000,60000]
this are working. for example when plc send 60000 i can read it 60000 my program.
but
1000 and 65499 is not working.
when plc send 1000 i read it 131 in my program.
when plc send 1000 i see '#232#3#13#10' when i run F7 LTelnetClient buffer
when Plc send me 1000 i see ' \350\003\r\n' from wireshark