Support Forums
Sending hexadecimal via DT80

Hi,

I have a RS232 sensor, I must send a 11 11 72 65 61 6C 2C 0D 00 (Hex) to sensor, because I couldn't type "Device Control 1 (oft. XON)" and "carriage return (CR)" in ASCII, 11 in Hex is "Device Control 1(oft. XON)",0D is "carriage return (CR)", 72 65 61 6C 2C 0D is real.

Because this, I can only send it with hex as the above. I have test it use my computer's RS232 port, and it works. So, I want to send 11 11 72 65 61 6C 2C 0D 00 using DT80. What should I do to achieve that?

Hi, I have a RS232 sensor, I must send a 11 11 72 65 61 6C 2C 0D 00 (Hex) to sensor, because I couldn't type "Device Control 1 (oft. XON)" and "carriage return (CR)" in ASCII, 11 in Hex is "Device Control 1(oft. XON)",0D is "carriage return (CR)", 72 65 61 6C 2C 0D is real. Because this, I can only send it with hex as the above. I have test it use my computer's RS232 port, and it works. So, I want to send 11 11 72 65 61 6C 2C 0D 00 using DT80. What should I do to achieve that?

Good morning Jiangxing

You can send quite easily, on page 316 of the DT80 manual (UM-0085-B3) there is an ASCII Table with the ASCII table and the decimal number. To send any character just put \nnn where nnn is the decimal ASCII number or use the control code (also listed).

To send an Xon then use \17 or ^Q in your code. Carriage return is \13 or ^M.

Cheers,
Roger

Good morning Jiangxing You can send quite easily, on page 316 of the DT80 manual (UM-0085-B3) there is an ASCII Table with the ASCII table and the decimal number. To send any character just put \nnn where nnn is the decimal ASCII number or use the control code (also listed). To send an Xon then use **\17** or **^Q** in your code. Carriage return is **\13** or **^M**. Cheers, Roger
29
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft