convert string to interger in Logix5000

smcmanus

Member
Join Date
Jan 2006
Location
Vancouver
Posts
109
Hi am having trouble converting a simple string value to an integer. For example I want to convert string value "90" to an integer. The value should be 14640. I cannot get it to work.
 
You have to add after copy byte swap:

SWPB TAG_INT REVERSE TAG_INT2
swap01.jpg
 
smcmanus
Just copy my example, as you see it works

bernie_carlton
STOD will not work in this case as INT will have value of 90 instead of 14640
 

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,432
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,123
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,081
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,278
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,879
Back
Top Bottom