Settings
EFORT INTELLIGENT EQUIPMENT CO.,LTD
85
Return
parameters
None
Table 5-7 Module Variables Related to Fixed Vision
Variable
Name
Type
Remarks
vision.x
lreal
Workpiece position: X coordinate
vision.y
lreal
Workpiece position: Y coordinate
vision.z
lreal
Workpiece position: Z coordinate
vision.a
lreal
Workpiece posture: Angle rotating around Z axis
vision.b
lreal
Workpiece posture: Angle rotating around Y axis
vision.c
lreal
Workpiece posture: Angle rotating around X axis
vision.attr
int
Workpiece attribute
vision.id
int
Workpiece ID
Fig.5-19 Program Testing Code
Line 1: Start of the loop;
Line 2: Move the robot to posture 1;
Line 3: Set the camera trigger command to 1; (this procedure is not required if t
he camera is set to IO trigger)
Line 4: Trigger the camera to take photos. The variable hasObj=true if the data i
s obtained successfully;
Line 5: Execute Line 6-11, if the camera data is obtained successfully;
Line6: Define robot posture 2 (grabbing point);
Line7: Define robot posture 3 (position above the grabbing point);
Line8: The robot moves to posture 3;