DrBrule

converting string to double integer

2 posts in this topic

Hey everyone first post on here,

does anyone know if it is possible to convert a string into a double integer. i am working with a dimensioner and it is sending me its box dimensions in a 12 char string (see attached picture). however i need this data as a double integer (it seems to just take the string length not the string value i have tried both dim_lengh and dim_length.data[0]). i have gotten it down to the point where i have the string split up into the dimensions i need but i dont know how to do the conversion. (box dims for reference are 21 X 15 X 14.8)

Thanks in advance,

Dr. Brule

 

5a6d218924fd3_plcforum.thumb.PNG.28876e0

Share this post


Link to post
Share on other sites

You want the STOD instruction.  String_To_DINT

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