February 2008

Factory Automation

Buying a vision sensor: 10 questions you must ask

Whether reading stamped alphanumeric codes on automotive parts or verifying date and lot code on medicine bottles, capabilities are key

Fast Forward

  • Make sure the vision sensor you are evaluating supports a broad range of standard network protocols.
  • If 10 consecutive parts fail inspection, the sensor can send an e-mail.
  • Each vision sensor you link to the network automatically gets an IP address.
  • The fastest vision sensors available can read 120 codes per second.
 
By John Lewis and Nicholas Sheble

With so many vision sensors available today, it can be a daunting task to figure out which one is right for your particular application. 

Will the product you are evaluating handle the variable conditions that exist in your plant? What are the latest networking capabilities to look for? What types of accessories and product support options are important? How easy is it to support your system beyond development and deployment?

Whether you are brand new to machine vision or an experienced user, this guide will help you during your vision sensor selection process. 

It provides answers to 10 of the most important questions to consider and offers valuable tips on how to evaluate specific product features.

What is the importance of part location tools, and how can one assess their performance? 

Part location tools, available with virtually all vision sensors, are software tools used to find parts within the vision camera's field of view. 

This is typically the first step in any vision application-from the simplest robot pick-and-place operation to the most complex assembly verification task-and the one that usually determines whether or not the application succeeds or fails.

While it sounds simple enough, locating parts in today's production environments can be extremely challenging for vision sensors. This is because many variable conditions exist that can alter the way a part appears to a vision sensor, which recognizes parts based on a reference or "model" image of the part. Variable conditions include part rotation, changes in optical scale, inconsistent lighting conditions, and normal variations in part appearance.

One can tell if a sensor's part location tools will be able to accurately and reliably find parts under the range of conditions in the factory. 

The vision problems list has the 10 most problematic conditions vision sensors face, reasons why they often occur, and the best ways to evaluate a vision sensor's performance under each condition during evaluation.

factory11

Networking always a key


What role do built-in network communications play, and what capabilities should I look for? 

Network communications provide a number of important benefits. First, they enable vision sensors to communicate pass/fail results data to PCs at the enterprise level. Secondly, they enable vision sensors to communicate directly with PLCs, robots, and other factory automation devices.

For establishing a communication link between vision sensors and PCs at the enterprise level, make sure the vision sensor you are evaluating supports a broad range of standard network protocols, including these:

  • Simple Mail Transfer Protocol, or SMTP, capability enables e-notification of problems that occur on the production line. For example, if 10 consecutive parts fail inspection, the sensor can send an e-mail to a computer, pager, or cell phone. This not only provides emergency notification that the line may need to stop, it also provides a second level of inspection monitoring in situations where operators may have missed something.
  • File Transfer Protocol enables users to easily archive failed inspection images without writing custom software.
  • With Dynamic Host Configuration Protocol, each vision sensor you link to the network automatically gets an IP address, enabling true plug-and-play performance. Sensors without this capability need to have an IP address manually assigned, which often involves having to ask an IT administrator for an available address.
  • DNS allows you to name each vision sensor, such as "Bottling Line Sensor #1," instead of having to rely on a nine-digit IP address. Without DNS, it may be a daunting task to keep track of all the vision sensors running on the line. 
  • TCP/IP client/server enables vision sensors to initiate the transfer of results to other devices directly over Ethernet without any code development.
  • Telnet is an Internet standard protocol, which enables remote login and connection from host devices. 

For connecting vision sensors to factory automation devices such as PLCs and robots, make sure there is support for the following industrial protocols:

  • EtherNet/IP protocol enables vision sensors should link to PLCs and other devices over a single Ethernet cable, eliminating the need for complex wiring schemes and costly network gateways.
  • Modbus/TCP-factory network protocol that permits direct connectivity to other devices over Ethernet.

Finally, as more and more vision sensors go online in the manufacturing process, it becomes important to have a centralized way of managing them. Make sure the vision sensor you are evaluating will allow you to manage and control vision activity over the network from remote locations in the plant and beyond.

