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

  • 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 304
Chapter
Call Routines 69–127
13
13 -47
Use CALL 112 to activate or de-activate the user LEDs (LED1 and
LED2).
When you change to Command mode your user-defined LEDs remain in
their last state until you re-enter Run mode.
Input and Output Arguments
This routine has two input arguments and no output arguments.
The first input argument activates or de-activates LED1. The second input
argument activates or de-activates LED2:
1 = activate LED
0 = deactivate LED
Any other value has no effect on that particular LED.
Syntax
PUSH LED1 state
PUSH
LED2 state
CALL
112
Example
>
100 PUSH 1 : REM TURN ON LED1
>
110 PUSH 0 : REM TURN OFF LED2
>
120 CALL 112 : REM SET THE LEDS
Use CALL 113 to disable DF1 driver communications. This call
terminates DF1 communication immediately, even if the serial
transmission of a data packet is in progress. You should write your user
program so that it completes any transmission before performing CALL
113. This call clears the PRT2 transmit and receive buffers.
Input and Output Arguments
This routine has no input or output arguments.
Syntax
CALL
113
Example
>
1 REM EXAMPLE PROGRAM
>
10 CALL 113
>
20 END
CALL
1
12: User LED
Control
CALL 1
13: Disable DF1
Driver Communications
Vista de pagina 304
1 2 ... 300 301 302 303 304 305 306 307 308 309 310 ... 393 394

Comentarios a estos manuales

Sin comentarios