RESET
(Statement)

Sets an I/O port to OFF.

RESET <I/O variable>

Sets the port designated by <I/O variable> to OFF.

TAKEARM
|
'Obtains robot control priority.
|
IOBLOK ON
|
'Moves to the coordinates (902.7,0,415.3,180,50,180,1)
'(PTP control)
|
MOVE P, (902.7,0,415.3,180,50,180,1)
|
|
|
'Moves (PTP control) to the coordinates
'(902.7,0,415.3,180,50,180,1).
|
SET IO[240]
|
'Sets the port 240 BIT type to ON.
|
SET IO[241],40
|
'Sets the port 241 BIT type to ON for 40 ms.
|
SET IO[SOL1]
|
'Sets the port designated by I/O variable SOL1 to ON.
|
SET IO[104 TO 110]
|
'Sets the port 104 to 110 BIT type to ON.
|
IF IO[242] THEN
|
|
RESET IO[240]
|
'Sets the port 240 type to OFF.
|
RESET IO[SOL1]
|
'Sets the port designated by I/O variable SOL1 to OFF.
|
RESET IO[104 TO 110]
|
'Sets the port 104 to 110 BIT type to OFF.
|
ENDIF
|
|
IOBLOCK OFF
|
|