User`s guide
Introduction
This chapter provides an overview of strategies for programming the manual control pendant
(MCP). For information on programming the Adept T1/T2 pendant, see Programming the
Adept T1/T2 Pendant on page 283.
ATTACHing and DETACHing the Pendant
Before an application program can communicate with the MCP, the MCP must first be
ATTACHed using the ATTACH instruction. The logical unit number for the MCP is 1. The
following instruction readies the MCP for communication:
mcp_lun = 1
ATTACH (mcp_lun)
When the MCP is ATTACHed, the USER LED on the MCP is lit.
As with all other devices that are ATTACHed by a program, the MCP should be DETACHed
when the program is finished with the MCP. The following instruction frees up the MCP:
DETACH (mcp_lun)
When the MCP has been ATTACHed by an application program, the user can interact with the
pendant without selecting manual mode.
As with all I/O devices, the IOSTAT function should be used to check for errors after each I/O
operation.
Introduction
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 265










