omron — Example

V+ Process Manager Documentation TYPE " ID = ", $id TYPE " Position = ", DX(position), ", ", DY(position), ", ", DZ(position) TYPE " Reference = ", reference TYPE " Pallet Index = ", pal.idx TYPE " Status = ", sts TYPE " Time = ", time TYPE " Source = ", $source TYPE " Location % = ", pct TYPE " " CALL pm.trg.move.ptr(inst.idx) END END .END pm.trg.get.idx(rob.idx, $target, target.idx) Abstract Get the index of the target buffer for a given robot task. Input Parameters Parameter Description rob.idx Index of the robot task $target Target name to search for Output Parameters Parameter Description target.idx Target index in the robot target buffer.

-1 = No matching target 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) ACE Reference Guide, 18317-000 Rev A Page 809