The text of a manual · part 3 of 47
Bulletin 2803 VIM Vision Input Module User Manual: 2 - Introduction to the VIM2 Module
Pages 17 to 30 of 404, from Bulletin 2803 VIM Vision Input Module User Manual
The original document is the PDF (26 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 2803-VIM2
Page 17
Chapter
Chapter
Objectives
What is the VIM2 Module?
2
/ntroduction to the VIM2 Module
In this chapter, we introduce the features, functions, hardware requirements, and application of the VIM2 module.
The VIM2 module provides the power of machine vision to the Allen-Bradley line of Programmable Logic Controllers (PLC). A member of the “Universal UO” family of products, the VIM2 module gives you the ability to make non-contact inspections, and allows you to communicate the results to your PLC system or host computer. The VIM2 module can inspect for workpiece presence or absence, find edge and center locations of workpiece features, measure feature widths, and measure feature area. The VIM2 module measurements can accommodate variations in part position and workstage lighting. Figure 2.1 The . ..- Vicinn - .-.-..
lnaut “.r-‘
Module .-.-----
The VIM2 module uses a solid state video camera for image collection. The VIM2 module is simple to install, set up, and operate. PLC users will find the VIM2 module to be a natural extension of their PLC tool kit.
Page 18
Chapter 2-2
What
Vision Input is the Module? (continued)
2
Introduction to the VIM2 Module
The VIM2 module (Cat. No. 2803-VIM2) is a dual-slot intelligent I/O module., which mounts into a standard 1771 I/O chassis. The VIM2 module can be integrated into your process to inspect prod,ucts and provide direct feedback to the system’s PLC terminal for closed-loop process management. The VIM2 module can also accommodate a host computer or controller through its RS-485 port. You can communicate with the VIM2 module through the serial port using either of two communication protocols (DFl or ASCII). Note: See Chapter 15 for more information VIM2 module’s RS-485 port.
regarding the
The VIM2 module can be connected to either or both the PLC and serial line host, and still operate in standalone mode for process control. Light Pen/Monitor User Interface The VIM2 module is easily configured through icons displayed on the monitor screen. You simply “pick” the icon that corresponds to the function you want to activate by pressing the tip of the light pen against it. The icons appear in logically organized groups called “menus.” Selecting some menu icons leads to the display of other related icon menus. This “menu branching” is organized to allow you, for the most part, to complete each specific part of the set up procedure within a particular menu branch. Figure 2.2 Liaht Pen/Monitor
Interface
Page 19
Chapter
VIM2 System Integration
2
Introduction to the VIM2 Module 2-3
The VIM2 module is a member of the “Universal I/O” family of products, using the same racks, power supplies, and swing-arm terminations found in all Allen-Bradley 1’77 1 systems. The VIM2 module installation requires a 1771 L/O rack and power supply, in addition to the VIM2 module and camera hardware. The VIM2 module occupies two slots in a standard 1771 I/O rack (see Chapter 5 for installation procedures). The VIM2 module may be installed into existing PLC I/O racks (see Figure 2.3). Figure 2.5, page 2-5, illustrates the available paths for vision inspection results, statistics, and configuration data between the VIM2 module and PLC, and/or between the VIM2 module and other host (via the RS-485 port). Integrating the VIM‘2 Module with PLC systems You can store many different VIM2 module configurations using the PLC controller, and download the appropriate configuration into the VIM2 module as needed. You can also obtain comprehensive tool inspection results and statistics. The configuration and results data may be remotely managed through the Allen-Bradley Data Highway. The VIM2 module itself can store 2 different configurations in non-volatile EEPROM. Figure 2.3 The VIM2 Module Installed in a 1771 I/O Rack
87-282-8
Page 20
Chapter 2-4
VIM2 Sys tern Integration (continued)
2
Introduction to the VIM2 Module
Using the Serial Port As with the PLC host, you can store many different VIM2 module configurations using the serial port on the swingarm to connect to a computer through RS-485 communication. You can download the appropriate configuration into the VIM2 module as needed. You can also obtain comprehensive tool inspection results and statistics. The VIM2 Module as a Stand-alone Vision System The VIM2 module may be installed as a stand-alone vision system. In standalone mode, you can use the discrete swingarm I/O for process control. Discrete outputs, for example, include “Decision” (inspection accept/reject) and “Busy” (module conducting inspection, or in setup mode). For triggering inspections, there is a “Trigger” input. See Chapter 5 for more information regarding the swingarm UO. Figure 2.4 The VIM2 Module in a 1771-PSC chassis with 1771-P4 Power Supply
87-282-6
Page 21
Chapter
Introduction
2 to the VIM2 Module 2-5
V/M2 System integration (continued) Figure 2.5 \/IRA’) ..,I,
-
PLC Controller
Mnri111~ . ..v--.-
I/n
.,-
Path<
.
--..-
VIM2 Module
Inspection Results Measurements, Decisions
J Inspec :tion Input nesum
STATISTICS BLOCKS: Statistics from Learn Mode for Tools and Probes
::. j. --a.’
Reset Statistics
::;I
CONFIGURATION
Configurations b
I_.
+-q’i
I :: :
tnnfinurations --....=-. - -.-..,
:
BLOCKS: I/
Video Monitor _.,. .._..:... : . .,.... ...,._,._..../.........~ ...:..:......:...+::.: i_,,.i,,,.i ~.i~ii-i’.‘.‘.~i . _.,. ,..,\._...... ._... .,.,._ :.:,. -...,.,.
Configuration data Tool Selection and Functionalities, Hi/Lo Ranges, Thresholds, Brightness Probe, Run Mode, etc.
2 ,:.i1 :: : jj.: :j.i :.:_ EEPROM -holds : .: :... :.. RAM -working :..
i.. .:(
-7-7 j;..: ..:: :: ... \ :’ ‘: :: j : j::.. 2 configurations configuration
.
::
SWING ARM I/O output RS-485 tlo Host Computer: Configul ration, Results, and Statistics Blocks
$I Decision
Busy
I Trigger Input
:.:.: :::: z
2; aI .$ ‘2
Light Pen
Page 22
Chapter
Introduction to the VIM2 Module
2
2-6
WA42 System integration (continued)
Hardware Descriptions
The VIM2 Module Discrete I/O The VIM2 module has a discrete I/O interface which you can directly connect to through the swingarm terminals (see Figures 2.8 and 2.9). You can use the discrete swingarm Ii0 with or without the use of a PLC or other host. Discrete outputs include “Decision” (inspection accept/reject) and “Busy” (module conducting inspection, or in setup mode). There is also a “Strobe” output for synchronizing inspections with strobe lighting. For triggering inspections, there is a “Trigger” input. See Chapter 5 for more information regarding the swingarm UO.
This section provides descriptions of the VIM2 module, peripherals, and cables. Figure 2.6 illustrates the VIM2 module, cables, and connections between the VIM2 module and peripheral equipment.
Page 23
Chapter
2
Introduction to the VIM2 Module 2-7
Hardware Descriptions (continued) Figure 2.6 The VIM2 Module,
WARNING:
Peripherals, and Cables
Disconnect all power before assembling.
2801- NC2 (5M) 2801 - NC3 (1 OM)
JOWERCORD SER SUPPLIED) VIDEO IN
I
I CAMERA 2801 -YB, -YD 1 CAMERA 2801 -YC CABLES CABLES I t--
POWER CORD
2801-NC5 2801-NC6 2801-NC7
(5M) (1OM) (25M)
1 I I
2801-NC14 2801-NC15 2801-NC16
(5M) (10M) (25M)
Page 24
Chapter
2
2-8
The Vision Input Module (Cat- No. 2803- VIMZ)
Introduction to the VIM2 Module
The VIM2 module is an. intelligent UO module. hardware features of the module are: l
The main
Swingarm connections, a characteristic feature of AllenBradley 1771 z/O modules, which consists of a removable swingarm with screw type terminals. The swingarm provides easy access to wiring terminations and is easily installed (see Figure 2.7).
Figure 2.7 Easy Installation of Swinqarm Field Terminations
87-283-j
The swingarm swings neatly off the front of the module during VIM2 module removal or replacement and is easily snapped back into place. This eliminates the need to disconnect any of the hard-wired terminations for the module during maintenance and service. Swingarm terminal functions are listed in the table in Figure 2.8. l
Status LEDs -These indicator lamps light up to show the operating status of the VIM2 module. Input and output status and error conditions are indicated on the front panel LED’s (see Figure 2.8).
l
Front Panel Peripheral Connections - Simple plug-in type connectors provide easy connection for the light pen, monitor, and camera cables (see Figure 2.8).
Page 25
Chapter
2 lntrodoction to the V/M2 Module 2-9
The Vision input Module (Cat- No. 2803- VIM2) (continued) Figure 2.8 VIM2
Mndule
Front
Panel
Featuwc
Light Pen Jack Status LED’s
Monitor Connection
:
Camera Connection
Swingarm Field Wiring Terminals 12.5 VDC Camera Power Input 2
Camera Power Common
3
Trigger
1 4
1Trigger Input Common
5
Strobe Output TTL
6
Strobe Common
7
Decision Output
3 - 32 VDC 1.OA
8
Decision Output
Common
1 9
87-282-7
Input 3.3 - 32 VDC
1Busy Output
3-32
VDC l.OA
10
Busy Output Common
11
CLL (Communication
Line Low)
1 12
1 CLH (Communication
Line High)
Page 26
Chapter Z-IO
Light Pen
(Cat. No. 2801-N7)
2
Introduction to the VIM2 Module
The light pen (Figure 2.9) is used in combination with the monitor screen to complete the icon-driven user interface. The pen is activated by pressing (picking) the tip against the screen. The tip reads the screen location and the module responds accordingly. Figure 2.9 Light Pen v
87.195.8
Camera
The VIM2 module uses a solid-state camera. The camera can be confqured with a variety of lenses to suit individual application needs. See Allen-Bradley Publication No. 28012.3, Product Data, for more information regarding the selection of a video camera. Figure 2.10 Camera and Lens
89-012-4
Page 27
Chapter
Camera Cables
VIM2 Power Supply (Cat. No. 2801-W)
2
Introduction to the VIM2 Module 2-71
The camera is available with a variety of cable lengths. See Allen-Bradley Publication No. 2801-2.4, Product Data, Machine Vision Cables, for more information regarding the selection of a cable.
The VIM2 module power supply is an external 12.5 VDC power supply housed in an aluminum case. Figure 2.11 PC)wer Supply, Cat. No. 2801-Pl
87-282-S
Page 28
Chapter 2- 12
Video Monitor
(Cat. NO.2801-A/6)
2
Introduction to the VIM2 Module
The Video Monitor used for VIM2 module applications is a monochrome video monitor (see Figure 2.12). The video monitor connects to the VIM2 module front panel connector using a BNC type coaxial cable. Figure 2.12 Video Monitor
Video Monitor
Cables
The video connection cable from the VIM2 module to the monitor is available in different lengths. See Publication No. 2801-2.4, Product Data, Machine Vision Cables, for more information regarding the selection of a cable.
Page 29
Chapter
Functional Features
2
Introduction to the VIM2 Module 2-73
The VIM2 module comes complete with a set of image analysis tools which perform vision tasks. The tools include four measurement windows, 22 line gages, two “float” gages, 12 math tools, and a brightness probe. These tools are combined with the VIM2 module’s ability to close the process loop through the decision output, or through direct communication to a PLC system or serial host. Some of the key features of the VIM2 module are: 22 Line Gage Measurements Up to 22 line gages may be set to perform any of 15 different measurements to inspect features of interest on a workpiece. Each line gage used provides two measurements simultaneously. These include measurements for edge, center, and width of “blobs.” They also include counting operations for counting blobs, black or white pixels, and blob edges. You assign an acceptance (“Hi/Lo”) range for each line gage measurement used to enable accept/reject decisions. Line Gage Filtering You can use filtering to enhance features in order to improve measurement accuracy. Filtering allows the line gage to ignore pixel “noise” in the image. One or two pixel filtering is available. Four Window Measurements You can use up to four inspection windows to inspect areas of interest in the image. The windows measure area by counting black or white pixels. You assign an acceptance (“Hi/Lo”) range for each window measurement to enable accept/reject decisions. Multiple Threshold Settings The VIM2 module makes measurements based upon binarized images (see Chapter 3 for information on the VIM2 module theory of operation). Four binarized (or “threshold”) images may be used, each based on a different threshold that you set. By using different thresholds, you can enhance different features in the video image. For example, you must assign each inspection line gage you use to one of the four threshold images. This allows you to reference a threshold image which enhances the specific feature(s) of interest of the workpiece for the tools you are setting up. Brightness Pro be The brightness probe may be used to measure the brightness of the workpiece or product and to make an accept/reject decision. This tool might be used to test the intensity of a light or the brightness of a surface.
Page 30
Chapter 2- 74 functiond features (continued)
2 introduction to the VIM2 Module
Automatic Lighting Brightness Compensation The “brightness probe” feature may be used to monitor the light level on the workstage and adjust the threshold images to accommodate lighting variation. Brightness Registration You can use the brightness registration feature to automatically change all the threshold image settings, in case of a permanent change in lighting brightness. Automatic X/Y Shift Compensation Two line gages (the X and Y “float” gages) can be used to automatically adjust for horizontal and/or vertical shifts in the workpiece’s inspection position from inspection to inspection. This allows the VIM2 module to provide measurement consistency throughout the inspection process despite variation in workpiece positioning. Tool Registration You can use the tool registration feature when there is a permanent change in the nominal position of the workpiece. Use tool registration to permanently change the positions of all the vision tools which reference the X and Y float gages. Math Tools The math tools provide a number of options for combining and/or adjusting the inspection results of the line gages and windows. Math tool operations are: logical AND, logical OR, addition of constants or results, subtraction of constants or results, multiplication, division by a constant, and minimum or maximum value of a tool’s results. You can use up to 12 math tools. Two Archived Configurations You can store, or “archive,” two different configurations in the non-volatile EEPROM of the VIM2 module. You must select which of the two configurations is the “start-up” configuration. Upon power-up, the VIM2 module downloads the start-up configuration from EEPROM to RAM. The configuration in RAM is the working configuration. Learn Mode and Statistics You can place the VIM2 module in a “learn” mode, perform a “trial run,” and accumulate statistics. You can then refine your VIM2 module configuration parameters or your process based on these statistics. Statistics can be accumulated for windows, line gages, brightness probe, and math tools. These statistics include number of triggers processed, number of failures per tool/probe, and tool/probe minimum, maximum, and average values for inspection results falling within the user-defined acceptance range.