Host Engineering Forum

General Category => DirectSOFT => Topic started by: JBYERS on December 10, 2009, 03:42:49 PM

Title: BARCODE READING THRU fo-CP128 MODULE
Post by: JBYERS on December 10, 2009, 03:42:49 PM
I am reading 2 barcodes thru a focp128 module the information is being written to 2 different v memory locations I need to verify the barcodes match but only a select portion of the barcode, the ANSII format stored in V-mem only allows me to verify pairs of numbers and I may need to verify on an odd character start position in the barcode string, i tried splitting the code with OutL and OutM instructions this did not work consistently and would require lots of code, and the code length is variable, any suggestions greatly appreciated.
Title: Re: BARCODE READING THRU fo-CP128 MODULE
Post by: b_carlton on December 10, 2009, 03:52:36 PM
You might think about performing the matching tests in the BASIC module. Its string handling capabilities are much greater. Then pass a Go/No-Go signal back to the CPU. If you are matching against a number of possibilities you could also pass a number corresponding to which item matches. You will still have some complex code, but that's the price for a complex operation.
Title: Re: BARCODE READING THRU fo-CP128 MODULE
Post by: Controls Guy on December 10, 2009, 05:28:45 PM
I agree with Bernie.  Dealing with string in ladder is a pain, especially if there's a basic module available.  That's a much better way to go.
Title: Re: BARCODE READING THRU fo-CP128 MODULE
Post by: JBYERS on December 11, 2009, 07:22:36 AM
I am very new to the basic module is there a good resource for learning the programing basics, I generally poke around with the Directsoft ladderlogic to solve problems in existing programs and eventually find solutions by trial and error, this has led me to creating new systems and each scenario seems to get more complex.
thanks again.