VS-06 Smart Camera Guide - di

VS-06 Smart Camera Guide - di
VS-06 Smart Camera
VS-06 User´s Manual
Copyright ©2013
All rights reserved. The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and/or service di-soric manufactured equipment and is not to be released, reproduced,
or used for any other purpose without written permission of di-soric.
Throughout this manual, trademarked names might be used. Rather than place a trademark (™) symbol at every
occurrence of a trademarked name, we state herein that we are using the names only in an editorial fashion, and to
the benefit of the trademark owner, with no intention of infringement.
Disclaimer
The information and specifications described in this manual are subject to change without notice.
Latest Manual Version
For the latest version of this manual, see the Download Center on our web site at:
www.di-soric.com.
Technical Support
For technical support, e-mail: service@di-soric.com.
Warranty and Terms of Sale
For Standard Warranty information contact:
di-soric GmbH & Co. KG
Steinbeisstraße 6
DE-73660 Urbach
Fon: +49 (0) 71 81 / 98 79 - 0
Fax: +49 (0) 71 81 / 98 79 - 179
info@di-soric.com
www.di-soric.com
Contents
PREFACE
Welcome!
Purpose of This Manual
Manual Conventions
CHAPTER 1
Introduction 1-1
Product Summary 1-2
Features and Benefits 1-2
Applications 1-3
Package Contents 1-3
VS-06 Smart Camera Models 1-4
Part Number Structure 1-5
CHAPTER 2
System Components 2-1
Hardware Components 2-1
Important Label Information 2-8
Mounting and Wiring the VS-06 Smart Camera 2-9
Input/Output Wiring 2-16
Ground and Shield Considerations 2-17
Power Requirements 2-19
Status Indicators 2-20
AutoVision Button 2-21
Setting Up a Job in AutoVision 2-22
Trigger Debounce 2-27
VS-06 Smart Camera Guide
v
Contents
CHAPTER 3
Optics and Lighting 3-1
Optics 3-2
Lens Substitution 3-3
Illumination 3-5
CHAPTER 4
Using EtherNet/IP 4-1
VS-06 EtherNet/IP 4-2
Assembly Layout 4-4
Connection Properties: Class 3 Explicit Messaging: 4-14
EIP Control/Status Signal Operation 4-17
Data Type Descriptions and Equivalents in PLC and EDS/CIP Environments 4-18
PLC Tags and Serial Command Names 4-19
APPENDIX A
Connector Pinouts A-1
VS-06 Smart Camera Connectors A-2
APPENDIX B
Cable Specifications B-1
VKHM-Z-5/RJ45 Cable, Host, Ethernet, M12 8-pin Plug to RJ45, 1 m B-2
VSID-PS-24V-ES Power Supply, M12 12-pin Socket, 1.3 m B-4
APPENDIX C
General Specifications C-1
Dimensions C-8
Field of View and Working Distance C-10
APPENDIX D
Web HMI D-1
Adding Options to the Base URL D-4
Basic Options D-4
Layout Options D-5
Settings Pages D-7
Style D-14
Additional Notes D-15
APPENDIX E
Allen-Bradley PLC Setup via EDS E-1
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS E-2
APPENDIX F
Allen-Bradley PLC setup via Generic Ethernet Module F-1
Prepare the PLC: Integrate the Camera into a PLC Environment F-2
vi
VS-06 Smart Camera Guide
Contents
APPENDIX G
Demo PLC Code G-1
Glossary of Terms G-2
Demo Setup G-3
Description of PLC Tags G-5
Run the Camera: Runtime Operation of EtherNet/IP Demo G-15
APPENDIX H
Serial Commands H-1
APPENDIX I
VS-06 Boot Modes I-1
VS-06 Smart Camera Guide
vii
Contents
viii
VS-06 Smart Camera Guide
Preface
Welcome!
PREFACE
Purpose of This Manual
This manual contains detailed information about the VS-06 Smart
Camera.
Manual Conventions
The following typographical conventions are used throughout this manual.
•
Items emphasizing important information are bolded.
•
Menu selections, menu items and entries in screen images are
indicated as: Run (triggered), Modify..., etc.
VS-06 Smart Camera Guide
xi
Preface
xii
VS-06 Smart Camera Guide
1
CHAPTER 1
Introduction
1
Introduction
FIGURE 1–1. VS-06 Smart Camera, C-Mount and Standard Models
VS-06 Smart Camera Guide
1-1
Chapter
1
Introduction
Product Summary
The VS-06 Smart Camera is a compact industrial smart camera that
provides powerful machine vision capabilities with a small form factor and
intuitive software interface. The VS-06 is designed for industrial
environments where IP65/67 enclosure and rugged M12 connectivity are
required.
Fully-integrated I/O and communications make the VS-06 easy to
incorporate in virtually any machine vision application. Patented liquid
lens autofocus and modular optical zoom enables the VS-06 to inspect
objects at distances from 33 mm to 2 m and beyond.
Pressing the AutoVision button at the back of the VS-06 enables real time
dynamic autofocus. When an object is centered in the field of view and
the AutoVision button is pressed, the camera automatically adjusts focal
distance and sets internal parameters to optimize image captures.
AutoVision software, designed for use with the VS-06, provides an
intuitive interface, step-by-step configuration, and a library of presets that
allow easy setup and deployment. For more complex vision applications,
the system can be upgraded from AutoVision to Visionscape.
Features and Benefits
1-2
•
Standard and C-Mount models available
•
SXGA (1280 x 960), WVGA (752 x 480), and WUXGA (2048 x 1088,
C-Mount model only) resolutions available
•
World’s first vision system with liquid lens autofocus (standard models)
•
Integrated lighting (standard models)
•
Integrated Ethernet
•
Flexible programming options for custom applications
•
AutoVision button for automatic targeting, calibration, and triggering
•
Simplified configuration with AutoVision software
•
Fully scalable with Visionscape
•
Applications can be ported to Visionscape PC-based machine vision
VS-06 Smart Camera Guide
Applications
•
Automotive assembly verification
•
Part identification
•
Label positioning
•
Contents verification
•
Electronics assembly verification and identification
•
Semiconductor packaging and component inspection
•
Auto ID (Data Matrix and other 2D symbologies, 1D, OCR)
Introduction
Applications
Package Contents
Before you install VS AutoVision software and connect your VS-06 Smart
Camera, please take a moment to confirm that the following items are
available:
•
VS-06 Smart Camera — Your package contains one of the available
models listed in Table 1–1
•
di-soric Tools Drive — USB flash drive containing AutoVision software
•
Required accessories such as a power supply or power cable
VS-06 Smart Camera Guide
1
1-3
Chapter
1
Introduction
VS-06 Smart Camera Models
Table 1–1 lists and describes the VS-06 Smart Camera models.
TABLE 1–1. VS-06 Smart Camera Models
Part Number
VS-06 Smart Camera Model
VS-06-BC3-00-ES
VS-06, SXGA, AutoVision, C-Mount
VS-06E-BC3-00-ES
VS-06, SXGA, AutoVision + Visionscape, C-Mount
VS-06-BM2-00-ES
VS-06, WVGA, AutoVision, C-Mount
VS-06E-BM2-00-ES
VS-06, WVGA, AutoVision + Visionscape, C-Mount
VS-06-BM2-15-ES
VS-06, WVGA, Built-In Light, AutoVision, 15° Lens
VS-06-BM2-30-ES
VS-06, WVGA, Built-In Light, AutoVision, 30° Lens
VS-06-BM2-45-ES
VS-06, WVGA, Built-In Light, AutoVision, 45° Lens
VS-06E-BM2-15-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 15° Lens
VS-06E-BM2-30-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 30° Lens
VS-06E-BM2-45-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 45° Lens
VS-06-BC3-15-ES
VS-06, SXGA, Built-In Light, AutoVision, 15° Lens
VS-06-BC3-30-ES
VS-06, SXGA, Built-In Light, AutoVision, 30° Lens
VS-06-BC3-45-ES
VS-06, SXGA, Built-In Light, AutoVision, 45° Lens
VS-06E-BC3-15-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 15° Lens
VS-06E-BC3-30-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 30° Lens
VS-06E-BC3-45-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 45° Lens
VS-06-BM4-00-ES
VS-06, WVXGA, AutoVision, C-Mount
VS-06E-BM4-00-ES
VS-06, WVXGA, AutoVision + Visionscape, C-Mount
1-4
VS-06 Smart Camera Guide
Part Number Structure
VS-06 Smart Camera Guide
Introduction
Part Number Structure
1
1-5
Chapter
1-6
1
Introduction
VS-06 Smart Camera Guide
2
System Components
2
System Components
CHAPTER 2
This section contains information about system components as well as
information to help you connect the VS-06 Smart Camera. Specific
information describes connectors, adapters, cables, pinouts, and signals.
Note: There are no user-serviceable parts inside.
Hardware Components
Table 2-1 lists VS-06 Smart Camera hardware components.
TABLE 2–1. VS-06 Smart Camera Hardware Components
Part Number
Description
Part Number
VS-06 Smart Camera Model
VS-06-BC3-00-ES
VS-06, SXGA, AutoVision, C-Mount
VS-06E-BC3-00-ES
VS-06, SXGA, AutoVision + Visionscape, C-Mount
VS-06-BM2-00-ES
VS-06, WVGA, AutoVision, C-Mount
VS-06E-BM2-00-ES
VS-06, WVGA, AutoVision + Visionscape, C-Mount
VS-06-BM2-15-ES
VS-06, WVGA, Built-In Light, AutoVision, 15° Lens
VS-06-BM2-30-ES
VS-06, WVGA, Built-In Light, AutoVision, 30° Lens
VS-06-BM2-45-ES
VS-06, WVGA, Built-In Light, AutoVision, 45° Lens
VS-06E-BM2-15-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 15° Lens
VS-06E-BM2-30-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 30° Lens
VS-06 Smart Camera Guide
2-1
Chapter
2
System Components
TABLE 2–1. VS-06 Smart Camera Hardware Components (Continued)
Part Number
Description
VS-06E-BM2-45-ES
VS-06, WVGA, Built-In Light, AutoVision + Visionscape, 45° Lens
VS-06-BC3-15-ES
VS-06, SXGA, Built-In Light, AutoVision, 15° Lens
VS-06-BC3-30-ES
VS-06, SXGA, Built-In Light, AutoVision, 30° Lens
VS-06-BC3-45-ES
VS-06, SXGA, Built-In Light, AutoVision, 45° Lens
VS-06E-BC3-15-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 15° Lens
VS-06E-BC3-30-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 30° Lens
VS-06E-BC3-45-ES
VS-06, SXGA, Built-In Light, AutoVision + Visionscape, 45° Lens
VS-06-BM4-00-ES
VS-06, WVXGA, AutoVision, C-Mount
VS-06E-BM4-00-ES
VS-06, WVXGA, AutoVision + Visionscape, C-Mount
Power Supplies
VSID-PS-24V-ES
Power Supply, M12 12-pin Socket, 1.3 m
Communication Devices and Cables
VSID-IB-ES
Interface Device
VKHM-Z-1/12/DB9-K
Cordset, Host, Serial M12 12 pin Socket (Screw-on) to DB9 Socket, 1M
Accessories
VSID-BW-004
L-Bracket Kit
VSID-R90-002
Right Angle Mirror Kit
VSID-W-K-000
Window Replacement Kit
VSID-L-S-15
15° Lens Kit
VSID-L-S-30
30° Lens Kit
VSID-L-S-45
45° Lens Kit
VSID-W-G-850
Glass WIndow Kit with Infrared (IR) Filter
VSID-W-G-000
Glass Window Kit
VSID-LP-C-48
Lens Protection Housing, Standard Length (up to 48mm)
VSID-LP-C-72
Lens Protection Housing, Long (up to 72mm)
VSID-06-BE-3
Blue light LED-board for VS-06 (exect C-Mount)
VSID-06-BE-5
White light LED-board for VS-06 (exect C-Mount)
VS-UP-AV/VS
Upgrade AutoVision to Visionscape
VS-UP-AV/OCV
Upgrade AutoVision to Verification / OCV
VS-UP-AV/VS-OCV
Upgrade AutoVision VisionScape + Verification / OCV
Note: Additional hardware components and cables are available in the di-soric Product portfolio.
Power Supplies
VSID-PS-24V-ES
2-2
Power Supply, M12 12-pin Socket, 1.3 m
VS-06 Smart Camera Guide
Hardware Components
TABLE 2–1. VS-06 Smart Camera Hardware Components (Continued)
Part Number
2
Description
VKHM-Z-5/12-A
System Components
Communication Devices and Cables
Power I/O cable, 12 Pin, shielded, 5m
VKHM-Z-5/RJ45
Ethernet cable, flex-chain, 5m
VKSM-Z-5/12-A
Power I/O cable, 12 Pin, shielded, flex-chain, 5m
Note: Additional hardware components are available in the di-soric Product Pricing Catalog.
VS-06 Smart Camera Guide
2-3
Chapter
2
System Components
Standard Front
Figure 2-1 shows the front of the VS-06 Smart Camera.
FIGURE 2–1. Front
Standard Base
Figure 2–2 shows the base of the VS-06 Smart Camera.
FIGURE 2–2. Base
2-4
VS-06 Smart Camera Guide
Hardware Components
Standard Side
2
Figure 2-3 shows the side of the VS-06 Smart Camera.
System Components
FIGURE 2–3. Side
Standard Back
Figure 2-4 shows the back of the Smart Camera.
FIGURE 2–4. Back
VS-06 Smart Camera Guide
2-5
Chapter
2
System Components
C-Mount Front
Figure 2-5 shows the front of the C-Mount Smart Camera.
FIGURE 2–5. Front
C-Mount Base
Figure 2–6 shows the top of the C-Mount Smart Camera.
FIGURE 2–6. Top
2-6
VS-06 Smart Camera Guide
Hardware Components
2
System Components
C-Mount Side
Figure 2-7 shows the side of the C-Mount Smart Camera.
FIGURE 2–7. Side
C-Mount Back
Figure 2-8 shows the back of the C-Mount Smart Camera.
FIGURE 2–8. Back
VS-06 Smart Camera Guide
2-7
Chapter
2
System Components
Important Label Information
Each VS-06 Smart Camera has its own label, which contains important
information about that camera.
• P/N – The di-soric part number of your VS-06 Smart Camera.
• S/N — The serial number of your VS-06 Smart Camera.
• MAC — The MAC address of your VS-06 Smart Camera.
2-8
VS-06 Smart Camera Guide
Mounting and Wiring the VS-06 Smart Camera
Mounting and Wiring the VS-06 Smart Camera
1
Mounting
holes
•
•
•
•
•
Connect the Ethernet cable (2) from “B” on the camera (1) to the
network.
Connect the power supply cable (3) to “3” on the VSID-IB-ES (4).
Connect the trigger (5) to “T” on the VSID-IB-ES (4).
Connect the “Common” cable (6) from “A” on the camera (1) to “2” on
the VSID-IB-ES (4).
Plug in the power supply (3).
1
1
2
6
4
3
4
5
Standard VS-06
VS-06 Smart Camera Guide
2
6
3
5
VS-06 C-Mount
2-9
2
System Components
Important: Pins 9 (Host RxD) and 10 (Host TxD) must be tied to Ground
(Pin 7) when using a flying lead cable and the serial port is not being used.
The camera may not boot to completion if RxD and TxD are not grounded.
• Mount the camera (1) securely as required by the application.
Chapter
2
System Components
Optoisolated Outputs
The reader has optoisolated outputs that can transfer signals from the
camera to peripherals. Outputs can be configured as either NPN or PNP,
but NPN and PNP cannot be mixed in a system, because the output
common is shared by all outputs.
NPN Output for Host Input
2-10
VS-06 Smart Camera Guide
Mounting and Wiring the VS-06 Smart Camera
NPN Output for External Load
System Components
2
VS-06 Smart Camera Guide
2-11
Chapter
2
System Components
PNP Output for Host Input
2-12
VS-06 Smart Camera Guide
Mounting and Wiring the VS-06 Smart Camera
PNP Output for External Load
System Components
2
VS-06 Smart Camera Guide
2-13
Chapter
2
System Components
Optoisolated Inputs
All discrete inputs are optoisolated. Inputs can be configured as either
NPN or PNP, but NPN and PNP cannot be mixed in a system, because
the input common is shared by all inputs.
NPN
2-14
VS-06 Smart Camera Guide
Mounting and Wiring the VS-06 Smart Camera
PNP
System Components
2
VS-06 Smart Camera Guide
2-15
Chapter
2
System Components
Input/Output Wiring
2-16
VS-06 Smart Camera Guide
Ground and Shield Considerations
Ground and Shield Considerations
VS-06
An earth ground is provided through the cable shields and chassis of the imager.
Ground Loops
Ground loops (signal degradation due to different ground potentials in
communicating devices) can be eliminated or minimized by ensuring that
both the host, imager, and their power supplies are connected to a
common earth ground.
VS-06 Smart Camera Guide
2-17
2
System Components
Proper grounding is necessary for operator safety, noise reduction, and
the protection of equipment from voltage transients. Buildings, including
any steelwork, all circuits, and all junction boxes must be grounded
directly to an earth ground in compliance with local and national electrical
codes.
Chapter
2
System Components
Expected Power and Ground Connections for Proper Operation
Grounding Notes:
2-18
•
Ensure that mounting bracket “Earth” is at the same potential as
power source “Earth”.
•
Supply “Return” and “Earth” ground must be stable, low-impedance
reference points.
•
“2-Terminal Power Supply” must still provide an “Earth” connection to
the imager.
•
“Signal Ground” can be used for communications and/or discrete signal
ground reference. It must not be used as Power Ground or Earth
Ground.
VS-06 Smart Camera Guide
Power Requirements
Power Requirements
TABLE 2–3. Camera Power Requirements
Component
VS-06 Smart Camera, CCD, SXGA
5-28VDC, 200mV p-p max ripple,
170mA at 24VDC (typ.)
15.5 watts (max.)
VS-06 Smart Camera, CMOS, WVGA
5-28VDC, 200mV p-p max ripple,
135mA at 24VDC (typ.)
13 watts (max.)
VS-06 C-Mount Smart Camera, CCD,
SXGA
5-28VDC, 200mV p-p max ripple,
170mA at 24VDC (typ.)
7 watts (max.)
VS-06 C-Mount Smart Camera, CMOS,
WVGA
5-28VDC, 200mV p-p max ripple,
135mA at 24VDC (typ.)
4 watts (max.)
VS-06 C-Mount Smart Camera, CMOS,
WUXGA
5-28VDC, 200mV p-p max ripple,
140mA at 24VDC (typ.)
5.7 watts (max.)
VS-06 Smart Camera Guide
2-19
2
System Components
Refer to Table 2-3 when determining the power supply requirements for
your camera.
Chapter
2
System Components
Status Indicators
The top of the VS-06 Smart Camera has multiple LEDs that indicate
different trigger, inspection, camera, communication, and power states.
TRIG = Trigger Status
PASS/FAIL = Inspection Status
MODE = Camera Status
Outputs 1, 2, 3
Power Status
LINK/ACT = Link Activity Status
TRIG
PASS/FAIL
MODE
LINK/ACT
PWR
OUTPUTS
On Steady
Continuous Trigger
Off
Waiting for Trigger Event
On Flashing
Trigger Event
On
Active State
Off
Inactive State
On Steady
Unit Ready
Off
Unit Not Ready
On Steady
Link Established
Off
No Link/Activity
On Flashing
Link Established and Activity on Link
On
Power On
Off
No Power Applied to Unit
On
Signal Sent to External Output
Off
No Signal Sent to External Output
Additional User Feedback
•
•
•
2-20
Green Flash – A green flash from the front of the unit indicates a Good Read.
Red X Targeting Pattern – The red X targeting pattern from the front of
the unit allows the user to center an object in the camera’s field of view.
Beeper – The beeper is an audible verification that either a Pass or a
Fail has occurred.
VS-06 Smart Camera Guide
AutoVision Button
AutoVision Button
The AutoVision Button has three positions, selectable by the length of
time the button is held down, and indicated by one, two, or three beeps
and LED flashes in succession. It can also be used to send a trigger
signal when Send Trigger is checked in AutoVision software’s Connect
view. When the trigger functionality is enabled, pushing the AutoVision
Button triggers the camera to capture an image.
1st Position: Red Targeting Pattern
The first AutoVision Button position turns the targeting system on.
This overrides any other targeting modes that have been configured.
2nd Position: Auto Calibration
The second AutoVision Button position starts the Auto Calibration
process, which selects the appropriate photometry and focus settings
for the camera. The selected values are then saved for power-on.
3rd Position: Teach
The third AutoVision Button position sets the Match String to the next
OCR string or symbol data that is decoded.
VS-06 Smart Camera Guide
2-21
System Components
2
Chapter
2
System Components
Setting Up a Job in AutoVision
AutoVision is a critical component of the VS-06’s functionality. Designed
for use with the VS-06, AutoVision provides an intuitive interface, step-bystep configuration, and a library of presets that allow easy setup and
deployment. For more complex vision applications, the system can be
upgraded from AutoVision to Visionscape.
1.
Configure VS-06 hardware.
1
3
4
2
See Appendix A, Connector Pinouts, for
VS-06 pin assignments.
Item Description
Part Number
1
VS-06 Smart Camera
VS-06-BXX-XX-ES
2
Interface Device
VSID-IB-ES
3
Power Supply, M12 12-pin Socket, 1.3 m
VSID-PS-24V-ES
4
Cordset, Host, Ethernet, M12 8-pin Plug to RJ45, 5m
VKHM-Z-5/RJ45
Note: Additional cables available in the di-soric Product Pricing Catalog.
–
–
–
–
2-22
Mount the camera as required by the application.
Connect the Ethernet cable from "B" on the camera to the
network.
Connect the power supply to "3" on the VSID-IB-ES.
Connect the photo sensor to "T" on the VSID-IB-ES.
VS-06 Smart Camera Guide
Setting Up a Job in AutoVision
–
2.
Connect the "Common" cable to "2" on the VSID-IB-ES and "A"
on the camera.
Plug in the power supply.
Select your VS-06 in the AutoVision Connect view, create a job, and
adjust camera settings.
AutoVision's Connect view allows you to select your device and
configure its settings, and to create a new job. The Select Device
dropdown menu provides a list of available devices. Hover the mouse
over a device to see its details.
Click the lock icon to take control of the camera. When you have
control of the camera, the Modify button will appear beneath the
camera settings. Click the Modify button to adjust camera settings.
VS-06 Smart Camera Guide
2-23
2
System Components
–
Chapter
2
System Components
Note: The default IP address of the camera is: 192.168.0.10. Be sure
your PC is on the same subnet (192.168.0.100, for example).
Modify camera settings in the
Details area at the left of the
Connect view.
Create, Load, or Upload a job
using the buttons in the center
of the Connect view.
Important: When modifying camera settings, you will need to enter a
username and password for the camera if a password has been defined.
2-24
VS-06 Smart Camera Guide
Setting Up a Job in AutoVision
3.
Edit the Job in VS AutoVision.
After you have created a new job, loaded a job from your PC, or
uploaded a job from the camera, you will proceed to the Edit view to
refine your machine vision job. The Camera parameters below the
captured image allow you to set Gain, Exposure, Focus, Trigger, and
Lighting. Inspection Outputs options allow you to connect your job to
the outside world. This is also the view where you can add multiple
tools to the job. The tool icons are located above the main view area.
VS-06 Smart Camera Guide
2-25
2
System Components
Once you have selected your camera, adjusted its settings, and
created a new job, you will move to the Image view. This view allows
you to Auto Calibrate the camera, and to manually adjust the
camera's Exposure, Gain, and Focus, and also to set the Lighting
Mode (On, Off, or Strobe).
Chapter
2-26
2
System Components
4.
Run the Job in AutoVision.
Going to the Run view will automatically download your job to the
camera and start it running.
5.
Save the Job.
Click the Save to Camera icon on the File menu bar to save the job
to the VS-06.
VS-06 Smart Camera Guide
Trigger Debounce
Trigger Debounce
Camera Definition File Example
IO Line Debounce High Time 2000
IO Line Debounce Low Time 2000
VS-06 Smart Camera Guide
//usecs
//usecs
2-27
2
System Components
Trigger Debounce is the ability of the system to accomodate switching noise on a trigger state
change – a common issue with relays that have some intermittent contact while engaging.
Trigger overruns (when the vision system is triggered faster than the device can process)
can be avoided by increasing the “debounce” time in the camera definition file located in
the C:\di-soric\Vscape\Drivers\CamDefs directory.
The IO Line Debounce High Time and IO Line Debounce Low Time can be added to the
file as in the example below. The default debounce time is 1 ms (1,000 μs).
Note: Although the value entered for the "IO Line Debounce Time" is in microseconds, it
will only be rounded up to a millisecond value. For example, entering the value 1001 will
resolve to 2 ms; entering a value of 2800 will resolve to 3 ms.
The min value for "IO Line Debounce Time" is 0, which disables software debounce
altogether. The maximum value is 100000 (100 ms).
Chapter
2-28
2
System Components
VS-06 Smart Camera Guide
3
CHAPTER 3
Optics and Lighting
3
This section describes the optical and illumination characteristics of the
VS-06 Smart Camera.
VS-06 Smart Camera Guide
3-1
Chapter
3
Optics and Lighting
Optics
The VS-06 Smart Camera is available with a built-in CMOS sensor or
CCD sensor.
Optics Specifications
Part Number
VS-06-BM215-ES
VS-06-BM230-ES
VS-06-BM245-ES
VS-06-BC3-15- VS-06-BC3-30- VS-06-BC3-45ES
ES
ES
Sensor
1/3”, SXGA (1280 x 960) CCD, up to 20 fps
1/3”, WVGA (752 x 480) CMOS, up to 60 fps
Sensor Color
Monochrome
Focal Range
1” (33 mm) to ∞ (liquid lens autofocus)
Shutter
Global Shutter; Exposure: 6μs to 100ms
Global Shutter; Exposure: 25μs to 100ms
(1/150,000 to 1/10) Default = 666μs (1/1,500) (1/40,000 to 1/10) Default = 400μs (1/2,500)
Part Number
VS-06-BM215-ES
VS-06-BM230-ES
VS-06-BM245-ES
VS-06-BC3-15- VS-06-BC3-30- VS-06-BC3-45ES
ES
ES
Sensor
1/3”, SXGA (1280 x 960) CCD, up to 20 fps
1/3”, WVGA (752 x 480) CMOS, up to 60 fps
Sensor Color
Monochrome
Focal Range
1” (33 mm) to ∞ (liquid lens autofocus)
Shutter
Global Shutter; Exposure: 6μs to 100ms
Global Shutter; Exposure: 25μs to 100ms
(1/150,000 to 1/10) Default = 666μs (1/1,500) (1/40,000 to 1/10) Default = 400μs (1/2,500)
Part Number
VS-06-BC3-00- VS-06E-BC3ES
00-ES
Sensor
1/3”, SXGA (1280 x 960)
CCD, up to 20 fps
Sensor Color
3-2
VS-06E-BM200-ES
1/3”, WVGA (752 x 480)
CMOS, up to 60 fps
VS-06-BM400-ES
VS-06E-BM400-ES
2/3”, WUXGA (2048 x 1088)
CMOS, up to 48 fps
Monochrome
Focal Range
Shutter
VS-06-BM200-ES
Depends on lens
Global Shutter; Exposure:
6μs to 100ms (1/150,000 to
1/10) Default = 666μs
(1/1,500)
Global Shutter; Exposure:
25μs to 100ms (1/40,000 to
1/10) Default = 400μs
(1/2,500)
Global Shutter; Exposure:
25μs to 100ms (1/40,000 to
1/10) Default = 400μs
(1/2,500)
VS-06 Smart Camera Guide
Lens Substitution
Lens Substitution
The following procedure will change the appropriate settings in the VS-06
to allow the camera to focus properly after the lens has been changed.
Please note that the VS-06 camera will use default lookup tables for the
focus when the lens selection is changed, so the actual focus distances
may not be as accurate as the lens that was shipped with the unit that
was factory calibrated. Since default lookup tables are used, the VS-06
may not focus over the full focus range that is normally seen when using
the factory calibrated lens.
After the lens has been changed via the parameters below, the new
values will take effect the next time that the lens focus is modified.
1.
Boot the VS-06 Smart Camera.
2.
Connect to the VS-06 via Telnet using the IP address of the camera.
3.
Send the following command after the VS-06 has booted:
stopAll
3
4.
Optics and Lighting
The response should be "value = 1 = 0x1".
Send the following command:
GetCurrentLense()
One of these 3 responses will be seen:
1 = 15deg
2 = 30deg
3 = 45deg
5.
After camera has booted, send the following command (choose the
appropriate command based on the lens):
SetCurrentLense(1)(to change to 15 degree lens)
The response should be:
"Now Set to 1 = 15deg"
"value = 0 = 0x0"
VS-06 Smart Camera Guide
3-3
Chapter
3
Optics and Lighting
SetCurrentLense(2)(to change to 30 degree lens)
The response should be:
"Now Set to 2 = 30deg"
"value = 0 = 0x0"
SetCurrentLense(3)(to change to 45 degree lens)
The response should be:
"Now Set to 3 = 45deg"
"value = 0 = 0x0"
6.
Send the following command:
startAll
The response should be "value = 1 = 0x1"
3-4
VS-06 Smart Camera Guide
Illumination
Illumination
The standard version of the VS-06 Smart Camera has built-in lighting (red
LEDs for SXGA models and white LEDs for QXGA models). The LEDs
can be configured to operate in multiple modes – Continuous, Strobe, and
Off.
Warning: Running a red LED board on a camera with a white LED color
profile will damage both the board and the camera.
Important: The VS-06 C-Mount does not have built-in lighting. The Machine
Vision Lighting Principles on the following page provide some
suggestions for how to determine the appropriate external lighting for your
application.
Lighting Specifications
VSID-06-BE-3
LED board for VS-06 with integrated lighting, blue color
VSID-06-BE-5
LED board for VS-06 with integrated lighting, white color
VS-06 Smart Camera Guide
3
Optics and Lighting
The VS-06 version with built-in lighting is standardly delivered with a red
LED-Lighting board with 617 nm wave length.
Optional additional LED-boards as follows:
3-5
Chapter
3
Optics and Lighting
Machine Vision Lighting Principles
Proper lighting is critical to the success of a machine vision
application. Depending on the requirements of your application, you
may also need to add external lighting from di-soric NERLITE family
of machine vision lighting products.
Consider the following when setting up your application:
–
Is the surface of the object flat, slightly bumpy, or very bumpy?
–
Is the surface matte or shiny?
–
Is the object curved or flat?
–
What is the color of the object or area being inspected?
–
Is the object moving or stationary?
Machine vision lighting should maximize contrast of the areas or features
being inspected while minimizing the contrast of everything else.
Before correct lighting
3-6
After correct lighting
VS-06 Smart Camera Guide
4
CHAPTER 4
Using EtherNet/IP
4
This section provides information necessary for using the VS-06 in an
EtherNet/IP environment.
VS-06 Smart Camera Guide
4-1
Chapter
4-2
4
Using EtherNet/IP
VS-06 Smart Camera Guide
VS-06 EtherNet/IP
VS-06 EtherNet/IP
Throughout this document, EtherNet/IP may be referred to as “EIP”, and
VS-06 may be abbreviated “VS”. The EIP interface version described
here is 1.1. This version number is associated with the EIP interface for
di-soric Device Type of 100, Machine Vision Smart Cameras. It is not the
software version of AutoVision, VisionScape, or VS-06 firmware.
Overview
The EIP interface will be identified as Vendor Specific (100). The interface
is designed to support Class 1 Implicit IO data exchange, and Class 3
Explicit messages for serial commands not accessible with Implicit
messaging.
Necessary Tools
The following tools are helpful for configuring the EIP:
AutoVision and FrontRunner
•
EtherNet/IP Messaging Tool – can be a PLC or Software Tool, must
be capable ofsending explicit messages and establishing Class 1
connections. EIPScan from Pyramid Solutions is an example of such
a tool.
•
Terminal emulation or serial communication tool that can connect to
serial uart and TCP socket, such as HyperTerminal or Putty.
EtherNet/IP Terms of Use
EtherNet/IP Technology is governed by the Open DeviceNet Vendor
Association, Inc (ODVA). Any person or entity that makes and sells
products that implement EtherNet/IP Technology must agree to the Terms
of Usage Agreement issued by ODVA. See www.odva.org for details.
VS-06 Smart Camera Guide
4-3
4
Using EtherNet/IP
•
Chapter
4
Using EtherNet/IP
EtherNet/IP Object Model
VS-06 uses Class 1 connected messaging to communicate most of its
data and services in a single connection.
EIP Identity
Device Type
Device type is 100, Vendor Specific, Machine Vision Smart Camera.
Vendor ID
di-soric ODVA Vendor ID is 1095.
Product Code
The Product Code is 6899.
Interface Revision
Major.Minor = 1.1
Connection Properties: Class 1 Implicit Messaging
Input Assembly Instance (to PLC/client): 102
Output Assembly Instance (to VS-06): 114
Size: Fixed, 320 bytes in both directions
Input Trigger/Trigger Mode: Cyclic
RPI (Requested Packet Interval): Greater than 20 ms recommended. 10
ms to 3.2 s allowed.
Input Type/Connection Type:
•
Point-to-Point (PLC OUT, O->T)
•
Point-to-Point and Multicast (PLC IN, T->O)
Connection Priority: Scheduled
4-4
VS-06 Smart Camera Guide
Assembly Layout
Assembly Layout
Input Assembly
The input assembly layout is described below and shown in the following diagram.
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-5
Chapter
4
Using EtherNet/IP
The input assembly layout is shown here:
4-6
VS-06 Smart Camera Guide
Assembly Layout
Status: Camera Status Register (16 bit)
Each bit of this register represents a different state of the camera’s operation. A high value
of 1 indicates that state is active (true).
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-7
Chapter
4
Using EtherNet/IP
CmdCodeRslt (32 bit)
The value of CmdCodeRslt is only valid when ExeCmdAck is active (1), in response to
ExeCmd being active.
CmdRet (32 bit)
The value of CmdRet is only valid when ExeCmdAck is active (1), in response to ExeCmd
being active, and CmdCodeRslt is 0 (Success). The following chart shows which
CmdCodes return data in the CmdRet register.
4-8
VS-06 Smart Camera Guide
Assembly Layout
State (16 bit)
State reflects the following operational condition of the camera:
*Booting (3) State: This will rarely be seen by the plc.
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-9
Chapter
4
Using EtherNet/IP
The value of State determines which Control and Status signals are available:
Where:
Y = Signal is valid for this State
Empty cell = Signal is not valid for this State
4-10
VS-06 Smart Camera Guide
Assembly Layout
VIO Register Bits
Output Assembly
The output assembly layout is described below and shown in the following diagram.
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-11
Chapter
4
Using EtherNet/IP
The output assembly layout is shown here:
4-12
VS-06 Smart Camera Guide
Assembly Layout
Control: Camera Control Register (16 bit)
Each bit of this register controls a function on the camera. Transitions from a low state of
0, to a high state of 1, initiates the associate operation. The PLC should return the state of
the control bit back to 0 after it has acknowledged the camera has processed the control.
Unused bits should remain 0.
Using EtherNet/IP
4
CmdCode and CmdArg (32 bit)
Specifies the process invoked in the camera when Control.ExeCmd goes active.
List of available CmdCodes, and associated CmdArg
VS-06 Smart Camera Guide
4-13
Chapter
4
Using EtherNet/IP
CmdCode and ExeCmd Operation
VIO Register Bits
4-14
VS-06 Smart Camera Guide
Connection Properties: Class 3 Explicit Messaging
Connection Properties: Class 3 Explicit Messaging
All Class 1 IO assembly data and additional data are accessible via Explicit message.
Input data (VS-06 to PLC/Client) occupies attributes 1 to 100 of the classes. Output data
(PLC/Client to VS-06) occupies attributes 101 to 200.
Service:
•
Get Attribute Single (0xE)
•
Set Attribute Single (0x10)
Classes:
bool = 104 (0x68)
•
int = 105 (0x69)
•
long = 106 (0x6A)
•
float = 107 (0x6B)
•
string = 108 (0x6C)
•
control/status (mixed data types) = 109 (0x6D)
4
Using EtherNet/IP
•
Instance: 1
Attribute:
•
1 to 100 = In to PLC/Client
•
101 to 200 = Out to VS
VS-06 Smart Camera Guide
4-15
Chapter
4
Using EtherNet/IP
Attribute Layout
When using explicit EIP messaging, all global data objects can be read or written. Each
data type is stored in its own class object and an instance of 1 to read the global data. For
example to read float2 the EIP request would be for Service Code 14 (0xE), Class 107
(0x6B), Instance 1, Attribute 2.
The value received in response to Get Attribute Single depends on the type:
•
bool will return a 16 bit word with 0 for false or 1 for true
•
Ints will return a 16 bit signed integer
•
longs will return a 32 bit signed integer
•
floats will return a 32 bit floating point number
•
strings will return a counted string. Total size of a string data item is 2048 bytes. This
includes a 4 byte “length” field followed by 2044 eight bit characters. When accessing
strings explicitly, they are not limited to the size in the IO assemblies. Eg. string3 is
limited to 28 bytes in the input assembly. If the actual string is longer than 28 bytes, it
will be truncated when reading via the assembly, but not truncated when reading the
same string via an attribute explicitly.
4-16
VS-06 Smart Camera Guide
Connection Properties: Class 3 Explicit Messaging
Assembly Class 109 can be used to read and write special EIP specific registers.
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-17
Chapter
4
Using EtherNet/IP
EIP Control/Status Signal Operation
4-18
VS-06 Smart Camera Guide
Data Type Descriptions and Equivalents in PLC and EDS/CIP Environments
Data Type Descriptions and Equivalents in PLC and
EDS/CIP Environments
Using EtherNet/IP
4
VS-06 Smart Camera Guide
4-19
Chapter
4
Using EtherNet/IP
PLC Tags and Serial Command Names
PLC tags are separated into IN and OUT for data direction. Within the IN and OUT groups,
the tags are sub-divided into fixed “Status” and “Control” fields, plus user-defined linked
data fields. This table shows how PLC tag names correspond to serial commands.
4-20
VS-06 Smart Camera Guide
A
Connector Pinouts
APPENDIX A
This section contains information about VS-06 Smart Camera connectors:
•
M12 12-Pin Plug on page A-2
•
M12 8-Pin Socket on page A-3
Connector Pinouts
A
VS-06 Smart Camera Guide
A-1
Appendix
A
Connector Pinouts
VS-06 Smart Camera Connectors
Connector A – M12 12-Pin Plug – Power, I/O, and Serial
Figure A–1 shows the M12 12-pin plug at connector A.
FIGURE A–1. VS-06 Connector A – M12 12-Pin Plug
Table A–1 describes the M12 12-pin plug signals.
TABLE A–1. VS-06 Connector A – M12 12-Pin Plug
A-2
Pin
Function
1
Trigger
2
Power
3
Default
4
Input 1
5
Output 1
6
Output 3
7
Ground
8
Input Common
9
Host RxD
10
Host TxD
11
Output 2
12
Output Common
VS-06 Smart Camera Guide
VS-06 Smart Camera Connectors
Connector B – M12 8-Pin Socket – Ethernet
Figure A-2 shows the M12 8-pin socket at connector B.
FIGURE A–2. Connector B – M12 8-Pin Socket
Table A-2 describes the M12 8-pin socket signals.
TABLE A–2. Connector B – M12 8-Pin Socket
Function
1
Terminated
2
Terminated
3
Terminated
4
TX (–)
5
RX (+)
6
TX (+)
7
Terminated
8
RX (–)
VS-06 Smart Camera Guide
A
Connector Pinouts
Pin
A-3
Appendix
A-4
A
Connector Pinouts
VS-06 Smart Camera Guide
B
APPENDIX B
Cable Specifications
B
Cable Specifications
This section contains information about VS-06 Smart Camera cables.
Note: Cable specifications are published for information only. di-soric
does not guarantee the performance or quality of cables provided by
other suppliers.
TABLE B–1. Cable Part Numbers and Descriptions
Part Number
Descriptions
VKHM-Z-5/RJ45
Cable, Host, Ethernet, M12 8-pin Plug to RJ45, 5m
VSID-PS-24V-ES
Power Supply, M12 12-pin Socket, 1.3 m
VSID-IB-ES
Interface box for Ethernet devices
VS-06 Smart Camera Guide
B-1
Appendix
B
Cable Specifications
VKHM-Z-5/RJ45 Cable, Host, Ethernet, M12 8-pin Plug to RJ45,
5m
The VKHM-Z-5/RJ45 Cable, Host, Ethernet, M12 8-pin Plug to RJ45, 5 m
is a meter cable with an 8-pin M12 connector on one end and a standard
RJ45 connector on the other end.
Figure B-1 shows the VKHM-Z-5/RJ45 Cable, Host, Ethernet, M12 8-pin
Plug to RJ45, 5m.
FIGURE B–1. Cable, Host, Ethernet, M12 8-pin Plug to RJ45, 1 m
M12 8-Pin Plug
RJ45
Important: Be sure that the retaining clip on the RJ45 connector has
locked into place in the Ethernet receptacle on the PC and is not being
impeded by the rubber housing.
B-2
VS-06 Smart Camera Guide
VSID-PS-24V-ES Power Supply, M12 12-pin Socket, 1.3 m
The VSID-PS-24V-ES Power Supply, M12 12-pin Socket, 1.3 m is a 90254 VAC, +24VDC power supply.
Figure B-3 shows the VSID-PS-24V-ES Power Supply, M12 12-pin
Socket, 1.3 m.
FIGURE B–2. Power Supply, M12 12-pin Socket, 1.3 m
M12 12-Pin Socket
VS-06 Smart Camera Guide
B-3
B
Cable Specifications
VSID-PS-24V-ES Power Supply, M12 12-pin Socket, 1.3 m
Appendix
B-4
B
Cable Specifications
VS-06 Smart Camera Guide
C
C
APPENDIX C
General Specifications
This section contains specifications and dimensions for the VS-06 Smart
Camera and VS-06 C-Mount Smart Camera.
TABLE C–1. General Specifications
Part Number
Sensor
VS-06-BM215-ES
VS-06-BM230-ES
VS-06-BM245-ES
VS-06-BC3-15- VS-06-BC3-30- VS-06-BC3-45ES
ES
ES
WVGA (752 x 480) CMOS
Sensor Color
SXGA (1280 x 960) CCD
Monochrome
Height
1.59” (40.5 mm)
Width
2.27” (57.6 mm)
Depth
3.79” (96.3 mm)
Weight
Power
Connector
10 oz. (280 g)
5-28VDC, 200mV p-p max ripple, 170mA at
24VDC (typ.), 15.5 watts (max.)
5-28VDC, 200mV p-p max ripple, 135mA at
24VDC (typ.), 13 watts (max.)
M12 12-pin Ultra-Lock (Connector A) and M12 8-pin Ultra-Lock (Connector B)
Lens Type
Built-In Liquid Lens
Communications
RS-232 or Ethernet
VS-06 Smart Camera Guide
C-1
Appendix
C
General Specifications
TABLE C–1. General Specifications (Continued)
Illumination
High Output LEDs: .564mW, 470, 525, 617nm
Laser Output
5.0mW max.; Type: Laser diode; Output Wavelength: 655nm nominal; Operating Life:
50,000 hours @ 25° C; Safety Class: Class 1 Visible Laser
Indicators
LEDs: Trigger, Pass, Fail, Mode, Power, Network Activity, I/O; Green Flash: Pass; Red X:
Target
I/O
Learn/Trigger: Bi-directional, optoisolated, 4.5–28V rated, (13mA at 24VDC); Outputs (1, 2,
3): Bi-directional, optoisolated, 1–28V rated, (ICE <100mA at 24VDC, current limited by user)
Image
Acquisition
Focal Range
Shutter
Operating
Temperature
Storage
Temperature
Humidity
Compliance
C-2
Progressive scan, square pixel
1” (33 mm) to ∞ (liquid lens autofocus - standard VS-06 only)
6μs to 100ms (1/150,000 to 1/10) Default =
666μs (1/1,500)
25μs to 100ms (1/40,000 to 1/10) Default =
400μs (1/2,500)
0° to 45° C (32° to 113° F)
0° to 50° C (32° to 122° F)
–29° to 70° C (–20° to 158° F)
Up to 90% (non-condensing)
CDRH, FCC, UL/cUL, CE (General Immunity for Light Industry: EN 55024:1998 ITE
Immunity Standard; Radiated and Conducted Emissions of ITE Equipment: EN 55022:98
ITE Disturbances), CB, BSMI
VS-06 Smart Camera Guide
TABLE C–1. Specifications (Continued)
VS-06E-BC315-ES
VS-06E-BC330-ES
VS-06E-BC345-ES
Sensor
1/3”, SXGA (1280 x 960) CCD, up to 20 fps
Sensor Color
VS-06E-BM215-ES
VS-06E-BM245-ES
1.59” (40.5 mm)
Width
2.27” (57.6 mm)
Depth
3.79” (96.3 mm)
Weight
10 oz. (280 g)
5-28VDC, 200mV p-p max ripple, 170mA at
24VDC (typ.)
5-28VDC, 200mV p-p max ripple, 135mA at
24VDC (typ.)
Connector
M12 12-pin Ultra-Lock (Connector A) and M12 8-pin Ultra-Lock (Connector B)
Lens Type
Built-In Liquid Lens (standard VS-06 only)
Communications
Ethernet
Illumination
High Output LEDs: .564mW, 470, 525, 617nm
Laser Output
5.0mW max.; Type: Laser diode; Output Wavelength: 655nm nominal; Operating Life:
50,000 hours @ 25° C; Safety Class: Class 1 Visible Laser
Indicators
LEDs: Trigger, Pass, Fail, Mode, Power, Network Activity, I/O; Green Flash: Pass; Red X:
Target
Discrete I/O
Learn/Trigger: Bi-directional, optoisolated, 4.5–28V rated, (13mA at 24VDC); Outputs (1, 2,
3): Bi-directional, optoisolated, 1–28V rated, (ICE <100mA at 24VDC, current limited by user)
Image
Acquisition
Progressive scan, square pixel
Focal Range
Shutter
Operating
Temperature
1” (33 mm) to ∞ (liquid lens autofocus - standard VS-06 only)
6μs to 100ms (1/150,000 to 1/10) Default =
666μs (1/1,500)
25μs to 100ms (1/40,000 to 1/10) Default =
400μs (1/2,500)
0° to 45° C (32° to 113° F)
0° to 50° C (32° to 122° F)
Storage
Temperature
–29° to 70° C (–20° to 158° F)
Humidity
Compliance
Up to 90% (non-condensing)
CDRH, FCC, UL/cUL, CE (General Immunity for Light Industry: EN 55024:1998 ITE
Immunity Standard; Radiated and Conducted Emissions of ITE Equipment: EN 55022:98
ITE Disturbances), CB, BSMI
VS-06 Smart Camera Guide
C
1/3”, WVGA (752 x 480) CMOS, up to 60 fps
Monochrome
Height
Power
VS-06E-BM230-ES
C-3
General
Specifications
Part Number
Appendix
C
General Specifications
TABLE C–1. Specifications (Continued)
Part Number
Sensor
VS-06-BC3-00- VS-06E-BC3ES
00-ES
1/3”, SXGA (1280 x 960)
CCD, up to 20 fps
Sensor Color
VS-06-BM200-ES
VS-06E-BM200-ES
VS-06-BM400-ES
1/3”, WVGA (752 x 480)
CMOS, up to 60 fps
VS-06E-BM400-ES
2/3”, WUXGA (2048 x 1088)
CMOS, up to 48 fps
Monochrome
Height
4.03” (102.3 mm)
Width
2.27” (57.6 mm)
Depth
1.59” (40.5 mm)
Weight
11 oz. (320 g)
Power
5-28VDC, 200mV p-p max
5-28VDC, 200mV p-p max
5-28VDC, 200mV p-p max
ripple, 170mA at 24VDC (typ.) ripple, 135mA at 24VDC (typ.) ripple, 140mA at 24VDC (typ.)
Connector
M12 12-pin Ultra-Lock (Connector A) and M12 8-pin Ultra-Lock (Connector B)
Lens Type
C-Mount Lens
Communications
Ethernet
Illumination
External Illumination Required
Laser Output
N/A
Indicators
LEDs: Trigger, Pass, Fail, Mode, Power, Network Activity, I/O
Discrete I/O
Learn/Trigger: Bi-directional, optoisolated, 4.5–28V rated, (13mA at 24VDC); Outputs (1, 2,
3): Bi-directional, optoisolated, 1–28V rated, (ICE <100mA at 24VDC, current limited by user)
Image
Acquisition
Progressive scan, square pixel
Focal Range
Depends on lens
Shutter
6μs to 100ms (1/150,000 to
1/10) Default = 666μs
(1/1,500)
Operating
Temperature
0° to 45° C (32° to 113° F)
Storage
Temperature
Humidity
Compliance
C-4
25μs to 100ms (1/40,000 to
1/10) Default = 400μs
(1/2,500)
25μs to 100ms (1/40,000 to
1/10) Default = 400μs
(1/2,500)
0° to 50° C (32° to 122° F)
–29° to 70° C (–20° to 158° F)
Up to 90% (non-condensing)
CDRH, FCC, UL/cUL, CE (General Immunity for Light Industry: EN 55024:1998 ITE
Immunity Standard; Radiated and Conducted Emissions of ITE Equipment: EN 55022:98
ITE Disturbances), CB, BSMI
VS-06 Smart Camera Guide
General
Specifications
C
VS-06 Smart Camera Guide
C-5
Appendix
C
General Specifications
Dimensions
FIGURE C–1. VS-06 Smart Camera Dimensions
Note: Nominal dimensions shown. Typical tolerances apply.
C-6
VS-06 Smart Camera Guide
Dimensions
C
General
Specifications
FIGURE C–2. VS-06 C-Mount Smart Camera Dimensions
Note: Nominal dimensions shown. Typical tolerances apply.
VS-06 Smart Camera Guide
C-7
Appendix
C
General Specifications
Field of View and Working Distance
C-8
VS-06 Smart Camera Guide
D
D
APPENDIX D
Web HMI for VS-06
This appendix contains information about VS-06 support for Visualization
HMIs.The VS-06 features a built in runtime monitoring web page that can
be viewed from any supported browser on the same network. Supported
browsers include:
•
Internet Explorer 5.0 or later
•
Firefox 3.0 or later
VS-06 Smart Camera Guide
D-1
Appendix
D
Web HMI for VS-06
A built-in runtime HTML monitoring page suitable for HMI Panels that
support Internet Explorer 5.0 or later browser such as the SIMATIC M277
Panel is available on the VS-06. Note that the runtime page can also be
displayed with the Firefox or Safari web browsers.
The Runtime Page shows an image from the VS-06, along with inspection
counters and buttons to control certain aspects of the display. A title bar
displays the camera name, ip address and resolution. Options are
available to change if and where the counters, buttons, and titlebar are
displayed. Additionally, up to 10 results values from the job can be
displayed along with each image. These values can either be overlayed
over the image, or shown as a tabular report underneath the image.
All settings and options are set by the user via a series of option pages
which can appear over the main display. All parameters are saved as
cookies in the web browser environment, so that the next time the
Runtime Page is loaded for that device, the layout and settings are
retained.
The Runtime Image Page is accessed via a URL which contains the IP
address of the camera, and optional parameters. The default page is
accessed by simply specifying the IP address of the camera in a web
browser, for example:
http:// 161.218.121.58 (example only, actual IP address of the VS-06
should be used)
D-2
VS-06 Smart Camera Guide
If no previous settings have been set by the user, the display will be
similar to the following:
Web HMI for VS-06
D
VS-06 Smart Camera Guide
D-3
Appendix
D
Web HMI for VS-06
The default behavior is:
•
Images and counters are for the first inspection in the job
•
All images (pass & fail) are shown
•
The display is automatically refreshed at regular intervals (auto=on)
•
Graphics are overlaid on the image (note: not all graphics are
available)
•
A border is drawn around the image signifying the status of the
inspection: green=pass, red=fail
The web page includes the following elements:
D-4
•
Title Bar specifying the name of the camera, IP address, and job
(avp) filename. Note that the file extension (.avp) is removed from the
displayed filename.
•
Failures Push Button – when this button is selected, only images
related to failed inspections are displayed
•
Auto Push Button – when this button is selected, the image and
counters are updated automatically. If the button is not selected, both
the image and counters are frozen.
•
Refresh Push Button – pushing this button manually updates the
image and counters
•
Status – the run status of the inspection – RUNNING or STOPPED
VS-06 Smart Camera Guide
Counters – the Total, Pass, Fail and Alarm counters are shown for
the selected inspection
Adding Options to the Base URL
An option can be specified by adding it to the end of the URL as follows:
http://ip_address/?option=value
Note the question mark “?” separating the URL from the optional
parameter(s).
Additional options are specified by separating them with the ampersand
“&” character.
http://ip_address/?option1=value1&option2=value2&option3=value3
Basic Options
NOTE: Some basic options can be changed by specifying optional values
at the end of the URL. A much richer superset of these options can be
configured by using the Settings Pages described below. It is possible to
completely control the behavior of the Runtime Page without the use of
optional parameters in the URL.
The graphics overlay can be turned on or off by using the “graphics” URL
option. This is a setting that can have the value “on” or “off”. As an
example, to turn the display of graphics off, the web page can be
launched with the following URL:
http:// 161.218.121.58/?graphics=off
VS-06 Smart Camera Guide
D-5
D
Web HMI for VS-06
•
Appendix
D
Web HMI for VS-06
Note: ROI graphics are not produced by applications created by
AutoVision. They are displayed for applications created in VisionScape
FrontRunner.
Layout Options
The overall layout of the Runtime Page can be configured. To change the
layout, use the Settings screens as described in the next section. The
following shows a default configuration:
D-6
VS-06 Smart Camera Guide
The following illustrates that the layout has been changed to position the
counters at the top, shown without titles to save room. Additionally, an
Options button now appears in the right side area.
Another example with buttons and counters at the top:
VS-06 Smart Camera Guide
D-7
D
Web HMI for VS-06
Buttons, status, and counters appear to the right of the image area. The
buttons are size for use via a touch screen.
Appendix
D
Web HMI for VS-06
It is also possible to hide all elements except the image.
Settings Pages
All of the options and settings can be configured by using the settings
pages. By default, there is no “Settings” button, so to show the settings
pages, the URL should be specified with the “setopt=1” parameter as
follows:
http://ip_address/?setopt=1
This will display the Runtime Page overlayed with the Options Setup page
as follows:
The tabs at the top of the screen can be used to navigate between the
several setup pages. To close the setup screens and return to the main
display, use the close button (“X”) at the upper right corner.
D-8
VS-06 Smart Camera Guide
D
Web HMI for VS-06
The Layout page controls many layout features, which are organized into
groups. Selecting the Modes group results in the following options being
displayed:
Refer to the table below for a description of the various settings. The
other groups of settings appear as follows:
Image Display:
VS-06 Smart Camera Guide
D-9
Appendix
D
Web HMI for VS-06
Buttons:
Counters and Status:
Extra Settings:
D-10
VS-06 Smart Camera Guide
D
Web HMI for VS-06
As each option is checked or unchecked, the effect can be seen
immediately by observing the layout of the Runtime Page shown behind
the Options Setup Page.
VS-06 Smart Camera Guide
D-11
Appendix
D
Web HMI for VS-06
Clicking the Save button will save these settings so that they become the
default behavior the next time the page is launched.
Clicking the Defaults button will reset the stored settings to the original
defaults the next time the page is launched.
The Close button (“X” in upper right corner) will return to the main
Runtime Page.
D-12
VS-06 Smart Camera Guide
The Report Tab brings up the following Report Setup screen:
Web HMI for VS-06
D
Data Values from datums in the selected inspection can be formatted and
overlaid on the displayed image or shown in a table below the image. This
is specified by assigning one of 10 data report slots. If overlayed on the
image, each of these slots will represent a row in the display area, which
is evenly split into 10 equal sized rows. The spacing will depend on the
overall size of the display area, which in turn is dependant on the
dimensions of the browser window. If the report is shown in list form, each
slot corresponds to one of 10 rows.
Selecting a slot to configure results in the following display:
VS-06 Smart Camera Guide
D-13
Appendix
D
Web HMI for VS-06
At a minimum the path to a datum must be specified. The inspection is
implied, so it is not in the path. In the example above, the path
Snapshot1.Blob1.BlbFlt1.CentPt is specified in the first slot.
This would display the value overlaid over the image near the top of the
image display area. If D5 had been used instead, it would appear closer
to the center.
By default, the displayed format will be appropriate for the datum type
requested. However the format can be changed by specifying a printf
style format string.
The format codes must be consistent with the expected data types. If the
result is an integer, then a %d format is expected, floating point numbers
require %f type formats. The list of format codes is not documented here,
refer to printf documentation.
For array values, each element of the array will be passed in turn to the
format string. For example, if a PointDm is being used, there are four
expected array values corresponding to X, Y, angle, scale. (The order is
the same as for variant access via VB). An example of using a format for
PointDm:
(%.2f,%.2f) angle=%.1f scale=%.1f
This will display a result similar to:
(23.23,45.10) angle=3.2 scale=1.0
The later array values can be considered optional and can be omitted if
desired. For example, to display just the x and y values of a PointDm, use
the format string:
center = (%6.2f, %6.2f)
This will display a result similar to:
center = (134.22, 452.12)
If no format string is specified, an appropriate default format is used. For
example, for a LineDm, by default the datum value will be displayed as:
A = value, B = value, C = value
D-14
VS-06 Smart Camera Guide
Style
style:value,style:value,…
For example, set the text size to 9pt, and align to the right, the following
can be specified:
size:9pt,align:right
Possible style values:
It is permitted to use CSS identifiers to alter other display aspects. For
example, the following will show a red background color for the text:
backgroundColor:red
To set some of the more common styles, the combo boxes for Style, Size,
Color, and Opacity can be used. The styles field will automatically be
updated.
VS-06 Smart Camera Guide
D-15
D
Web HMI for VS-06
The default display of a report value is left justified, and uses a default
font and color. If desired, all visual aspects of the displayed report value
can be modified. If the Style field is used, it has the format:
Appendix
D
Web HMI for VS-06
Selecting the URL tab brings up the following display:
The displayed URL can be copied and then used in a browser window to
completely replicate the current setup.
Additional Notes:
D-16
•
Line breaks can be inserted into format strings by using embedded
HTML codes. To introduce a line break, use “<br />”
•
Commands and options are case sensitive. This is a limitation of
javascript and CSS.
•
A new Frontrunner feature allows copying a path of a datum to the
clipboard. Right-click the Datum name in the DatumGrid display, and
select the “Copy path to clipboard” option.
VS-06 Smart Camera Guide
E
APPENDIX E
Allen-Bradley PLC
Setup via EDS
E
Allen-Bradley PLC Setup
via EDS
This section describes how to set up an Allen-Bradley PLC via EDS file
for use with the VS-06.
VS-06 Smart Camera Guide
E-1
Appendix
E
Allen-Bradley PLC Setup via EDS
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
This section was created and run on the following Allen Bradley/Rockwell components:
•
RSLogix 5000 Version 20.00.00 (CPR 9 SR 5)
•
756-L61 ControlLogix5561 Controller, firmware rev 20.11
•
1756-ENBT/A EtherNet/IP interface card, firmware rev 4.1
Run the Rockwell “EDS Hardware Installation Tool”.
E-2
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Select Add:
Allen-Bradley PLC
Setup via EDS
E
Select Browse:
VS-06 Smart Camera Guide
E-3
Appendix
E
Allen-Bradley PLC Setup via EDS
Navigate to the VS-06 EDS file, then Open it. The default install location is C:\disoric\Vscape\Firmware\eds\VS-06.
Keep clicking Next > until the Finish button is displayed:
E-4
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Click Finish:
Allen-Bradley PLC
Setup via EDS
E
Open RSLogix 5000 v20 and create the I/O Configuration for the base system, including
the system’s Ethernet interface:
VS-06 Smart Camera Guide
E-5
Appendix
E
Allen-Bradley PLC Setup via EDS
Right click on Ethernet and select New Module:
The Select Module Type dialog is displayed:
E-6
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Clear the Module Type Vendor Filters:
Allen-Bradley PLC
Setup via EDS
E
VS-06 Smart Camera Guide
E-7
Appendix
E
Allen-Bradley PLC Setup via EDS
Scroll down the Module Type Vendor Filters until di-soric comes into view, then select disoric:
E-8
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Click the required camera and select Create:
Allen-Bradley PLC
Setup via EDS
E
The New Module dialog is displayed. Type a unique name for this camera and its IP
address:
VS-06 Smart Camera Guide
E-9
Appendix
E
Allen-Bradley PLC Setup via EDS
Go to the Connection tab and set the Requested Packet Interval required for the
application:
E-10
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
E
Allen-Bradley PLC
Setup via EDS
Click OK, verify the camera was added to the Ethernet network, then open the Controller
Tags to verify that :I and :O tag sets were created:
Open the Main Routine:
VS-06 Smart Camera Guide
E-11
Appendix
E
Allen-Bradley PLC Setup via EDS
Right-click rung 0, and select Import Rungs:
Navigate to the VS-06 32-000003-lx.L5X file and select Import. The default install directory
is C:\di-soric\Vscape\Tutorials and Samples\VS-06\EIP Demo.
E-12
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
The Import Configuration dialog is displayed:
Allen-Bradley PLC
Setup via EDS
E
Select Tags:
VS-06 Smart Camera Guide
E-13
Appendix
E
Allen-Bradley PLC Setup via EDS
In the Final Name column, click on VS-06:I, then click on the down arrow that shows up on
the right:
Double-click on the Read MV:I (or whatever name that was assigned to the device) tag:
E-14
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
E
Allen-Bradley PLC
Setup via EDS
In the “Final Name” column, click on Read_MV:O, then click on the down arrow that shows
up on the right:
Double click on the Read_MV:O (or whatever name that was assigned to the device) tag:
VS-06 Smart Camera Guide
E-15
Appendix
E
Allen-Bradley PLC Setup via EDS
Click OK and the Main Routine and User Defined tags will be populated:
Delete any empty rungs (check rung 0):
Download the project to the PLC:
E-16
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Put the PLC into Run Mode:
Allen-Bradley PLC
Setup via EDS
E
Open the Program Tag window and select “Monitor Tags”:
VS-06 Smart Camera Guide
E-17
Appendix
E
Allen-Bradley PLC Setup via EDS
Expand Read_MV_IO_user so that the Echo in the .IN.Status and .OUT.Control structures
are visible:
E-18
VS-06 Smart Camera Guide
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Change .OUT.Control.Echo to non-zero:
Verify Read_MV_IO_user.IO.IN.Status.Echo is the same value as the .OUT.Control.Echo:
This confirms that the PLC and camera have successful two-way communication.
The demo code expects a demo vision job to be loaded on the camera, which populates
the following input tags (camera to PLC) with vision tool results:
•
.IN.bool.bool1, bool2, and bool3
•
.IN.long.long1
•
.IN.float.float1
•
.IN.string.string1
The demo code will operate the Control and Status signals of the camera regardless of
whatever vision job is loaded. For a more detailed overview of the demo code and vision
job, please see the associated appendix Demo PLC Code.
To send a trigger to the camera, scroll to Read_MV_IO_user.Control.Trigger:
VS-06 Smart Camera Guide
E-19
Allen-Bradley PLC
Setup via EDS
E
Appendix
E
Allen-Bradley PLC Setup via EDS
Set the Trigger to 1. This causes the demo code to trigger the camera, process the new
inspection data, record the results in the Read_MV_demo_xxxx tags, and clear the
DataValid status signal.
The user of the demo code can know that the camera was triggered when the Trigger
control changes to 0. All processing is done when the counter Read_MV_dv_fall_count
increments, along with the pass/fail counters in the Read_MV_demo_xxxx tags. For example:
E-20
VS-06 Smart Camera Guide
F
APPENDIX F
Allen-Bradley PLC
Setup via Generic
F
Allen-Bradley PLC Setup
via Generic Ethernet
Module
This section describes how to set up an Allen-Bradley PLC via Generic
Ethernet Module for use with the VS-06.
VS-06 Smart Camera Guide
F-1
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Prepare the PLC: Integrate the Camera into a PLC Environment
This section assumes you are using an Allen Bradley PLC with Rockwell RSLogix 5000 v16
or newer. RSLogix v19 and v20 may look slightly different than the screen shots shown, but
the integration process is still valid.
Create the I/O Configuration for the base system, including the system’s Ethernet interface:
Add the camera by right-clicking on the Ethernet interface, and select “New Module”:
F-2
VS-06 Smart Camera Guide
Select “ETHERNET-MODULE Generic Ethernet Module”, and click OK:
Allen-Bradley PLC
Setup via Generic
F
Configure the following fields:
“Name” = A useful name to remember the unit. The example here is “Read_MV”.
“IP Address” = The IP Address of the camera
“Comm Format” = “Data – DINT”
“Input” “Assembly Instance” = 102
“Input” “Size” = 80
“Output” “Assembly Instance” = 114
“Output” “Size” = 80
“Configuration” “Assembly Instance” = 1
“Configuration” “Size” = 0 (none)
Click OK when done.
VS-06 Smart Camera Guide
F-3
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Example:
Configure the “Required Packet Interval (RPI)” and click OK.
F-4
VS-06 Smart Camera Guide
F
Allen-Bradley PLC
Setup via Generic
10 ms is the minimum allowed by the camera, 20 ms or higher is recommend, as required
by the application:
Double-click on the “Controller Tags” item, and verify VH’s :I and :O tags appear in the
Controller Tags window:
VS-06 Smart Camera Guide
F-5
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Open the “Main Routine”:
Right-click on the top rung and select “Import Rung”:
Navigieren Sie zu dem VS-06 32-000003 lx.L5X-Datei und wählen Sie Importieren. Das
Standard-Installationsverzeichnis
F-6
VS-06 Smart Camera Guide
ist C: \ di-soric \ Vscape \ Tutorials und Samples \ VS-06 \ EIP Demo:
Allen-Bradley PLC
Setup via Generic
F
At the “Import Configuration” window, find the Module Name that was assigned to the
Generic Module. Here the module name is “Read_MV”:
VS-06 Smart Camera Guide
F-7
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Click on Read_MV:I, then click on the down-arrow, then double click on the “Read_MV:I”
that appears below it:
Note the “*” that appears on the far left of the dialog box for the Read_MV:I line:
Click on Read_MV:O, then click on the down-arrow, then double click on the
“Read_MV:O” that appears below it:
F-8
VS-06 Smart Camera Guide
Note the “*” that appears on the far left of the dialog box for the Read_MV:O line:
Allen-Bradley PLC
Setup via Generic
F
Click OK.
Delete any empty rungs (rung 0 may be empty):
The tags and main program are now configured sufficiently to test communication with the
camera.
VS-06 Smart Camera Guide
F-9
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Select the control button next to “Offline”, and select “Download”:
F-10
VS-06 Smart Camera Guide
Once the program has downloaded, make sure the PLC is in Run Mode:
Allen-Bradley PLC
Setup via Generic
F
To open the Program Tags, double-click on “Program Tags”, then select the “Monitor Tags”
tab at the bottom of the tag window:
VS-06 Smart Camera Guide
F-11
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Expand Read_MV_IO_user so that the .IN.Status and .OUT.Control structures are visible,
then scroll the window so Read_MV_IO_user.OUT.Control.Echo is visible:
F-12
VS-06 Smart Camera Guide
Change .OUT.Control.Echo to non-zero:
Allen-Bradley PLC
Setup via Generic
F
Scroll the window so Read_MV_IO_user.IO.IN.Status.Echo is visible, and verify it is the
same value as the .OUT.Control.Echo:
VS-06 Smart Camera Guide
F-13
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
This confirms that the PLC and camera have successful two-way communication.
To send a trigger to the camera, scroll to Read_MV_IO_user.Control.Trigger:
Set the Trigger to 1. This causes the demo code to trigger the camera, process the new
inspection data, record the results in the Read_MV_demo_xxxx tags, and clear the
DataValid status signal. The user can know that the camera was triggered when the
Trigger control changes to 0. The user can know that all processing is done when the
F-14
VS-06 Smart Camera Guide
counter Read_MV_dv_fall_count increments, along with the pass/fail counters in the
Read_MV_demo_xxxx tags. For example:
Allen-Bradley PLC
Setup via Generic
F
VS-06 Smart Camera Guide
F-15
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Parameterize the Camera
Open the Read_MV_IO_user.OUT.long, float, and string tags and verify they are
configured as follows:
This configures the Measure (float101 and float102), Decode (string101) and Count Blob
(long101 and long102) tools in the same way they were configured in AutoVision during
Try Out.
Note the Description column. It offers a hint for what each linked tag does for the vision job.
F-16
VS-06 Smart Camera Guide
Trigger the Camera
F
Allen-Bradley PLC
Setup via Generic
To send a trigger to the camera, scroll to Read_MV_IO_user.Control.Trigger:
Set the Trigger to 1. When the Trigger returns to a value of 0, the camera may be
retriggered.
If you connect to the camera with AutoVision, it will display a new Inspection result each
time the camera is triggered. Recall that the vision job was created with pre-defined
images to produce predictable “Passed” and “Failed” results. The camera’s illumination
lights will not flash when triggered.
The Inspection results can be seen in the PLCs’s IN tags, and well as in AutoVision. Open
the RSLogix tag window so Read_MV_IO_user.IN.Status and bool are visible.
VS-06 Smart Camera Guide
F-17
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
This example shows a “Passed” inspection, where the following tags are all 1:
IN.Status.InspStat
IN.bool.bool1 (Measure status)
IN.bool.bool2 (decode+matchcode status)
IN.bool.bool3 (count blob status)
F-18
VS-06 Smart Camera Guide
F
Allen-Bradley PLC
Setup via Generic
If you scroll down to the IN.long, float and string values, you will see the literal results of
the vision tools:
VS-06 Smart Camera Guide
F-19
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
This is equivalent to the AutoVision inspection result:
This example shows a “Failed” inspection, where every tool reports a fail:
F-20
VS-06 Smart Camera Guide
This is the Failed inspection’s literal data:
Allen-Bradley PLC
Setup via Generic
F
VS-06 Smart Camera Guide
F-21
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
This is equivalent to the AutoVision inspection report:
F-22
VS-06 Smart Camera Guide
Parameterize the Camera Again
VS-06 Smart Camera Guide
F-23
F
Allen-Bradley PLC
Setup via Generic
The Measure and Count Blob tools can be parameterized by the PLC so they always
pass. The Decode tool can be parameterized so it always fails, either due to no decode, or
a matchcode mismatch. Scroll the tag window so OUT.long, float and string are visible,
then change them as shown here:
Appendix
F
Allen-Bradley PLC Setup via Generic Ethernet Module
Trigger the Camera Again
Trigger the camera twice, and you will see the Status results stay the same for all triggers:
bool2 (decode+matchcode status) = 0
Why: Decode+Matchcode status always fails because the matchcode has been changed
to “wrong code”, or there is no decode.
bool1 (Measure status) and bool3 (count blob status) = 1
Why: The inspected values are now in tolerance.
InspStat = 0
Why: The Decode tool fails, so the overall Inspection result is a Fail.
PLC tags:
This concludes the EtherNet/IP demo.
F-24
VS-06 Smart Camera Guide
G
APPENDIX G
Demo PLC Code
G
Demo PLC Code
This section describes how to use di-soric demo PLC code with a vision
job and camera target.
The EIP demo files can be found where AutoVision is installed, in the folder
C:\di-soric\Vscape\Tutorials and Samples\VS-06\EIP demo. Open the
EIP_demo.avp with AutoVision and download it to the camera.
During PLC integration, import the 32-000003-lx.L5X file to create the
camera’s demo tags and ladder logic.
VS-06 Smart Camera Guide
G-1
Appendix
G
Demo PLC Code
Glossary of Terms
The following terms are used in the description of di-soric demo PLC
program.
Camera
The di-soric Smart Camera used in this application, which has an
EtherNet/IP communication interface.
User App
The PLC logic code written by the end user or system integrator.
Demo Code
The PLC logic code distributed by di-soric that can be imported into the
PLC’s ladder logic area. It encapsulates most of the device Control and
Status management.
The demo code expects a demo vision job loaded on the camera.
However, the demo code will operate whether or not the demo vision job
is loaded on the camera.
Activate / Set High
Writing a 1 value to a single Control bit, or any other bool bit.
Active
A Control, Status, bool, or PLC logic “contact” in a 1 state.
Clear
A Control, Status, bool, or PLC logic “contact” in a 0 state.
One Shot
PLC tag write operation that is performed once, typically in reaction to an
event. After a one shot operation, the PLC logic does not write to the
same tag again unless another event occurs.
G-2
VS-06 Smart Camera Guide
Demo Setup
The EIP demo files can be found where AutoVision is installed, where the
default folder is C:\di-soric\Vscape\Tutorials and Samples\VS-06\EIP
demo.
1.
Open EIP_demo.avp with AutoVision.
2.
To use pre-defined images, select the camera icon on the Camera tool.
3.
Browse to the EIP demo folder, select it, and click OK.
VS-06 Smart Camera Guide
G-3
Demo PLC Code
G
Vision Job Setup
Appendix
G
Demo PLC Code
After the EIP demo folder has been enabled for image load, the
camera icon will change to a folder:
4.
While in Edit mode, Try Out can be used to get an understanding of
what to expect after the job is sent to the camera.
Before Try Out can be effective, the Measure, Decode, and Count
Tool parameters must be specified. After job download, the tool
parameters will be supplied by the PLC.
Measure Tolerance:
Decode Matchstring:
Count Tolerance:
With these tool parameter configured as shown, Try Out will show the
following Pass/Fail results.
G-4
VS-06 Smart Camera Guide
Fail:
Demo PLC Code
G
Pass:
5.
Download the job to the camera.
6.
Add the camera and demo code to the PLC environment (see the
next section).
PLC Demo Code Setup
During PLC integration, import the 32-000003-lx.L5X file, found in the EIP
demo folder, to create the camera’s demo tags and ladder logic. Please
refer to Allen-Bradley PLC Setup.
Description of PLC Tags
Read_MV_demo_mode
Purpose
This is intended for demonstration purposes only, to modify the operation
of the demo code. It allows the first-time user to control the device directly
VS-06 Smart Camera Guide
G-5
Appendix
G
Demo PLC Code
with no assistance from the demo code, or allow the demo code to
manage the Control and Status signals fully.
The demo mode tag takes three different values, putting the demo code
into one of three modes of operation:
•
Exchange IO data only
•
Actively operate device controls, status, and demo data
•
Automatically trigger the device after one second of idle time
User App Method
User app can set the demo mode with one of three values to define the
demo code’s mode of operation.
0=Exchange IO data only
In this mode, the user directly accesses the Read_MV_IO_internal tag
set. The demo code only exchanges data with the camera, doing nothing
to control the device or respond to events from it.
1=Operate device controls and respond to device events
This is the default mode of the demo code. In this mode, the user app
accesses the Read_MV_IO_user tag to control and monitor the camera.
The user app must not access the Read_MV_IO_internal tag set.
In this mode, the user activates the controls in
Read_MV_IO_user.OUT.Control (Trigger, ResetCount, GoOnline,
GoOffline, ResetError, ExeCmd), and the demo code handles the rest.
2=Auto-trigger
In this mode, the demo code fully manages the Control and Status
signals, the same as when the mode is set to 1. It also activates the
camera’s trigger after one second of idle time. The timer used to drive the
trigger is Read_MV_trigger_delay_timer.
Demo Code Usage
Depending on the mode, the demo code will run the appropriate level of code.
•
G-6
In mode 0, only the IO exchange rungs are executed. All others are
bypassed (ladder jmp).
VS-06 Smart Camera Guide
In mode 1, the auto-trigger rungs are bypassed. This is the default
mode of the demo code.
•
In mode 2, all rungs are executed.
Read_MV_IO_user
Purpose
User-accessible IO data for the camera. The user app reads and writes
these IO tags, and the demo code handles the actual on-the-wire control
of the camera.
User App Method
Activate a Control by setting its value to 1.
The user app can determine that the Control is done when the Control is
clear (demo code changes the Control to a bit/bool value of 0). Do not
attempt to activate a Control unless it is clear.
The user app should activate the Controls using one-shot writes. The use
app should not continuously hold a Control in an active state. Holding a
Control in an active state will prevent the demo code from notifying the
user app that the Control operation is complete by clearing the Control.
Usually, when a Control is clear (0), the camera is ready for the Control to
be activated again. Please see the Specific Control Guidelines and
Specific Status Guidelines below for qualifications.
Demo Code Usage
The demo code waits for the user app to activate a Control. When the
user app activates a Control, the demo code handles all handshaking and
confirmation that the Control operation is performed by the camera. When
the operation is complete, the demo code clears the Control back to 0.
VS-06 Specific Control Guidelines
GoOnline and GoOffline
In order to take the camera Online and Offline, only one of these Controls
can go active (change from 0 to 1), and be active, at any given time.
VS-06 Smart Camera Guide
G-7
G
Demo PLC Code
•
Appendix
G
Demo PLC Code
ResetCount
After the user app activates ResetCount, the demo code will clear
ResetCount when the operation is complete. The next Inspection output
will be #1 (as can be seen if AutoVision is connected to the camera in run
mode).
VS-06 Trigger
Do not trigger the camera unless the TriggerReady Status is active. If the
Trigger goes active when TriggerReady is not active, the demo code
increments the counter Read_MV_trigger_err_count, and immediately
clears the Trigger Control, without attempting to trigger the camera.
After the user app activates the Trigger, the demo code will clear the
Trigger when the camera indicates it has accepted the Trigger.
Do not re-trigger the camera until DataValid in the Status register goes
active, all Inspection data has been processed, and the DataValid is
cleared using the ResetDataValid Control.
ResetDataValid
When the user app sees DataValid go active, it should process the
Inspection data, then clear DataValid by activating ResetDataValid.
See Data Valid for more details.
ResetError
To clear the Error Status, activate ResetError.
ExeCmd, CmdCode, CmdArg
These Controls can be used to perform a job change, and query the
active job slot. Refer to the CmdCode section of the EIP chapter for
available command codes, command result codes, and a diagram of
G-8
VS-06 Smart Camera Guide
command execution. The demo code includes tags with pre-defined
CmdCode and CmdCodeRslt definitions:
The ExeCmd, CmdCode, and CmdArg controls are used in combination
with these Status signals:
The demo code records the final result of the command operation by
copying CmdCode, CmdArg, CmdCodeRslt and CmdRet to the
following tags:
The demo code will automate the command process when
Read_MV_demo_mode is 1, which is the default value at program
startup, similar to how it assists the Triggering and DataValid Controls.
The PLC integrator can initiate command operation by accessing the
demo code’s Read_MV_IO_user tag set for Control and Status signals.
While a command operation is active, the demo code forces all Control
signals to an inactive state, except for the Echo. No Controls can be
activated until the command operation is completed. To verify the camera
is still “alive” during command execution, the Control.Echo can be
incremented, and the Status.Echo will update accordingly.
When the demo code automates the command process, the PLC
integrator is responsible for the following steps:
VS-06 Smart Camera Guide
G-9
Demo PLC Code
G
Appendix
G
Demo PLC Code
1.
Deactivate all Controls and clear DataValid and Error status signals.
This is a “best practice” measure, to ensure that the PLC has
transitioned from a state of triggering and processing inspections, to
issuing a command.
2.
If a job change command is to be issued, populate the output tags
required to configure the new job (bool, int, long, float, string).
3.
Write the required CmdCode (see Read_MV_const_CmdCode_xxxx
tags) and CmdArg, then activate ExeCmd.
4.
Wait for ExeCmd to go inactive (per typical demo mode 1 operation).
Note that job changes can take up to a minute. While a job change
command is being executed, the Status.State tag will be 2.
5.
When ExeCmd goes inactive, verify the following:
Read_MV_CmdCodeRslt_last is 0 (Success)
Read_MV_CmdRest_last contains the returned data from the
command (if any)
Status.State has changed to 0 (Offline) or 1 (Online)
ExeCmdAck is inactive (0)
Status.Error is inactive (0)
6.
G-10
Put the camera online (if necessary), and continue with normal
runtime operation.
VS-06 Smart Camera Guide
VS-06 Specific Status Guidelines
G
Online
Demo PLC Code
The camera cannot be Triggered or generate Inspection data unless
Online is active. See the GoOnline Control.
TriggerReady
Do not attempt to trigger the camera unless TriggerReady is active.
See the description of the Trigger for more details.
TriggerAck and ResetCountAck
Used by the demo code to complete the respective operations.
VS-06 DataValid
When DataValid goes active, the user app should process the Inspection
data, then clear DataValid using the ResetDataValid control. This is
handled, by the demo code in mode 1 and 2, as a demonstration for the
user app.
If the camera’s DataValid goes active, but the user app has not cleared a
previous DataValid event, the demo code does not overwrite
Read_MV_IO_user with new Inspection data. Instead, the demo code
increments the counter Read_MV_dv_err_count. The new Inspection
data remains stranded in the Read_MV_internal tag set, and is effectively
lost.
Read_MV_trigger_count
Incremented by the demo code when a new trigger is issued to the
camera over the EtherNet/IP interface (Trigger Control activated).
Read_MV_trigger_err_count
Incremented by the demo code if the user app attempts to trigger the
camera when TriggerReady is not active.
VS-06 Smart Camera Guide
G-11
Appendix
G
Demo PLC Code
Read_MV_dv_err_count
Incremented by the demo code when new Inspection data is received
from the camera, but the user app has not cleared the previous DataValid.
Read_MV_status_err_count
Incremented by the demo code whenever the Error Status goes active.
Read_MV_demo_blob, Read_MV_demo_decode,
Read_MV_demo_InspStat, Read_MV_demo_measure
Purpose
These tags record counts and min and max values of several EIP IN data
members.
The demo code expects a demo vision job to be loaded on the camera,
and a demo target to be in the camera’s field of view. The demo PLC code
will operate without the demo vision job being loaded on the camera.
However, the data records will not be valid.
The demo vision job has the following data members linked to certain job
tools:
IN
Bool1 = Measure status (pass/fail)
Bool2 = Decode+Matchcode status (pass/fail)
Bool3 = Blob count status (pass fail)
Long1 = Blob count
Float1 = Measure value
String1 = Decode text
OUT
Long101 = Blob count minimum count tolerance
Long102 = Blob count maximum count tolerance
G-12
VS-06 Smart Camera Guide
Float101 = Measure lower tolerance
G
Float102 = Measure upper tolerance
Demo PLC Code
String101 = Matchcode
Each tag set records the following data for each vision job tool result received in the
Inspection report:
VS-06 Smart Camera Guide
G-13
Appendix
G
Demo PLC Code
User App Method
The user app can follow the demo code’s usage of these tags for further application logic
development.
During runtime, the user app can change the OUT data members, and observe the
change in tool status after a new trigger.
Specifically, the PLC integrator would typically modify the logic beginning at the following rungs:
Demo Target
The demo vision job uses predefined images. It is unnecessary to have the camera aimed
at any specific target. If preferred, the job can be changed to enable the camera’s image
sensor. In this case, the demo targets should be printed approximately 2.5 inches (63 mm)
wide by 1.6 inches (40 mm) tall, centered on white paper larger than the camera’s field of
view, and presented to the camera with the Data Matrix symbol on the right:
“Pass” Image
G-14
VS-06 Smart Camera Guide
“Fail” Image
Demo PLC Code
G
Demo Code Usage
The user app example of the demo code watches for Data Valid. When it goes active, the
user app example processes the user IO data, updates each demo record with the results,
then uses ResetDataValid to clear DataValid.
Read_MV_IO_internal, Read_MV_ons_internal
Purpose
Used by the demo code to manage the camera.
User App Method
None. The user app must not attempt to read or write to this tag set.
Demo Code Usage
The demo code uses this tag set to abstract the on-the-wire control of the camera from the
user app.
Run the Camera: Runtime Operation of EtherNet/IP Demo
At this point in the evaluation, it is assumed that you have downloaded the demo vision job
to the camera, your PLC is running the EIP demo code and is exchanging data with the
camera. The PLC can now parameterize, trigger and monitor the camera over
EtherNet/IP.
VS-06 Smart Camera Guide
G-15
Appendix
G-16
G
Demo PLC Code
VS-06 Smart Camera Guide
H
H
APPENDIX H
Serial Commands
This section provides descriptions of the serial commands that can be
sent to the camera via TCP (Telnet) port, AutoVision Terminal, or
HyperTerminal.
VS-06 Smart Camera Guide
H-1
Appendix
H
Serial Commands
SET {tagname}{value}
Sets value of a global tag.
The tagname must correspond to one of the supported tags within the
device.
The value can contain spaces.
The command is terminated by a carriage return and/or line feed
character.
The value can be a list of comma-separated items to set a sequence of tags:
Send SET int1 1, 2, 3 to set int1 = 1, int2 = 2, int3 = 3.
The AVP service allows setting of step and datum information from the job
tree using forward slash ‘/’ in the symbolic name path. SET
avp/insp1/snapshot1/acq1/gain 2.0 paths are not case-sensitive and do
not need to be fully qualified if unique.
SET avp/acq1/gain 2.0 will set the same gain value if there is only one
acquire.
Control tags in the AVP service such as START, STOP, and TRIGGER act
as momentary switches. SET avp.start 1 is equivalent to the ONLINE
command. avp.start will reset immediately and always read as 0.
Success Return: On success will return !OK followed by an echo of the
command. For example:
!OK SET matchstring1 ABCD
Fail Return: On failure will return !ERROR followed by the reason for the
failure. For example:
!ERROR Tag matchstring66 not found
H-2
VS-06 Smart Camera Guide
Serial Commands
H
GET {tagname}
Gets value of a global tag.
The tagname must correspond to one of the supported tags within the
device.
The command is terminated by a carriage return and/or line feed
character.
Include an index to get a single value from an array such as GET int1. If
the index is omitted, the full array of values will be returned in a commaseparated list of values.
Send Get {tagname} to get the value of a tag within the global data
service. To get the value of a tag within another service, prefix the
tagname with the service name. For example, a GET {service.tagname}
command such as GET eip.input for the EIP input assembly.
The AVP service allows retrieval of step and datum information from the
job tree using forward slash ‘/’ in the symbolic name path. GET
avp/insp1/snapshot1/status paths are not case-sensitive and do not
need to be fully qualified if unique.
GET avp/snapshot1/status will return the same result if there is only one
inspection.
When issued against a step, GET avp/snapshot1 will return the values
for all datums.
Success Return: On success will return the value stored in the tag. For
example:
ABCD
Fail Return: On failure will return !ERROR followed by the reason for the
failure. For example:
!ERROR Tag matchstring66 not found
INFO {service.tagname or service}
Gets information about a tag or service.
VS-06 Smart Camera Guide
H-3
Appendix
H
Serial Commands
INFO with no arguments gets a list of services.
INFO {service} gets a list of tags in that service.
INFO {service.tagname} gets attributes of the tag as well as a list of
subtags.
The AVP service allows retrieval of step and datum information from the
job tree using forward slash ‘/’ in the symbolic name path.
INFOavp/insp1/snapshot1/status paths are not case-sensitive and do
not need to be fully qualified if unique.
INFO avp/snapshot1/status will return the same result if there is only
one inspection.
When issued against a step, INFO avp/snapshot1 returns properties of
the step, a list of child datums, and a list of child steps. Child steps are
indicated by a trailing forward slash.
GETIMAGE {-transfer=ymodem} {-type=failed}{-format=[jpg|png]}
{-quality=n} {-inspection=n} {woi=l,t,r,b}
Initiates serial transfer of inspection image.
-transfer=ymodem is not currently optional - only Ymodem protocol is
supported.
-type=failed to retrieve the last failed image. If omitted, the current image
is returned.
-format=[jpg|png] specifies the format of the image. If omitted, the image
format is JPG.
-quality=n specifies a JPG compression quality of n less than or equal to
100. The default quality is 80 if not specified.
-inspection=n specifies the inspection from which to retrieve an image.
The image will be from the first snapshot within that inspection. If not
specified, the image will be from the first inspection that does contain a
snapshot.
H-4
VS-06 Smart Camera Guide
woi=left,top,right,bottom specifies a rectangular area of the image to be
included in the output image. If omitted, the full image buffer is returned.
ONLINE
Starts all inspections.
OFFLINE
Stops all inspections.
TRIGGER {inspection index}
Triggers inspection. If {inspection index} is omitted, inspection 1 is
triggered.
VT (Virtual Trigger) Command
Triggers an inspection by pulsing a Virtual I/O point. For example:
VT 1
will return pulse VIO1. The inspection will run if it is configured to use VIO
1 as a trigger.
Syntax: VT [VIO Index]
•
If specified, the VIO index must be in the allowed range for Virtual I/O
points within Visionscape. The virtual I/O line will be set high then low.
•
If VIO Index is not specified, VIO1 is assumed
Success Return: Nothing is echoed on success of the VT command.
Fail Return: Return !ERROR followed by the reason for the failure. For
example:
!ERROR No such trigger
VS-06 Smart Camera Guide
H-5
Serial Commands
H
Appendix
H
Serial Commands
JOBSAVE [-slot=]n
Save job to slot n.
JOBLOAD [-slot=n][-r]
Load job from slot n.
-r = Start inspections.
JOBDELETE [-slot=n]
Delete job in slot n.
JOBINFO [[-slot=]n][-v]
Get job summary or info about slot n.
-v = Verbose. This option shows the amount of space that would be freed
if the job were deleted. It also lists the total disk space and free disk
space.
JOBBOOT {-slot=n}
Set bootup job slot n.
JOBDOWNLOAD [-transfer=]{YMODEM}
Download .avz job packaged via transfer method.
JOBDELETE -all
Delete all jobs in job slots.
Important: Does not delete the current job loaded in camera memory.
H-6
VS-06 Smart Camera Guide
GET SYSTEM.JOBSLOT
Retrieve the slot of the current job. Note that the current job in the camera
can be loaded from a job slot or the PC. If it isn’t loaded from a job slot
then this command will return -1.
VS-06 Smart Camera Guide
H-7
Serial Commands
H
Appendix
H-8
H
Serial Commands
VS-06 Smart Camera Guide
I
APPENDIX I
Boot Modes
I
Boot Modes
This section describes the VS-06’s Diagnostic Boot Mode and Boot Error
Mode.
VS-06 Smart Camera Guide
I-1
Appendix
I
Boot Modes
Diagnostic Boot Mode
The VS-06 supports a special boot mode used for diagnostics and
recovery. There are two ways in which the camera can be put into this mode:
1.
This method requires an Ethernet connection between the host PC
and VS-06. Power-on the unit and hold the AutoVision button down
until the green flash illuminates once. For C-Mount versions, hold the
button down for approximately 30 seconds. The unit is now
configured for IP address 192.168.0.10 with subnet mask
255.255.255.0. Establish a telnet connection between the host PC
and VS-06. The [SAFE-KERNEL] prompt is displayed.
2.
This method requires a VSID-IB-ES and a serial connection between
the host PC running a terminal emulator and VS-06 camera. Poweron the unit and hold down the Tab key down for several seconds. The
unit will boot to a [SAFE-KERNEL] prompt with communication
settings of 115200, N, 8, 1 (baud, parity, data bits, stop bits).
Once the unit is booted, there are many possible actions the user can
take. However, the most useful actions are listed below.
In rare situations, the boot job executed at camera startup can cause
unexpected behavior. If this is the suspected case, it is possible to disable
loading and running of the boot job at startup using the following
command.
[SAFE-KERNEL] BP_UpdateStartupOptions(0, 0)
Note that the loading and running of the boot job is automatically re-enabled
the next time a job is saved to camera flash from AutoVision or
FrontRunner.
At boot time, the system configures itself using a set of information known
as boot parameters. To obtain a list of the current configuration’s boot
parameters, issue the following command:
[SAFE-KERNEL] BP_Dump()
Should your device need to be configured with different IP information, follow the example
below and substitute the appropriate settings for IP address, subnet mask, and gateway
address, respectively.
I-2
VS-06 Smart Camera Guide
[SAFE-KERNEL] BP_UpdateIP(“192.168.0.10”, “255.255.255.0”, “192.168.0.100”)
It is possible to configure the system to acquire its IP address via DHCP or to use a static
IP address. Issue the following command with a ‘0’ for static IP or a ‘1’ for DHCP.
[SAFE-KERNEL] BP_UpdateDHCP(0)
Boot Error Mode
The VS-06 enters an error mode on boot if it’s unable to fully load Visionscape. This mode
is visually displayed to the user by flashing the Error LED along with the OUTPUT 1,
OUTPUT 2, and OUTPUT 3 LEDs on the front of the unit. Additionally, this mode is
represented as a “BOOT_ERR” in the Network Overview tool.
If you encounter this error condition, you will need to reload the firmware using the Smart
Camera Firmware Update Tool.
VS-06 Smart Camera Guide
I-3
Boot Modes
I
Appendix
I-4
I
Boot Modes
VS-06 Smart Camera Guide
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising