Jump to content

How can i use a particular barcode as a input?


Recommended Posts

Hello everybody,

 

Im wondering if you could help me.

Im currently doing a project using the V570 and need some help. What im trying to do is setup a login screen were you would have to scan a barcode made specifically for an operator to allow said operator to acess the work screen. My own idea on how to do this would be to save the barcode into the PLCs memory and then use a Comparison function block so when the barcode scans a different barcode, it won't register it but if it scans the same barcode, it will operate and proceed to the next screen.

 

So i suppose what im asking is, is there a way  to store a particular barcode into the system and use it as an input? Is the soultion i've discribed above suitable as a login system?

 

I am familer enough ladder logic and fuction blocks but i'm a total novice working with unitronics, Visilogics and barcode scanners systems,

so any help would be amazing.

 

Thanks!,

Dan

 

P.S. the barcode scanner i'm using is a Metrologic 7120 Orbit barcode scanner incase that has any revelance, Thanks for reading!

Link to comment
Share on other sites

  • MVP 2023

A barcode is a string.  If you were to create a data table of authorized barcodes you search the table and if a match was found you could use the "Found" pointer value to access the screen you want.

 

Start by getting the barcode reader code written.  Read the Help on the Protocol function block - this will be a bit of an advanced program.

 

Joe T.

Link to comment
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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.