CVA Users Guide
CVA Users Guide
Common Vision
Application
(CVA)
Users Guide
Version 1
1 of 42
CVA Users Guide
Table of Contents
I. Introduction ..............................................................................................................4
II. Setup PC..................................................................................................................4
A.) Hardware .........................................................................................................4
B.) Software ..........................................................................................................4
1. Installation ICW – KC Windows XP Professional .............................................4
2. Accessing the KC LAN.....................................................................................4
3. Recommended Installation Procedure for All Drivers .......................................5
4. Installation of Network and Audio Drivers (as required)....................................5
5. Installation of Video Card Drivers.....................................................................5
6. Installation of Remaining Hardware .................................................................5
7. Install VisionPro Software ................................................................................6
8. Install VisionLinxEIP for EthernetIP communication .........................................6
9. Install the Reflective Memory Driver.................................................................6
10. Install VisionPro Application Executable, Configuration and DLL files ..........6
11. Setup configuration AMPS number ..............................................................7
12. Setup database connection string ................................................................7
13. Obtain database file from KCAPPS folder ....................................................7
14. Setup MSDE and attach local database.......................................................8
15. Auto Login Setup .......................................................................................10
16. Virus Protection..........................................................................................11
III. Upgrade Application to a New Version...............................................................11
IV. Run Vision Application.......................................................................................11
V. Run Communication card ..................................................................................12
VI. I/O Check ..........................................................................................................12
VII. Communication Check.......................................................................................13
1. EIP Diagnostic Screen.......................................................................................13
2. Reflective Memory Diagnostic Screens..............................................................13
VIII. Camera Check...................................................................................................16
IX. Application Setup...............................................................................................16
A.) Configuration .................................................................................................16
B.) Calibrate Cameras.........................................................................................18
C.) Adjust Lens....................................................................................................20
D.) Setup Tools Offline ........................................................................................21
X. Online Display options .......................................................................................23
A. Tool Graphic Display Options ............................................................................23
B. Lines and Fixtures .............................................................................................23
C. Auxiliary Display Options ...................................................................................24
XI. Adjust (Optimize) Tool Settings Online ..............................................................26
A. Editing Tools Online...........................................................................................26
B. Kick Start ...........................................................................................................30
XII. Acquiring Reference Images..............................................................................32
XIII. Image Save & Playback.....................................................................................33
XIV. Image Freeze ....................................................................................................35
1. No Freeze......................................................................................................35
2. Manual Freeze...............................................................................................35
3. Freeze on Each Defect ..................................................................................35
4. Freeze on 1st Defect Until Reset ...................................................................36
5. Freeze on Specific Defect Until Reset............................................................36
XV. Engineering .......................................................................................................36
2 of 42
CVA Users Guide
3 of 42
CVA Users Guide
I. Introduction
II. Setup PC
A.) Hardware
All cards should be removed from the computer during the ICW
installation to prevent driver issues. The only card that might be necessary
is a network card if the onboard network card driver is not included in the
GDBoot disk. After completion of the ICW install hardware may be
inserted and additional driver loaded.
B.) Software
1. Installation ICW – KC Windows XP Professional
• Procedure located on IT Services web site.
http://www.kcc.com/mis/compsvcs/edt/GD2000/allfiles/Buildinstallati
on.doc
• More information about ICW can be found at the following web site.
http://www.kcc.com/mis/compsvcs/edt/GD2000/allpages/ICW/icwho
me.htm
4 of 42
CVA Users Guide
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\Machine Vision PC Files
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\Machine Vision PC Files
• Ensure Display Settings are set to 16-bit. If they are set to 32-bit the
overhead of drawing the extra colors will slow the application speed.
• The resolution of the screen is application dependent. The following
apply:
o DA1 – 1280 x 1024
o FVI – 1024 x 768
5 of 42
CVA Users Guide
• Connect the supplied power cable to the PC power supply and the IO
card.
• Ensure all cards are seated correctly and connections are tight then
close computer case.
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\VisionPro
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\VisionPro\EIP
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\Machine Vision PC
Files\Reflective Memory
• Ensure you are installing the correct driver for your card type. The
vision application will run the VMIPCI-5576 (1G transfer rate) and the
VMIPCI-5565 (2G transfer rate).
• Run “setup.exe” from the driver folder to install the RFM utility.
• Install the card driver through Device Manager by pointing to this
folder from the update driver option for this device.
6 of 42
CVA Users Guide
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\DA1
o KC.Eng.CVA.XXX.exe
o KC.Eng.CVA.XXX.exe.config
o XXXInitConfig.config
o KC.Eng.Comm.EthernetIP.dll
o KC.Eng.Comm.RFM1.dll
o KC.Eng.Comm.RFM2g.dll
o KC.Eng.CVA.UISharedCode.dll
o KC.Eng.CVA.Controls.dll
o KC.Eng.CVA.Client.dll
o KC.Eng.CVA.Server.dll
o KC.Eng.CVA.Shared.dll
o eFoundation.G1.Client.dll
o eFoundation.G1.Server.dll
o eFoundation.G1.Shared.dll
o Microsoft.Practices.EnterpriseLibrary.Common.dll
o Microsoft.Practices.EnterpriseLibrary.Configuration.dll
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\VisionPro\CVA VisionPro
Database
7 of 42
CVA Users Guide
1) Obtain the latest version of MSDE (Microsoft SQL Data Engine) from
KCAPPS. This program allows the vision application to access the local
database.
\\kcapps\share\Corporate\Engineering\Shared Applications\Program
Files\Infant Care\Machine Inspection\Machine Vision PC
Files\MSDERelA
5) After Setup is complete, restart the computer. When the computer boots
up, there will be an icon in the system tray that resembles a server with a
“play button” on it. The green “play button” icon indicates that the
Microsoft SQL Data Engine is running.
8 of 42
CVA Users Guide
7) For ease of reading the command prompt type “CD..” until you read
“C:\>”.
This will log you onto the CVA instance of MSDE as the security
administrator using the password specified in the setup.ini file above.
This login will be used for all operations in OSQL.
9) To attach the database to the instance of MSDE that is running type the
following:
10) To check that the database was successfully attached type the following:
11) To add the cva0nedbo login to the master perform the following:
9 of 42
CVA Users Guide
The above step can be skipped and the following step will create the
login in the master but that procedure was not tested.
12) The next step involves linking the security identifiers for cva0nedbo
login in the master to the cva0nedbo login that is in the cva0nedb
database. In the “exec” command line below the fields are
‘UserNamePattern’, ‘LoginName’, and ‘Password’. A ‘NULL’ will be
entered for ‘LoginName’.
Once complete, type Exit to exit out of OSQL and then Exit again to exit
out of the DOS command prompt.
10 of 42
CVA Users Guide
11 of 42
CVA Users Guide
what #’s are available for the particular machine the application is running. Edit the
XXXInitConfig.config file using notepad, entering in the appropriate AMPS #.
1. Go offline. Click on “Go Offline!” in the online menu bar and confirm that you
want to go offline by pressing the "Yes" button.
3. When the Hardware Diagnostics interface appears the user can monitor the number
of triggers that are being received on the individual inputs and toggle the outputs on
and off to ensure they are being set properly. Note: Outputs 4 – 7 cannot be fired
manually as they are tied directly to the 4 camera inputs.
12 of 42
CVA Users Guide
A) RFM1
The Reflective Memory Tests interface enables the user to access the local
Reflective Memory (RFM) card directly to test communications over the RFM
network. Communication can be verified by writing data to the local node
and sending it to other nodes on the network or reading data from the local
node written from other nodes on the network.
1. Go offline. Click on “Go Offline!” in the online menu bar and confirm
that you want to go offline by pressing the "Yes" button. You should now
be offline.
13 of 42
CVA Users Guide
• Endian Control Used to select the format of the data. This is set
by default to Byte Swap and cannot be changed.
• Data Size Used to select the length of data words. This is
set by default to 16 Bit Word and cannot be
changed.
• Information The information button displays the
configuration information of the RFM board
such as: Board ID, Node ID, RFM Size, and the
RFM registers.
• Offset The Offset textbox is used to enter and display
the starting address (in hexadecimal format) of
the memory location you are accessing. The
Offset defaults to the beginning of the
inspection application node: for FVI Node 59 =
EC00 Hex and for NDC Node 61 = F400 Hex.
This value must be set to a multiple of the Data
Size.
14 of 42
CVA Users Guide
B) RFM2g
Same as RFM1, but note that RFM2g can write the first 40Hex addresses,
where RM1 cannnot.
15 of 42
CVA Users Guide
1. Go offline. This can be done by pressing the "Offline" button, confirm that the
system will go offline by pressing the "YES" button.
2. From the menu bar click on “Setup” and select “Camera” and click on “Live Image.”
Need image
4. Click on “Exit” in the live image menu bar to exit when done.
SharedConfig
Need image
1. Operator Side – Select which side of the screen the operator side of the
product the image will be on. This is dependent on the camera orientation
mounting and should only be changed to match the design specification.
2. Machine Direction – Select which side of the screen the machine direction is.
This is dependent on the camera orientation mounting and should only be
changed to match the design specification.
3. Camera Lighting Setup – Select between back and front lighting. This setting
is used in the calibration routine if Auto Detect Target is disabled. It will
automatically set the background to light if back lit is selected and dark if
front lit is selected.
4. Enable/Disable the appropriate inspections and tools that are required. Note
that some tools depend on certain fixtures and may not run unless the tool
AND it’s associated fixture tool are enabled.
16 of 42
CVA Users Guide
Communication
2. Send Data on Trigger: This setting determines if the data should be sent on
the trigger event or at the end of the inspection.
3. Data Buffered: This setting determines if data is buffered before being sent
out. If data buffering is enabled, it will be delayed by 2 products.
4. Data In Polling Enabled: This setting will determine if the system should
automatically poll incoming data while the inspection is online. It is setup to
read data every X triggers when the machine is running and read every 1
second if the machine is down, detected by the absence of triggers.
5. Auto Save Online Edits on Machine Down: This setting is only available if
data in polling is enabled. If the machine is down, detected by a bit sent over
the communication network, any online edits that have been performed since
the last machine down will be automatically saved. If no edits were
performed, the save process will not be executed.
6. Auto Save Cull Specifications: This setting is only available if data in polling
is enabled. If cull specifications are being sent across the network, enable this
feature to automatically read them.
Simulator Mode
Need image
1. Select the Simulator button if the application is not being run on a machine.
This will enable calibration to be done from an image file.
17 of 42
CVA Users Guide
NOTE: It is important to calibrate the cameras for the vision tool measurements
to be accurate. In addition, tools may be placed on to the acquired image based
on the calibration setup. If this is the case and the application is re-calibrated,
expect that the vision tools will be placed at a different location and need to be
moved and re-sized accordingly.
1. Verify the height of the camera. Measure the distance from the lens to the web.
This should be a fixed distance for the widest field of view for the largest product.
2. Go Offline.
3. Select Setup -> Camera -> Calibration. The following display will appear:
5. Place a calibration square of known size under the camera, flat on the belt or
deadplate. Placing the calibration square on top of the web will add error to the
calibration value. Select ‘CD Calibration’ under the Initial Calibration heading.
18 of 42
CVA Users Guide
6. Enter the calibration square width in millimeters into the “Enter CD Calibration
Size” text box.
7. A ‘live image’ will appear on the screen. The machine does not need to be
running to display this image. The software is setup to accept a software trigger
and a test encoder (both internal to the program). While in live mode you will see
an image fill 1024 x 1250 pixels which is the largest image possible with our
setup. Place the calibration square flat and aligned in the field of view of the
camera.
8. If the tool is unable to find the correct edges of the calibration square, go to the
menu bar and select Setup -> Auto Detect Target to un-check the “Auto Detect
Target” function.
9. If you are calibrating a back lit camera, select “Light” in the “Background”
section so the calibration look for a light to dark and then dark to light transition
in order to find the calibration square. If you are calibrating a front lit camera,
select “Dark” in the “Background” section so the calibration tool edges will be
switched to look for a dark to light and then light to dark edge
10. When the tool in the image finds the two edges of the calibration square, press the
“CD Calibrate” button. In the vision software the calibration square size in mm is
divided by the number of pixels found by the calibration tool to find the CD
mm/pixel calibration value.
11. Measure the length of one product at the point of inspection under draw
conditions. This will give a stretched diaper length. It is suggested to measure
from one fixed component of one diaper, like the edge of an ear, to the same fixed
component of the next diaper.
12. Enter the length of the product in millimeters into the “Enter MD Calibration
Size” text box and press the “MD Calibrate” button.
13. Press the “Accept” button to accept the new calibration scale factors and save
changes when exiting the calibration screen. If the camera height is adjusted or
bumped, then the CD calibration should be re-done. If the machine draws are
changed significantly, the MD calibration should be re-done.
14. After the machine is running, verify that the vision measured distances for ear
length MD and outer cover CD dimensions are accurate to hand measurements.
Use the vision measurement display on the operator interface (Wonderware) or
check the values in Reliance.
15. If the measurements are not accurate, return to the calibration screen to fine tune
the calibration. In the “Scale Factor” section, use the “-“and “+” buttons under
19 of 42
CVA Users Guide
the “X mm/pix” text box to fine tune the CD calibration and use the “-“and “+”
buttons under the “Y mm/pix” text box to fine tune the MD calibration.
16. When fine tuning is complete, press the “Accept” button and save changes when
exiting the calibration screen. Re-verify that the vision measurements are more
accurate when the machine runs again.
2. Check if the image looks blurry. It is best to place an object in the field of view and
verify if the edges of that object look crisp. If they are, the focus is set properly. If
they are not, adjust the focus ring on the lens to obtain a clear image.
3. Check if the image is too red, indicating the area is over saturated with light. If it is,
adjust the aperture. Increase the f-stop # on the lens to let less light through. If the
image is too blue, indicating the area is under saturated with light, then adjust the
aperture again. Decrease the f-stop # on the lens to let more light through.
20 of 42
CVA Users Guide
1. Normal Setup
2. Advanced Setup
Some tool parameters are not available in the normal tool setup
screen. These additional parameters are available here, but this
screen must be used with caution. Therefore, it can only be
accessed through a password entered on the online menu. If one
does not know how to properly adjust settings here, it is not
recommended to use this screen. Unintended consequences can
occur. This screen allows changes to the camera acquisition tool.
21 of 42
CVA Users Guide
pixel values. Check the camera lens aperture value. If the lens is
within 1 F-stop of fully open it is recommended to select high gain.
After clicking the box and accepting you will want to readjust the
lens.
Cull Specifications
Tool Failures
A Tool Failure screen can be accessed from the Main Menu or from an online
button when the machine is down to review the number and percentage of failures
for each tool. It also displays the number of culls that have occurred since the last
time the RESET button was pressed for certain culls that are determined within
the vision application.
Cull Tracking
22 of 42
CVA Users Guide
These options will determine what tool graphics to overlay on the display
image.
1. IMAGE ONLY
Do not display any tool graphics.
2. FAILED REGIONS
Display tool graphics for only those tool’s that fail. Failed edge tool
graphics show up as a red region.
3. EDGE LOCATION
Display tool graphics for all tools that pass. Edge tool graphics show up
as a green cross hair, indicating the location of the detected edge.
1. MD Reference Line
23 of 42
CVA Users Guide
Display the product MD reference line. This line is fixed when running
online and considered the good run position. Each application will
determine how the MD reference line is positioned. This line can only be
changed when re-setting up the tools offline. Re-acquire a new reference
image to ensure offline setup is done properly.
2. CD Reference Lines
Display the product CD reference lines. These lines are fixed when
running online and considered good run positions. Each application will
determine how the CD reference lines are positioned. These lines can
only be changed when re-setting up the tools offline. Re-acquire a new
reference image to ensure offline setup is done properly.
3. Machine Center Line
Display the machine CD center line based on the machine centerline edge
tool. This line is fixed when running online and considered the good run
position. It can be changed by re-acquiring a new reference image and re-
setting up the machine centerline tool offline. A reference line must be
placed in the field of view of the image exactly where the machine
centerline position is located. This reference line can be a piece of
keystock or another narrow object that will show up as a line down the
middle of the display. It only needs to be in place when a reference image
is obtained.
4. Fixtures
Display any fixtures used in the tool group.
2. Defect Message
24 of 42
CVA Users Guide
This will display tool failure results, cull defects and communication
feedback. See Appendix for further explanations of common defect
messages that are displayed.
Two dialog boxes will appear that allow the user to setup the defect
message display. The first will allow the user to set up to 3 defect
messages to be displayed at one time. The second will hold a defect
message displayed for up number of products entered. The defect
message will be displayed up to that many products unless another defect
occurs.
3. Image Direction
Get image
This will display which side of the image is the Operator Side of the
machine and what the Machine Direction is. This is based on the
orientation of the camera and is setup on the Shared Configuration screen.
4. Timers
Get image
This will display the approximate time it takes each camera inspection
code to run. It will also enable/disable certain discrete outputs used for
testing purposes.
6. Tool Parameters
Get image
This will display the actual tool results. In particular, tool locations, edge
thresholds such as score and strength, and histogram thresholds like mean
and standard deviation will be shown.
25 of 42
CVA Users Guide
2. In the “Edit Parameters” interface, scroll to the tool edit and select the property to
adjust.
26 of 42
CVA Users Guide
27 of 42
CVA Users Guide
28 of 42
CVA Users Guide
• Filter Size Allows the adjustment of the filter half size of the edited
caliper tool.
• Exp Size Allows the adjustment of the expected size of the edited
tool. This option is only available for edge pair caliper
tools.
• Step & Repeat Allows the edited tool to be re-run, if it fails, up to the
Number of Steps. This option is currently only available
for edge caliper tools.
• The other buttons not described will change depending on what feature is
being edited on the tool. (Size, Location, Rotation, Threshold, Ranking,
Polarity, Filter Size, Exp Size)
4. Any edits performed online take effect the instant they are made. So as the layout
of the tool changes, the program is using the new layout.
29 of 42
CVA Users Guide
B. Kick Start
Kick Start is a feature that allows tools to be trained on runtime results. The
program averages tool data and uses it to determine minimum and maximum
threshold settings based on the entered scale factors. Tools need to be passing in
order for this to work.
The kick start function only works when all of the tools pass. Therefore, the
number of products to kick-start is not always consecutive. A new average is
calculated only when the tools pass for the number of products equal to the
sample size. If this does not occur in the number of products equal to 10 x the
sample size, the function will abort and the settings will remain as they were.
Example:
Score Average = 100
Strength Average = 20
Score Scale Factor = .5 (50%)
Strength Scale Factor = .75 (75%)
30 of 42
CVA Users Guide
Note that if the tool’s are continually failing because they aren’t in the
correct location to find an edge or the strength of the edges are below the
current minimum threshold, kick start will not work until the tool passes.
Example:
Mean Average = 100
Mean Scale Factor = .2 (20%)
3. Expected Size
for dual caliper (edge) tools
Calculations are as follows:
Example:
Average = 100
Exp Size Scale Factor = 1.01 (101%)
Exp Size Max Scale Factor = 1.1 (110%)
Exp Size Min Scale Factor = .5 (50%)
31 of 42
CVA Users Guide
The vision tools are set up using a typical image from the process. This typical
image is referred to as a “training” image. To have a typical image make sure
that:
The reference image will be saved and will freeze the image display for 20
products. The message box will indicate once the image has been saved. Note
that it will not be written to the database unless you allow it to when prompted
going offline.
32 of 42
CVA Users Guide
A. Image Save
The default file path to save images is C:\CogImages. Ensure this folder has
been created before proceeding. The default file names are CamXImages.idb,
where X is the camera number.
The message box will display which image is currently being saved.
33 of 42
CVA Users Guide
B. Image Playback
1. Select which image database (.idb) file to playback images from. Note
default image save files are named CamXImages.idb, where X is the
camera number.
2. Select the trigger mode, either Software or Hardware. Hardware trigger
mode requires an external trigger signal to playback images and will
initiate playback as soon as it is selected.
3. If Software trigger mode is selected, the user must manually trigger the
system. Either select Continuous mode, entering in the trigger interval, or
hit the Previous/Next buttons to increment through the images. Note that
if the interval is set to quickly, the inspection may not be able to keep up
and the inspection will become inoperable.
The message display will indicate which image is being played back and
also the total number of images in the file.
34 of 42
CVA Users Guide
1. No Freeze
This option can be found in the online menu bar under the “Freeze” menu. This
option will display every product that is inspected.
2. Manual Freeze
This option can be found in the online menu bar under the “Freeze” menu. This
option allows the user to freeze the display at any time by pressing the “Freeze”
button. It will hold the current product image on the screen until the “UnFreeze”
button is pressed.
This option can be found in the online menu bar under the “Freeze” menu. This
option will display every product that is inspected until a defective product is
found. It will hold the defective product image on the screen along with a
description of why it is defective until another defective product is found. It will
continue to display only the defective product images and the defect description.
35 of 42
CVA Users Guide
This option can be found in the online menu bar under the “Freeze” menu. This
option will display every product that is inspected until a defect is found. It will
hold the defective product image on the screen along with a description of why it
is defective until the “Reset” button is pressed. Once the “Reset” button has been
pressed it will continue to display each product until a defective product is found.
This option can be found in the online menu bar under the “Freeze” menu. This
option will display every product that is inspected until the selected specific
defect is found. The defect can either be a tool failure and/or a cull. The specific
defect(s) can be selected from the list of defects that appears when this display
option is enabled. It will hold the defective product image on the screen along
with a description of why it is defective until the “Reset” button is pressed. Once
the “Reset” button has been pressed it will continue to display each product until a
product with the selected specific defect(s) is found.
XV. Engineering
Some adjustments are not allowed unless you are logged on as an Engineer. To do
so, enter the correct password in the dialog box, as seen below.
XVI. Go Offline
When going offline, the user will be prompted to confirm this selection. When the
application is offline, the application will not be inspecting product and the machine
will go into a constant cull.
36 of 42
CVA Users Guide
If online edits have occurred, new reference images saved or menu options
modified since the last time the application was offline, the application will prompt
if the user would like these settings saved to the database.
37 of 42
CVA Users Guide
Note that one cannot perform a grade change to a code that has not been defined
in the database. Consult with staff in order to add new grades.
38 of 42
CVA Users Guide
The offline screen displays general information, as seen below, about the
application that is running.
XV. Troubleshooting
See separate troubleshooting guide using the following link:
Need link
Also see the offline tool failure screen to determine tool performance.
39 of 42
CVA Users Guide
Appendix
A. Application Software Structure
The following errors are common to all applications. The specific tool error
messages should be described in the application specific design guide.
Acquisition
Description Defect Message Priority
Camera X Acquisition Overrun: 0
Excessive Triggers
Camera X Acquisition Overrun: 0
Trigger Could Not be Serviced
Camera X Acquisition Missed 0
Camera X Acquisition Failed 0
Abnormally
Camera X Images not Available 0
Camera X Images Buffered and 0
Dropped
Camera X Encoder Overrun 0
A defect message priority of 99 or greater will disable the message from being
displayed. Messages for such tools as fixtures and lines may not want to be
displayed.
40 of 42
CVA Users Guide
Communication
Description Defect Message Priority
EIP Communications Initialized n/a
EIP Communications Not n/a
Initialized
RFM Communications Initialized n/a
RFM Communications Not n/a
Initialized
Message Boxes
Communication Not Initialized Properly
F. Application Files
• The data for the application is saved in database file: C:\cva0nedbo.mdf
• The application files are located in the C:\Vision folder.
• A temporary folder is created only when the application is running. This folder
contains the reference images, iXimage.idb and all tool files, *.vpp that are in the
database.
41 of 42
CVA Users Guide
42 of 42