6530 Programmer's Guide

Block Mode Operation
6530 Programmer’s Guide
3-79
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, and then
close an operating system file or device name. (Note that you cannot
check the status of the operation performed with this escape sequence.
Thus, it 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. 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):
SPACE represents a space (hex value H20), which must precede the
data.
3C = create 40 = write
3D = open 43 = seek EOF
3E = close 42 = delete
3F = read