convert string

jimcav

Member
Join Date
Dec 2004
Location
new jersey
Posts
229
i am using a micro logix 1500 and i have a number in a string (st17:3 looks like +0000.000 ) and i need to convert it to a floating point F8:1 for example.

thx
jim cav
 
As far as I recall, Micrologix/SLC's do not have any instructions for decoding reals from ASCII strings. You can possibly save some time, if it's a fixed format, if you just use the AEX (String Extract), ACI (String to integer) for each part extracted, and then some math.
 
thanks that worked great i was even able to use the + and -, to change the final floating point value. thanks for the help


jim cav
 
Glad it worked. I've gotten way spoiled by the string to real, real to string, string to DINT, and DINT to string instructions built into the Logix processors lol.
 

Similar Topics

Hi I need to convert a DINT with HEX value e.g A0F15663 to a string with the same value 'A0F15663'. Any tips of good instructions to use ...
Replies
11
Views
3,379
First post here, hopefully not breaking any rules. I am working with a Redlion G3 HMI (yes, I know). I have a series of string tags that I am...
Replies
17
Views
4,019
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,049
Found an awesome point of sale for $500. It sends an ascii string when a product is sold. Need to convert this into a number between 0 and 255 or...
Replies
1
Views
2,270
I'm trying to display a Allen Bradley Controller Serial Number that's in HEX to String for my SCADA to display. Any ideas?
Replies
3
Views
2,840
Back
Top Bottom