Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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.
Solved! Go to Solution.
Alright, solved the problem.
For non printable characters you have to use the "Write character" command.
can you see Kepwares output?
Try chr(13) and chr(10) ?
write character 0x0D 0x0A
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
As Kepware has problems with updating the sever (I have to restart the whole server If I want to change the output from Kepware), I have told you the wrong output;
tt=gr(Alt+13, Alt+10)
tt=gr♪◙ is the output = tt=gr<EOT><A7>
Alright, solved the problem.
For non printable characters you have to use the "Write character" command.
Thanks for the fast reply;
for further information;
the string is really simple; tt=gr(CR)(LF)
inserting tt=grchr(13)chr(10) creates the same output (in ascii); tt=grchr(13)chr(10)
inserting tt=gr♪◙ (the alt combinations) creates tt=gr<NUL><NUL><NUL>
I didn't mention it yet, but my communication is unsolicited but can only get responses in Kepware if I use a solicited channel.
I will create another topic about this; but can this be the problem?