Jump to content

Convert FB from CHAR to Real or Integer


Recommended Posts

Posted
Hi, I am getting data from serial channel of CP341 of S7315 in char and moving them into DBs. The data format is 123.456 in ascii -char- format. My question is how can I do this simply I mean that is there any ready function block for it. like convert char ascii to reall or integer if so where :( Could somebody tell me which FC or FB on S7 300 PLC do I have to use to convert char ascii to real or integer? In S7 I have used the ATH. Do I have to create my own FC or is there a FC in the S7 300 library ready to use?. Thanks in advance,

Posted
Hello, Thanks for your information. Actually i already success to convert the ASCII code to REAL by using FC 104.:) Now I can read the value in correct way.

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
×
×
  • Create New...