Re: String composition
Posted: Sat Mar 04, 2017 10:26 pm
But isn't the same, in modbus rtu you must send the caracter in a binary way, some devices could accept also
modbus ascii (this is the case that you will use the string).
It's just the matter of damn chr(0) !! I wonder if could be the same with serial port I have to try up. At first I was
thinking to a bug but probably it isn't. If I send to the serial port of the 8051 it will get two different codes str(0)
return 30H, chr(0) will return 00H.
modbus ascii (this is the case that you will use the string).
It's just the matter of damn chr(0) !! I wonder if could be the same with serial port I have to try up. At first I was
thinking to a bug but probably it isn't. If I send to the serial port of the 8051 it will get two different codes str(0)
return 30H, chr(0) will return 00H.