V+ Process Manager Documentation Output Parameters Parameter Description sts Status of the operation: 0 = success pm.prt.avail(rob.idx, part.idx, count) Abstract Gets the number of available parts for the robot.
Input Parameters Parameter Description rob.idx Index of the robot task part.idx Part index to access Output Parameters Parameter Description count Number of items available in the queue 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 partstargets available CALL pm.trg.avail(rob.idx, target.idx, count) .END pm.prt.done(rob.idx, part.idx, obj.idx, sts) Abstract ACE Reference Guide, 18317-000 Rev A Page 783