Ascii help

KEV_07

Member
Join Date
Jul 2014
Location
sa
Posts
2
I have the following data coming into the PLC. I need to make use of this data as a string. how do I do this?

1.jpg 2.jpg
 
The DTOS Instruction. Double Interger to String. I see your using INT but it will work for that also. You'll find it under the ASCII Conversion Tab In the Language Element Bar.
 
Establish a standard STRING tag (let's say My_String).

Then use COP NDN.Data.ReadData[14] My_String.Data[0] 14

Then MOV 14 My_String.Len

If the characters come out in the wrong order (swapped) then you may have to use SWPB on the original data INTs as SWPB doesn't work on strings. Or you can just do a manual swap of the string's SINT pairs using a dummy intermediate.

I'm not sure if I have your source string tag correct - the image was a little fuzzy.
 
Last edited:

Similar Topics

I have a Horner PLC that is reading Ascii string from a device. When the device responds, it responds with the hex value in Ascii. I need to...
Replies
8
Views
2,381
hi, i try to capture barcode data using UDT with SINT ascii array. i have all the data i need but it in array format, how can i convert to 1...
Replies
5
Views
3,057
I am very new to programming PLCs, and one of the first tasks I received was to create a program that creates a socket connection between my PLC...
Replies
5
Views
2,541
Hello Everyone, I am looking for some help on this dreaded 1769-Ascii module. I have been doing a lot of digging on this module in the forum...
Replies
2
Views
2,458
All, I have a 1769-L24ER-QBFC1B processor with a 1769-ASCII card that I am trying to get working on the bench. I have a standard serial cable...
Replies
3
Views
2,004
Back
Top Bottom