Timbercub
MrPLC Member-
Content count
2 -
Joined
-
Last visited
Posts posted by Timbercub
-
-
Hi all, long time reader first time poster.
I am an AB programmer through and through. Recently working on more and more omron gear and need a bit of a steer in the right direction.
I have a sick barcode reader communicating to a omron CP1LE PLC over serial. Problem is the value from the barcode reader is not value, it is sometimes multiple values separated by commas (,). I really wish to only have the first value before the comma in this long string stored in D200.
I take it i'll have to move this string into individual container registries which i can easily go from there and pick which one I want to use. But how do I initially go about parsing the string in CX programmer?
Attached is a screenshot of what I have so far>
Cheers
Dave
Barcode string parsing
in CX-Programmer
Posted
Hi All, Thanks for your suggested points.
Sorry about the late reply, I had an ill spell and ended up in the hospital>
Back at it again. Attached is what I think maybe the way to go, does it look right to you guys?
Say for the find raw comma 'comma' variable, do I just set this once online to a comma?
Cheers Guys