Image processing systems
Vision Sensor SIMATIC VS120
Operating Instructions
Introduction
Safety instructions
Description
Image processing
Network and system
integration
Installation
Connecting
1
2
3
4
5
6
7
Commissioning
Operation
Process interfacing over an
automation system (PLC,
PC)
Alarm, error and system
messages
Technical data
Dimension drawings
Scope of
delivery/Spares/Accessories
8
9
10
11
12
13
14
Edition 02/2006
A5E00757507-01
Service & Support
Directives and declarations
15
16
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended
by Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and
assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Siemens AG
Automation and Drives
Postfach 48 48
90437 NÜRNBERG
GERMANY
10.4.2.1 Control byte............................................................................................................................ 10-11
10.4.2.2 Status byte ............................................................................................................................. 10-12
10.4.2.3 User data interface "Send" VS120 processing unit >>> automation system......................... 10-12
10.4.2.4 User data interface "Receive" automation system >>> VS120 processing unit.................... 10-14
10.4.3 Programming data fragmentation .......................................................................................... 10-14
10.5 Function block FB1 ................................................................................................................ 10-16
11.2 Error messages and error handling ......................................................................................... 11-1
11.3 Diagnostics based on the "BF" LED ...................................................................................... 11-10
11.4 Slave diagnostics or /O device diagnostics ........................................................................... 11-11
12 Technical data ...................................................................................................................................... 12-1
12.1 General technical specifications .............................................................................................. 12-1
12.2 Technical specifications of SIMATIC VS120 ........................................................................... 12-5
12.3 Port assignment of the processing unit.................................................................................... 12-8
14.4 C-mount lens and inspection window size............................................................................... 14-5
15 Service & Support................................................................................................................................. 15-1
This manual contains all the information you require to install, commission and work with the
SIMATIC VS120 Vision Sensor System.
It is intended both for persons configuring and installing automated plants with image
processing systems and for service and maintenance technicians.
Scope of this manual
The manual is valid for all supplied versions of the SIMATIC VS120 Vision Sensor system
and the processing unit with order number (MLFB) 6GF1 018-2AA10.
Caution
Please observe the safety instructions on the back of the cover sheet of this documentation.
You should not make any expansions to your device unless you have read the relevant
safety instructions.
This device meets the relevant safety requirements in compliance with IEC, VDE, and EN. If
you have questions about the validity of the installation in the planned environment, please
contact your service representative.
Repairs
Only authorized personnel are permitted to repair the device.
Warning
Unauthorized opening of and improper repairs to the device may result in substantial
damage to equipment or risk of personal injury to the user.
2
System expansion
Only install system expansions intended for this device. If you install other upgrades, you
may damage the system or violate the safety requirements and regulations for radio
frequency interference suppression. Contact your technical support team or where you
purchased your device to find out which system expansion devices may safely be installed.
Caution
If you install or exchange system expansions and damage your device, the warranty
The SIMATIC VS120 Vision Sensor is used for the optical detection and testing of objects
with lighting from above. The SIMATIC VS120 Vision Sensor checks whether or not the
correct object is being tested, whether or not it is damaged and the position of the object.
The SIMATIC VS120 Vision Sensor returns the following recognition values during object
recognition:
• x coordinate
• y coordinate
• Angle
• Quality rating of the specimen, number of detected parts
This object recognition data is transferred to processing units in automation systems. The
data is processed in the processing units of the automation systems.
The SIMATIC VS120 Vision Sensor is suitable for:
• Recognition of parts in sorting tasks
• Determining the position for Pick & Place applications
3
• Checking the presence and position of objects in production
• Checking position in feed systems, for example with oscillating conveyors, workpiece
holder, conveyor belts, circulating systems, grasper units and robots.
Testing correctness of individual characteristics of the specimen
64 models are available for the recognition of specimens. The SIMATIC VS120 checks
whether or not the individual characteristics of the specimens have the same shape as the in
the trained model.
When specifying the recognition and evaluation areas, avoid shiny surfaces on specimens.
Principle of edge recognition
To recognize image patterns, edges are used. These edges from the images are the
transitions from light to dark or vice versa. A model is created from the sum of the edges
extracted in the image and their arrangement.
Recognition and localization of parts
The SIMATIC VS120 scans specimens and determines the coordinates including the roll
angle and passes them to the control system such as S7, for example, via PROFIBUS DP.
Testing the completeness of a model
The SIMATIC VS120 also checks specimens for completeness. Deviations from the trained
model are detected and the quality values of the evaluation are displayed.
Sorting functions for models and model sets
Depending on the importance of the application, 15 model sets with 64 different models can
be assembled and saved for processing. The models are sorted according to the application
with a controller for processing with the SIMATIC VS120.
You require the following hardware and software components for the SIMATIC VS120 Vision
Sensor system:
Hardware
• SIMATIC VS120 processing unit
• Sensor head with CCD sensor chip for detection of the object
• LED ring flash for SIMATIC VS with degree of protection IP65 (not included in every full
package), for optimum illumination of the object
• Cables:
– Power supply cable
– Lighting cable
– Sensor cable
– DI / DO cable
• Documentation package
Software
– Operating Instructions (compact)
– Documentation CD
You also require the following:
• 24 V DC, 2 A power supply; (20.4...28.8 V DC, safety extra low voltage, SELV).
• PC / PG with the following configuration:
– At least 500 MHz clock frequency
– Graphics card with at least 65536 colors and a resolution of at least 1024 x 768 pixels
– Ethernet port with up to 100 Mbps (protocol: TCP/IP)
• Crossover RJ-45 Ethernet cable for connecting the processing unit and the PC / PG
• Microsoft Windows XP Professional SP1 operating system with Internet Explorer 6.0 as of
SP1
• Microsoft Java VM or Sun Java VM version J2SE 1.4.2_06 or J2SE 5.0 (you will find
more detailed information on the Internet at the following address
http//:www.java.sun.com/J2SE)
To form patterns that can be recognized, edges (transitions from light to dark or vice versa)
from the image are used. Although the algorithm extracts the edges automatically, the user
must make sure that the lighting is ideal for an image with good contrast; in other words, to
create models for recognition, it is essential to use the lighting correctly to achieve an image
with high contrast.
Note
The installation of suitable lighting often involves more time than all the other activities such
as securing the camera, connecting to the PLC, training, setting the correct triggers etc.
together. With metallic surfaces in particular, it is advisable to ask the advice of a lighting
expert due to the possible shine.
Part of object recognition is the recognition of the position of the object in the image.
The starting point is the midpoint of the image to which all coordinates relate. The top left
has the coordinates (-320; 240) and bottom right (320; -240).
4
If the object is not recognized, the position at the top left is output for x / y. The user should
always query whether or not this is an OK / N_OK evaluation and not rely on the x / y
positions!
Correct exposure time (shutter speed) influences the quality of the extracted edges. To
control the exposure time / brightness, you can use the parameters Shutter speed and
Brightness.
The shutter speed / brightness must be set to obtain the optimum contrast. The automatic
exposure control can help to achieve the optimum shutter speed setting.
Below, you will find examples of different shutter speeds and disturbing contours:
Shiny areas on the surfaces of the part cause disturbing edges that must be avoided for a
representative model. In the example shown below, you can see clearly that even the
automatic shutter control can cause bad edges in this case. These edges make recognition
of the parts unreliable since they are often not reproducible.
In the trained model shown here, you can see
unwanted edge lines that reduce quality during
the search and recognition and therefore ought
to be avoided.
If this method cannot be used, the user can do the following:
• Use the erasure function on the edges of the model to enable optimally training for the
contour
This image was manually overexposed. The
contour is ideal and can be clearly recognized.
• Correct the problem by setting the shutter speed offset for automatic exposure control
Other interference affecting object recognition
In addition to the previously mentioned interference, other factors can also have a negative
influence on the search for a pattern.
• Shadows (particularly caused by the depth of the objects)
• Non-uniform lighting
• Geometric distortion by the lens, particularly when the camera is not perpendicular to the
pattern
• Blurring due to motion if the shutter speed is too slow for moving parts
There are functions and parameters in the SIMATIC VS120 Vision Sensor to reduce the
negative effects of such interference in recognizing parts. They help to create optimal edges
from the image to generate patterns.
4.3 4.3 Generating models and detecting orientation
A model is created from the sum of the edges extracted in the image and their arrangement.
To ensure good processing quality, the contours of the model should lie within the ROI
(Region of Interest).
4.3.1 Setting for the Precision parameter
The precision setting is based on the size of the ROIs and recognizable changes in the
specimen. The search for a part in the image is "pyramidal". It starts with a coarse search at
low resolution and finishes with a fine search at high resolution. The Precision parameter
affects the coarse and fine search.
Coarse and fine search
The table shows the start and end values of the resolution during the search process with
the various levels of precision.
Precision level Start value for the resolution
Width x Height (in pixels)
Fine1 320 x 240 640 x480
Fine2 160 x 120 640 x480
Fine3 80 x 60 640 x480
Medium1 80x60 320 x 240
Medium2 40x30 320 x 240
Coarse1 40x30 160 x 120
Coarse2 20x15 160 x 120
End value for the resolution
Width x Height (in pixels)
The precision for determining the position should be set as follows:
• "Fine" for the sub-pixel range
• "Medium" for +/-1 pixel and +/-1°
• "Coarse" for +/- 2 pixels and +/-1°
– The precision for determining the position still depends on the pattern size and the
number of edges found in it and may therefore deviate from the values shown above.
– The angle precision can be increased to < 1° with the "Angle Precision" parameter in
"Options - Extras tab".
Note
If the setting is "Fine1" and the model is large, the processing times may be several
Note
If exposure is set to "Manual" and the user changes the precision in the adjustment
support (adjust sensor), the "shutter speed" exposure parameter is adjusted
automatically. Depending on the distance of the object to the camera, this can cause
inaccuracies.
Example for declaring the Precision parameter
A wall is hung full of A4 sheets on which various texts have been printed. An observer has
the task of finding a specific sheet among all the others.
Procedure:
• To accelerate the search, the observer stands at a considerable distance from the wall.
The distance from the wall selected by the observer depends on the criteria on which the
search is based, among other factors.
• The observer begins to presort all the sheets. If the observer is looking for a large rough
drawing, they will stand a long way away to be able to see all drawings at the same time.
In this case, the observer would select "Fine3".
• If the observer concentrates on details, such as text format or heading, he would move
closer. Since he is examining more details, the search takes correspondingly longer. In
this case, the observer would select Fine2 or Fine1.
• Once the observer has made a rough selection, he moves closer to the sheets and
investigates each sheet in detail. He now exactly compares individual words and image
details with a reference sheet. The observer no longer examines each sheet in detail
because he has already limited the selection.
The algorithm of the SIMATIC VS120 Vision Sensor works in much the same way as the
example described above.
4.3.2 Measures for optimizing object recognition
Problem: Object was not trained
If the object could not be trained, the reason may be that there were not enough contours in
the selected ROI.
Remedy
• Make sure that the ROI is selected correctly (position and size) and that the object is
within the ROI when training.
• If this problem still occurs, the object to be trained has too few contours. In this case, a
change in the setting of the precision towards greater precision might help, for example,
from Medium2 to Medium1 or to Fine1.
• If these measures still do not lead to success, try the following for example:
– Select other lighting
– Specify other more detailed object regions in the ROI
– Enlarge the ROI or similar
• Another remedy is to change the brightness with high contrast in order to clearly detect
the change in the image.
4.4 4.4 Quality of the measured values
All the displayed measured values for imaging geometry of a read model are subject to the
following inaccuracies.
Processing precision
• for the position (x and y coordinates): up to ± 0.1 pixels
• for the angle (angle precision): up to ± 0,2°
The processing precision is influenced by the following factors:
• Lighting effects such as reflection and shadow
• Perspective distortion, such when the camera is too close to or at too oblique an angle to
the object
• Differences in the object, for example, dirty objects
• Variation in the trained background structure
Fluctuations in size
Fluctuations in size in the image up to ± 10 % are tolerated, if the specimens are the same
position as the trained pattern. These fluctuations can be caused by the following:
• Different distances between specimens and the lens caused by a different position on the
conveyor belt or workpiece holder
• Different pattern sizes in the specimen
Perspective distortion
• Perspective distortion in the recorded image are tolerated if the specimens have the
same orientation as the trained pattern.
• If there is perspective distortion and the orientation is different, no general statement is
possible. In this case, the shape of the specimens and the angle between the camera
level and pattern level are the factors that determine whether or not the specimens can
be recognized.
The following table shows which actual length corresponds to the side length of a pixel.
Remember that this value applies only for the specified image width. The sensor heads
6GF2 002-8DA (SIMATIC VS120 for large specimens) and 6GF2 002-8EA (SIMATIC VS120
for small specimens) were based on the maximum possible image widths.
Graphic
width
SIMATIC VS120
for large specimens
SIMATIC VS120
for small specimens
C/CS mount 12 mm 12/640 = 0.02 mm / pixel 12/320 = 0.04 mm / pixel
70 mm 70/640 = 0.11 mm / pixel 70/320 = 0,22 mm / pixel
40 mm 40/640 = 0,06 mm / pixel 40/320 = 0,13 mm / pixel
Resolution per pixel
at 640*480
Resolution per pixel
at 320*240
4.5 4.5 Geometric distortion
Geometric distortion caused by the lens is compensated. With sensor heads with fixed
lenses, the value of the distortion is set automatically and should no longer be changed. If
standard lenses with a C mount are used, the user can make the compensation manually by
changing the parameters.
4.6 4.6 Main ROI and sub-ROI
Processing with main ROIs is usually sufficient to evaluate the image. ROIs (Region of
Interest) are used to distinguish a part from the background better. The sub-ROI option
added to the main ROI allows certain details of patterns, which would otherwise be
indistinguishable in comparison to the total contour, to be weighted more heavily. Testing for
damage or completeness are examples of this.
This is, for example, the case if you have shiny areas or variable areas in the object. Using
sub-ROIs, you can concentrate the search and the evaluation on the important
characteristics and suppress irrelevant ones.
Procedure
1. Training of the main ROI concentrating on the invariable characteristics of the specimen
2. Select the "ROI: New" button the dialog "Training - ROI tab" of the adjustment support. A
rectangle or circle appears on the screen depending on the shape selected for the subROI.
3. Changing the size and position of the sub-ROI in the same way you define the main ROI
Task description: The task is to check whether the Siemens logo was printed completely.
In the image on the left, you can see
the edges marked for sub-ROI3. The
main ROI is the large window, while
sub-ROI1 encompasses "SIE" and
sub-ROI2 encompasses "ME".
Parameter assignment
Parameter name Main ROI Sub-ROI 1, 2 and 3
Task Find (default) Find (default)
scaling Fixed Fixed (default)
Precision Fine3 Fine1
Model. type Edges (default) Edges (default)
• The sub-ROIs can be set with the precision Fine1 since the pattern windows are small.
This ensures that no details are lost.
• Fine3 should, however, be selected for the main ROI otherwise the processing time will
take too long. In this case, the selection of the precision (Fine1, Fine2 or Fine3) has no
effect on the quality value of the result.
The Job parameter has the options "Find" and "Identify"
Find
If the "Find“ option is selected, additional edges of the specimen are not taken into
consideration.
Identify
If the "Identify" option is selected, additional edges of the detected specimen are taken into
consideration and compared with the edges of the reference model.
Example
Metal plate with three holes. If "Find" is set, the quality 100% will be output for a metal plate
with an additional hole. If "Identify" is set, the quality value will be lower because the
additional edges of the fourth hole do not have corresponding edges in the reference image.
The "Job" parameter is now set to
"Identify" for the additional sub-ROI. The
following result is then achieved:
Quality value of the additional sub-ROI:
69.3%
Changes can now no longer be reliably
detected with an increased quality limit.
4-15
Image processing
4.8 Search parameter
4.8 4.8 Search parameter
Two areas can be specified for image recognition.
• Limited: The ROIs around the specimen cannot extend beyond the edge of the image.
Limited is the default value.
• Open: The ROIs around the specimens can go beyond the edge of the image by a
maximum value specified by d
You must specify the maximum value d by the following when an open area is used:
dmax = 30%
RI
22
EK
+
1B2.2.
E
K
Figure 4-1 Search parameter
w = width
h = height
d = maximum value for the position beyond the edge of the image
OK = position for processing OK
N_OK = position for processing not OK
The human eye instinctively classifies edges with a strong contrast as being more important
than those with a weak contrast. In the "Model type" parameter, this phenomenon is taken
into consideration in the processing with two settings:
• Edges if prominent edges of the specimen are important for processing. Edges is the
default value
• Area if all the edges in the specimen are weighted the same for processing.
The cross in the middle is a contour with
significantly greater contrast than other
contours. If an application requires this
region to be weighted as being more
important than the rest for the search,
"Edge" should be set as the model type.
"Edge“ model type parameter
Result: Quality value 53%
"Area“ model type parameter
If you want all areas to be weighted the
same, select "Area".
• The model sets functions enables the SIMATIC VS120 Vision Sensor to classify (sort)
parts.
• Classification involves individual examination of the models in the model set.
Classification is considered successful if at least one of these models is evaluated as OK.
A model with the highest cumulative quality is determined from all the models evaluated
as OK. This evaluation result is generated as "Best".
• The number of models allowed in a model set depends on the complexity of the mode
and is limited by the storage capacity of the VS120 processing unit.
• Increasing the number of models in the model set, increases beyond proportion the
processing time by several seconds.
• Up to 40 trained models can be added to each model set.
• The option of integrating several models in a single model set can be enabled in Options
> Extras > Use Multimodel.
Note
Exposure Control Model Set
The settings for the model with the lowest model number always apply for setting the
exposure of a model set.
Note
Error messages
The following error messages can occur in processing mode for the model sets:
• One of the models in the model set has not yet been trained.
• A model set contains models with different precision (important in this respect: only
the precision value of the parameter counts, in other words, all models must be either
"Fine" or "Coarse").
• The model set contains too many models that are too large so that there is not enough
storage space.
The model set consists of two models. You need to decide if the image to be processed
contains the "SIEMENS" model or the "COMPANY" model.
"SIEMENS" model "COMPANY" model
• The user selects this model set instead of the model in processing mode. Each captured
image is evaluated in comparison to the individual models in the model set.
• The first captured image contains the "SIEMENS" specimen. The contours of the
specimen match those in the "SIEMENS“ model, but deviate strongly from the contours of
the "COMPANY“ model. The VS120 processing unit delivers the result, OK, and the
number of the "SIEMENS“ model.
• The next captured image contains the "COMPANY" specimen. The contours of the
specimen match those in the "COMPANY“ model, but deviate strongly from the contours
of the "SIEMENS“ model. The VS120 processing unit delivers the result, OK, and the
number of the "COMPANY“ model.
6.1 6.1 Installing the SIMATIC VS120 processing unit
1. For the location of the fixing holes, refer to the
VS120 Processing Unit
2. Mount the processing unit so that it is easily accessible for the operator
6.2 6.2 Installing the sensor head with LED ring flash
Notice
Aligning the optical axis
Align the optical axis of the sensor head vertical to the direction in which the object is
conveyed. Otherwise the image of the object will be distorted. The evaluation will be
inaccurate.
If the objects always pass the sensor head in the same position, the angle of the mid axis of
the objects to the vertical can be up to 45°.
Dimensional Drawing of the SIMATIC
6
Notice
Distance D between sensor and object
The ideal distance D between sensor and object depends on the type of sensor head. With
sensor heads with the order numbers (MLFB) below, the recommended distance D is as
follows:
6.2 Installing the sensor head with LED ring flash
How to mount the sensor head
A mounting plate is supplied with the sensor head.
1. Insert the mounting plate in one of the grooves of the sensor head
2. Secure the sensor to your holder with a mounting plate
How to mount the LED ring flash beside the sensor head
No ring light flash is supplied to secure the LED ring flash beside the sensor head For
ordering information on a suitable ring flash holder, refer to the section
Accessories
in the
operating instructions.
1. Mount the sensor head on your holder
2. Secure the LED ring flash to the ring flash holder
3. Secure the ring light holder to your holder
• LED ring flash beside the sensor head, at an angle to the optical axis of the sensor head
Notice
LED ring flash beside the sensor head
If the object causes interfering reflections when the LED ring flash is mounted on the
sensor head, mount the LED ring flash beside the sensor head.
7.1 7.1 Guidelines on installation and avoiding electrical interference
To avoid interference, you must shield your system. Low-frequency (LF) and high-frequency
(HF) interference signals can result in an incorrect response if the system is badly grounded
or not shielded.
Interference signals can be caused, for example, by
• Switching relays or contactors (large, fast changes in current or voltage and HF
interference signals);
• Different ground potentials between two parts of the system (LF interference signals)
Using / installing interference-proof cable
• Always use the supplied cable to connect the sensor head.
• All plug-in connections must be secured by screws or a locking mechanism.
• Signal lines must not run parallel to power cables. A separate cable channel must be
used with a minimum clearance of 50 cm from power cables.
7
Note
For more detailed information, refer to the installation manual SIMATIC S7-300
Programmable Controller, Hardware and Installation in the section on "Wiring".
7.2 7.2 Guidelines on installation when using PROFIBUS DP or PROFINET IO
If you are using PROFIBUS DP or PROFINET I/O to control the device and/or to transfer the
results the installation and configuration guidelines must be kept to.
Connect the processing unit with the other components using the connectors on the front
panel.
The pinning of the connectors is described in the section: "Technical specifications" and with
the description of the supplied cable in section: "Scope of delivery/Spares/Accessories".
Caution
Do not connect or disconnect cables when the power supply is on.
Warning
Grounding the SIMATIC VS120 cancels the ungrounded configuration of the power unit.
Note
The DC load power supply must meet the following requirements:
Only a safe, isolated extra-low voltage of 24 V DC may be used as the load current supply.
Safe isolation can be implemented according to the requirements of:
- VDE 0100-410 / HD 384-4-41 S2 / IEC 60364-4-41 as protective extra low voltage with
safe isolation (PELV) or
- VDE 0805 / EN 60950 / IEC 60950 as safety extra-low voltage (SELV) or VDE 0106
Part 101.
The power supply chassis of the I/O and CPU must be connected to the power supply
Notice
All activities are described based on the classic Windows Start menu.
If your Windows Start menu is not displayed in the classic style, change it as follows:
1. Right-click on the taskbar and select "Properties".
2. Change to the "Start Menu" tab and select the "Classic Start Menu" radio button.
2. Click on System > Local Users and Groups > Groups > Administrators
If you are included in the group of administrators, you have administrator privileges.
Turn on the power supply of the VS120 processing unit for its initial commissioning. The
VS120 processing unit then performs a self-test:
• Test of the Ethernet connection
• Function test of the sensor head
Note
During the initial commissioning, "Factory Settings Used" appears on the LCD display.
Confirm this with "OK.“
Once the self-test is completed, "Adjust" appears on the LCD display.
Normal mode:
Each time the SIMATIC VS120 starts up, the VS120 processing unit runs the following selftest:
• Test of the stored settings and model data
• Test of the Ethernet connection
• If appropriate, test of the connection to PROFINET IO
• If appropriate, test of the Ethernet RS-232 converter or TCP server and connection to the
PC / PG
• If appropriate, test of whether data can be exchanged with PROFIBUS DP
• Function test of the sensor head
• If appropriate, test of the connection for archiving model data
If the self-test completes without any errors, the main menu, the "Adjust" display or the RUN
menu is displayed on the LCD display depending on the status when the device was last
turned off.
8.4 Establish an Ethernet connection between the processing unit and PG / PC
8.4 8.4 Establish an Ethernet connection between the processing unit and
PG / PC
8.4.1 Select the connection variant
8.4.1.1 Connection variants
You can connect the VS120 processing unit via a direct connection or via a network with a
PC / PG. In all cases, the TCP/IP Ethernet protocol is used for communication.
Direct connection
• Operating the VS120 processing unit as a DHCP server
• Connecting the VS120 processing unit manually
Connection over a network
• Integrating the VS120 processing unit as a DHCP client in a network
• Integrating the VS120 processing unit as a device in a PROFINET IO network
Next step
Notice
Operating the VS120 processing unit in a network can interfere with the communication
in your network if you make certain settings in the Connect > Ports > Ethernet > IP Mode
menu. You should therefore only connect the VS120 processing unit to the network after
you have completed configuration and checked your settings carefully.
Select one of the connection variants from the next sections.
8.4 Establish an Ethernet connection between the processing unit and PG / PC
8.4.1.2 Operating the VS120 processing unit as a DHCP server
You want to do the following with the VS120 processing unit:
• Connect directly to the PC / PG
• Operate the VS120 processing unit as a DHCP server to assign the following addresses
of the processing unit automatically:
– IP address
– DNS server address
Notice
Under no circumstances connect the VS120 processing unit in this mode to an
existing DHCP server in the house network over a switch as you may disrupt the
operation of the house network. You can only implement an additional connection
from the PC to your previous network over a second network adapter in this PC.
Note
In this mode, you can connect up to four PCs to the VS120 processing unit via a
switch since a maximum of four IP addresses can be assigned automatically.
Procedure
1. Configure the VS120 processing unit as a DHCP server.
2. Configure your PC / PG as a DHCP client
3. Establish an Ethernet connection
Step 1: Configuring the VS120 processing unit as a DHCP server
1. After turning on the VS120 processing unit and after the self-test is completed, go to the
"Connect" menu and confirm with "OK".
2. Confirm the selected "Ports" menu command with "OK".
3. Change to the "Ethernet" menu and confirm with "OK"
4. Confirm the selected "IP Mode" menu command with "OK".
8.4 Establish an Ethernet connection between the processing unit and PG / PC
Step 2: Configure your PC / PG as a DHCP client
1. Click Start > Settings > Network and Dial-up Connections
2. In the "Network and Dial-up Connections" dialog, select your active local area connection
to the network
3. Select "Properties" in the context menu and select the "Internet Protocol (TCP/IP)" entry.
4. Click the "Properties" button
5. Select the "Obtain an IP address automatically" radio button
Step 3: Establish the Ethernet connection
1. Establish an Ethernet connection between the VS120 processing unit and PC / PG. Use
a network cable of the type "Ethernet RJ-45 (crossover)"
Note
Instead of the network cable of the type "Ethernet RJ-45 (crossover)", you can also use a
network cable of the type "Ethernet RJ-45" with a switch for the connection between the
VS120 processing unit and the PC / PG.
Next step
Perform the activities described in the section
8.4.1.3 Connecting the VS120 processing unit manually
You want to do the following with the VS120 processing unit:
• Connect directly to the PC / PG
• Configure manually to change the IP address of the VS120 processing unit or to assign
an address yourself
Requirements
The PC / PG has the following default network setting that it cannot/should not be modified:
In the "Internet Protocol (TCP/IP) Properties" dialog, the "Use the following IP address" radio
button is selected.
You can check the setting by following the steps described in the section "Procedure for
checking the IP setting of the PC / PG".
8.4 Establish an Ethernet connection between the processing unit and PG / PC
8.4.3 Change the proxy configuration of your Internet Explorer
Change the proxy configuration of your Internet Explorer only if a proxy server is used in the
Internet Explorer.
Procedure
1. Start the Internet Explorer and select the menu command Options > Internet Options
2. Click on the "Connections" tab
3. Click on the "LAN Settings" button in the "Local Area Network (LAN) settings" group box.
4. In the next dialog "Local Area Network (LAN) Settings", clear all the check boxes and
confirm with OK
Figure 8-2 Settings for the local area network
As an alternative, if the "Use a proxy server for your LAN" check box needs to be
selected, click the "Advanced" button in the "Proxy server" area and enter the current IP
address of the VS120 processing unit in the "Exceptions" area in the "Proxy Settings"
dialog.
Note
You can also enter computer names in the "Exceptions" area. The computer name is
resolved into a static or dynamic IP address by the DNS server in the network.
Perform the activities described in the section
Check the connection
.
8-13
Commissioning
8.4 Establish an Ethernet connection between the processing unit and PG / PC
8.4.4 Check the connection
Checking the connection tells you whether or not the configured Ethernet connection
between the PC and the VS120 processing unit is working.
You can only start adjustment support from your Internet Explorer and operate the VS120
processing unit from your PC after you have checked the connection.
Requirements
• The VS120 processing unit was either integrated in your existing network or connected
directly to a PC
• The network cable is connected to the VS120 processing unit
• The VS120 processing unit is connected to a 24 V DC power supply unit and is being
supplied with power
• The VS120 processing unit self-test is completed
Procedure
1. Make sure that the VS120 processing unit and PC are correctly connected to the existing
network or are connected together using an Ethernet crossover cable
Result
2. After turning on the VS120 processing unit and after the self-test is completed, go to the
"Connect" menu and confirm with "OK".
3. Confirm the selected "Ports" menu command with "OK".
4. Change to the "Ethernet" menu and confirm with "OK"
5. Change to the "IP Address" menu and confirm with "OK"
6. Note down the IP address displayed on the VS120 processing unit
7. Open the command prompt on the PC with Start > Run and enter the program name
"cmd".
8. In the command prompt, enter the following:
ping <IP address or name of the VS120 processing unit>
Example: ping 192.168.0.42
9. Confirm your entry by pressing the enter key on the keyboard
If the connection from the PC to the VS120 processing unit exists, 4 packets are first sent
from the PC to the processing unit as shown above and then 4 packets are returned from the
VS120 processing unit to the PC.
The reply from the VS120 processing unit appears on the PC, for example, as follows:
Reply from 192.168.0.2 bytes=32 time<10ms TTL=255
Reply from 192.168.0.2 bytes=32 time<10ms TTL=255
Reply from 192.168.0.2 bytes=32 time<10ms TTL=255
Reply from 192.168.0.2 bytes=32 time<10ms TTL=255
This is followed by the ping statistics for 192.168.0.2.
8.5 Start setup support over the Internet Explorer
Next step
• If you receive a reply from the VS120 processing unit on the PC, follow the steps
described in the section
• If you do not receive a reply from the VS120 processing unit, repeat the steps described
in the section
and/or contact your network administrator
Establish connection and between VS120 processing unit and PG / PG
Start adjustment support over the Internet Explorer
8.5 8.5 Start setup support over the Internet Explorer
To be able to work with the adjustment support implemented on the VS120 processing unit,
establish a connection from the Internet Explorer to the adjustment support
Requirements
The section
completed successfully. As described in the section
established a confirmed connection from the VS120 processing unit to the PC / PG.
Establishing a connection between the VS120 processing unit and PC / PG
Check the connection
, you have
was
Procedure
1. Start the PC
2. Turn on the power supply of the VS120 processing unit. Once the self-test has
completed, go to "Adjust" in the LSD display
3. Press the OK button of the VS120 processing unit. The IP address appears on the LCD
display
4. Note down the IP address of the VS120 processing unit
5. Start the Internet Explorer
6. In the "IP address" input box, enter the IP address of the VS120 processing unit.
8.5 Start setup support over the Internet Explorer
Result
The start page of the "Vision Sensor SIMATIC VS120" adjustment support appears in the
Internet Explorer. From here, you have access to all functions required to test the models.
Figure 8-3 Home
The adjustment support is started with "Adjust Sensor". The SIMATIC VS120 then
automatically blocks operator input at the VS120 processing unit. The LCD display of the
VS120 processing unit displays the message: "Settings controlled by Web".
8.6 8.6 Adjust the sensor head using setup support
Before you commission the "SIMATIC VS120 Vision Sensor", you must adjust the sensor
head correctly You do this with the "SIMATIC VS120 Vision Sensor" adjustment support that
is available in the Internet Explorer. The adjustment support shows you an image as seen by
the sensor head.
Requirements
Procedure
Note
Online Help
At the bottom right of each page of adjustment support, you will see a “Help” button with
which you can call up online help at any time. The relevant help text of the online help opens
depending on the currently open dialog.
The Start Page of the "SIMATIC VS120 Vision Sensor" adjustment support was started over
the Internet Explorer
1. On the start page of the adjustment support, click on "Sensor Adjustment". The
"Adjustment" user interface opens. The sensor head view is displayed and updated
several times per second.
Notice
If Shutter is set to Auto, the model must remain fully in the image for at least 100 ms.
Result
6. Click the "Apply" button to save the settings.
Note
If you have too many errors, clean the lens and diffuser with a lint-free cloth.
You have successfully commissioned "SIMATIC VS120 Vision Sensor". You can now train
and process your models for your application. Refer to the section
information.
There are two ways of operating the SIMATIC VS120:
• From the VS120 processing unit, see the section:
unit
• Using adjustment support See the section
You can set and change all parameter settings with adjustment support on the PC.
Configuration on the VS120 processing unit itself is limited.
9.2 9.2 Working with the processing unit
9.2.1 Introduction
9
Working with the VS120 processing
Working with adjustment support on the PC
The display of the VS120 processing unit is used to show the coordinates and the orientation
of the test object currently being viewed and the associated quality value. You can also
navigate between the menus and make entries in the LCD display.
Example of an LCD display:
M 01 RUN N
X=−299.0
Y=0.0
↓ OK:Info
Five levels are implemented as selection menus or displays:
1 to 65535 8000 IP port of the Ethernet RS-232 converter
0 to 3600 0
192.168.0.42 IP address of the processing unit
(An IP address consists of four numbers
separated by periods with each number
being in a range from 0 to 255.)
255.255.255.0 The subnet mask indicates which part of
the IP address specifies the network and
which part specifies the VS120
processing unit:
For xxx.xxx.xxx.xxx, binary requires that
the left part be made up of ones without
a gap and the right part be made up of
zeros without a gap. Example:
11111111.10100000 is not permitted.
192.168.0.255 IP address of the network node that can
establish connections outside of the
current subnet
Device-dependent The MAC address (Media Access
Control) is the hardware address of each
network device and is used to identify
the device uniquely in the network.
192.168.0.43 IP address of the Ethernet RS-232
converter or of the PC/PG on which a
TCP server runs.
or of the PC/PG on which a TCP server
runs.
• 0: There is no transfer of cyclic
monitoring frames to determine
whether the connection still exists
between the processing unit and the
Ethernet RS-232 converter or the
PC/PG on which a TCP server runs.
• Otherwise: Time in seconds after
which a monitoring frame is sent to
determine whether the connection
still exists between the processing
unit and the Ethernet RS-232
converter or the PC/PG on which a
TCP server runs. The check is
implemented by sending the "Idling
string" ("IdleStr." menu) to the
recipient at the intervals set with the
parameter. If the check fails, an error
is output (only when the processing
unit is in RUN) and the connection is
reestablished.
xxx.xxx.xxx.xxx
(xxx=0 to 255)
1 to 65535 8765 Corresponding port of this server
0 to 3600 10
\r\n String to determine whether the
connection still exists between the
processing unit and the Ethernet RS-232
converter or the PC/PG on which a TCP
server runs. It is transferred cyclically.
Select this so that the recipient can
clearly distinguish it from the generated
results.
The string can be a maximum of 100
bytes.
192.168.0.45 IP address of the server for diagnostic
information
• 0: There is no transfer of cyclic
monitoring frames to check the
connection between processing unit
and server.
• Otherwise: Time in seconds after
which a monitoring frame is sent to
check the connection between
processing unit and server. If the
server does not respond to this
frame within the monitoring time, an
error is output (only when the
processing unit is in RUN) and the
connection is reestablished.
Parameters
Integrate
Source Integrate>
Edge
(only if Source=
TCP/RS-232)
String
(only if Source=
TCP/RS-232)
Debounce Integrate>
Path Possible Values Default Meaning
Trigger
Integrate>
Trigger
Integrate>
Trigger
Trigger
• DI/DO
• DP or PNIO
• TCP/RS-232
• Rising
• Falling
ASCII characters T If the string specified here is sent over
0 to 9999 ms 0 ms The function indicates the period for
DI/DO Here, you set the port over which the
trigger signal is sent to the processing
unit.
Rising The function indicates whether the
trigger is on a rising or falling edge.
the RS-232 port of an RS-232 Ethernet
converter or a TCP server, the
processing unit generates a trigger
signal.
The following table shows the menus of the RUN menu level.
Menu Meaning
Model Select the model number
Note:
May also be model set depending on the configuration.
STOP Stop processing and change to the STOP menu level
QLimit Enter the quality value for the evaluation as a percentage.
Note:
The display is only visible if you are not working with model sets.
Info Information function
ResetStat Resets all statistical information.
Sequence of tasks in the RUN menu for a model based on the example of a model with number 2:
Step Display Activity
1
STOP
Q−Limit
> Info
Select "Info" on the processing unit at the "RUN" menu level using
the ⇓ and ⇑ arrow keys and press "OK". This opens the first Into
screen.
ESC ↓↑ OK
2
M 02 OK
=3226
=99.907%
Using the arrow buttons ⇓ and ⇑, you can display further Info
screens. Pressing "OK" returns you to the highest hierarchy level
of the "RUN" menu.
1/14 ↓ OK
Step Display Meaning
1
M 02 OK
=3226
=99.907%
1/14 ↓ OK
Since the last processing start, the pattern search for model 2 was
performed successfully in 3226 image recordings. This
corresponds to 99.907% of all images processed since processing
last started.
2
M 02 WARN
=6
=0.194%
6 examinations were below the warning limit since the last start of
processing. This corresponds to 0.194 % of all images processed
since processing last started.
2/14 OK
3
M 02 N_OK
=3
=0.093%
3 specimens could not be identified as model 2 since processing
started. This corresponds to 0.093 % of all images processed
since processing last started.
3/14 OK
4
M 02 Curr.
Cycletime
The required processing time (cycle time) for the specimen
currently under examination is 300 ms.
=300ms
4/14 OK
5
M 02 Cycle
min=120ms
Since the beginning of the statistical analysis for model 02, the
shortest evaluation time was 120 ms and the longest 276 ms.
10 to 2000 2000 Number diagnostic data records that can
Ring
N_OK This is where you specify what causes
Image
Off
Ring
Off As soon as the function is enabled, as
• Type of image buffer:·
• Ring: When the buffer contains 6
entries, entries 1,2 ... are overwritten.
• Stack: When the buffer contains 6
entries, no further entries are made.
an image to be saved.
• Image: If one or more of the causes
listed above occurs, the current
image is saved.
• +/- 1 Image: Not only the current
image but also the previous and next
image are saved.
• On: The image belonging to the next
NOK event is saved permanently in
the EEPROM.
• Ring: When the diagnostic buffer
contains 5000 entries, entries 1,2 ...
are overwritten.
• Stack: When the diagnostic buffer
contains 5000 entries, no further
entries are made.
many diagnostic entries as you specify
in “Entries” are saved in the EEPROM.
Existing entries are deleted when you
switch over to On. If the diagnostic
buffer in the EEPROM reaches the
number of permanently storable
diagnostic data records, no further
entries are made.
The editing data is lost if the Internet Explorer or the input screens are turned off without first
saving the data because the application does not have session memory.
You should therefore always save your data to avoid losing it.
Note
Online Help
At the bottom right of each page of adjustment support, you will see a “Help” button with
which you can call up online help at any time. The relevant help text of the online help opens
depending on the currently open dialog.
Open the Start Page of the adjustment support in the Internet Explorer, refer to the section
"Commissioning using adjustment support on the PG / PC with installed Internet Explorer".
With “Adjust Sensor”, you display the user interface of the SIMATIC VS120.
Note
When you open adjustment support, the dialog that opens corresponds to the current
operating state of the VS120 processing unit. The appropriate job is activated depending on
the previous operating state of the VS120 processing unit.
If, for example, the VS120 processing unit is in Stop mode, the page below opens:
Figure 9-7 Stop
In the left part of the user interface, you will see the list of jobs in the form of buttons. You
activate the required job by clicking on the appropriate button. The corresponding dialog then
opens on the right of the user interface. At the same time, the text of the buttons becomes
bold and the font color changes to blue.
The SIMATIC VS120 Vision Sensor user interface based on the Web server, provides the
following dialog boxes for processing images:
Below the Job buttons, there is a traffic light with which you can see the operating status of
the VS120 processing unit at a glance. The traffic light can have the following states:
• Green: VS120 processing mode with results output
If an error occurs, the traffic light changes to red and the corresponding error message, the
meaning of the error and ways to eliminate the error are displayed.
You acknowledge the error by clicking the "Acknowledge" button.
Figure 9-8 Error Message
Changing the language setting
At the bottom left, you will see a drop-down list box for language selection. You can change
the language setting for the entire user interface at any time.
The currently logged on user, WEB for example, is shown at the upper right of the page. By
clicking on the user name, you open "Options - Security tab".
The following users are possible:
• WEB (default): General user who can execute tasks without explicitly logging on
• Service: Service technicians
• User1: Freely available
• Admin: Administrator
The "Admin" user assigns permissions for all users and changes their passwords.
Help
Note
The "WEB" setting effectively means no user. It simply indicates that there is a connection
between the Web browser and the adjustment support.
At the bottom right, you will see a “Help” button with which you can call up online help at any
time.