DETACH program instruction When a disk logical unit is detached, any device that was specified by the corresponding ATTACH instruction is forgotten. Thus, a subsequent ATTACH instruction must specify the device again if the default device is not desired. The following events automatically DETACH all the logical units (except the robot) from the affected program task:
l Processing of the EXECUTE command and instruction l Processing of the KILL command and instruction l Processing of the ZERO command l Normal completion of program execution Note, however, that if a program terminates execution "abnormally", all of its devices remain attached, except that the terminal and the manual control pendant are detached. (Abnormal termination of program execution refers to any cause other than HALT or STOP instructions.) If the task is subsequently resumed, the program automatically reattaches the terminal and pendant if they were attached before the termination. NOTE: It is possible that another program task attached the terminal or pendant in the meantime.
This results in an error message when the stopped task is restarted. DETACH ;Release program control of the robot. DETACH (1) ;Discontinue program control of the ;manual control pendant. Related Keyword ATTACH program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 170