sint to string

Hello PLC folks,
Could someone please help me out here? I am trying to convert SINT to STRING (rslogix5000) but could not get it to work.
I used BTD to move the bit from the actual SINT to my DINT then converted it with DTOS but the result was the decimal number instead of the actual ascii string number.
Thanks

sint to str.PNG
 
Yes, the screenshot is the main part that will convert sint to string. SINT is already in ASCII format so a simple COP with the specified string.len should suffice. You don't need the extra stuff counter.acc I had in there. I only used it to parse out certain data.
 

Similar Topics

Hello! I'm looking for advice how to convert an array of SINT[5] into the Decimal value. Since the total value of the array is 40 bits, it's too...
19
Replies
4,419
Views
I have an IFM Efector barcode reader that is up and running. The actual code read is showing up at Data[6] via the EIP connection. I am simply...
1
Replies
1,319
Views
HI Guys So i am trying to write a real SINt or DINT value into a string tag. If in string browser I write it manually, no problem. But how can I...
8
Replies
11,034
Views
I am trying to convert an array of SINT's into a String, any advice?
3
Replies
4,855
Views
I'm stumped by something seemingly simple. I want to move the numerical value of an ASCII style SINT into a REAL tag in Studio 5000. What's the...
3
Replies
1,436
Views
Top