aaronezra

ASCII CALCULATIONS

3 posts in this topic

hi guys, I want to perform a calculation based on the received ascii text data and its value is for example, 1.0e-8.. how do i do this?

Share this post


Link to post
Share on other sites

if your controller does not have function for it, you need to parse the string yourself.

1.0e-8 means

1.8 * 10^(-8)

 

Share this post


Link to post
Share on other sites

You have to convert the ASCII number string to an actual number. How you do this depends on the PLC you are using. Repost your question with more information and in the correct sub-forum, and you'll get better responses.

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