Sign in to follow this  
Followers 0
lodoe

CONVERTION PROBLEM

3 posts in this topic

So i'm reading a analog signal which is in current but in HEX form, so i need to scale that value, how do i convert that to decimal? is there any instruction that converst it?

Share this post


Link to post
Share on other sites
If I am not mistaken, The data you get from the analog input should be Unsigned Decimal. You may need to verify that in the manual. When you are on line, you are viewing in Hex. From the menu chose View > Monitoring Data Type > Decimal. Keep in mind the data has not changed, you are only viewing it in a different form.

Share this post


Link to post
Share on other sites
The SCL instruction can be used to scale the data into BCD format. Depending on the cpu you are using, there may be other options.

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