Rockwell-automation 2708-NBD VBASIC Language Development Kit Manual de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 84
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
Chapter 4
Special Devices in A-B VBASIC
42
Some statements and intrinsic functions implicitly refer to a specific device.
These are:
Front panel LCD CLS, CSRLIN, LOCATE, POS, PRINT and WRITE. . . . .
(without file numbers)
Keypad INKEY$, INPUT$ (without filenumber),. . . . . . . . . . . .
LINE INPUT (without filenumber)
Beeper BEEP, SOUND. . . . . . . . . . . . .
Timer DATE$, SLEEP, TIME$, TIMER. . . . . . . . . . . . .
Files KILL. . . . . . . . . . . . . .
Reserved device name: LCD
These statements always access the LCD display:
PRINT and PRINT USING (without a file number)
WRITE (without a file number)
CLS
CSRLIN
LOCATE
POS
Prompts for LINE INPUT (without a file number)
As an alternative, OPEN LCD may be used to associate the device with a
file number and PRINT # or WRITE # used.
Note: Once OPENed, the LCD file CANNOT be closed.
At program start, the LCD displays the words BASIC START. The cursor
is at the home position and is on. The LCD is set to clear when the programs
first character is output to it. Thus, the programmer can act as if the LCD
were actually already blank.
PRINTs to the LCD, ending without a comma or semicolon (, or ;) leave the
cursor at the start of the next line. Thus, the next PRINT causes that line to
be cleared before data is written.
PRINT statements terminated by a comma or semicolon leave the cursor
where it was at statements end, as shown in the following example.
Introduction (contd)
Device: LCD Display
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 83 84

Comentarios a estos manuales

Sin comentarios