How to copy string data to integer as ascii in micrologix 1100?

SirScott

Member
Join Date
Jan 2008
Location
TROY, Ohio
Posts
6
I have a micrologix 1100 and I need to extract characters from a string data type and store the ascii values for each character in an integer type data table space. I was able to do this in a 5/03 processor, but the micrologix 1100 doesn't support the direct addressing of characters in the string like in the 5/03.

in the 5/03 for example, I would use the following instruction.

MOV #ST118:0.DATA[1] N119:11

One of you experts have a method I can use in the Micrologix 1100?

Thanks in advance, :unsure:
 
If I'm reading this correct look at the ACI instruction convert string to integer destination is your st118:0 destination N119:11. this is from what I see in publication 1763-rm001b-en-p micrologix 1100 instruction set reference under literature on the AB website
 
Thanks Bernie! :site:I removed the # signs and it works fine in the micrologix 1100. I wonder why AB chose a different syntax for the micrologix?
 
Your hoped-for short easy answer is to use the ASCII Extract (AEX) instruction, followed by the ASCII-Conversion-to-Integer (ACI) instruction, very carefully!
 

Similar Topics

Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
128
I feel like I'm going crazy, new to Siemens, coming from AB, and I cannot get a dang string copied in SCL. This is a S7-300, V16 PLC. I have a...
Replies
10
Views
3,485
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...
Replies
8
Views
5,953
I am using v14 with a 1215 dc/dc/dc. I need to copy a 50 element array of strings to another 50 element array of strings. I can work it out for...
Replies
3
Views
4,049
I'm guessing there is a simple way to do this, but I'm not very experienced with timers, so maybe one of you can help me out. I have two string...
Replies
7
Views
2,085
Back
Top Bottom