Does the vision sensor make it easy to set up applications, create custom operator interfaces, and administer vision sensor networks?

Vision applications do not usually require extensive runtime interfaces, but operators typically need to interact with the vision sensor in order to make modifications during part changeovers, change tolerance parameters, and determine the cause of part failures. 

The vision sensor you are evaluating should allow you to create a custom operator interface as you configure the system. Make sure this can happen without having to use Visual Basic or script-based languages.  

The vision sensor should provide the tools to simplify administration and management of multiple sensors, including tasks such as backup, upgrade, and documentation.

Suggesting an interface 

Make sure the operator interface you create can perform these tasks. 

  • Display images with graphics to allow for immediate analysis of failed parts
  • Enable operators to easily turn the inspection on and off and modify parameters
  • Display pass/fail results data
 

Control that raw image 


Does the sensor have sufficient image preprocessing tools? 

Image pre-processing tools allow the user to manipulate the raw image in order to highlight desired features or eliminate undesirable features. This ability can be a key factor in the overall performance of a vision sensor, and should be a part of the standard offering.

Look for products with a suite of image pre-processing tools that will enable you to provide a range of functions, such as:

  • Improving the contrast between the edges of a part and its background 
  • Filtering out extraneous or insignificant features in the image
  • Eliminating reflections that have been cast off the part surface
  • Smoothing rough textures in an image

By being able to optimize image data in its raw form, the overall accuracy and robustness of a vision sensor can be significantly better.

What should I look for in character reading and verification capabilities?

Whether you are reading stamped alphanumeric codes on automotive parts or verifying date and lot code information on medicine bottles, there are a number of capabilities to look for when evaluating character reading and verification tools. They include:

  • Statistical font training capability allows you to create a single model or "reference image" from a series of images. This enables the sensor to better handle the range of normal variations in print quality it may encounter, whether it has to do with poor contrast, placement variations, degradations, or variations in stroke widths. Unless you can be positive that every label prints with the exact quality seen in the model, the ability to develop a statistical model can be crucial to the success of your application.
  • Image pre-processing tools allow you to optimize a trained model by sharpening the edge contrast of characters and filtering out any extraneous background noise that exists in the image. Having optimized models maximizes the reliability and repeatability of the vision sensor.
  • Instant image recall enables line operators and technicians to quickly and easily view failed images on the monitor. Whether the failure is by a camera knocked out of position or a missing label, it is important to know immediately why a package failed so corrective action can happen if necessary.

Sensing a larger region

In a packaging plant, package and container materials, labeling equipment, printing methods, and ambient lighting conditions are all things that can vary considerably over time. 

As you evaluate a vision sensor, it is a good idea to test the sensor on a large sample of good, marginal, and bad labels to understand how it holds up to variable real-world conditions.

Additionally, since characters often vary in position from label to label, it is a good idea to "open up" the region of interest around the character string. 

This will help you determine how reliably the vision sensor performs when dealing with a larger search region.


How can I determine the repeatability of a vision sensor's gauging tools?

If your application involves critical dimensional measurement, you will want assurance that the gauging tools are not only accurate, but that they will perform with a very high degree of repeatability.

Repeatability can be tested by presenting a part to the vision sensor and have it measure the part at least 25 times without changing part position, lighting, or any other variables. From this, you should be able to plot the repeatability of the measurements and make sure any variance in the results stays within the measurement tolerance.

In addition to testing for repeatability, it is a good idea to make sure the vision sensor has a full suite of gauging tools. This will eliminate the need to write scripted programs to develop functions that are not part of the standard offering.

How do I evaluate industrial code reading tools, and what are some specific features to look for?

Today's vision sensors should offer reliable, repeatable performance on 2D codes that look like hell, are degraded, or those that vary in position from part to part. 

They should perform well no matter what type of marking method your parts are marked with (dot peen, etching, hot stamping, inkjet are among the most common methods) and on a variety of part surface types such as glass, metal, ceramic, and plastic.

