Jump to content
Sign in to follow this  
Dannyboy211

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...