Settings
EFORT INTELLIGENT EQUIPMENT CO.,LTD
111
track.setTrigCmd(int p)
track.dropObj( )
Delete the data of the first artifact in the tracking
queue, i.e.: discard the first artifact
track.dropAllObj( )
Delete data for all artifacts in the trace queue
Variables
Function
wobj_cvy
The coordinate system established on the
tracking workpiece, i.e.: tracking workpiece
coordinate system
wobj_cvy_fixed
Conveyor coordinate system
ivt_objid
Workpiece id
RPL Program Example
Conveyor tracking (2D vision) module, the track.getWobj() command establishes t
he user coordinate system wobj_cvy directly on the workpiece being conveyed by the
conveyor, i.e.: the origin of the wobj_cvy coordinate system is located on that workpi
ece. Thus, wobj_cvy can be used to track and grip the workpiece.
In this example, besides the main program Main, there is also a subroutine skipm
ove.
(1) Main program: to implement the process flow to achieve tracking and grabbin
g of workpieces on the conveyor belt.
(2) skipmove subroutine: some post-processing procedures when the robot fails to grasp.
Note!
Robot tracking and gripping of workpieces can fail due to
factors such as workpiece placement density and fast conveyor
transmission speed.
The program is designed with 5 position points, and the user can adjust the values of
these 5 points according to the actual field conditions.
Table 5-9 Location Point Information
Position 1
POINTJ
Robot initial position
Position 2
POINTC
Position of the robot while waiting for the
workpiece (can be used in combination with
wobj_cvy_fixed)
Position 3
POINTC
Robot tracking workpiece start point (this point
must be used in conjunction with wobj_cvy)