Posted 18 Mar 2013 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
Posted 19 Mar 2013 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
Posted 19 Mar 2013 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