omron — SELECT program instruction

SELECT program instruction DETACH ;Detach robot 3 .END SELECT VISION Example Program The following program segment selects vision system #2 and accesses that system. .PROGRAM vision.2() SELECT VISION = 2 ;Select vision system #2 ENABLE VISION ;Enable that vision system VSTATUS(1,0) status[] ;Get status information IF status[0] == 0 THEN ;If vision system is idle, VPICTURE(1) ;take a picture END .END SELECT FORCE Example Program The following program selects force sensor #2 and reads the current forces from it.

.PROGRAM test() SELECT FORCE = 2 ;Select force sensor 2 FORCE.READ f[] ;Read sensor 2 forces TYPE "Current forces on sensor", SELECT(FORCE), /S TYPE "are ", /F0.1, f[0], /X1, f[1], /X1, f[2] .END Related Keywords ATTACH program instruction SELECT real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 458