Rockwell-automation 1771-DB BASIC MODULE Manual de usuario Pagina 129

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 394
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 128
Chapter
Expressions, Variables and Operators
9
9 -19
XBY
Use the XBY operator to retrieve or assign data to or from the external
RAM data memory of the BASIC module. The argument for the XBY
operator must be a valid integer between 0 and 65535 (0FFFFH).
The value assigned to the XBY operator must between 0 and 65535 (0 and
0FFFFH) inclusive. If not, a bad argument error occurs.
>A
= XBY(0F000H)
Result: Value in external memory location 0F00H assigned to
variable A.
>XBY(4000H)
= 1F
H
Result: Value 1FH assigned to external memory location 4000H.
Important: Improper use of this operator may cause a malfunction of the
BASIC module.
TIME
Use the TIME operator to retrieve or assign a value to the free running
clock resident in the BASIC module. After reset, time is equal to 0.
CLOCK1 (page 11 -5) enables the free running clock. When you enable
the free running clock, the special function operator TIME increments once
every 5 milliseconds. The units of time are in seconds.
When you assign TIME a value with a LET statement (page 11 -19)
(ex:
TIME=100), only the integer portion of TIME is changed.
>CLOCK1
:REM ENABLE FREE RUNNING CLOCK
>
CLOCK0 :REM DISABLE FREE RUNNING CLOCK–TIME NOT RESET
>
PRINT TIME REM: DISPLAY TIME
READY
>RUN
3.315
>NEW
>
TIME = 0 :REM SET TIME = 0
>
PRINT TIME :REM DISPLAY TIME
READY
>
RUN
.315
(Note: only the integer is changed)
Vista de pagina 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 393 394

Comentarios a estos manuales

Sin comentarios