Sign in to follow this  
Followers 0
seven

SOLVED: Serial data conversion to real number

1 post in this topic

I have the following array received from the RS232 port:

RD_data[0]=H0020

RD_data[1]=H0030

RD_data[2]=H0030

RD_data[3]=H0030

RD_data[4]=H0031

RD_data[5]=H0035

RD_data[6]=H002E

RD_data[7]=H0032

RD_data[8]=H0036

which means " 00015.26"

how do I convert it to the real number 15.26 in FX5U PLC?

SOLUTION: I used BTOW to set the data for EVAL instruction

 

Edited by seven

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