Mitsubishi Electric CR750-Q Instruction Manual page 300

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
PVSCal (PVS calibration)
[Function]
Changes the vision sensor image coordinate to the robot world coordinate using the vision sensor calibra-
tion data (parameters from VSCALB 1 to VSCALB 8) set by 2D vision calibration function of RT ToolBox2.
[Format].
<Position Variables>=PVSCal<Calibration Number>, <Vision X>,
[Terminology]
<Position Variables>
<Calibration Number>
<Vision X>
<Vision Y>
<Vision θ>
<Reference Position Variables> Specify the reference position as s position constant or position variable.
[Reference Program]
1 ' Start the target vision sensor with Open/Print/Input command to substitute the acquired image coordi-
nate [pixel] for numeric variable.
2 ' MX= X [pixcel] of the vision sensor
3 ' MY= Y [pixcel] of the vision sensor
4 ' MT= θ [deg.] of the vision sensor
5 PVS=PVSCal(1,MX,MY,MT)
6 PVS.Z=PDST.Z
7 Mov PVS,-50
8 Mvs PVS
[Explanation]
(1) Changes the vision sensor image coordinate to the robot world coordinate using the vision sensor cali-
bration data (parameters from VSCALB 1 to VSCALB 8).
Use the 2D vision calibration function of RT ToolBox2 to set the parameters from VSCALB 1 to VSCALB
8 to be used for the coordinate conversion for the advanced settings.
(2) If the calibration numbers other than 1 to 8 are set, error L3110 (Arg. value range over) occurs.
(3) If the numbers of argument are not either four or five, error L3120 (No. of arg. is over) occurs.
(4) If the type of arguments is different, error L3810 (Different argument type) occurs.
[Related parameter]
VSCALB1 to 8
4-280 Detailed explanation of command words
<Vision Y>, <Vision θ> [, <Reference Position Variables>]
Specifies the position variable to assign.
Returns the robot world coordinate for the calculation result of the coordinate
conversions.
Specify the vision sensor calibration data to be used for the coordinate con-
version with the number of parameters from VSCALB 1 to VSCALB 8.
X pixel coordinate of the vision sensor. [pixel]
Y pixel coordinate of the vision sensor. [pixel]
θ pixel coordinate of the vision sensor. [deg.]
When attaching a camera to the hand, specify the robot position (at the time
of the image recognition) where the image is recognized with the vision sensor
as a reference position. The relative calculation is performed as follows.
<Robot position at the time of the image recognition>*<Calculation result
of the coordinate conversion>
When omitted, the absolute coordinate is set.
' Changes the image coordinate to the robot (world) coordinate
with Calibration 1.
' Specifies Z height.
' Moves to a position 50 mm above the calculated position.
' Moves to the calculated position.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents