Sending hex value by Netlinx diagnostic
eddymouse
Posts: 67
How can I send Hex code to a device by Diagnostic?
I need to send the string : POWON $0D
Thanks
Alex
I need to send the string : POWON $0D
Thanks
Alex
0
Comments
Enter the device, port, and system. You can?t use 0 for the system number; you need the actual system number.
Message Type: String
String Expressions: checked
Message to send: ??POWON?,$0D?
Press Send to Device
HTH
I didn't see
String Expression: checked
and It not work. It send "'POWON',$0D" withou translation to hex value.
If you want to test strings coming into a RS232 Port the easiest way is to short Pins 2 & 3 on the port and use Control a Device to send the string your expecting to receive.
I dont think Emulate a Device set to a Serial Port number will work.
But I need to insert into the string the hex value and I can't. Why? How Can I insert hex value?
thanks.
alex
How you interpret the data coming in is up to you. A $0D is the same as 13.
In your example you speak about a 'string expression' to check in. Where is it? I can't find it!
yadadada = data.text
look at yadadada in debug to track your feedback, now for the other question like so in control a device after you have filled in DPS example for a device on com 1 and your still using the default settings that came with the box you would do 5001:1:0 tick string expression and notification tab then send:- lol
P.S.you may wanna open up debug and drop yadadada in there to see what you get back
I've found it to. would'nt swear to it in a court of law right now though...
Now I have see it!
Thanks a lot
Ciao
Alessandro