6530 Programmer's Guide
Conversational Mode Operation
6530 Programmer’s Guide
2-43
where:
device
is a decimal number that specifies which device parameter
is used. This must be either 1 for the Auxl device or 2 for the Aux2
device. If any other value is specified or the parameter is omitted, the
6530 assumes the Aux1 device.
terminator
is a decimal number in the range of 3 through 127
that specifies a terminating character you have chosen to represent
the end-of-text sequence. The number represents the decimal value
of the ASCII character code. For example, the number 19 specifies a
DC3 control character (l3H). If this parameter is omitted, a DC2
control character (12H) is assumed.
Note Make sure the data passed to the device is terminated properly.
Otherwise, all data from your application, including control
codes and escape sequences will continue to be passed to the
device and will not be processed by the 6530.
Write to File or Device Name (Esc { )
The Esc { sequence allows your application to open, write to, then close
an operating system file or device name.
You cannot check the status of the operation performed with this escape
sequence. It is recommended that you use the Esc } sequence to perform
both write and read operations on a device. The format of the escape
sequence is as follows:
Esc {
“
device” opcode
SPACE
data
CR
where:
device
is the operating system file or device name to which you
are performing the write operation. Note that the device name must
be enclosed in quotes.
opcode
is one of the following ASCII hexadecimal pairs that
specifies the operation to be performed. These correspond to the
same codes used to make operating system calls:
3C = create 40 = write
3D = open 42 = delete
3E = close 43 = seek EOF