omron — Introduction

Programming the Omron Adept T20 Pendant Programming the Omron Adept T20 Pendant This version of eV+ uses the Omron Adept T20 pendant. For more information, see Programming the T20 Pendant and the Adept T20 Pendant User's Guide . The following topics are described in this chapter: Introduction 179 Writing to the Pendant Display 180 Detecting User Input 181 Programming Example: Pendant Menu 183 Introduction This section provides an overview of how to program the Omron Adept T20 pendant. You can refer to the Adept T20 Pendant User’s Guide for information on installing and operating the pendant.

ATTACHing and DETACHing the Pendant Before an application program can communicate with the pendant, the pendant must first be ATTACHed using the ATTACH instruction. The logical unit number (lun) for the pendant is 1. The following code readies the pendant for communication: t20_lun = 1 ATTACH (t20_lun) As with all other devices that are ATTACHed by a program, the pendant should be DETACHed when the program is finished with the pendant. The following instruction frees up the pendant: DETACH (t20_lun) When the pendant 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. eV+Language User's Guide, v2.x, 18318-000 Rev A Page 179 Command Action to transparent or opaque. GTRANS Define a transformation to apply to all subsequent G instructions. GTYPE Display a text string.