Skip to main content
12-Amethyst
July 31, 2023
Solved

ASCII string CR insert

  • July 31, 2023
  • 1 reply
  • 2546 views

Dear community,

I am trying to connect to a device with UCON;
I can communicate with the device with ASCII strings over a terminal;
unfortunately it doesnt work if I enter my ASCII string in Kepware.

The device only recognizes ASCII strings; if I copy my ASCII string from a converter with the CR and LF into the terminal it works and responds.

If I try to insert the string into Kepware's Interface it doesnt work.
Manully inputing the string and entering  ALT+13 for CR and ALT+10 for LF also doesnt work.
The device doesnt answer to the string.

 

How else can I enter CR and LF into the interface? 

I can't seem to find anything about it on the net or help.

Thanks in advance.

 

Best answer by Kepware_User

Alright, solved the problem.
For non printable characters you have to use the "Write character" command.

1 reply

12-Amethyst
July 31, 2023

can you see Kepwares output? 

Try chr(13)  and chr(10) ?

12-Amethyst
July 31, 2023

write character 0x0D  0x0A

 

12-Amethyst
August 1, 2023

Doesnt work. If I try to send it with ASCII HEX (0x74 0x74 0x3d 0x67 0x72 0x0d 0x0a) or ASCII string with tt=gr0x0d0x0a 
I get the output (in ASCII): 30783734203078373420307833642030783637203078373220307830642030783061