Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 82
![background image](/manuals/580318/82/background.png)
6Ć42
Note that all taskĆtoĆtask communication information is managed by
the system on the Common Memory module (M/N 57C413).
6.8.6
GET Statement
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 PORTA 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.
6.8.7
PUT 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
standard PRINT operation does.
The following are valid PUT statements:
20 PUT #2,A$
30 PUT A$