To evaluate industrial code reading tools, the first thing you will want to test for is the sensor's read-rate, which refers to the percentage of codes the vision sensor has read out of all the codes it has "looked at." To do this, present a well-printed code to the vision sensor and have it read the code hundreds of times under pristine conditions.

Make sure the read rate is 100%, or you could face problems later. For example, a read rate of 99.7% means one code out of every 350 is in error. At a production speed of 2,000 parts per hour, the sensor could discard 2,700 good parts per shift.

Once you have established the sensor's read rate, you should run a reliability test to understand how factors like line vibration, variable lighting conditions, and excessive line speeds might be affecting reading performance. 

To do this, present a large sample of good, bad, and marginal codes to the vision sensor. This will provide a good assessment of how the vision sensor will withstand the range of real-world conditions it will need to contend with in production mode.

In terms of specific code reading features to look for in a vision sensor, you may want to ask about the following:

  • Code-quality verification capability: Look for products that can verify code quality to established standards. This can provide valuable information about how well the marking process is working.
  • Read-per-second rate: Depending on your production line speed and throughput requirements, you may want to verify a vision sensor's read-per-second rate. The fastest vision sensors available today can read over 120 codes per second.

No PC please


What should I know about vision sensor accessories?

To ensure your system integration process is quick and painless, look for a vision sensor with its own family of compatible accessories. This places the burden on the vendor to test each accessory and confirm everything works together without any problems.

Accessories to look for: 

  • Lighting accessories: Your vision sensor vendor should be able to offer a variety of different lighting options, since there are many different types of part surface characteristics and ambient lighting conditions to contend with. A comprehensive family of light modules should include: ring light modules, which provide soft, even illumination from all directions; back light modules, which offer maximum contrast between a part and its background; dark field lights, which provide low-angle illumination for imaging of part surface irregularities; and others.
  • Communications accessories: Make sure communications peripherals such as I/O modules and network gateway modules that will enable easy, quick connectivity between the vision sensor and PLCs, robots, and other factory automation devices and networks are available.
  • Monitors: Some vision sensor vendors offer a number of sensor compatible displays. When selecting a monitor, it is a good idea to look for an LCD display with anti-glare impact shielding, and NEMA-rated mounting bezel that provides a dust- and liquid-tight seal when mounted in an enclosure.
  • Camera enclosures: It is preferable to purchase a vision sensor that provides environmental protection without requiring an accessory enclosure.
Does the vision sensor require a PC?

Your vendor should offer a standalone vision sensor that does not require a PC, during configuration or in production mode. The sensor should offer true plug-and-play performance that enables you to quickly configure the application, from start to finish, right out of the box. 

Just as important, the vision sensor should not require you to roll a PC onto the factory floor every time changes to the application need to happen.

Finally, a true standalone vision sensor should enable you to hook up a monitor for live image display without a PC.

What types of product support services are part of the deal?

When evaluating vision sensors, it is important to look for a vendor that offers a wide range of product support and learning services. These services start with the initial assessment of your application. 

Important questions to consider:

  • Is the representative assisting you a full time machine vision specialist?
  • How will the application be evaluated, and by whom?
  • Is the vendor willing to expend the engineering resources necessary to qualify your application, or will that responsibility be yours? 
  • Once selected, what product support is available for you to insure your installation is a success?
  • Does the vendor offer a variety of cost-effective training alternatives such as online "self-help" support, online courses, worldwide technical support, and personalized, on-site training?
  • Does the selected supplier have the track record and financial stability to maintain their role as your vision solutions provider long term?

It is also important to look for a vendor with a global network of offices offering both pre- and post-sales support. This way, you can get the same consistent high level of product support anywhere in the world. 

factory 12

ABOUT THE AUTHORS

John Lewis (john.lewis@cognex.com) has a chemical engineering degree. He is a writer and public relations manager at Cognex. Nicholas Sheble (nsheble@ isa.org) is senior technical editor at InTech


RESOURCES