Need Ascii displayed, Studio 5000

alive15

Member
Join Date
Oct 2015
Location
Montgomery, AL
Posts
690
Good afternoon,

I am using A.B. L27ERM-QBFC1B with v.30.11 on it. I have a Keyence SR-1000W Barcode scanner. I'm scanning a Datamatrix bar code and these characters come into the PLC in decimal format. However, I need to read these in Ascii format.

I'm also checking the length of the ascii characters as well, not the decimal. However, I am having difficulty converting into a readable ascii character. I can manually change the tag from decimal to ascii, but this does not change the tag value coming in, it only changes the appearance of it.

I tried DTOS, but the decimal character format remains. See picture. The # reads 926365748, but I need it to read in ascii "7784" as seen in the pictures attached.

Thanks!

ascii view.jpg decimal view.jpg dtos.jpg
 
I think you are going to end up using the COP instruction to copy multiple INT or DINT to a String. Been a while since I did that so maybe someone else here remembers how. I know you have to do the COP an then maybe modify the .LEN of the string manually.
 
Oh yes, you are correct. Actually, I created another data type called "string32". This way, I can select how I want the data to be displayed. So the solution is to create a data type, select string format, and just choose to auto-display the ascii settings. The COP is also what I need to use to complete this.

Thanks Jax, you the man!
 

Similar Topics

Using a PLC-5 .. I have a need to send ASCII to a really dumb annunciation device over serial. There were only 5 strings I ever sent so for...
Replies
17
Views
5,095
This pertains to RSLOGIX 5000. I have a machine that sends me back a single ASCII character in a SINT and I need to convert it into its decimal...
Replies
2
Views
2,370
hi every one how are you . i have this question maybe it is silly but i have no one to help me. i have twido plc and i need to send and recieve...
Replies
0
Views
1,748
Do any of you Excel gurus know of a VB code or function that will convert ASCII text into it's decimal equivalent? I'm not VB savy at all. I...
Replies
3
Views
5,830
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
271
Back
Top Bottom