mhi Posted November 12, 2012 Report Posted November 12, 2012 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,
onraed Posted November 16, 2012 Report Posted November 16, 2012 I found this http://www.automation.siemens.com/WW/forum/guests/PostShow.aspx?PageIndex=1&PostID=9875&Language=en
mhi Posted November 18, 2012 Author Report Posted November 18, 2012 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now