V+ Process Manager Documentation END END .END pm.prt.get.idx(rob.idx, $part, part.idx) Abstract Get the index of the part buffer for a given robot task. Input Parameters Parameter Description rob.idx Index of the robot task $part Part name to search for Output Parameters Parameter Description part.idx Part index in the robot part buffer.
-1 = No matching part was found Example .PROGRAM a.ex2.qlookup() AUTO REAL rob.idx, part.idx, target.idx, count AUTO $part, $target ; Identify the first robot task rob.idx = 3 ; Look up the queue number for a part in the workspace $part = "/Process/Part - Spacing 2" CALL pm.prt.get.idx(rob.idx, $part, part.idx) ; Get the number of parts available CALL pm.prt.avail(rob.idx, part.idx, count) ; Look up the queue number for a target in the workspace $target = "/Process/Target 2 - Static" CALL pm.trg.get.idx(rob.idx, $target, target.idx) ; Get the number of targets available CALL pm.trg.avail(rob.idx, target.idx, count) .END pm.prt.getloc(rob.idx, part.idx, obj.idx, pct) Abstract Get the location of a given part in the belt window.
ACE Reference Guide, 18317-000 Rev A Page 786