Sign in to follow this  
Followers 0
jpratik92

Masking out values

2 posts in this topic

Hello all, 

 

I am trying to mask out some values out of a bar code from cognex data scanner. Here is an example of what I am trying to achieve

Data from Cognex: 2275019xf1-8877R215BA1234567

i just need 2275019XF1-8877R215B 

 

I know i can program the bar code scanner to not to read but that would cause a lot of downtime. I wanna to know how to mask such a big number. Any help would be appreciated. I would be using RSlogix5000

 

Thanks

Pratik 

Share this post


Link to post
Share on other sites

Presumably, the data is coming into an ASCII string tag.

Use the ACSII instructions MID to parse out the characters you need to another string.  Copy out the first 20 characters starting at position 1 to a new string tag.

Edited by pcmccartney1
1 person likes this

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
Sign in to follow this  
Followers 0