Sistema de Visão 3d
Sistema de Visão 3d
B-83914EN-3/04
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export from Japan may be subject to an export license by the
government of Japan.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual, we endeavor to include all pertinent matters. There are, however, a very
large number of operations that must not or cannot be performed, and if the manual
contained them all, it would be enormous in volume. It is, therefore, requested to assume
that any operations that are not explicitly described as being possible are "not possible".
B-83914EN-3/04 SAFETY PRECAUTIONS
SAFETY PRECAUTIONS
This chapter describes the precautions which must be followed to enable the safe use of the robot. Before
using the robot, be sure to read this chapter thoroughly.
For detailed functions of the robot operation, read the relevant operator's manual to understand fully its
specification.
For the safety of the operator and the system, follow all safety precautions when operating a robot and its
peripheral equipment installed in a work cell.
For safe use of FANUC robots, you must read and follow the instructions in the “FANUC Robot series
SAFETY HANDBOOK (B-80687EN)”.
1 PERSONNEL
Personnel can be classified as follows.
Operator:
• Turns the robot controller power ON/OFF
• Starts the robot program from operator panel
Maintenance technician:
• Operates the robot
• Teaches the robot inside the safeguarded space
• Performs maintenance (repair, adjustment, replacement)
s-1
SAFETY PRECAUTIONS B-83914EN-3/04
Table 1 (a) lists the work outside the safeguarded space. In this table, the symbol “” means the work
allowed to be carried out by the specified personnel.
During robot operation, programming and maintenance, the operator, programmer, teaching operator and
maintenance technician take care of their safety using at least the following safety protectors:
Symbol Definitions
Used if hazard resulting in the death or serious injury of the user will be expected to
WARNING occur if he or she fails to follow the approved procedure.
Used if a hazard resulting in the minor or moderate injury of the user, or equipment
CAUTION damage may be expected to occur if he or she fails to follow the approved
procedure.
Used if a supplementary explanation not related to any of WARNING and CAUTION
NOTE is to be indicated.
s-2
PREFACE
PREFACE
This chapter describes an overview of this manual. It should be read before operating the iRVision.
CAUTION
This manual is based on R-30iB Plus/R-30iB Mate Plus/R-30iB Compact Plus/
R-30iB Mini Plus system software version 7DF5/17. Note that depending on the
software version of your robot controller, some functions or setup items
described in this manual may not exist, some functions or setup items not
described in this manual may exist, and some notations may be different.
Symbol Description
Describes information that provides help for operating screens, explains a function, or gives
Memo information for reference.
B-83914EN-3/04 p-1
PREFACE
2 RELATED MANUALS
This section introduces other manuals that you can refer to when using the functions of iRVision.
p-2 B-83914EN-3/04
PREFACE
B-83914EN-3/04 p-3
TABLE OF CONTENTS
TABLE OF CONTENTS
SAFETY PRECAUTIONS ............................................................................ s-1
PREFACE ....................................................................................................p-1
Introduction
1 ABOUT iRVision .................................................................................... 3
1.1 iRVision ......................................................................................................... 3
1.2 BASIC CONFIGURATION ............................................................................. 3
1.3 FIXED CAMERA AND ROBOT-MOUNTED CAMERA .................................. 4
1.4 FIXED FRAME OFFSET AND TOOL OFFSET ............................................. 5
1.5 COORDINATE SYSTEMS USED FOR iRVision ........................................... 6
1.6 CALIBRATION GRID ..................................................................................... 9
1.7 MEMORY CARD PREPARATION ............................................................... 10
Setup
1 FEATURES ........................................................................................... 13
2 3D FIXED FRAME OFFSET SYSTEM .................................................. 15
2.1 3D SINGLE-VIEW FIXED FRAME OFFSET SYSTEM USING ROBOT-
MOUNTED CAMERA .................................................................................. 15
2.1.1 Installation and Connection of 3DV Sensor ........................................................... 16
2.1.2 User Frame Setting ................................................................................................. 16
2.1.3 3DV Sensor Data Setting ....................................................................................... 17
2.1.4 Tool Frame Setting ................................................................................................. 17
2.1.5 Setting up Vision Process ....................................................................................... 17
2.1.5.1 Editing vision process ........................................................................................ 17
2.1.5.2 Setting parameters of vision process.................................................................. 18
2.1.5.3 Teaching Snap Tool ........................................................................................... 19
2.1.5.4 Teaching Depth Snap Tool ................................................................................ 20
2.1.5.5 Setting parameters of 3D Data Generator Tool.................................................. 20
2.1.5.6 Teaching GPM Locator Tool ............................................................................. 22
2.1.5.7 Setting up 3D Plane Measurement Tool ............................................................ 24
2.1.5.8 Setting reference position .................................................................................. 26
2.1.6 Editing TP Program ................................................................................................ 27
2.1.7 Checking Robot Offset Operation .......................................................................... 28
2.2 3D SINGLE-VIEW FIXED FRAME OFFSET SYSTEM USING FIXED
CAMERA ..................................................................................................... 29
2.2.1 Installation and Connection of 3DV Sensor ........................................................... 29
2.2.2 User Frame Setting ................................................................................................. 30
2.2.3 3DV Sensor Data Setting ....................................................................................... 31
2.2.4 Tool Frame Setting ................................................................................................. 31
2.2.5 Setting up Vision Process ....................................................................................... 31
2.2.5.1 Editing vision process ........................................................................................ 31
2.2.5.2 Setting parameters of vision process.................................................................. 32
B-83914EN-3/04 c-1
TABLE OF CONTENTS
2.2.5.3 Teaching Snap Tool ........................................................................................... 32
2.2.5.4 Teaching Depth Snap Tool ................................................................................ 33
2.2.5.5 Setting parameters of 3D Data Generator Tool.................................................. 34
2.2.5.6 Teaching GPM Locator Tool ............................................................................. 35
2.2.5.7 Setting up 3D Plane Measurement Tool ............................................................ 38
2.2.5.8 Setting reference position .................................................................................. 40
2.2.6 Editing TP Program ................................................................................................ 41
2.2.7 Checking Robot Offset Operation .......................................................................... 42
2.3 3D MULTI-VIEW FIXED FRAME OFFSET SYSTEM USING ROBOT-
MOUNTED CAMERA .................................................................................. 43
2.3.1 Installation and Connection of 3DV Sensor ........................................................... 43
2.3.2 User Frame Setting ................................................................................................. 44
2.3.3 3DV Sensor Data Setting ....................................................................................... 45
2.3.4 Tool Frame Setting ................................................................................................. 45
2.3.5 Creating and Setting up Vision Process ................................................................. 45
2.3.5.1 Creating a new vision process............................................................................ 45
2.3.5.2 Setting parameters of vision process.................................................................. 47
2.3.5.3 Determining measurement point for each camera view ..................................... 48
2.3.5.4 Setting up Camera View 1 ................................................................................. 49
2.3.5.5 Teaching Snap Tool ........................................................................................... 50
2.3.5.6 Teaching Depth Snap tool.................................................................................. 51
2.3.5.7 Setting parameters of 3D Data Generator Tool.................................................. 52
2.3.5.8 Teaching GPM Locator Tool ............................................................................. 53
2.3.5.9 Setting up 3D Plane Measurement Tool ............................................................ 55
2.3.5.10 Running a test for Camera View 1 ..................................................................... 57
2.3.5.11 Setting up Camera Views 2 to 4 ........................................................................ 58
2.3.5.12 Setting reference position .................................................................................. 58
2.3.6 Creating and Teaching a TP Program .................................................................... 59
2.3.7 Checking Robot Offset Operation .......................................................................... 61
c-2 B-83914EN-3/04
TABLE OF CONTENTS
3.2.4.6 Teaching Depth Snap Tool ................................................................................ 84
3.2.4.7 Setting parameters of 3D Data Generator Tool.................................................. 85
3.2.4.8 Teaching GPM Locator Tool ............................................................................. 86
3.2.4.9 Setting up 3D Plane Measurement Tool ............................................................ 88
3.2.4.10 Running a test for Camera View 1 ..................................................................... 90
3.2.4.11 Setting up Camera Views 2 to 4 ........................................................................ 91
3.2.4.12 Setting reference position .................................................................................. 91
3.2.5 Creating and Teaching a TP Program .................................................................... 92
3.2.6 Checking Robot Offset Operation .......................................................................... 94
Know-How
1 FRAME SETTING ............................................................................... 125
1.1 FRAME SETTING WITH POINTER TOOL ................................................ 125
1.1.1 User Frame Setting ............................................................................................... 125
1.1.1.1 TCP set up ....................................................................................................... 125
1.1.1.2 Setting method types and procedures .............................................................. 132
1.1.2 Tool Frame Setting ............................................................................................... 144
1.2 FRAME SETTING WITH GRID FRAME SETTING FUNCTION ................ 153
1.2.1 Setting Procedure Using Camera Data Edit Screen.............................................. 155
1.2.1.1 Mounting calibration grid ................................................................................ 155
1.2.1.2 Editing the camera data.................................................................................... 157
1.2.1.3 Teaching start position ..................................................................................... 157
1.2.1.4 Running measurement ..................................................................................... 159
1.2.2 Setting Procedure Using iRVision Utilities Screen .............................................. 161
1.2.2.1 Mounting calibration grid ................................................................................ 161
1.2.2.2 Setting parameters ........................................................................................... 164
B-83914EN-3/04 c-3
TABLE OF CONTENTS
1.2.2.3 Teaching start position ..................................................................................... 167
1.2.2.4 Running measurement ..................................................................................... 168
c-4 B-83914EN-3/04
1
Introduction
1 ABOUT iRVision
Introduction 1. ABOUT iRVision
1 ABOUT iRVision
1
This chapter explains offsetting the robot motion using iRVision (integral Robot Vision). iRVision is an
image processing function integrated in a robot controller. It finds parts in an image snapped from a camera,
offsets the robot motion and measures the features of the part. This chapter explains offsetting the robot
motion using iRVision (integral Robot Vision).
1.1 iRVision
FANUC robots are teaching-playback robots. In a teaching-playback system, specific tasks are taught to
robots in advance, which then work exactly as they are taught. A series of instructions that specify what
robots are to do is called a robot program. The process of generating robot programs is called ‘teaching.’
And the act of executing the taught robot programs is called ‘playback.’ Teaching-playback robots play
back the motion just as it was taught. Conversely speaking, what this type of robot can do is limited to what
it is taught in advance. This means that, if you want the robot to manipulate every part in the same way,
you need to place every part in exactly the same position. iRVision is a visual sensor system designed to
eliminate such restrictions. iRVision measures the position of each part by using cameras, and it adjusts the
robot motion so that the robot can manipulate the part in the same way as programmed even if the position
of the part is different from the part position set when the robot program was taught.
iRVision is the vision function integrated into the FANUC robot controller. iRVision incorporates a 2D
Camera that performs a 2D offset and a 3DV Sensor, 3D Area Sensor and 3D Laser Vision Sensor that
perform a 3D offset.
For how to connect the 3DV Sensor and the robot controller, refer to “Sensor Mechanical Unit/Control Unit
OPERATOR’S MANUAL B-83984EN.” Since the camera and lens used for 2D offset are also used for the
3DV Sensor, 2D offset can be performed using the camera and lens for the 3DV Sensor.
B-83914EN-3/04 3
1. ABOUT iRVision Introduction
Fixed Camera
• A fixed camera is attached to the top of the pedestal or another fixed structure and a part is detected.
• A fixed camera always snaps the same place from the same distance.
• As processes in iRVision can be done in parallel when the robot is carrying out other work, the whole
cycle time can be shortened.
• Use a pedestal for a fixed camera that is sturdy enough to be unaffected by vibrations.
Pedestal
Fixed camera
Fixed Camera
Robot-mounted Camera
• The robot-mounted camera is mounted on the wrist unit of the robot.
• By moving the robot, measurement can be done at different locations between the part and the camera.
• When a robot-mounted camera is used, iRVision calculates the position of the part while taking into
account the camera movement resulting from the robot being moved.
• The camera cable moves according to the robot movement, so be careful so that the cables don’t get
tangled.
4 B-83914EN-3/04
Introduction 1. ABOUT iRVision
1
Robot-mounted camera
Robot-mounted Camera
Camera
Part
Plane on which a part moves
B-83914EN-3/04 5
1. ABOUT iRVision Introduction
Tool Offset
With tool offset, the workpiece offset is measured in a coordinate frame that moves with the robot tool.
This method is useful for grippers where the part position in the gripper can vary, such as vacuum grippers.
A workpiece held by the robot is viewed by a camera, and the vision system measures its position relative
to the gripper. The robot then offsets its taught positions so that it can manipulate (place, for example) the
workpiece properly.
Camera
Part
Plane on which a part moves
Tool Offset
6 B-83914EN-3/04
Introduction 1. ABOUT iRVision
Offset Frame
An offset frame is a coordinate system used for calculation of the offset data. A found position, etc. of the
part is outputted as a position on the frame set in the offset frame. Set the offset frame in such a way that
the XY plane of the offset frame is parallel to the plane on which a part moves. For the fixed frame offset,
set the offset frame as a user frame. For the tool offset, set the offset frame as a tool frame.
Memo
The calibration grid frame setting function sets the calibration grid frame using a
camera. Compared with the manual touch-up setting method, this function offers
a number of merits, including accurate setting of the frame without requiring user
skills, no need for touch-up pointers or to set the TCP for touch-up setting, and
semi-automatic easy operation. In calibration grid frame setting, the calibration
grid is measured from multiple directions by using a camera. For details, refer to
“Know-How: 1.2 FRAME SETTING WITH GRID FRAME SETTING FUNCTION.”
Application Frame
Set the robot’s user frame to be used as a reference for camera calibration. The camera is calibrated for the
frame set in the application frame. In most cases, calibration is performed with reference to the world frame
(user frame number 0) of the robot to be offset. Note that in the following cases, you set the user frame and
then set the user frame number as the application frame.
• In cases where the camera is mounted on a robot other than the robot to be offset.
• In cases where the calibration grid is mounted on a robot other than the robot to be offset.
• In cases where the robot to be offset belongs to another group.
The following figure is an example of the calibration grid being mounted on a robot other than the robot to
be offset. As shown in the following figure, when the robot with the camera mounted and the other robot
with the calibration grid mounted are present, set the common plane as a user frame on both robots, and
make it the application frame (set the same user frame number for each robot). In this example, inter-
controller communication is required between the two robots. For details on communication between robot
controllers, refer to the description of INTER-CONTROLLER COMMUNICATION in “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
B-83914EN-3/04 7
1. ABOUT iRVision Introduction
Camera
Z
Y
X
Robot with a camera Common user frame = Application frame
(Robot 1) (Set the same application frame number for each robot)
Example of the calibration grid being mounted on a robot other than the robot to be offset
8 B-83914EN-3/04
Introduction 1. ABOUT iRVision
Y Origin
All the black circles of the calibration grid are arrayed in a square lattice. There are four large black circles
near the center that indicate the frame origin and direction as shown in the picture. The ratio of the diameter
of a large black circle to that of other black circles is approximately 10:6.
For the five grid points arranged in the center and at the four corners, there is a white circle with a diameter
of 1 mm placed at the center of the black circle. This white circle is used when setting the frame with touch-
up using the robot's TCP.
Depending on the application, a calibration grid can be used by fixing it to a table or attaching it to the
robot's gripper. In either case, it is necessary to set the arrangement position and direction (mounting
information) of the calibration grid when performing calibration for the camera.
To set up the information for mounting the calibration grid, attach a pointer tool to the robot's gripper and
set it up by physically performing touch-up (calibration grid setting using touch-up), or set it up
automatically without any contact by using a camera and measuring a grid pattern (calibration grid frame
setting).
B-83914EN-3/04 9
1. ABOUT iRVision Introduction
CAUTION
1 As it takes a long time to delete the vision log, we recommend that you regularly
transfer the data for the vision log to your PC and ensure you have sufficient free
space in your memory card or USB memory. For details on how to export the
vision log to an external device or to delete it, refer to the description of VISION
LOG in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 Data other than a vision log for iRVision may be recorded on a memory card or
USB memory. If the free space drops below the designated capacity, the next
time a vision Process is executed, vision logs will be deleted until the remaining
capacity reaches the designated capacity. Depending on the amount of data that
is deleted, it may take a while to get into a state in which execution of the next
Vision Process can start. E.g., saving a backup to a memory card or USB
memory corresponds to this case.
3 Do not insert a memory card in which a vision log has been recorded using
another robot controller. If you carry out line execution or test execution of a
vision process with the memory card still inserted, the vision log that was
recorded using the original robot controller may be overwritten.
4 Format devices such as memory cards and USB memory to FAT16.
5 If you record images, it may take time to execute detection. Basically, set things
up so that images will not be recorded after you have finished adjustment of the
vision system. For details, refer to the description of VISION LOG in “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
A memory card or a USB memory, when inserted, can be used to back up all data in the robot controller. If
all data in the robot controller is backed up, the vision data can be backed up at the same time. Be sure to
back up all data in the robot controller upon completion of startup or integration.
Moreover, use a memory card provided by FANUC. Use a USB memory recommended by FANUC. If a
memory card or a USB memory other than those recommended is used, normal operation is not guaranteed,
and it may have a bad effect on the controller.
10 B-83914EN-3/04
1
Setup 4
1 FEATURES
2 3D FIXED FRAME OFFSET SYSTEM
3 3D TOOL OFFSET SYSTEM
4 BIN PICKING SYSTEM
Setup 1. FEATURES
1 FEATURES
1
There are the following offset applications for the 3DV Sensor
1 3D fixed frame offset.
2 3D tool offset
3 Bin Picking
Chapter 2 and subsequent chapters of this part describe the flow of the startup procedure and the details of
the teaching procedure for the following vision systems using the 3DV Sensor.
1 Robot-mounted camera + 3D fixed frame offset (single-view / multi-view)
2 Fixed camera + 3D fixed frame offset
3 Fixed camera + 3D tool offset (single-view / multi-view)
4 Fixed camera + Bin Picking
In general, multi-view offset has higher accuracy and longer cycle time than single-view offset.
For details on each teaching item, refer to the descriptions of VISION PROCESSES and COMMAND
TOOLS in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Layout Example
This section describes a typical system layout of the 3DV Sensor system and provides notes on setup. Use
a robot-mounted camera or a fixed camera.
3DV Sensor
Part
Offset frame
Layout example
B-83914EN-3/04 13
1. FEATURES Setup
Precautions
• With the automatic exposure or multi-exposure function, iRVision can handle changes in brightness
to some extent. In a place where there is a large difference in illumination between day and night,
however, some measures must be taken to keep a certain level of illumination at all times. Major
methods include shutting out the sunlight and installing a fluorescent lamp.
• When lighting such as a fluorescent lamp is installed, the inverter type is suitable. This type has less
variation in brightness when an image is snapped. When lighting is provided for a wider area than the
part installation area, there is less variation in brightness in the image of a part even if the part is tilted.
• To perform fixed frame offset, set a user frame as required. It is recommended that the end of arm
tooling be designed in advance so that a touch-up pin can be mounted.
• To perform tool offset, a calibration grid must be mounted on the robot or teaching part. It is
recommended that the end of arm tooling be designed in advance so that a calibration grid can be
mounted.
• When robot motion offset is performed, the wrist axis may turn by a large angle. Prepare a cable long
enough for such robot behavior.
• If the installation position of the 3DV Sensor is displaced from the right position, accurate offset
cannot be performed. The risk of displacement due to interference and so on can be reduced by
installing a guard for the sensor.
• The 3DV Sensor is designed so that the distance to the part during measurement stays within a certain
range. Check the following points when teaching.
1 Whether the robot can reach all the measurement positions.
2 Whether the hand and the 3DV Sensor do not interfere with peripheral equipment during
measurement.
3 Whether an appropriate measurement distance can be secured.
For the detection range, refer to “Sensor Mechanical/Control unit OPERATOR'S MANUAL B-
83984EN.”
• When the 3DV Sensor is to be mounted on the robot and used as a robot-mounted camera, mount it
on such a place that the sensor does not touch a part, container, or peripheral equipment when the
robot picks up the part as well as when the sensor is used for measurement.
14 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Memo
1 This chapter describes the screens and operations in the simple mode unless
otherwise noted. For details on the Simple Mode and Advanced Mode, refer to
the “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 With a controller that can use a tablet TP, the 3D fixed frame offset system can
also be taught using a tablet TP. For details, refer to “Tablet UI OPERATOR’S
MANUAL B-84274EN.”
Part Detection
→3DV Single-View Vision Process
Gripper TCP
→UTOOL[1]
Reference
UFRAME
→UFRAME[1]
Example of a 3D single-view fixed frame offset system configuration using robot-mounted camera
B-83914EN-3/04 15
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1 On the ROBOT Homepage, select [iRVision] → [Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
Z Y
Here, set the user frame to UFRAME [1] as described in the figure ‘Example of a 3D single-view fixed
frame offset system configuration using robot-mounted camera ’ at the beginning of this section.
16 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1 Click [V_3DV_SAMPLE] in the [Vision Process Tools] category on the vision data list screen.
2 Click [EDIT].
The vision process setup screen appears.
B-83914EN-3/04 17
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1
2
3
Memo
If you click to switch to advanced mode, you can enable/disable [Camera
Base Find]. When the checkbox of [Camera Base Find] is checked, a part is
found based on the frame of the 3DV Sensor. When mounting the sensor to the
robot, the sensor snap position changes according to the movement of the robot.
For this reason, you should normally enable [Camera Base Find] to find a part.
18 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Select [Snap Tool 1] in the tree view to open the snap tool teaching screen. In most cases, you can use the
2
initial settings for the sample as they are. However, if the image is too dark or bright, adjust [Exposure
Time] or select [HDR] in [Exposure Mode].
For details on the snap tool, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Memo
1 If the image is still too dark even when the exposure time is set to the maximum
(200 ms), change [LED Type] to [3DV Sensor] and then adjust the “Exposure
Time.”
2 The [HDR] option of [Exposure Mode] combines images snapped at multiple
exposure times, automatically selected according to the surrounding brightness,
into a single image with a wide dynamic range.
B-83914EN-3/04 19
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Setting parameters
1 Click [SNAP].
2 Adjust each parameter so that measurement omission (black area) will be reduced.
For details on each parameter, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Repeat the procedure starting from step 3 until the parameters are adjusted appropriately.
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to “Setup: 2.4 3D
VISION SENSOR” in “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
Setting parameters
20 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1
2
3
Running a test
Check that unnecessary 3D points for part detection have been removed correctly.
B-83914EN-3/04 21
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
If the 3D points on the table plane are not removed, fine-tune the “Table Z
Height.”
Setting parameters
5
1 3
2 7
1 Move the robot so that the part is in the field of view of the camera.
2 After determining the measurement position, click [SNAP] to capture an image.
3 Click the [Teach] button to teach the model.
The GPM Locator Tool model setup screen appears. Teach 2D features used for position detection.
Select features of the model on the same plane as much as possible to reduce the effects of changes in
shape due to parallax. For features that do not need to be included in the model, [Training Mask] can
be set to exclude them from the teach model. For details on teaching 2D features, refer to “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
4 Check that the pattern that you want to use as the model has been plotted with a green line and that
the model origin (green cross) is on the same plane as the pattern.
Memo
If the model origin is not on the same plane as the pattern, click the [Set Org.]
button and move the model origin onto the same plane as the pattern.
In the above example, the model origin is changed to be on the plane (large
circle of the part) at the highest position of the part.
Memo
Change the [Min.] and [Max.] settings for [Orientation], [Scale], and [Aspect] in
[DOF] as necessary. If the distance between the camera and the part varies 2
widely, consider expanding the [Scale] search range setting. If the tilt between
the camera and the part varies widely, consider expanding the [Aspect] search
range setting. Also, if misdetection of the part seems to increase, consider
decreasing the search range parameters. For details, refer to “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
7 Click [SAVE].
Running a test
Memo
Adjust parameters of the GPM Locator Tool if there is a problem. Some
parameters are displayed only in the advanced mode. For this reason, switch the
mode as necessary. For details, refer to “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
4 Change the part position and repeat the same check several times.
B-83914EN-3/04 23
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Setting parameters
1
2
Memo
If the model origin for the GPM Locator Tool is not in the plane you want to
measure, change [2D-3D Gap]. If the model origin is above the Z direction as
seen from the plane you want to measure, specify a positive value for this
setting. For details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
CAUTION
Before setting the 3D Plane Measurement Tool, complete the setting of the GPM
Locator Tool. Also, the measurement area must be taught again if the model of
the GPM Locator Tool is changed.
24 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Running a test
Check whether the taught area is appropriate. If necessary, adjust parameters to enable stable detection.
1 3, 5
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check that a light blue plot is displayed on the surface of the part that you want to measure.
Memo
1 Adjust parameters of the 3D Plane Measurement Tool if there is a problem. For
example, if a light blue plot is displayed on a surface other than the one that you
want to measure, teach [Window Mask]. Also, some parameters are displayed
only in advanced mode. For this reason, switch the mode as necessary. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 In the above example, the measurement area is taught so that the plane (the
large circle section shown on the part) at the highest position of the part will be
measured. Change the measurement area according to the shape of the part.
3 Click [SAVE].
4 Repeat steps 1 to 4 by changing the tilt of the plane.
5 If there is no problem with the test run, change the option for [Plot Mode] to [Plot Measurement Area]
and click [SAVE] again.
B-83914EN-3/04 25
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Then, select [Offset data Calculation Tool] in the tree view, and then set each item.
1 3
CAUTION
From this point forward, do not move the part until teaching of the robot motion
when the part is placed at the reference position is finished in the TP program for
fixed frame offset.
26 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Editing TP Program
Edit the TP program for the 3D fixed frame offset system with a 3DV Sensor.
This system has a pre-installed sample program. This section explains how to create a program for 2
transporting a part while actually performing 3D fixed frame offset based on this sample program.
B-83914EN-3/04 27
2. 3D FIXED FRAME OFFSET SYSTEM Setup
2 Specify the instruction to grasp the part and release the part after the P[4] and P[7] motion instructions,
respectively, using each of the CALL instructions.
• Place the part near the reference position, find it and check that it can be picked up accurately. If the
accuracy of compensation is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation, find it and check that it can be picked
up accurately.
• Rotate the part, find it and check that it can be picked up accurately. If the part on the reference position
can be picked up accurately but the accuracy decreases as the part rotates, the settings of the calibration
grid and of the frame used for offset may not have been performed accurately. If you set the frame
with a pointer tool, check the accuracy of touch-up and retry calibrating the 3DV Sensor.
• Change the part’s height, find it and check that it can be picked up accurately.
• Tilt the part, find it and check that it can be picked up accurately.
28 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Part Detection
→3DV Single-View Vision Process
Gripper TCP
→UTOOL[1]
Reference
UFRAME
→UFRAME[1]
Example of a 3D single-view fixed frame offset system configuration using fixed camera
B-83914EN-3/04 29
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1 On the ROBOT Homepage, select [iRVision] →[Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
Z Y
Here, set the user frame to UFRAME [1] as described in the figure ‘Example of a 3D single-view fixed
frame offset system configuration using fixed camera ’ at the beginning of this section.
30 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1 Click [V_3DV_SAMPLE] in the [Vision Process Tools] category on the vision data list screen.
2 Click [EDIT].
The vision process setup screen appears.
B-83914EN-3/04 31
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1
2
3
Select [Snap Tool 1] in the tree view to open the snap tool teaching screen. In most cases, you can use the
initial settings for the sample as they are. However, if the image is too dark or bright, adjust [Exposure
Time] or select [HDR] in [Exposure Mode].
For details on the snap tool, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
32 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Memo
1 If the image is still too dark even when the exposure time is set to the maximum
(200 ms), change [LED Type] to [3DV Sensor] and then adjust the “Exposure
Time.”
2 The [HDR] option of [Exposure Mode] combines images snapped at multiple
exposure times, automatically selected according to the surrounding brightness,
into a single image with a wide dynamic range.
Setting parameters
1 Click [SNAP].
B-83914EN-3/04 33
2. 3D FIXED FRAME OFFSET SYSTEM Setup
2 Adjust each parameter so that measurement omission (black area) will be reduced.
For details on each parameter, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Repeat the procedure starting from step 1 until the parameters are adjusted appropriately.
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to “Setup: 2.4 3D
VISION SENSOR” in “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
Setting parameters
1
2
3
Running a test
Check that unnecessary 3D points for part detection have been removed correctly.
34 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Memo
If the 3D points on the table plane are not removed, fine-tune the “Table Z
Height.”
Setting parameters
5
1 3
2 7
B-83914EN-3/04 35
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
If the model origin is not on the same plane as the pattern, click the [Set Org.]
button and move the model origin onto the same plane as the pattern.
In the above example, the model origin is changed to be on the plane (large
circle of the part) at the highest position of the part.
Memo
Change the [Min.] and [Max.] settings for [Orientation], [Scale], and [Aspect] in
[DOF] as necessary. If the distance between the camera and the part varies
widely, consider expanding the [Scale] search range setting. If the tilt between
the camera and the part varies widely, consider expanding the [Aspect] search
range setting. Also, if misdetection of the part seems to increase, consider
decreasing the search range parameters. For details, refer to “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
7 Click [SAVE].
36 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Running a test
Memo
Adjust parameters of the GPM Locator Tool if there is a problem. Some
parameters are displayed only in the advanced mode. For this reason, switch the
mode as necessary. For details, refer to “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
4 Change the part position and repeat the same check several times.
B-83914EN-3/04 37
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Setting parameters
1
2
CAUTION
Before setting the 3D Plane Measurement Tool, complete the setting of the GPM
Locator Tool. Also, the measurement area must be taught again if the model of
the GPM Locator Tool is changed.
38 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Running a test
Check whether the taught area is appropriate. If necessary, adjust parameters to enable stable detection.
1 3, 5
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check that a light blue plot is displayed on the surface of the part that you want to measure.
Memo
1 Adjust parameters of the 3D Plane Measurement Tool if there is a problem. For
example, if a light blue plot is displayed on a surface other than the one that you
want to measure, teach [Window Mask]. Also, some parameters are displayed
only in advanced mode. For this reason, switch the mode as necessary. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 In the above example, the measurement area is taught so that the plane (the
large circle section shown on the part) at the highest position of the part will be
measured. Change the measurement area according to the shape of the part.
3 Click [SAVE].
4 Repeat steps 1 to 4 by changing the tilt of the plane.
5 If there is no problem with the test run, change the option for [Plot Mode] to [Plot Measurement Area]
and click [SAVE] again.
B-83914EN-3/04 39
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Then, select [Offset data Calculation Tool] in the tree view, and then set each item.
1 3
CAUTION
From this point forward, do not move the part until teaching of the robot motion
when the part is placed at the reference position is finished in the TP program for
fixed frame offset.
40 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Editing TP Program
Edit the TP program for the 3D fixed frame offset system with a 3DV Sensor.
This system has a pre-installed sample program. This section explains how to create a program for 2
transporting a part while actually performing 3D fixed frame offset based on this sample program.
Positions
P[1: Home] Home position. The robot’s waiting position and posture when it is not doing
anything.
P[2: Search] The detection position. The robot’s position and posture when the sensor has
found the part.
P[3: Pick Approach] The approach position when picking the part. In most cases, it is right above
the part that needs to be picked up.
P[4: Pick] The part pick position. It is the position at which the part is actually picked up
(grasped).
P[5: Pick Retract] The pick retraction position. A relay point when moving from the pick up
position to the placement position.
P[6: Place Approach] The placement approach position.
P[7: Place] The placement position.
P[8: Place Retract] The place retraction position. It can be the same position and posture as P[6].
B-83914EN-3/04 41
2. 3D FIXED FRAME OFFSET SYSTEM Setup
2 Specify the instruction to grasp the part and release the part after the P[4] and P[7] motion instructions,
respectively, using each of the CALL instructions.
• Place the part near the reference position, find it and check that it can be picked up accurately. If the
accuracy of compensation is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation, find it and check that it can be picked
up accurately.
• Rotate the part, find it and check that it can be picked up accurately. If the part near the reference
position can be picked up accurately but the accuracy decreases as the part rotates, the settings of the
calibration grid and of the frame used for offset may not have been performed accurately. If you set
the frame with a pointer tool, check the accuracy of touch-up and retry calibrating the 3DV Sensor.
• Change the part’s height, find it and check that it can be picked up accurately.
• Tilt the part, find it and check that it can be picked up accurately.
42 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Memo
With this system, measurement is performed at multiple measurement points.
The offset precision is improved by selecting measurement points that are as far
apart as possible, so a robot-mounted camera is suitable for measurement. It is
possible to measure at multiple points with a fixed camera, but measuring with
multiple cameras is preferable.
It is also possible to use multiple robot-mounted cameras or to use a
combination of robot-mounted and fixed cameras.
3DV Sensor
Gripper TCP
→UTOOL[1]
Part
Reference UFRAME
→UFRAME[1]
Pallet
Example of a 3D multi-view fixed frame offset system configuration using a robot-mounted camera
B-83914EN-3/04 43
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1 On the ROBOT Homepage, select [iRVision] → [Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
Z
X
Here, set the user frame to UFRAME [1] as described in the figure ‘Example of a 3D multi-view fixed
frame offset system configuration using a robot-mounted camera’ at the beginning of this section.
44 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1 Click [CREATE].
A pop-up is displayed for creating new vision data.
B-83914EN-3/04 45
2. 3D FIXED FRAME OFFSET SYSTEM Setup
5 Click [EDIT].
The vision process setup screen appears.
46 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1
2
Memo
If you click to switch to advanced mode, you can enable/disable [Camera
Base Find]. When the checkbox of [Camera Base Find] is checked, a part is
found based on the frame of the 3DV Sensor. When mounting the sensor to the
robot, the sensor snap position changes according to the movement of the robot.
For this reason, you should normally enable [Camera Base Find] to find a part.
Also, with “3DV Multi-View Vision Process”, multiple camera views must be set
up. If [Camera Base Find] is enabled, the detection position of all camera views
is the position based on the 3DV Sensor’s frame.
B-83914EN-3/04 47
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Determine the measurement points with the camera views arranged as follows.
In this section, the camera views are set up with the measurement points near the red circles in the figure
below. The numbers indicate the camera view numbers.
3 1
4 2
48 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1
3
B-83914EN-3/04 49
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
Once the detection position is determined, it is convenient to store the position in
a position register.
For details about setting up the position registers and an example TP program,
refer to “Setup: 2.3.6 Creating and Teaching a TP Program.”
Select [Snap Tool 1] in the tree view to open the snap tool teaching screen. In most cases, you can use the
initial settings for the sample as they are. However, if the image is too dark or bright, adjust [Exposure
Time] or select [HDR] in [Exposure Mode].
For details on the snap tool, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Memo
1 If the image is still too dark even when the exposure time is set to the maximum
(200 ms), change [LED Type] to [3DV Sensor] and then adjust the “Exposure
Time.”
2 The [HDR] option of [Exposure Mode] combines images snapped at multiple
exposure times, automatically selected according to the surrounding brightness,
into a single image with a wide dynamic range.
50 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1 Click [SNAP].
2 Adjust each parameter so that measurement omission (black area) will be reduced.
For details on each parameter, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Repeat the procedure starting from step 1 until the parameters are adjusted appropriately.
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to “Setup: 2.4 3DV
SENSOR” in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
B-83914EN-3/04 51
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Setting parameters
1
2
3
Running a test
Check that unnecessary 3D points for part detection have been removed correctly.
52 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
2 Check that unnecessary 3D points for part detection have been removed correctly.
The area displayed in red is a removed 3D point group. Check whether the area other than the part is
displayed in red.
2
Memo
If the 3D points on the table plane are not removed, fine-tune the “Table Z
Height.”
Setting parameters
1 6
Memo
If the model origin is not on the same plane as the pattern, click the [Set Org.]
button and move the model origin onto the same plane as the pattern.
B-83914EN-3/04 53
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
Change the [Min.] and [Max.] settings for [Orientation], [Scale], and [Aspect] in
[DOF] as necessary. If the distance between the camera and the part varies
widely, consider expanding the [Scale] search range setting. If the tilt between
the camera and the part varies widely, consider expanding the [Aspect] search
range setting. Also, if misdetection of the part seems to increase, consider
decreasing the search range parameters. For details, see “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
6 Click [SAVE].
Running a test
Memo
Adjust parameters of the GPM Locator Tool if there is a problem. Some
parameters are displayed only in the advanced mode. For this reason, switch the
mode as necessary. For details, refer to “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
54 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Memo
If the model origin for pattern matching is not in the plane you want to measure,
change [2D-3D Gap]. If the model origin is above the Z direction as seen from
the plane you want to measure, specify a positive value for this setting. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
CAUTION
Before setting the 3D Plane Measurement Tool, complete the setting of the GPM
Locator Tool. Also, the measurement area must be taught again if the model of
the GPM Locator Tool is changed.
Running a test
Check whether the taught area is appropriate. If necessary, adjust parameters to enable stable detection.
B-83914EN-3/04 55
2. 3D FIXED FRAME OFFSET SYSTEM Setup
1 4
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check that a light blue plot is displayed on the surface of the part that you want to measure.
Memo
1 Adjust parameters of the 3D Plane Measurement Tool if there is a problem. For
example, if a light blue plot is displayed on a surface other than the one that you
want to measure, teach [Window Mask]. Also, some parameters are displayed
only in advanced mode. For this reason, switch the mode as necessary. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 Change the measurement area according to the shape of the part.
3 If there is no problem with the test run, change the option for [Plot Mode] to [Plot Measurement Area].
4 Click [SAVE].
56 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check whether detection was successful.
If the features you want to detect on the screen are plotted with a green line, detection completed
without problems.
CAUTION
From this point forward, do not move the part until teaching of the robot motion
when the part is placed at the reference position is finished in the TP program for
fixed frame offset.
Memo
1 The reference position in “3DV Multi-View Vision Process” in “Setup: 2.3.5.12
Setting Reference Position” is set using the detection results from the camera
views. Therefore, if detection with the camera view is not successful, vision
process setup is not complete.
If detection with the camera view is unsuccessful, review the parameter settings
of the child tools, and check whether the detection is performed correctly again.
2 The value for [Lean angle] is not displayed in the result display area at this
stage. It will be displayed after the reference position is set in “Setup: 2.3.5.12
Setting Reference Position.”
B-83914EN-3/04 57
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
1 When storing the camera view detection position in a position register, it is
convenient to store each camera view’s position in a different position register. If
you are creating a TP program based on the example in “Setup: 2.3.6 Creating
and Teaching a TP Program”, set up the position registers based on the setting
example too.
2 In the initial state, four camera views are available on the assumption that four
points will be measured, but if it is impractical to measure four points, you can
delete one of the camera views. However, Camera View 1 cannot be deleted.
3 When setting up Camera Views 2 to 4, snap after you have moved the robot to
each of the measurement positions. Be careful not to continue setup with the
same image snapped from another camera view.
Select [Offset data Calculation Tool] in the tree view, and then set each item.
1 3
58 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
CAUTION
Do not click [SNAP] or [SNAP+FIND] at this point. If you take a snap, the images
snapped at the current position is reflected in all camera views, and the
reference position will not be set correctly. 2
If you mistakenly click [SNAP] or [SNAP+FIND], move the robot to each camera
view’s measurement position, and repeat the test run for each camera view
again.
2 Check that the part has been found correctly, and click [Set] of [Ref. Pos. Status].
3 Click [SAVE] and then [END EDIT].
Position registers
PR [1: Home] Home position. The robot’s waiting position and posture when it is not doing
any work.
PR [2: Search1] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 1.
PR [3: Search2] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 2.
PR [4: Search3] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 3.
PR [5: Search4] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 4.
PR [6: Pick Approach] The approach position when picking the part. In most cases, it is right above
the part that needs to be picked up.
PR [7: Pick] The part pick position. It is the position at which the part is actually picked
up (grasped).
PR [8: Pick Retract] The pick retraction position. A relay point when moving from the pick
position to the placement position.
PR [9: Place Approach] The placement approach position.
PR [10: Place] The placement position.
PR [11: Place Retract] The place retraction position. It can be the same position and posture as
PR[9].
B-83914EN-3/04 59
2. 3D FIXED FRAME OFFSET SYSTEM Setup
Memo
For the CALL commands on lines 41 and 48, specify the commands to grasp
and release the part, respectively.
60 B-83914EN-3/04
Setup 2. 3D FIXED FRAME OFFSET SYSTEM
Start with lower override of the robot to check that the logic of the program and the motion of the robot are
correct. Next, increase the override and keep the robot running continuously to check that it works properly.
Memo
Here, you need to move the part to check the operation. Move the part so that
the part features taught for each camera view are within the field of view for each
camera view, and then check operation.
• Place the part near the reference position, find it and check that it can be picked up accurately. If the
accuracy of compensation is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation, find it and check that it can be picked
up accurately.
• Rotate the part, find it and check that it can be picked up accurately. If the part near the reference
position can be picked up accurately but the accuracy decreases as the part rotates, the settings of the
calibration grid and of the frame used for offset may not have been performed accurately. If you set
the frame with a pointer tool, check the accuracy of touch-up and retry calibrating the 3DV Sensor.
• Change the part’s height, find it and check that it can be picked up accurately.
• Tilt the part, find it and check that it can be picked up accurately.
B-83914EN-3/04 61
3. 3D TOOL OFFSET SYSTEM Setup
Memo
This chapter describes the screens and operations in the simple mode unless
otherwise noted. For details on the Simple Mode and Advanced Mode, refer to
the “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Part Detection
→3DV Single-View Vision Process
Y Gripper TCP
→UTOOL[1]
X
Z
Part
62 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
1 On the ROBOT Homepage, select [iRVision] →[Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
B-83914EN-3/04 63
3. 3D TOOL OFFSET SYSTEM Setup
1 Click [V_3DV_SAMPLE] in the [Vision Process Tools] category on the vision data list screen.
2 Click [EDIT].
The vision process setup screen appears.
64 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
1
2
3
NOTE
When working on step 4, make sure that the part will not be hidden behind the
robot or the gripper. From this point forward, do not move the part and robot until
teaching of the robot motion when the part is placed at the reference position is
finished in the TP program for tool offset.
B-83914EN-3/04 65
3. 3D TOOL OFFSET SYSTEM Setup
Select [Snap Tool 1] in the tree view to open the snap tool teaching screen. In most cases, you can use the
initial settings for the sample as they are. However, if the image is too dark or bright, adjust [Exposure
Time] or select [HDR] in [Exposure Mode].
For details on the snap tool, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Memo
1 If the image is still too dark even when the exposure time is set to the maximum
(200 ms), change [LED Type] to [3DV Sensor] and then adjust the “Exposure
Time.”
2 The [HDR] option of [Exposure Mode] combines images snapped at multiple
exposure times, automatically selected according to the surrounding brightness,
into a single image with a wide dynamic range.
66 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Setting parameters
3
1 Click [SNAP].
2 Adjust each parameter so that measurement omission (black area) is removed from the part to be
measured. For details on each parameter, refer to "iRVision OPERATOR’S MANUAL (Reference)
B-83914EN". Repeat the procedure starting from step 1 until the parameters are adjusted appropriately.
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to "Setup: 2.4 3D
VISION SENSOR" in “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
Setting parameters
B-83914EN-3/04 67
3. 3D TOOL OFFSET SYSTEM Setup
1
2
Running a test
Check that 3D points necessary for the part detection have been detected correctly.
Memo
If many 3D points other than the part are found, it may be improved by checking
the [Enable] checkbox in [Table RM.] and adjusting the table height.
If [Table RM.] is enabled, the removed 3D point cloud will be displayed in red.
Check that the areas other than the part are displayed in red.
68 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Setting parameters
3
5
1 3
2 7
Memo
If the model origin is not on the same plane as the pattern, click the [Set Org.]
button and move the model origin onto the same plane as the pattern.
B-83914EN-3/04 69
3. 3D TOOL OFFSET SYSTEM Setup
Memo
Change the [Min.] and [Max.] settings for [Orientation], [Scale], and [Aspect] in
[DOF] as necessary. If the distance between the camera and the part varies
widely, consider expanding the [Scale] search range setting. If the tilt between
the camera and the part varies widely, consider expanding the [Aspect] search
range setting. Also, if misdetection of the part seems to increase, consider
decreasing the search range parameters. For details, refer to “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
7 Click [SAVE].
Running a test
Memo
Adjust parameters of the GPM Locator Tool if there is a problem. Some
parameters are displayed only in the advanced mode. For this reason, switch the
mode as necessary. For details, refer to “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
4 Change the part position and repeat the same check several times.
70 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Setting parameters 3
1
2
Memo
If the model origin for the GPM Locator Tool is not in the plane you want to
measure, change [2D-3D Gap]. If the model origin is above the Z direction as
seen from the plane you want to measure, specify a positive value for this
setting. For details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
CAUTION
Before setting the 3D Plane Measurement Tool, complete the setting of the GPM
Locator Tool. Also, the measurement area must be taught again if the model of
the GPM Locator Tool is changed.
B-83914EN-3/04 71
3. 3D TOOL OFFSET SYSTEM Setup
Running a test
Check whether the taught area is appropriate. If necessary, adjust parameters to enable stable detection.
1 3, 5
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check that a light blue plot is displayed on the surface of the part that you want to measure.
Memo
1 Adjust parameters of the 3D Plane Measurement Tool if there is a problem. For
example, if a light blue plot is displayed on a surface other than the one that you
want to measure, teach [Window Mask]. Also, some parameters are displayed
only in advanced mode. For this reason, switch the mode as necessary. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 Change the measurement area according to the shape of the part.
3 Click [SAVE].
4 Repeat steps 1 to 3 by changing the tilt of the plane.
5 If there is no problem with the test run, change the option for [Plot Mode] to [Plot Measurement Area]
and click [SAVE] again.
72 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Then, select [Offset data Calculation Tool] in the tree view, and then set each item.
1 3
B-83914EN-3/04 73
3. 3D TOOL OFFSET SYSTEM Setup
Editing TP Program
Edit the TP program for 3D tool offset system with a 3DV Sensor.
This system has a pre-installed sample program. This section explains how to create a program for
transporting a part while actually performing 3D tool offset based on this sample program.
74 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
2 Specify the instruction to release the part after the P[4] motion instruction using the CALL instruction.
B-83914EN-3/04 75
3. 3D TOOL OFFSET SYSTEM Setup
• Grasp the part on the reference position, find it and check the handling accuracy. If the handling
accuracy is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation and find it while gripping it to check
the handling accuracy.
• Rotate the part and find it while gripping it to check the handling accuracy. If the part near the reference
position can be handled accurately but the accuracy decreases as the part rotates and is grasped, the
settings of the calibration grid and of the frame used for offset may not have been performed accurately.
If you set the frame with a pointer tool, check the accuracy of touch-up and retry calibrating the 3DV
Sensor.
• Change the distance from the camera to the part and find it while gripping it to check the handling
accuracy.
• Tilt the part and find it while gripping it to check the handling accuracy.
Memo
Depending on the shape of the part and the gripper, it may not be possible to
grip the part in the states described above. If this is the case, the check is not
required.
76 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Memo
With this system, measurement is performed at multiple measurement points.
The offset precision is improved by selecting measurement points that are as far
apart as possible. If possible, measuring with multiple cameras is preferable.
3DV Sensor
B-83914EN-3/04 77
3. 3D TOOL OFFSET SYSTEM Setup
1 On the ROBOT Homepage, select [iRVision] → [Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
78 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
1 Click [CREATE].
A pop-up is displayed for creating new vision data.
B-83914EN-3/04 79
3. 3D TOOL OFFSET SYSTEM Setup
4 Click [OK].
A new program is created.
5 Click [EDIT].
The vision process setup screen appears.
1
2
80 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Memo
If you click to switch to advanced mode, you can enable/disable [Camera
Base Find]. If you select the [Camera Base Find] check box, the part is detected
based on the 3DV Sensor’s frame.
Also, with “3DV Multi-View Vision Process”, multiple camera views must be set
up. If [Camera Base Find] is enabled, the detection position of all camera views
3
is the position based on the 3DV Sensor’s frame.
Determine the measurement points with the camera views arranged as follows.
In this section, the camera views are set up with the measurement points near the red circles in the figure
below. The numbers indicate the camera view numbers.
2
1
3 4
B-83914EN-3/04 81
3. 3D TOOL OFFSET SYSTEM Setup
Setting parameters
1
3
82 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Memo
Once the detection position is determined, it is convenient to store the position in
a position register.
For details about setting up the position registers and an example TP program,
refer to “Setup: 3.2.5 Creating and Teaching a TP Program.”
3
Teaching Snap Tool
Set parameters for snapping 2D images.
Select [Snap Tool 1] in the tree view to open the Snap Tool teaching screen. In most cases, you can use the
initial settings for the sample as they are. However, if the image is too dark or bright, adjust [Exposure
Time] or select [HDR] in [Exposure Mode].
For details on the snap tool, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Memo
1 If the image is still too dark even when the exposure time is set to the maximum
(200 ms), change [LED Type] to [3DV Sensor] and then adjust the “Exposure
Time.”
2 The [HDR] option of [Exposure Mode] combines images snapped at multiple
exposure times, automatically selected according to the surrounding brightness,
into a single image with a wide dynamic range.
B-83914EN-3/04 83
3. 3D TOOL OFFSET SYSTEM Setup
Setting parameters
1 Click [SNAP].
2 Adjust the parameters so that measurement omission (black area) is removed from the part to be
measured.
For details on each parameter, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to “Setup: 2.4 3DV
Sensor” in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
84 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Setting parameters
3
1
2
Running a test
Check that the 3D points required for part detection have been detected correctly.
B-83914EN-3/04 85
3. 3D TOOL OFFSET SYSTEM Setup
Memo
If many 3D points other than the part are found, it may be improved by checking
the [Enable] checkbox in [Table RM.] and adjusting the table height.
If [Table RM.] is enabled, the removed 3D point cloud will be displayed in red.
Check that the areas other than the part are displayed in red.
Setting parameters
1 6
86 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Memo
If the model origin is not on the same plane as the pattern, click the [Set Org.]
button and move the model origin onto the same plane as the pattern.
6 Click [SAVE].
Running a test
B-83914EN-3/04 87
3. 3D TOOL OFFSET SYSTEM Setup
Memo
Adjust parameters of the GPM Locator Tool if there is a problem. Some
parameters are displayed only in the advanced mode. For this reason, switch the
mode as necessary. For details, refer to “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
Setting parameters
Memo
If the model origin for the GPM Locator Tool is not in the plane you want to
measure, change [2D-3D Gap]. If the model origin is above the Z direction as
seen from the plane you want to measure, specify a positive value for this
setting. For details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
88 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
CAUTION
Before setting the 3D Plane Measurement Tool, complete the setting of the GPM
Locator Tool. Also, the measurement area must be taught again if the model of
the GPM Locator Tool is changed.
Running a test 3
Check whether the taught area is appropriate. If necessary, adjust parameters to enable stable detection.
1 4
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check that a light blue plot is displayed on the surface of the part that you want to measure.
Memo
1 Adjust parameters of the 3D Plane Measurement Tool if there is a problem. For
example, if a light blue plot is displayed on a surface other than the one that you
want to measure, teach [Window Mask]. Also, some parameters are displayed
only in advanced mode. For this reason, switch the mode as necessary. For
details, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
2 Change the measurement area to match the shape of the part.
3 If there is no problem with the test run, change the option for [Plot Mode] to [Plot Measurement Area].
4 Click [SAVE].
B-83914EN-3/04 89
3. 3D TOOL OFFSET SYSTEM Setup
1 Click [SNAP+FIND].
An image is snapped and detection is performed.
2 Check whether detection was successful.
If the features you want to detect on the screen are plotted with a green line, detection completed
without problems.
CAUTION
From here on, do not move the part until teaching for the robot operation while
holding the part at the reference position with the TP program for tool offset is
finished.
Memo
1 The reference position in “3DV Multi-View Vision Process” in “Setup: 3.2.4.12
Setting reference position” is set using the detection results from the camera
views. Therefore, if detection with the camera view is not successful, vision
process setup is not complete.
If detection with the camera view is unsuccessful, review the parameters for the
child tools, and check whether detection is performed correctly again.
2 The value for [Lean Angle] is not displayed in the result display area at this
stage. It will be displayed after the reference position is set in “Setup: 3.2.4.12
Setting reference position.”
90 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
Select [Offset data Calculation Tool] in the tree view, and then set each item.
1 3
B-83914EN-3/04 91
3. 3D TOOL OFFSET SYSTEM Setup
CAUTION
Do not click [SNAP] or [SNAP+FIND] at this point. If you make a snap, the snap
images of all camera views will be reacquired at the current position, and the
reference position will not be set correctly.
If you mistakenly click [SNAP] or [SNAP+FIND], move the robot to each camera
view’s measurement position, and repeat the test run for each camera view
again.
2 Check that the part has been found correctly, and click the [Set] button of [Ref. Pos. Status].
3 Click [SAVE] and then [END EDIT].
Position registers
PR [1: Home] Home position. The robot’s waiting position and posture when it is not doing
any work.
PR [2: Search1] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 1.
PR [3: Search2] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 2.
PR [4: Search3] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 3.
PR [5: Search4] The detection position. The robot’s position and posture when the sensor has
found the part in Camera View 4.
PR [9: Place Approach] The placement approach position.
PR [10: Place] The placement position.
PR [11: Place Retract] The place retraction position. It can be the same position and posture as
PR[9].
92 B-83914EN-3/04
Setup 3. 3D TOOL OFFSET SYSTEM
1: UFRAME_NUM=1
Specify the tool frame number set in “3.2.3
2: UTOOL_NUM=1
Tool Frame Setting.”
3: J PR[1:Home] 30% FINE
4:
5: LBL[10]
6: !SEARCH 1
7: J PR[2:Serach1] 100% FINE Wait for robot-vibration to reduce.
8: WAIT .30(sec)
Execute measurement of Camera View 1.
3
9: VISION RUN_FIND 'V_3DV_MULTI' CAMERA_VIEW[1]
10: VISION GET_NFOUND 'V_3DV_MULTI' R[14] CAMERA_VIEW[1]
11: IF R[14]<1,JMP LBL[999] Get the number of found for Camera View 1.
12:
13: !SEARCH 2 Jump to the last row when not found for
14: J PR[3:Serach2] 100% FINE Camera View 1.
15: WAIT .30(sec)
16: VISION RUN_FIND 'V_3DV_MULTI' CAMERA_VIEW[2]
17: VISION GET_NFOUND 'V_3DV_MULTI' R[14] CAMERA_VIEW[2]
18: IF R[14]<1,JMP LBL[999]
19:
20: !SEARCH 3
21: J PR[4:Serach3] 100% FINE
22: WAIT .30(sec)
23: VISION RUN_FIND 'V_3DV_MULTI' CAMERA_VIEW[3]
24: VISION GET_NFOUND 'V_3DV_MULTI' R[14] CAMERA_VIEW[3]
25: IF R[14]<1,JMP LBL[999]
26:
27: !SEARCH 4
28: J PR[5:Serach4] 100% FINE
29: WAIT .30(sec)
30: VISION RUN_FIND 'V_3DV_MULTI' CAMERA_VIEW[4]
31: VISION GET_NFOUND 'V_3DV_MULTI' R[14] CAMERA_VIEW[4]
32: IF R[14]<1,JMP LBL[999]
33:
34: !GET OFFSET DATA
Get the offset data in the measurement
35: VISION GET_OFFSET 'V_3DV_MULTI' VR[1] JMP LBL[999]
results (jump to the last row when failed to
36:
get).
37: !PLACE
38: L PR[9:Place Approach] 800mm/sec CNT100 VOFFSET,VR[1]
39: L PR[10:Place] 200mm/sec FINE VOFFSET,VR[1]
40: !Insert program instruction to release the part Move to the part placement position.
41: CALL ...
42: L PR[11:Place Retract] 800mm/sec CNT100 VOFFSET,VR[1]
43: JMP LBL[10]
44:
45: !ERROR
46: LBL[999]
Memo
For the CALL command on line 41, specify the command to release the part.
B-83914EN-3/04 93
3. 3D TOOL OFFSET SYSTEM Setup
Start with lower override of the robot to check that the logic of the program and the motion of the robot are
correct. Next, increase the override and keep the robot running continuously to check that it works properly.
Memo
Here, you need to move the part to check the operation. Move the part so that
the part features taught for each camera view are within the field of view for each
camera view, and then check operation.
• Grasp the part on the reference position, find it and check the handling accuracy. If the handling
accuracy is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation, find it and check the handling
accuracy.
• Rotate the part, find it and check the handling accuracy. If the part near the reference position can be
handled accurately but the accuracy decreases as the part rotates, the settings of the calibration grid
and of the frame used for offset may not have been performed accurately. If you set the frame with a
pointer tool, check the accuracy of touch-up and retry calibrating the 3DV Sensor.
• Change the distance from the camera to the part and find it while gripping it to check the handling
accuracy.
• Tilt the part and find it while gripping it to check the handling accuracy.
Memo
Depending on the shape of the part and the gripper, it may not be possible to
grip the part in the states described above. If this is the case, the check is not
required.
94 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Memo
This chapter describes the screens and operations in the simple mode unless 4
otherwise noted. For details on the Simple Mode and Advanced Mode, refer to
the “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
SEARCH
Interference Avoidance: ROBOT Data → 3DV Single-View Vision Process
→ a Cylinder Shaped Tool Object
B-83914EN-3/04 95
4. BIN PICKING SYSTEM Setup
1 On the ROBOT Homepage, select [iRVision] →[Vision Devices], and select the connected 3DV
Sensor on the Vision Devices screen.
2 Click [LIVE] and check that continuously snapped images are displayed.
96 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Y
4
Here, set the user frame to UFRAME [1] as described in the figure ‘Example of Bin Picking system
configuration’ at the beginning of this chapter.
B-83914EN-3/04 97
4. BIN PICKING SYSTEM Setup
1
2
3
UF[1]
X
Container Pos. X
Setting up a container
98 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
SYSTEM1
4
Check that the position and size of the container are correct.
B-83914EN-3/04 99
4. BIN PICKING SYSTEM Setup
1 Set the size and positions in the following figure for [Radius], [Base Center1], and [Base Center2].
Base Center1
100 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
ROBOT1
Check that the position and size of the tool object are correct.
1
2
B-83914EN-3/04 101
4. BIN PICKING SYSTEM Setup
The Bin Picking system using a fixed camera mainly uses the following two types of detection methods:
• 3D Blob Locator Tool
• GPM Locator Tool + 3D plane measurement command tool
This section explains the settings for the former method.
1 Click [V_3DV_SAMPLE] in the [Vision Process Tools] category on the vision data list screen.
2 Click [EDIT].
The vision process setup screen appears.
3 Select an unnecessary command tool from the tree view of the vision process and click the button
to delete it.
For the SEARCH Vision Process of the Bin Picking system to be set up, delete [Snap Tool 1] and
[GPM Locator Tool 1].
102 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Memo
1 For the sample vision process, the Snap Tool, Depth Snap Tool, 3D Data
Generator Tool, GPM Locator Tool, 3D plane measurement command tool, and
offset data calculation tool are placed by default.
2 Deleting the GPM Locator Tool deletes the 3D plane measurement command
tool at the same time.
3 Since the offset data calculation tool cannot be deleted, leave it as unset.
1
2
3
B-83914EN-3/04 103
4. BIN PICKING SYSTEM Setup
Setting parameters
1 Click [SNAP].
2 Adjust each parameter so that measurement omission (black area) will be reduced.
For details on each parameter, refer to “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
Repeat the procedure starting from step 1 until the parameters are adjusted appropriately.
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to “Setup: 2.4 3D
VISION SENSOR” in “iRVision OPERATOR’S MANUAL (Reference) B-
83914EN.”
104 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Setting parameters
B-83914EN-3/04 105
4. BIN PICKING SYSTEM Setup
4 Set the depth from the top of the container for [Container Depth].
When [Container Depth] is changed, the result of 3D points in the container being removed (red points
in the figure) is displayed. Adjust [Container Depth] based on the result.
Running a test
Check that unnecessary 3D points for part detection have been removed correctly.
106 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
1 Select [3DV Single-View Vis. Proc] in the tree-view and click the button.
A pop up to create a new vision tool appears.
2 Click [3D Blob Locator Tool] in [Type].
[3D Blob Locator Tool 1] is automatically set for [Name], but no change is needed here.
3 Click [OK].
3D Blob Locator Tool has been added.
4
Select [3D Blob Locator Tool 1] in the tree view, and then set each item.
Setting parameters
1
2
For details on each parameter, refer to the description of commands in “iRVision OPERATOR’S
MANUAL (Reference) B-83914EN.”
B-83914EN-3/04 107
4. BIN PICKING SYSTEM Setup
Running a test
Check whether the part is correctly detected. Adjust each parameter to enable stable detection.
1 3
1 Click [SNAP+FIND].
An image is snapped, and detection is performed.
2 Check measurement results.
Check that unnecessary 3D points for part detection have been removed correctly.
3 Click [SAVE] and then [END EDIT] if there is no problem with the detection results.
108 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
4
4.7.1 Selection of Parts List
On the Parts List Manager list screen, select the pre-installed sample parts list and click [EDIT].
For details on creating a new parts list or changing the parts list type to [SEARCH + FINE], refer to
“iRVision Bin Picking Application OPERATOR’S MANUAL B-83914EN-6.”
B-83914EN-3/04 109
4. BIN PICKING SYSTEM Setup
1
2
3
110 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
On the Parts List Manager data list screen, select the parts list to edit and click [EDIT]. The SEARCH VP
List edit screen will appear. Select [PAGE], then [PICK Position List]. On the PICK Position List edit
screen, set the following.
1
4
B-83914EN-3/04 111
4. BIN PICKING SYSTEM Setup
1 When the [Start Set Reference Wizard] button is clicked on the PICK Position List edit screen, the
following screen appears. Check the setup procedure and click [NEXT].
2 When the following screen for finding a vision process appears, move the robot out of the container
by jogging it, for example, and click [FIND].
3 The vision process for SEARCH Vision Process is executed, and the message ‘The vision process has
run. Please check FIND result in Vision Runtime Page.’ shown below is displayed. On the Vision
112 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Runtime screen, check that the result of the vision process for SEARCH Vision Process is correct, and
click [NEXT].
4 The following Reference Data Setup screen appears. Click [SET] to set the reference data of the
SEARCH Vision Process, and click [NEXT].
B-83914EN-3/04 113
4. BIN PICKING SYSTEM Setup
SET_POS.TP
1: UFRAME_NUM=1
2: UTOOL_NUM=1
3:L P[1] 100mm/sec FINE
114 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
7 Check whether P[1] is appropriate as a position to pick a part (the position is adjusted if necessary by
fine-tuning the position of the robot), and click [SET] in the Reference Position Setup screen, and the
set reference PICK position is displayed as follows.
8 Check that the displayed reference PICK position is correct, and click [COMPLETE] to close Set
Reference Wizard.
B-83914EN-3/04 115
4. BIN PICKING SYSTEM Setup
116 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Registers to be used
R [10] The status of the SEARCH Vision process. Each value represents the status
described below.
0: SUCCESS (Some new part data are added to a parts list)
1: FAIL (No part data is added to a parts list) 4
R [11] The status of POP. Each value represents the status described below.
0: SUCCESS
1: FAIL (No part data that can be popped)
R [12] The Model ID of the popped part data.
R [13] The status of the process to get a PICK position. Each value represents the status
described below.
0: SUCCESS
12: Failed to get an interference avoidance position at the PICK position
13: Failed to get an interference avoidance position at approach position
B-83914EN-3/04 117
4. BIN PICKING SYSTEM Setup
2 On the register list screen and the position register list screen, check that the comments are entered as
follows.
Registers
R [10] Detection status
R [11] Pop status
R [12] Pop model ID
R [13] Pick status
Position registers
PR [20] Picking
PR [21] Pick interference offset
PR [22] Pick approach
PR [23] Pick approach offset
118 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
Positions
P[1: Search] The robot’s waiting position when SEARCH is being executed. Teach a
position where the robot will not come into the 3DV Sensor’s field of view.
P[2: Pick Approach] The approach position when picking the part. It is desirable that a point
directly above the center of the container be taught.
P[3: Place Approach] The approach position when placing the part.
P[4: Place] The part placing position.
P[5: Home] The robot’s waiting position. It may be the same position as P[1].
For the CALL instruction in P[6: Place], specify the instruction to release the part from the gripper. In
this procedure, a macro call to turn OFF the vacuum with the vacuum gripper is used as an example.
Change it according to the environment you use.
B-83914EN-3/04 119
4. BIN PICKING SYSTEM Setup
V_3DV_BP.TP
This is the sample program for the Bin Picking system. For how to use macro programs such as
BINPICK_CLEAR, refer to the Parts List Manager Reference in “iRVision Bin Picking Application
OPERATOR’S MANUAL B-83914EN-6.”
120 B-83914EN-3/04
Setup 4. BIN PICKING SYSTEM
• Place the part near the reference position, find it and check that it can be picked up accurately. If the
accuracy of compensation is low, retry the reference position setting.
• Move the part in the X direction or Y direction without rotation, find it and check that it can be picked 4
up accurately.
• Rotate the part, find it and check that it can be picked up accurately.
• Change the part’s height, find it and check that it can be picked up accurately.
• Tilt the part, find it and check that it can be picked up accurately.
B-83914EN-3/04 121
1
Know-How
1 FRAME SETTING
2 3DV SENSOR DATA SETTING
3 EXAMPLE OF SETTING ACCORDING TO
USAGE
Know-How 1. FRAME SETTING
1 FRAME SETTING
1
This chapter explains the setting method for the user frame and tool frame.
In iRVision, the following frames are used.
• World frame
The frame that is defined in the robot from the start. A specified location is defined for each model of
robot. It cannot be changed.
• User frame
A frame that is defined by a user. It is expressed using a relative position from the world frame. It will
be the same as the world frame when it is not set.
• Tool frame
A frame that shows the tool center point (TCP) and orientation of a tool. It needs to be set up in
accordance with each tool.
In iRVision, the above frames need to be setup in [Application Frame] or [Offset Frame].
For details on the general method for frame setting, refer to the description of setting coordinate systems in
“OPERATOR’S MANUAL (Basic Function) B-83284EN.”
There are two methods for frame setting. Refer to the following for each setting method.
• For details of the user frame setting, refer to “Know-How: 1.1.1 User Frame Setting.”
• For details of the tool frame setting, refer to “Know-How: 1.1.2 Tool Frame Setting.”
B-83914EN-3/04 125
1. FRAME SETTING Know-How
Prepare a pointer tool with a sharp tip. Make sure that the pointer tool is fixed securely to the robot end of
arm tooling so that it remains in place while the robot moves. It is recommended that positioning pins or
other appropriate means may be used so that the pointer tool can be mounted at the same position. Moreover,
prepare another pointer with a sharp tip, and fixed on the table. The position of the fixed pointer can be set
as desired. TCP is set up by touch-up the tip of the fixed pointer with the tip of the pointer attached on the
robot end of the arm tooling. Use the “Three point method” for setting a TCP. If the accuracy of this TCP
setting is low, the precision in handling of a workpiece by the robot is also degraded.
126 B-83914EN-3/04
Know-How 1. FRAME SETTING
1 On the teach pendant, after selecting the [MENU] key → [SETUP], place the cursor over [Frames]
and press the [ENTER] key.
2 Press F3 [OTHER].
3 Place the cursor over [Tool Frame] and press the [ENTER] key.
The list screen for tool frames will appear.
4 Place the cursor over the line of the tool frame number to be set.
5 Press F2 [DETAIL].
The setup screen for the tool frame for the selected frame number will appear.
6 Press F2 [METHOD].
B-83914EN-3/04 127
1. FRAME SETTING Know-How
7 Place the cursor over [Three Point] and press the [ENTER] key.
A screen for tool frame setting using the three point teaching method will appear.
Approach point 1
128 B-83914EN-3/04
Know-How 1. FRAME SETTING
Approach point 2
B-83914EN-3/04 129
1. FRAME SETTING Know-How
15
14
130 B-83914EN-3/04
Know-How 1. FRAME SETTING
17
19
19 Check that the TCP is set accurately. Press F5 [SETIND] and enter a frame number.
The tool frame that has been set will be set as the currently enabled tool frame.
20 Jog the robot to move its pointer tool close to the tip of the fixed pointer tool.
B-83914EN-3/04 131
1. FRAME SETTING Know-How
Check by moving the pointer tool close to the tip of the fixed pointer tool
21 Jog the robot around the tool frame, and change the orientation of the tool (w, p, r). If the TCP is
accurate, the tip of the pointer tool will always point toward the tip of the fixed pointer tool.
132 B-83914EN-3/04
Know-How 1. FRAME SETTING
Example for setting a user frame that is parallel with a work table plane
1 On the teach pendant, after selecting the [MENU] key → [SETUP], place the cursor over [Frames]
and press the [ENTER] key.
2 Press F3 [OTHER].
3 Place the cursor over [User Frame] and press the [ENTER] key.
The following list screen for user frames will appear.
B-83914EN-3/04 133
1. FRAME SETTING Know-How
4 Place the cursor over the line number of the frame to be set.
5 Press F2 [DETAIL].
The SETUP Frames screen for the selected frame will appear.
6 Press F2 [METHOD].
7 Place the cursor over [Three Point] and press the [ENTER] key.
A screen for user frame setting using the three point teaching method will appear.
134 B-83914EN-3/04
Know-How 1. FRAME SETTING
12
11
B-83914EN-3/04 135
1. FRAME SETTING Know-How
15
14
136 B-83914EN-3/04
Know-How 1. FRAME SETTING
17
B-83914EN-3/04 137
1. FRAME SETTING Know-How
19
138 B-83914EN-3/04
Know-How 1. FRAME SETTING
The following figure is a calibration grid. When performing the Grid Pattern Calibration for camera
calibration, it is necessary to set up a user frame such as shown in the following figure. Since it is necessary 1
to set an Orient origin on the center of a calibration grid, when the “Three point method” is used, the
distance from the Orient Origin to the X Direction Point or the Y Direction Point is shorter. The accuracy
of user frame setting is better when the “Four point method” is used.
X Direction
System Origin
1 On the teach pendant, after selecting the [MENU] key → [SETUP], place the cursor over [Frames]
and press the [ENTER] key.
2 Press F3 [OTHER].
3 Place the cursor over [User Frame] and press the [ENTER] key.
The list screen for user frames will appear.
4 Place the cursor over the line number of the frame to be set.
5 Press F2 [DETAIL].
The SETUP Frames screen for the selected frame will appear.
6 Press F2 [METHOD].
7 Place the cursor over [Four Point] and press the [ENTER] key.
A screen for user frame setting using the four point teaching method will appear.
B-83914EN-3/04 139
1. FRAME SETTING Know-How
8
9
140 B-83914EN-3/04
Know-How 1. FRAME SETTING
12
11
B-83914EN-3/04 141
1. FRAME SETTING Know-How
15
14
142 B-83914EN-3/04
Know-How 1. FRAME SETTING
18
17
B-83914EN-3/04 143
1. FRAME SETTING Know-How
20
144 B-83914EN-3/04
Know-How 1. FRAME SETTING
After the pointer for touch-up is secured to a secured stand, select “Tool Frame Setup / Six Point (XY)” or
“Tool Frame Setup / Six Point (XZ),” and teach the six points shown in the figure below by touch-up 1
operation. The position of the fixed pointer can be set as desired.
System Origin
Z - axis/Y - axis
Direction
Approach point 1
Approach point 2
Approach point 3
X Direction
The tool frame set using the “Tool Frame Setup / Six Point (XZ)” method is rotated by 90 degrees about
the X-axis with respect to a desired frame. Upon completion of setting the tool frame with the touch-up
operation, manually enter the value of W plus 90.
In the example of this subsection, “Tool Frame Setup / Six Point (XY)” is explained. Make sure that the
calibration grid is fixed securely to the robot end of arm tooling so that it remains in place while the robot
moves. Positioning pins or other appropriate means may be used so that the calibration grid can be mounted
at the same position for each measurement. Moreover, set the tool frame accurately on the calibration grid.
If the accuracy of this frame setting is low, the precision in handling of a workpiece by the robot is also
degraded.
1 On the teach pendant, after selecting the [MENU] key → [SETUP], place the cursor over [Frames]
and press the [ENTER] key.
2 Press F3 [OTHER].
3 Place the cursor over [Tool Frame] and press the [ENTER] key.
The list screen for tool frames will appear.
B-83914EN-3/04 145
1. FRAME SETTING Know-How
4 Place the cursor over the line of the tool frame number to be set.
5 Press F2 [DETAIL].
The setup screen for the tool frame for the selected frame number will appear.
6
6 Press F2 [METHOD].
7 Place the cursor over [Six Point (XY)] and press the [ENTER] key.
A screen for tool frame setting using six points will appear.
8
9
146 B-83914EN-3/04
Know-How 1. FRAME SETTING
Approach point 1
12
11
B-83914EN-3/04 147
1. FRAME SETTING Know-How
Approach point 2
15
14
148 B-83914EN-3/04
Know-How 1. FRAME SETTING
Approach point 3
18
17
B-83914EN-3/04 149
1. FRAME SETTING Know-How
21
20
150 B-83914EN-3/04
Know-How 1. FRAME SETTING
X Direction Point
24
23
B-83914EN-3/04 151
1. FRAME SETTING Know-How
Y Direction Point
26
152 B-83914EN-3/04
Know-How 1. FRAME SETTING
Center of rotation
Check by moving the origin point of the calibration grid close to tip of fixed pointer tool
30 Jog the robot around the tool frame, and change the orientation of the calibration grid (w, p, r). If the
TCP is accurate, the tip of the pointer tool will always point toward the origin point of the calibration
grid.
B-83914EN-3/04 153
1. FRAME SETTING Know-How
Y Origin
Compared with the manual touch-up setting method, this function offers a number of merits, including
accurate setting of the frame without requiring user skills, no need for touch-up pointers or to set the TCP
for touch-up setting, and semi-automatic easy operation.
There are the following two methods for the calibration grid frame setting.
• Opening the camera data edit screen on the teach pendant and automatically measuring the position
information of a calibration grid.
• Perform the calibration grid frame setting on the [iRVision Utilities] screen on the teach pendant.
When you want to quickly perform camera calibration, the method to automatically measure the position
information of a calibration grid on the camera data edit screen is convenient. However, it cannot be done
from the camera edit screen on your PC. It must be done by opening iRVision’s camera edit screen from
the teach pendant.
CAUTION
The calibration grid frame setting function is usable with 6-axis robots only. The
function cannot be used with 4-axis robots and 5-axis robots.
Memo
The frame obtained through a calibration grid frame setting performed on the
camera data edit screen will not be set to the user frame or tool frame. The
obtained frame is stored inside the camera data and is used for the calibration of
the camera data. Although this method is convenient when you only want to
perform a calibration of camera data, to set a user frame or tool frame on the
calibration grid, perform a calibration grid frame setting on the iRVision Utilities
screen.
154 B-83914EN-3/04
Know-How 1. FRAME SETTING
B-83914EN-3/04 155
1. FRAME SETTING Know-How
Make sure that the calibration grid is fixed securely so that it does not move during measurement.
Memo
To prevent unnecessary circles from being found, check that the calibration grid
is free of dirt and flaws. Laying out a plain sheet in the background is effective.
Also, make sure to cover the printed text on the calibration grid.
156 B-83914EN-3/04
Know-How 1. FRAME SETTING
For details when using a fixed camera, refer to “Know-How: 2.2 3DV SENSOR MOUNTING POSITION
SETUP WITH FIXED CAMERA,” or when using the robot-mounted camera, refer to “Know-How: 2.1
3DV SENSOR MOUNTING POSITION SETUP WITH ROBOT-MOUNTED CAMERA.” However, in
step “Setting the Parameters,” you must select [Measure automatically] from the [Cal. Grid Frame] drop-
down box.
Memo
For Automatic Grid Frame Set, measurement is performed by panning and
rotating the camera attached to the robot’s gripper or the calibration grid. It is
recommended that you set the field of view to something quite large in relation to
the calibration grid, so that the four large black circles will not be outside of the
field of view.
B-83914EN-3/04 157
1. FRAME SETTING Know-How
Camera field
of view
158 B-83914EN-3/04
Know-How 1. FRAME SETTING
CAUTION
1 The measurement will stop if you release the [SHIFT] key on the teach pendant
during measurement.
In such cases, redo the measurement. The measurement can be resumed from
where it was stopped.
2 Although the robot will perform the decided motion to some extent, depending on
the settings, it is possible that it will move with an unexpected motion range.
When executing measurement, check that the setup of parameters is correct,
and be careful to lower the override so that the robot will not interfere with
devices.
3 The robot may not be able to operate if other programs are in a paused state. In
such cases, press the [FCTN] key on the teach pendant and end the programs.
When the measurement is successfully completed, a menu like the one shown below appears.
The robot stops after moving to a position where the camera directly faces the calibration grid and the
origin of the calibration grid comes to the center of the image.
B-83914EN-3/04 159
1. FRAME SETTING Know-How
1 Set the displayed position information to a frame number that has yet to be set.
When the calibration grid is robot-mounted, set the information to the tool frame.
When the calibration grid is fixed, set the information to the user frame.
Memo
Set the displayed position information on the frame setting screen on the teach
pendant.
160 B-83914EN-3/04
Know-How 1. FRAME SETTING
Setup flow
Memo
When you want to set the position information of a calibration grid to calibrate
the robot-mounted camera, the method to automatically measure the position
information on the camera data edit screen is convenient.
B-83914EN-3/04 161
1. FRAME SETTING Know-How
162 B-83914EN-3/04
Know-How 1. FRAME SETTING
Make sure that the calibration grid is fixed securely so that it does not move during measurement.
Memo
To prevent unnecessary circles from being found, check that the calibration grid
is free of dirt and flaws. Laying out a plain sheet in the background is effective.
Also, make sure to cover the printed text on the calibration grid.
B-83914EN-3/04 163
1. FRAME SETTING Know-How
1 On the teach pendant, after selecting the [MENU] key → [iRVision], place the cursor over [Vision
Utilities] and press the [ENTER] key.
The [iRVision Utilities] screen will appear.
2 Place the cursor over [Automatic Grid Frame Set] and press the [ENTER] key.
The [Grid Frame Set] screen will appear.
CAUTION
The Grid Frame Set menu cannot be opened in more than one window at a time.
The following items will appear on the [Grid Frame Set] screen.
164 B-83914EN-3/04
Know-How 1. FRAME SETTING
[Camera Name]
Select a camera to use in the measurement. Place the cursor over the line of [Camera Name], then press F4
[CHOICE], and a list of cameras will appear. By selecting from the list, specify the camera to use for the
measurement.
[Exposure Time]
Specify the exposure time for the camera to capture an image (Shutter speed). The larger the value, the
brighter the images that will be snapped.
Adjust the exposure time so that the black circles of the calibration grid are clearly visible.
[Start Position]
Teach the position where measurement is to be started. If the position has been taught already, [Recorded]
will appear, and if it hasn’t been, [Not Recorded] will appear.
In the case of [Not Recorded], measurement cannot be executed. Be sure you always teach the start position
before measurement.
For the procedure to teach the start position, refer to “Know-how: 1.2.1.3, Teaching start position.”
[Grid Spacing]
Set the grid spacing of the calibration grid in use.
[Setting Result]
This item is displayed when the measurement is complete. For details, refer to the description of checking
the measurement result in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
F2 [DISP IMG]
Pressing F2 [DISP IMG] displays the Grid Frame Set screen and Vision Runtime screen as follows.
B-83914EN-3/04 165
1. FRAME SETTING Know-How
F3 [LIVE]
A live image for the selected camera will appear on the Vision Runtime screen. When a live image appears,
it changes to F3 [STOPLIVE] and if F3 [STOPLIVE] is pressed, live image display will be stopped.
F4 [FIND]
Performs detection of a grid pattern. The detection result will be displayed on the Vision Runtime screen.
F7 [DEFAULT]
The set values will be changed to the initial values. [Camera Name] and [Start Position] will be returned to
their initial values so that you can set them again.
F8 [LED TYPE]
The setting screen for the LED light integrated in the camera package will be displayed. For details on LED
light setting, refer to the description of setting the LED light in “iRVision OPERATOR’S MANUAL
(Reference) B-83914EN.”
F9 [MOVE_LIM]
The robot moves during measurement of a calibration grid frame. A setting screen will appear to limit the
amount of such movement. For details on the move amount limit setting, refer to the description of setting
the moving limit in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
166 B-83914EN-3/04
Know-How 1. FRAME SETTING
Memo
For Automatic Grid Frame Set, measurement is performed by panning and
rotating the camera attached to the robot’s gripper or the calibration grid. It is
recommended that you set the field of view to something quite large in relation to
the calibration grid, so that the four large black circles will not be outside of the
field of view.
B-83914EN-3/04 167
1. FRAME SETTING Know-How
CAUTION
1 The measurement will stop if you release the [SHIFT] key during measurement.
In such cases, redo the measurement. The measurement can be resumed from
where it was stopped.
2 The measurement will stop if you perform an operation that moves to another
screen during measurement, such as pressing the [SELECT] key on the teach
pendant. In such cases, open the [Automatic Grid Frame Set] screen and redo
the measurement. The measurement can be resumed from where it was
stopped.
3 Although the robot will perform the decided motion to some extent, depending on
the settings, it is possible that it will move with an unexpected motion range.
When executing measurement, check that the setup of parameters is correct,
and be careful to lower the override so that the robot will not interfere with
devices.
4 The robot may not be able to operate if other programs are in a paused state. In
such cases, press the [FCTN] key and end the programs.
168 B-83914EN-3/04
Know-How 1. FRAME SETTING
When the measurement is successfully completed, a menu like the one shown below appears.
The robot stops after moving to a position where the camera directly faces the calibration grid and the 1
origin of the calibration grid comes to the center of the image.
5 If you press F4 [OK], you will return to the Automatic Grid Frame Set screen.
1 Set the manual feed frame as the frame for automatic grid frame set.
For a tool frame, press the [COORD] key and switch to [Tool].
For a user frame, press the [COORD] key to switch to [User], and specify the tool frame number that
was specified in [Camera User Tool Number] in [Tool] under the jog menu, using the number keys.
2 Press F3 [LIVE] to start the display of a live image, and move the robot by jog operation around the
WPR of the selected tool frame. There will be no problem unless the center position of the grid pattern
is significantly far from the center line of the image.
B-83914EN-3/04 169
1. FRAME SETTING Know-How
170 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
CAUTION
The appropriate distance between a 3DV Sensor and the calibration grid is
dependent on the standoff distance of the 3DV Sensor.
In this chapter, 3DV/400, the standoff distance of which is about 800 mm is used
as an example for explanation.
Calibration grid
It is not necessary to detect all the circles on the calibration grid. There are 11 x 11 circles in the standard
calibration grid of FANUC. If 7 x 7 circles can be detected, calibration is performed with high accuracy
(the four large circles need to be detected). There is no need to prepare a small calibration grid in order to
show all the circles in the field of view. In order to perform calibration with sufficient accuracy to the edge
of the field of view, even if there are fewer detectable circles, prepare a calibration grid that is bigger than
the field of view.
Use the following setup procedure for 3DV Sensor mounting position setup with a robot-mounted camera.
This section explains how to automatically measure the position information of a calibration grid as an
example.
B-83914EN-3/04 171
2. 3DV SENSOR DATA SETTING Setup
CAUTION
1 There are certain requirements for automatically measuring the position
information of a calibration grid. For details, refer to “Know-How: 1.2.1 Setting
Procedure Using Camera Data Edit Screen.”
2 30 mm calibration grid spacing is recommended when using 3DV/1600.
3 7.5 mm calibration grid spacing is recommended when using 3DV/70 or
3DV/200.
2.2D Setup
3.3D Setup
4. Parameter Setup
1 Place the calibration grid within the 3DV Sensor’s field of view.
CAUTION
The robot moves during automatic measurement of the calibration grid position.
Do not place the calibration grid too close to the robot. Basically, place the
calibration grid on the offset plane.
2 Select “V_3DV_CAM” in the [Camera Data] category on the vision data list screen.
172 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
3 Click [EDIT].
The camera data edit screen appears.
2.1.2 2D Setup
Set up the conditions for snapping 2D images.
2
3
4
5
such as precautions for automatic adjustment, refer to the description of automatic brightness
adjustment in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN”.
If the calibration grid appears on the image display view as shown below, detection of the calibration
grid and calibration will be performed normally.
If the calibration grid appears on the image display view as shown below, there will be a problem in
detection of the calibration grid and calibration.
Memo
If a well exposed image like the one above is not obtained using the automatic
brightness adjustment of the HDR function, uncheck [Enable] for [Auto
Brightness], and then adjust the exposure time in [Exposure Time (2D)] that is
displayed. Adjust until the dots of the calibration grid are clearly visible. If the
image is too dark, increase the exposure time (make the value bigger). On the
other hand, if the image is too light, decrease the exposure time (make the value
smaller). Each time you change the exposure time, an image snapped with the
changed exposure time is displayed.
174 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
2.1.3 3D Setup
Set up the conditions for snapping depth images.
2
1 Click [2 3D Setup] in the navigation area.
The following screen appears.
2
3
4
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to the description of 3DV
sensor in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
B-83914EN-3/04 175
2. 3DV SENSOR DATA SETTING Setup
2
3
4
2 From the [Grid Spacing] drop-down box, select the grid spacing for the calibration grid.
3 Select [No] from the [Robot-Held Cal. Grid] drop-down box.
4 Select [Measure automatically] from the [Setting Fixture Pos. Method] drop-down box.
176 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
CAUTION
From this point forward, do not move the calibration grid until the mounting
position setup is complete.
B-83914EN-3/04 177
2. 3DV SENSOR DATA SETTING Setup
When using the robot-mounted camera, after 3DV Sensor Data is created with the mounting position setup,
another 3DV Sensor Data does not need to be created even if the camera measurement position is changed.
This is because iRVision uses the current robot position when calculating the position of the part.
178 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
3 Teach the search window to enclose only the perfect circles on the calibration grid.
When the area outside the calibration grid is included in the search range, a circle detection error may
occur. Therefore, teach the search window to enclose only the calibration grid. Also, if the grid pattern
does not fit in the camera FOV, do not allow imperfect circles around the circumference of the camera
FOV to be included within the search range.
2
4 Click [OK].
Check that all circles are detected in the snap view area. If the detection is successful, [Find Grid
Pattern] shows [Found].
Memo
1 In case of 3DV/70 or 3DV/200, on the image display view, the grids with an error
of more 0.5 mm are displayed in yellow crosshairs (+). The grids with an error of
more 1 mm are displayed in red crosshairs (+).
2 In case of 3DV/400, 3DV/600 or 3DV/1600, on the image display view, the grids
with an error of more 1 mm are displayed in yellow crosshairs (+). The grids with
an error of more 3 mm are displayed in red crosshairs (+).
2 Click [SAVE] to save the setting, and then click [END EDIT] to close the 3DV Sensor Data edit screen.
B-83914EN-3/04 179
2. 3DV SENSOR DATA SETTING Setup
Calibration grid
It is not necessary to detect all the circles on the calibration grid. There are 11 x 11 circles in the standard
calibration grid of FANUC. If 7 x 7 circles can be detected, calibration is performed with high accuracy
(the four large circles need to be detected). There is no need to prepare a small calibration grid in order to
show all the circles in the field of view. In order to perform calibration with sufficient accuracy to the edge
of the field of view, even if there are fewer detectable circles, prepare a calibration grid that is bigger than
the field of view.
Use the following setup procedure for 3DV Sensor mounting position setup with a fixed camera.
CAUTION
1 30 mm calibration grid spacing is recommended when using 3DV/1600.
2 7.5 mm calibration grid spacing is recommended when using 3DV/70 or
3DV/200.
180 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
2.2D Setup 2
3.3D Setup
4.Parameter Setup
B-83914EN-3/04 181
2. 3DV SENSOR DATA SETTING Setup
1 Place the calibration grid so that it faces the 3DV Sensor at a distance of about 800 mm within the
3DV Sensor’s field of view.
2 Select “V_3DV_CAM” in the [Camera Data] category on the vision data list screen.
3 Click [EDIT].
The camera data edit screen appears.
182 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
2.2.2 2D Setup
Set up the conditions for snapping 2D images.
1 Click [1 2D Setup] in the navigation area. 2
The following screen appears.
2
3
4
5
B-83914EN-3/04 183
2. 3DV SENSOR DATA SETTING Setup
If the calibration grid appears on the image display view as shown below, detection of the calibration
grid and calibration will be performed normally.
If the calibration grid appears on the image display view as shown below, there will be a problem in
detection of the calibration grid and calibration.
Memo
If a well exposed image like the one above is not obtained using the automatic
brightness adjustment of the HDR function, uncheck [Enable] for [Auto
Brightness], and then adjust the exposure time in [Exposure Time (2D)] that is
displayed. Adjust until the dots of the calibration grid are clearly visible. If the
image is too dark, increase the exposure time (make the value bigger). On the
other hand, if the image is too light, decrease the exposure time (make the value
smaller). Each time you change the exposure time, an image snapped with the
changed exposure time is displayed.
184 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
2.2.3 3D Setup
Set up the conditions for snapping depth images.
2
1 Click [2 3D Setup] in the navigation area.
The following screen appears.
2
3
4
Memo
Because of its structure, the 3DV Sensor cannot measure the depth at the right
edge of the sensor’s field of view. For this reason, the right edge of the sensor’s
field of view may remain a black area. For details, refer to the description of 3DV
sensor in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
B-83914EN-3/04 185
2. 3DV SENSOR DATA SETTING Setup
2
3
4
2 From the [Grid Spacing] drop-down box, select the grid spacing for the calibration grid.
3 Select [No] from the [Robot-Held Cal. Grid] drop-down box.
4 Select [Use Frame] from the [Setting Fixture Pos. Method] drop-down box.
Memo
When the calibration grid is mounted to the gripper, select [Yes] from the [Robot-
Held Cal. Grid] drop-down box. In this case, if you select [Measure automatically]
from the [Measure Fixtures Position] drop-down box, the settings of the
calibration grid can be measured automatically. For details, refer to “Know-How:
1.2.1 Frame Setting With Grid Frame Setting Function.”
When the calibration grid is fixed, automatic measurement is not available. In
this section, it is assumed that the calibration grid is fixed.
186 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
2
3
2 From the [Cal. Grid Frame] drop-down box, select the number of the user frame in which the
calibration grid installation information was recorded.
In order to set up the user frame for the calibration grid, refer to “Know-How: 1.2 FRAME SETTING
WITH GRID FRAME SETTING FUNCTION.”
CAUTION
From this point forward, do not move the calibration grid until the mounting
position setup is complete.
Memo
Note that the frame for installation information of the calibration grid is different
from [Application Frame] and [Offset Frame].
B-83914EN-3/04 187
2. 3DV SENSOR DATA SETTING Setup
1
4
188 B-83914EN-3/04
Know-How 2. 3DV SENSOR DATA SETTING
1 Teach the search window to enclose only the perfect circles on the calibration grid.
When the area outside the calibration grid is included in the search range, a circle detection error may
occur. Therefore, teach the search window to enclose only the calibration grid. Also, if the grid pattern
does not fit in the camera FOV, do not allow imperfect circles around the circumference of the camera
FOV to be included within the search range.
2 Click [OK].
Check that all circles are detected in the snap view area. If the detection is successful, [Find Grid
Pattern] shows [Found].
B-83914EN-3/04 189
2. 3DV SENSOR DATA SETTING Setup
Memo
1 In case of 3DV/70 or 3DV/200, on the image display view, the grids with an error
of more 0.5 mm are displayed in yellow crosshairs (+). The grids with an error of
more 1 mm are displayed in red crosshairs (+).
2 In case of 3DV/400, 3DV/600 or 3DV/1600, on the image display view, the grids
with an error of more 1 mm are displayed in yellow crosshairs (+). The grids with
an error of more 3 mm are displayed in red crosshairs (+).
2 Click [SAVE] to save the setting, and then click [END EDIT] to close the 3DV Sensor Data edit screen.
190 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
3.1 SENSOR
The setting procedure of the example using the 3D Blob Locator Tool is explained below.
1 Create 3DV Single-View Vision Process and click the [Edit] button to open the setup screen.
2 Set [3DV Sensor] and [Offset Frame].
3 Switch to the advanced mode and check the checkbox of [Camera Base Find].
4 Select [3D Blob Locator Tool] in the tree view and set [Search Window].
B-83914EN-3/04 191
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
The setting procedure of the example using the 3D Blob Locator Tool is explained below.
1 Create 3DV Single-View Vision Process and click the [Edit] button to open the setup screen.
2 Set [3DV Sensor] and [Offset Frame].
3 Switch to the advanced mode and uncheck the checkbox of [Camera Base Find].
4 Select [3D Blob Locator Tool] in the tree view and set [Search Window].
192 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
Although the system setup procedure is similar to that for the “3DV Single-View Vision Process”, it is
necessary to configure the setting to obtain the snapped depth images from multiple camera views and to
teach a command tool to integrate depth images. For details, refer to the description of 3DV Stitching Vision
Process in “iRVision OPERATOR’S MANUAL (Reference) B-83914EN.”
This section explains how to perform 3D fixed offset for a large part by snapping multiple camera views
with a single 3DV Sensor mounted to the robot as an example.
B-83914EN-3/04 193
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
3 In [Name], enter the name of the vision process you are going to create.
The name can be up to 34 alphanumeric characters in length. The name must not contain spaces or
symbols other than underscores, and must start with a letter.
In [Comment], enter any character string providing additional information about the vision data if
necessary. The comment can be up to 50 one-byte or 25 two-byte characters.
4 Click [OK].
A new vision process is created.
5 When the screen returns to the vision data list screen, select the created vision process and click [Edit].
CAUTION
The following names are not usable as the name of the vision data:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7,
COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9.
194 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
3
1
2
3
4
1 Jog the robot so that the field that you want to include in the first camera view is within the sensor’s
field of view.
2 Select the sensor data to use from the [3DV Sensor] drop-down box.
When sensor data is selected, a depth image is snapped.
B-83914EN-3/04 195
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
Memo
In the setup example in this section, all the sensor data selected for the camera
view must be that from a sensor mounted to the robot. Specifically, it is the
sensor data for which [Yes] is selected for [Robot-Mounted].
3 To adjust the snapping position, jog the robot and click [SNAP] again.
At this point, there is only one snapped depth image and so only the depth image of camera view 1 is
shown in the image display area.
1 Jog the robot so that the field that you want to include in the second camera view is within the sensor’s
field of view.
2 Select the sensor data to use from the [3DV Sensor] drop-down box.
Memo
In the setup example in this section, all the sensor data selected for the camera
view must be that from a sensor mounted to the robot. In the setup example in
this section, since multiple camera views are snapped with a single 3DV Sensor,
select the same sensor data used for Camera View 1.
3 To adjust the snapping position, jog the robot and click [SNAP] again.
The depth image snapped by camera view 2 is shown on the left of the image display area. Although
a stitched image is shown on the right of the image display area, it will not be a correctly stitched
image until the range of stitching, which is explained in the next section, has been set.
196 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
Memo
When you click [SNAP] here, a depth image is snapped at the current robot
gripper position and the snapped image is reflected to all camera views. In such
a case, redo snapping with each camera view.
B-83914EN-3/04 197
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
1 3
CAUTION
From this point forward, do not move the part until teaching of the robot motion
when the part is placed at the reference position is finished in the TP program.
3.3.2 TP Program
The TP instruction, [VISION RUN_FIND] and KAREL programs, [IRVSNAP.KL] and [IRVFIND.KL]
are not supported. Use KAREL processes, [IRVSTSNAP.KL] and [IRVSTRUNFIND.KL], instead.
1: ! Snap by Camera View1 and store snapped depth image
2: ! in the image register which is selected in the setup page.
3:
4: J PR[2:cameraview1] 60% FINE
5: CALL IRVSTSNAP("Vision Process"='Prog',
"Camera View"=1)
6:
7: ! Snap by Camera View2 and store snapped depth image
8: ! ! in the image register which is selected in the setup page.
9:
10: J PR[3:cameraview2] 60% FINE
11: CALL IRVSTSNAP("Vision Process"='Prog',
"Camera View"=2)
12:
13: ! Create an integrated depth image by stitching depth images by
camera views and find parts.
14: CALL IRVSTRUNFIND("Vision Process"='Prog')
198 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
Stitching in bin-picking
When using stitching, set interference avoidance data and Parts List Manager in the same way as with bin
picking using a single 3DV Sensor.
Note, however, that instead of using the image registers on the SEARCH VP List edit screen, those set with
camera views are used.
In a TP program, call the [BINPICK_SEARCH] macro program when finding, instead of using the
[IRVSTRUNFIND.KL] macro program.
B-83914EN-3/04 199
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
2 Click the [Teach] button, teach vertices (corners) at the edge of the visible area of the top of the
container in order and click the [OK] button. In the figure below, 5 vertices are taught.
3 Set [Container Z] and click the [FINISH] button. [Container Z] will be adjusted later, so a rough value
can be entered here.
200 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
4 Move the 3DV Sensor so that the container area not shown in the snap can be seen and click the
[SNAP] button.
5 Specify the last number of [Vertex Index] and click the [Add] button.
6 A vertex is added to [Vertex Index]. Specify the number of the added [Vertex Index] and click the
[Move] button.
B-83914EN-3/04 201
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
7 Move to any vertex at the edge of the top of the container and click the [OK] button.
202 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
10 If necessary, repeat steps 4 to 9 until all the container vertices are set.
11 Click the [FIND] button.
11
B-83914EN-3/04 203
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
12 Adjust [Container Z], [Container Depth] and [Margin from Wall] if the 3D points of the bottom of the
container or outside the container are not properly removed.
For how to adjust them, refer to the description of 3D Data Generator Tool in “iRVision
OPERATOR’S MANUAL (Reference) B-83914EN.”
After completing adjustment of each parameter, the setting is completed.
12
For the setup procedure, refer to ‘3.2.1 Moving the Search Window of the 3D Command Tool with the
Robot-mounted Camera According to the Snap Position of the Robot.’
204 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
Container moves
After the move
Container Before the move
If this is the case, use a function that automatically moves the container object and search window. This
function uses the found result of a vision process for finding the container installation position to internally
move them.
B-83914EN-3/04 205
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
In this customization, the following registers are used in addition to those used in the TP program explained
in “Setup: 4.8 CREATING TP PROGRAM.”
BIN_FIND_CONTAINER.TP
Add a TP program that performs container detection. When obtaining the offset value fails, a retry is
repeated for the number of times set in R [15]. When the retry count has exceeded the value in R [15], a
user alarm is issued. Note that in the following TP program, the vision process for container detection is
named CNTROFS.
206 B-83914EN-3/04
Know-How 3. EXAMPLE OF SETTING ACCORDING TO USAGE
BIN_PICKING.TP
Change the section indicated with a bold line of the TP program BIN_PICKING.TP explained in “Setup:
4.8 CREATING TP PROGRAM.”
In the tree view of the edit screen for the interference avoidance setting system data, select an object that
moves with the container. Check the checkbox of [Shift Objects Pos.] in the setting item area.
B-83914EN-3/04 207
3. EXAMPLE OF SETTING ACCORDING TO USAGE Know-How
Select [Window Shift Tool 1] in the tree view of the vision process edit screen, and select [Other VP Result]
from the [Input Data Type] drop-down box in the setting item area. Enter the vision register number for
storing the result of the container detection vision process in the text box for [VR to Use] that appears when
[Other VP Result] is selected.
1 Create 3DV Single-View Vision Process and click the [Edit] button to open the setup screen.
2 Click the button in the tree view to add [Snap Tool].
3 Select [3D Blob Locator Tool] in the tree view and select the added Snap Tool in [Input Image].
4 Enable [Contrast] of [Connecting Threshold].
The following figures show the detection results when [Contrast] is disabled/enabled.
Invalid Valid
208 B-83914EN-3/04
Know-How 4. TROUBLESHOOTING
4 TROUBLESHOOTING
This chapter explains how to troubleshoot if any failure happens while using the 3DV Sensor.
Failure case
Normal case
B-83914EN-3/04 209
INDEX
INDEX
Editing TP Program ............................... 27,41,74,116,119
<Number> Editing vision process ................................... 17,31,64,102
2D Setup................................................................ 173,183 EXAMPLE OF SETTING ACCORDING TO
3D FIXED FRAME OFFSET SYSTEM........................ 15 USAGE .................................................................... 191
3D MULTI-VIEW FIXED FRAME OFFSET
SYSTEM USING ROBOT-MOUNTED CAMERA .. 43 <F>
3D MULTI-VIEW TOOL OFFSET SYSTEM USING FEATURES ................................................................... 13
A FIXED CAMERA .................................................. 77 FIXED CAMERA AND ROBOT-MOUNTED
3D Setup................................................................ 175,185 CAMERA ..................................................................... 4
3D SINGLE-VIEW FIXED FRAME OFFSET FIXED FRAME OFFSET AND TOOL OFFSET............ 5
SYSTEM USING FIXED CAMERA......................... 29 Fixing Search Window of 3D Command Tool with
3D SINGLE-VIEW FIXED FRAME OFFSET Robot-Mounted Camera Regardless of Robot’s Snap
SYSTEM USING ROBOT-MOUNTED CAMERA .. 15 Position..................................................................... 192
3D SINGLE-VIEW TOOL OFFSET SYSTEM USING Fixture Position Setup ........................................... 177,187
A FIXED CAMERA .................................................. 62 Flow Chart of TP Program ........................................... 116
3D TOOL OFFSET SYSTEM ....................................... 62 FRAME SETTING ...................................................... 125
3DV Sensor Data Setting .............................. 17,31,45,171 FRAME SETTING WITH GRID FRAME SETTING
3DV SENSOR MOUNTING POSITION SETUP FUNCTION .............................................................. 153
WITH FIXED CAMERA ......................................... 180 FRAME SETTING WITH POINTER TOOL .............. 125
3DV SENSOR MOUNTING POSITION SETUP
WITH ROBOT-MOUNTED CAMERA .................. 171 <I>
3DV SENSOR STITCHING ........................................ 193 Improving Detection Performance ............................... 191
Installation and Connection of 3DV
<A> Sensor ................................................ 16,29,43,62,77,96
ABOUT iRVision............................................................. 3 iRVision ........................................................................... 3
<B> <M>
BASIC CONFIGURATION ............................................ 3 MEMORY CARD PREPARATION ............................. 10
Batch Input of Register Comments .............................. 118 Mounting calibration grid ..................................... 155,161
BIN PICKING .............................................................. 199 Mounting Position Setup ....................................... 178,188
BIN PICKING SYSTEM ............................................... 95 Moving container objects for interference avoidance
data according to amount of movement of container 207
<C> Moving Search Window of 3D Command Tool with
CALIBRATION GRID .................................................... 9 Robot-Mounted Camera According to Robot’s Snap
Camera View 1 setup ................................................... 195 Position..................................................................... 191
Camera View 2 setup ................................................... 196
Checking Mounting Position Setup Result ............ 179,190 <O>
Checking Robot Offset Operation ....... 28,42,61,76,94,121 Other Applications ....................................................... 199
COMMAND TOOL ..................................................... 208
Container Position Is Not Fixed ................................... 205 <P>
COORDINATE SYSTEMS USED FOR iRVision .......... 6 Parameter Setup .................................................... 176,186
Creating a new vision process ................................... 45,79 PREFACE .................................................................... p-1
Creating and Setting up 3DV Sensor Data ........... 63,78,97
Creating and Setting up Vision Process .................... 45,79 <R>
Creating and Teaching a TP Program........................ 59,92 Register Setting Table .................................................. 117
Creating vision process ................................................ 194 ROBOT-MOUNTED CAMERA ................................. 191
Running a test for Camera View 1 ............................ 57,90
<D> Running measurement ........................................... 159,168
Determining measurement point for each camera view . 48
Determining the measurement point for each camera <S>
view ............................................................................ 81 SAFETY PRECAUTIONS ........................................... s-1
DISTANCE CANNOT BE MEASURED .................... 209 Selection of Parts List .................................................. 109
SENSOR ...................................................................... 191
<E> Setting Container Larger Than Field of View of 3DV
Editing 3DV Sensor Data ...................................... 172,182 Sensor ....................................................................... 199
Editing the camera data ................................................ 157 Setting method types and procedures ........................... 132
B-83914EN-3/04 i-1
INDEX
<T>
TCP set up .................................................................... 125
Teaching Depth Snap Tool .................. 20,33,51,67,84,104
Teaching GPM Locator Tool ..................... 22,35,53,69,86
Teaching Snap Tool ................................... 19,32,50,66,83
Teaching start position .......................................... 157,167
Tool Frame Setting ......................... 17,31,45,63,78,97,144
TP Program .................................................................. 198
TROUBLESHOOTING ............................................... 209
<U>
User Frame Setting ................................... 16,30,44,97,125
Using 3D Blob Locator Tool for Close Contact Parts .. 208
Using Robot-Mounted Camera for Multiple
Containers................................................................. 204
i-2 B-83914EN-3/04
REVISION RECORD
REVISION RECORD
Edition Date Contents
04 Nov., 2021 • Applied to series 7DF5/17 (V9.40P/17)
• Applied to series 7DF5/06 (V9.40P/06)
03 Feb., 2021
• Applied to R-30iB Mini Plus controller
• Applied to series 7DF3/06 (V9.30P/06)
02 Oct., 2020
• Applied to R-30iB Compact Plus controller
01 Feb., 2019
B-83914EN-3/04 r-1
B-83914EN-3/04
* B - 8 3 9 1 4 E N - 3 / 0 4 *