Beruflich Dokumente
Kultur Dokumente
Vision Sensor
BS40 V100
ZUB-CD-BV
2
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
3
9. Outputs 27
10. Reading Sensor Projects In and Out 28
10.1 Resetting the Sensor to Default Values 28
11. Working with Files 29
11.1 Saving Projects to a File 29
11.2 Loading a Project from a File 29
12. Maintenance Instructions 30
13. Proper Disposal 30
14. Accessories 30
15. EC Declaration of Conformity 30
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
4
2. Safety Precautions
These instructions are an integral part of the product and must be kept on hand for
the entire duration of its service life.
Installation, initial start-up and maintenance of the product may only be carried out
by qualified personnel.
3. General
The wenglor BS40V100 vision sensor integrates a camera unit, illumination, optics with
auto-focus and an analysis module into a single housing. The sensor utilizes a CMOS
color image sensor. Image processing functions including checking for the presence of
objects, pixel comparison, shape analysis and reference image comparison can be
configured by means of a PC or laptop via the integrated USB port.
These image processing functions can be executed in trigger mode operation, as well
as during continuous monitoring. Two switching outputs and a ready output are
provided, each of whose switching status is indicated by an LED. Beyond this, an
external lamp can also be connected to the sensor, and the integrated illumination can
be switched off.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
5
Optical Data
Working range > 20 mm
Resolution 640 x 480 pixels
Field of vision See “Range of Vision Table”
Image repeating frequency 50 Hz
Electrical Data
Supply voltage* 18 to 30 V DC
Current consumption (at 24 V operating voltage) < 200 mA
Switching frequency < 16 Hz
Response time > 30 ms
Temperature range 0 to 40° C
Number of switching outputs 2
Switching output voltage drop < 1.5 V
Switching output switching current 200 mA
Short-circuit proof yes
Protected against polarity reversal yes
Number of digital inputs 1
Mechanical Data
Configuration interface USB 2.0
Housing material Plastic
Protection IP 67
Connector type M 12x1
Protective Insulation, rated voltage 50 V
Configurable as PNP, NPN or push-pull yes
Can be switched to NC or NO operation yes
Ready output yes
Illumination output yes
USB port yes
* Supply voltage residual ripple may not exceed 10% (within the specified voltage range).
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
6
4. Software Installation
4.1 Minimum Requirements
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
7
All applicable electrical and mechanical regulations, standards and safety precautions must be
adhered to when installing and operating the sensor. The sensor must be protected against
mechanical influences. Install the device such that its mounting position cannot be inadvertently
changed. The wenglor mounting system is recommended for installing the sensor. It must be
assured that the mounting screws have a thread engagement length of 6 to 8 mm.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
8
The current project is automatically transferred from the sensor to the PC when the
sensor is connected to the PC via the USB port.
A project can be stored to the sensor which may include up to three object settings.
Three object results can be linked to each other, which serve as the basis for switching
operations occurring at the two switching outputs.
The user interface elements which appear when the program is started are explained in
the following.
The status bar, which includes entries including user ID, mouse coordinates, USB
status, sensor speed and the sensor’s transmission status, is located at the bottom
edge of the program window.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
9
The project window is used for navigation purposes. All user windows used for sensor
configuration can be accessed from the project window with the mouse.
6.4 Outputs
The “Outputs” window provides an overview of the individual object results, as well as
switching output statuses.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
10
A project name can be selected in the “Project Settings” window, and up to three
objects can be activated and named.
Click “Project” in the Project Window or “Project Settings” in the Edit menu.
In order to assure that a usable image is obtained for processing purposes, the camera
must first be adjusted.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
11
• Brightness adjustment
The surface area inside the square is recorded as a reference brightness level.
In the event of changing brightness conditions, the brightness of the entire image is
readjusted such that brightness within the square is always identical.
In order to assure that automatic brightness control is not negatively influenced, the
square must be located at a position where no objects will appear, and which has an
unchanging background. The influence of extraneous light on the vision sensor is
minimized by means of this setting.
• Focusing
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
12
751
Vision
Sensor
BS40V100 For the connection of the
wenglor spotlight, the cable
BG2BSW1-08M can be used.
749
Spotlight
If the checkbox is deactivated internal illumination is switched off, or the output used for
controlling external illumination is deactivated.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
13
The sensor can be operated in either the continuous mode or the trigger mode. An
external trigger sensor must be connected in order to control the sensor by means of an
external trigger signal.
751
Vision
Sensor
BS40V100
102
Trigger
Sensor
Setting options and interrelationships which exist amongst the various setting options in
trigger mode operation are described below.
Light Capture
An image is read out from the camera
chip.
Out
Light
Ready Indicates whether illumination is on or off.
Out
Switching output
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
14
Figure 1 Figure 2
Trigger
External trigger – must come from the
application (e.g. a light barrier).
Trigger
Ready
Capture Indicates whether or not the signal at the
output is valid.
Light Capture
An image is read out from the camera
chip.
Out
Light
Ready Indicates whether illumination is on or off.
Out
Trigger delay (constant) Valid output Switching output
Elapsed time between the trigger signal and image recording amounts to
15½ ms.
The graphic shown here is not true to scale. It only serves to illustrate
prevailing interrelationships.
In order to set up the sensor for trigger mode operation, a single image can be recorded
which is retained until the Run / Stop button is once again activated.
The image is recorded when the next trigger signal is applied.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
15
Trigger
Capture
Light
Out
Ready
The following settings must be selected if the sensor is not to record any images.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
16
Click “Object 1 (2/3) Active Area” in the project window or the edit menu.
Any number of rectangles and circles can be drawn in order to define the active area by
clicking the following buttons.
Areas which are of no interest and interfering areas can thus be suppressed.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
17
6.9 Filters
A digitized black and white image must be generated for object processing at the
analysis module. Suitable parameter values are selected for the respective application
to this end (hue, saturation and brightness).
In order to make best possible use of the options offered by the filters, a brief overview
of HSV color space is provided in the following. Beyond this, various adjustment
features are briefly described for specific applications, and appropriate filter settings are
explained.
H (hue)
S (saturation)
V (brightness value)
Hue H can have a value within a range of 0° to 360°, and is generally depicted as a
circle. All colors are represented within the circle. Red is at 0°, green is at 120° and blue
is at 240°. All of the various hues lie between these points. Black and white are not
included as hues. They are achieved by means of saturation and brightness. The circle
is divided into steps of 0 to 255 for the vision sensor.
Saturation S is the luminosity of a given color. If saturation is set to its maximum value,
a pure color appears. If saturation is set to its minimum value, a gray tone appears
which is dependent upon the current brightness value (V).
All colors between gray and the pure color can be found between these minimum and
maximum values.
Examples:
H = 0 (red) H = 0 (red) H = 170 (blue) H = 85 (green)
S = 255 S = 255 S=0 S = 255
V = 128 V = 255 V = 128 V = 255
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
18
This results in a decisive advantage for digital image processing. A hue can be detected
regardless of its brightness. For example, a shade of blue can be recognized
independent of ambient luminosity. This is not possible with RGB color space.
Applications
The setting selected at the color filter determines which colors will be allowed to pass
through the filter and which will not.
If all shades of red need to be filtered out of a colorful image, the H value filter must be
utilized. The filter thresholds must be set above and below the desired shade of red. All
colors between the two thresholds are allowed to pass through the filter.
If all shades of red between the H thresholds should be allowed to pass through the
filter regardless of saturation and brightness, the S and V filters can be deactivated.
However, if only the luminous shades of red should be allowed to pass through the filter,
the saturation filter must be activated and all colors beginning with a given gray tone up
to maximum saturation must be allowed to pass through.
If only the dark shades of red should be allowed to pass through the filter, the
brightness filter must be adjusted such that the upper threshold is set to the brightest
desired value and the lower threshold to 0 (black).
The hue and saturation filters cannot be used in applications for which a gray image or
a single-color imprint needs to be evaluated. An image which consists exclusively of
identical hues with varying brightness values can only be analyzed with the brightness
filter.
If a color image includes black, white or gray areas and certain shades of color must be
permitted to pass through the filter, the saturation filter has to be used and it must be set
for colors with high saturation values. Black, white and gray tones do not have any
defined H values, and are thus allocated to a color at random. They must be sorted out
by means of their characteristic saturation value (= 0).
Example:
If the red area in this image needs to be detected (allowed to pass through the filter),
the H filter must be set so that all shades of red are allowed to pass. However, due to
that fact that white areas are included (white frame) which need to be suppressed, the
saturation filter must also be used.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
19
The settings required for each individual parameter are described in the following. One
or more parameters can be selected in order to generate the digitized black and white
image.
Click “Object 1 (2/3) Filter” in the project window or the edit menu.
Activate the filters which are required for the processing of the image by
click on the checkbox „Filter active“.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
20
Click the point within the object which is relevant for the respective application.
If the results still do not fulfill the application’s requirements, precision adjustment must
be carried out in accordance with the above described criteria regarding “HSV color
conversion”.
Fine adjustment is made by adapting the tolerance values, or by changing the window
thresholds with the mouse pointer.
If values for additional objects need to be taken into consideration during precision
adjustment, they can be added by means of the following settings.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
21
Click “Object 1 (2/3) Algorithm” in the project window or the edit menu.
The coordinates are read out permanently and stored in the file
„Coordinates“.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
22
White pixels are counted within the active area when the “presence check” algorithm is
utilized. If the total number of white pixels is greater than the value which has been
taught in, the object is deemed present. The switching threshold is lowered by an
amount equal to the selected tolerance during teach-in.
Objects which do not fully correspond to the specified values, but which should
nevertheless be deemed present, can be added with the help of the following
procedure.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
23
In principle, the pixel comparison algorithm functions just like checking for the presence
of objects. However, two switching thresholds are used instead of just one. One
switching threshold is less than, and the other greater than the active number of pixels.
The distance between the two thresholds is equal to the specified tolerance. If the
number of pixels lies between these two thresholds, the object is deemed good.
Objects which do not fully correspond to the specified values, but which should
nevertheless be deemed good, can be added with the help of the following procedure.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
24
Circumference, surface area and shape are analyzed by the shape analysis algorithm,
independent of the object’s position and skew. The user can decide which features will
be used to recognize the object. In addition to this, several features can be selected
which are then linked to each other. Two switching thresholds are selected for each
feature during teach-in. One switching threshold is less than, and the other greater than
the active value. If an object corresponds to all specified features, it is deemed good.
Objects which do not fully correspond to the specified values, but which should
nevertheless be deemed good, can be added with the help of the following procedure.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
25
The process image is compared with a reference image when the reference image
comparison algorithm is utilized. The reference object is enclosed within a frame to this
end. This allows for slight movement of the object. If the process image is congruent to
the reference image, the object is deemed good. If this is not the case, deviating
portions of the object are displayed in red at the screen and the corresponding surface
areas are added up.
If a process object is situated within the frame and if the number of error
pixels lies between the two threshold values, the process object is
deemed good.
Process objects which do not fully correspond to permissible values, but which should
nevertheless be deemed good, can be added with the help of the following procedure.
Position the respective object as desired within the sensor’s field of vision.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
26
Click “Object 1 (2/3) Diagnosis” in the project window or the edit menu.
Click the Path indicate button in order to enter a directory path for
the diagnosis images.
Select the directory path and then click the Save button.
Attention: If the diagnosis function and the “Store all diagnostic pictures”
checkbox are both activated, all diagnosis images are saved.
Make sure than adequate memory capacity is available!
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
27
9. Outputs
An object result is generated for each object. Various object results can be linked to
each other into a logical formula. The formula is ended by entering --. The statuses of
both switching outputs are configured with this formula.
Click Outputs Output 1 (2) in the project window or the edit menu.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
28
Click the Save sensor configuration button if you would like to save the
selected settings to memory at the sensor.
Click the Read out discarded sensor configuration button if you would
like to cancel the selected settings and load the project which has been
saved to memory at the sensor.
PC Sensor
USB
HDD RAM RAM Flash
PC RAM = Sensor RAM
If it should become necessary, the sensor can be reset to its default values with this
function.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
29
Important: Do not delete any files which end with .wpr in order to assure that saved
projects can be reloaded.
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
30
14. Accessories
Connector cable S88-10MPUR
Mounting bracket WMS12
Spotlight FW08-WH3
Flood light FW09-WH3
Spotlight FW10-WH3
Annular illuminator FW11-WH3
Cable for external illumination BG2BSW1-08M
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
31
Status: 06/2005
Sensors for Your Success www.wenglor.de Sensors for Your Success www.wenglor.de
wenglor sensoric gmbh wenglor sensoric gmbh wenglor sensoric ag
Nijverheidsweg 10-1 2nd Floor, Aspen House, Medlicott Close, Corby 12 Avenue Charles Jaffelin
NL-3881 LA Putten GB-Northants NN18 9NF F-21200 Beaune
+31(0)341/423064 +44(0)1536/747299 +33(0)3/80223956
Fax +31(0)341/423095 Fax +44(0)1536/742301 Fax +33(0)3/80241188
info.nl@wenglor.de info.uk@wenglor.de info.fr@wenglor.de
wenglor sensoric italiana srl. wenglor sensoric romania srl wenglor sensors ltd.
• Australia
• Belgium
• Brazil
• Bulgaria
• Canada
• Chile
• Croatia
• Czech republic
• Denmark
• Equador
• Finland
• Greece
• Hong Kong
• Hungary
• India
• Indonesia
• Ireland
• Israel
• Japan
• Jugoslavia
• Korea
• Malaysia
• Mexico
• Norway
• Peru
• Poland
• Portugal
• Shanghai
• Singapore
• Slovenia
• South Africa
• Sweden
• Taiwan
• Thailand
• Turkey
www.wenglor.de
Specifications are subject to change without notice