Chapter
2
Reference Manual
IVC-2D
24
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Getting Started
We add this step in order to have a copy of the image to draw in. If we draw in the
original image the analysis is affected by our drawings.
50.
Add a
Draw ROI
tool after the
ROI rectangle
step.
This step draws the region of interest in the image. Make sure to draw in the image
bank with the copy of the image.
51.
Add a
Add text
tool after the “Angle within range” step. Set the following parameters:
04=String
‘OK
06=String color
Choose a green color
08=Size
2
You should also specify the location of the text to be displayed with the parameters
01=X origin
and
02=Y origin
. Make sure to draw in the correct image bank.
52.
Add a
Display
tool after the
Add text
step, and set the parameter so that it displays
image bank 1.
53.
Copy the
Add text
and the
Display
steps to after the “Angle within range” step. Change
the text to be displayed to ”Failed” and coloured red.
54.
Choose
Debug
Æ
Run
and watch the result in the Display window.
2.6
Saving the Program
To save the program we have written, use
File
Æ
Save Product
. This will save the program
on the PC (along with all other programs and tables in the product), but not on the device.
The program is present on the device as well, since it is downloaded to the device as you
build it.
But if the power to the device is cut, your program will be lost from the device and has to
be downloaded again from the PC. To prevent this from happening, you may save the
program in the flash memory on the device.
Working
Memory
Active
Program
Active
Table
Flash
Memory
Program
Banks
1
2
3
4
5
...
Product
IVC Studio
Device
Devices
Camera 1
Camera 2
Save in
Flash
Associated
Program
Copied
automatically
Copy values
manually
Associated
Table
To download a program to a device without saving it in the flash memory:
1.
Open the product containing the program.
2.
Make sure the program is associated with the device, and that a table is associated
as well.
3.
Right-click the device in the list of devices, and choose
Start Program
from the pop-up
menu.
The program is downloaded to the device and started. The status of the device is
changed from STOP to RUN.