|
When using MSComm control, please pay attention to receiving ASCII code or binary code
For details, please refer to the book "VISUAL BASIC Serial Communication Example Navigation" of "Renming Post and Telecommunications Press".
Among them, the code of the serial port debugging wizard in Chapter 1 is a very good code, which can be used for industrial control after modification. It includes receiving and sending of ASCII code and binary mode (hexadecimal display).
The code of5716152's reply is part of it. |
|