Sign in to follow this  
Followers 0
ThePLCPeon

ASCII to INT conversion

2 posts in this topic

Hello, if I am receiving an ASCII string of for example "12345" With each number being an ASCII char, how do I convert these to an integer but maintaining the numeric value of "12345".

Lets say I receive 500 from a weighing terminal in ASCII form and I want to use that 500 and mov it into an integer or float do I need to do the ASCII to integer conversion function?

Thanks.

 

 

Share this post


Link to post
Share on other sites

If you have a ControlLogix or CompactLogix, check out the STOD instruction.  In the RSLogix 500 system, see the ACI instruction.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0