Posted 7 Aug 2017 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
Posted 7 Aug 2017 (edited) 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 7 Aug 2017 by pcmccartney1 1 person likes this Share this post Link to post Share on other sites