Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual de usuario Pagina 82

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 81
6Ć42
Note that all taskĆtoĆtask communication information is managed by
the system on the Common Memory module (M/N 57C413).
 

The GET statement is used to input a single character from a device
(not a channel). The GET statement has the following format:
GET #logical_device_number, string_variable
where:
logical_device_number =
the logical number assigned to a device during
an OPEN statement. If no device number
given, the default device is PORT
A on the
Processor module on which the task resides.
string_variable =
a variable of data type string only
The GET statement reads a single character from a device and
loads the character into a string variable. The character is NOT
echoed to the device as it is with an INPUT operation.
The optional parameter :EMPTY=n can be used to transfer control
of the program in the event that the channel is empty. The
parameter is added immediately after the device number; n is the
line number to which to transfer control.
The following are valid GET statements:
20ăGET #2,A$
30ăGET A$
40ăGET #4:EMPTY=50, CHAR$
Refer to the OPEN statement description (6.8.1) for more information
on how the GET statement is used with the OPEN statement.
 

The PUT statement is used to output a single character from a
device (not a channel). The PUT statement has the following format:
PUT #logical_device_number, string_variable
where:
logical_device_number =
the logical number assigned to a device during
an OPEN statement. If no device number is
given, the default device is PORTA on the
Processor module on which the task resides.
string variable =
variable of data type string
The PUT statement outputs a single character from a string variable
to a device. The operation does not generate a <CR> <LF> as a
standard PRINT operation does.
The following are valid PUT statements:
20 PUT #2,A$
30 PUT A$
Vista de pagina 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 145 146

Comentarios a estos manuales

Sin comentarios