DaveE Posted October 31, 2013 Report Share Posted October 31, 2013 Good Evening all I was looking for a little help!, isnt that why most of us here? I need to use a PLC, obviously it will be a Unitronics to connect a Microscan bar code reader and do the following Scan a code that I will use as a master, save this scan result into a register somewhere.(Teach) Then when a photo eye is triggered scan another code, and compare it to the taught code. If the result of this is good, I want to set an good read out put If it is bad I want to trigger an bad read output Now for the kicker, or 3 ! The barcode could be up to 55 characters long and is variable in content The reject for the bad read barcode could be several feet from the actual scanner, and there will be boxes between the reject and the scanner. The reject will have a separate photo eye input. I know that I will need a shift register to be able to do a FIFO (well I think I do) So my question is, How do I get the barcode scanner to save the taught code I know how to compare when this is done On a bad read I will set a bit to have a value of 1 On a good read I sill set it to be 0 How do I create a FIFO? Especially one where I will need to set the number of registers on the fly as it may vary from unit to unit! I will be connecting the scanner either by RS232 or Ethernet, depending on the line again, is it possible to have one program that can do either? Thanks Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.