omron — Example

V+ Process Manager Documentation END END .END pm.ps.error(tsk.idx, code, resp.mask, resp) Abstract Report an error and wait for a response. Input Parameters Parameter Description tsk.idx Index associated with the error report. code Error code/status of the operation resp.mask Mask of available response options Output Parameters Parameter Description resp The user response to the error pm.ps.map.idx(proc.idx, map.idx) Abstract Converts a process index from the PC to a robot-relative index. Input Parameters Parameter Description proc.idx Process index from the PC Output Parameters Parameter Description map.idx Robot relative index for the process Example .PROGRAM cu.robot2() ; ABSTRACT:

Custom robot program for the Process Manager ; Process Strategy. AUTO REAL task.idx, i, sts AUTO REAL proc.idx.1, proc.idx.2 tsk.idx = TASK() ; Initialize the robot CALL pm.rob.init(tsk.idx) CALL pm.rob.idlemd(tsk.idx, TRUE) ACE Reference Guide, 18317-000 Rev A Page 790