Looking to output an ASCII string of letters and numbers into its pure hex values

kjpmi

Member
Join Date
May 2018
Location
Bloomfield Hills, MI
Posts
2
Hello everyone,
I'm working in RSLogix 5000. I have an ASCII string of letters & numbers (call it String_3) which I have used INSERT to add a string of letters (String_2) to the very front of String_1 which is numbers. So if that makes sense, my final string I'm left with is in the format XXXX012345.
What are my options for converting this ASCII string? I'm pretty sure STOD will just ignore the letters. Not sure what else I can do. Ideally ASCII to hex would work as long as I could translate it back, say on a readout on an HMI.
The whole point of this is that the person who wants this doesn't want it stored as an ASCII string, they want to be able to store it as it's hex values.
 
I do not quite understand what your problem is. String is just an array of bytes. Each byte is one character in your String. Each ASCII character has a number representation. So it is all there what you need.
 

Similar Topics

I'm having problems wiring up a Omron OC201 output module. Can anyone possibly give me some help. I feel extremely dumb for not being able to get...
Replies
2
Views
1,625
Good Morning I was wondering if there are any standalone devices that can simulate as a plc analog output card. It would be a digital version...
Replies
4
Views
2,134
Hello Im looking for a counting scale that has an output that I can send to plc. We are packing 18 parts per box. Weight is about .8 lbs per part...
Replies
5
Views
5,488
Hi , Where i can find Mitsubishi PLC Card end of line & replacement model details. i am looking for Q02CPU replacement model. Please advice. thanks
Replies
2
Views
142
I have Allen Bradley plcs, I have had Circuit breakers and other automation equipment in the past. There's no solid buyers local. How much do you...
Replies
2
Views
211
Back
Top Bottom