Converting String to HEX ????

newtoPLCmike

Member
Join Date
Mar 2007
Location
Marquette
Posts
2
My OPC server has a string value of "401-534" which I would like to have apperar on my Horner Lx280 PLC touchscreen. I have 10 16 bit registers (R360-R369) set in the PLC for a string value of up to 20 characters. The string shows R360 as 3430
R361 as 312d
R362 as 3533
R363 as 3400
R364 as
R365 as
R366 as
R367 as
R368 as
R369 as

where Hex =
34 30 31 2d 35 33 34 00
4 0 1 - 5 3 4 null

My PLC screen shows "13360" though. What the heck is going on?? Can someone help please.

mike
 
As you mentioned in the plc you watch R360 in hex but on your screen it's shown in decimal (3430hex=13360dec). To view a string you need a string display on your touchscreen or a display which can show characters based on their ASCII code then you could display each byte of a string separatelly.
 

Similar Topics

Hi all, I've got a bit of a need to convert an integer (and a real in another situation) to a string with a particular format. This seems possible...
Replies
11
Views
2,450
Have an unusual one here, guys... I have a remote machine that is sending my 1769-L33ER five 16-bit integers that represent 10 ASCII characters...
Replies
4
Views
2,227
Hello folks, Using AB RSLogix micro.. I have a 6 digit ASCII text string and Im looking to convert the 4 most significant digits to an integer...
Replies
2
Views
1,446
I am sending Omron Text over devicenet to an AB GuardLogix Processor. I am having a difficult time converting the string to readable data. I am...
Replies
8
Views
4,159
Is there a way to convert these integers (17476,16688,13110,12598) to Ascii character (DDA03616)? 17476 = 4444hex = DD on ascii chart 16688 =...
Replies
7
Views
6,737
Back
Top Bottom