Receiving Ascii Code on a s7-200

suaj002

Member
Join Date
Dec 2011
Location
California
Posts
17
Let me start out by saying thanks for reading.

I'm new in the plc programming field but I've done minor work in changing and making small programs with the s7-200.

My problem now is that my boss bought a weight scale that prints out its value in ascii code. He wants the plc to be able to receive the information and display it on a touch screen. So far I've been able to receive information from the scale but it's not in any usable format I've been trying to convert the ascii to an integer but with no luck. When I look at the information live it is always changing to different number values which i don't know what the problem could be. It's my first time trying to run a freeport program. My boss also just gave me a cable and told me to make it work . By the way the scale communication port is an rs232. The type of scale is a ADAM gbk 130a. I hope somebody has some experiance with this series of scales.

I've read that the output is give 132.23 Kg <cr><lf> so I'm not sure if I also have to subtract the last to char and the Kg just to get the weight integer.

If somebody had the same of something close to my problem I would really like the help...

Thanks
 
hi,try use "Converting Substrings to Numerical Values".You can convert to integer,double integer,real....
 

Similar Topics

Hello i'm in need of some help. I have been tasked with altering a program, i think i have written it correctly but i'm not receiving any data...
Replies
4
Views
1,869
:wish:Hello I want to sent the commands attached from PLC to DMX Controller.When i00 command is sent it replies as shown as fig in hyperterminal...
Replies
2
Views
2,053
I am trying to interface the ML1100 with a colorimeter (Minolta CR400) and am having some issues receiving the data from the colorimeter. I am...
Replies
8
Views
2,906
Dear Gentlemen/Ladies, I have a bit of a nut cracker here. I am using a Koyo DL06 and a D0-DCM (slot 4). I have some issues with the DCM module...
Replies
10
Views
4,796
Hello, We are using a CIP(Clean in Place) system with a powerflex 525 to run its pump. We are able to see the VFD through ethernet, its Enet...
Replies
15
Views
832
Back
Top Bottom