Integer to ASCII Integer

Join Date
Mar 2013
Location
chicago
Posts
3
Hi,
I am having trouble with taking an Integer and somehow moving this number as part of an ascii string. Do I have to break it down and move 2 numbers to one word in the string file? I am using a micrologix 1100. I would appreciate any guidance here.
 
Use the AIC command. It will take your integer and convert it to a string and handle multiple digits. If you don't already have a string (ST type) file, you must do that offline and download.

If you need to build a string from pieces, look at the concatenate command (ACN), and to take apart a string, use the AEX (ascii extract)...
 
So if I have a number in N7:0, 12345,the AIC will put it in the ST file as 12345 as length of 5? Trying to understand, thought it would convert the decimal number to the equivalent ascii number?
 

Similar Topics

Hello, I am converting to iFIX 6.1 and talking to a PLC5. I have several TX tags that were looking at N32 addresses in the PLC5 and were getting...
Replies
4
Views
2,899
I know there's the DTOS Function, but I have a value of "35" that is really "0035", and that's how I want it converted. Looks like the function...
Replies
2
Views
1,509
Please Help On Allen Bradley PLC SLC500 I'm receiving Ascii string data values from a serial devices and put the value into a string file; How...
Replies
12
Views
4,813
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,720
Trying to write an Ascii Input from a PV 1000 to a slc504 Integer file. What is the trick to this? The PV gave me an error Unable to write error...
Replies
2
Views
3,498
Back
Top Bottom