6530 Programmer's Guide
Block Mode Operation
3-80
6530 Programmer’s Guide
data
is the data to be written to the device when a write (40)
operation is specified. A space must precede the data.
The data can be:
A mode switch sequence that specifies the type of data (Esc a for
ASCII data or Esc b for binary data) to be sent on a subsequent
write
ASCII characters in the range of 20H to 7E
Binary data specified by pairs of ASCII hexadecimal pairs that
represent
single characters in the range of 00H to FFH
CR is a control character (0DH) that terminates the escape
sequence.
See the programmer’s guide for your workstation’s operating system for
more information about writing to a file or device.
Write/Read to File or Device Name (Esc } )
The Esc } sequence allows your application to perform I/O operations on
an operating system file or device name. The format of the escape
sequence is as follows:
Esc } “
device” operation
SPACE
data
CR
where:
device
is the operating system file or device name to which you
are performing the write/read operation. Note that the device name
must be enclosed in quotes.
operation
is one of the following ASCII hexadecimal pairs that
specifies the function to be performed (these correspond to the same
codes used to make operating system calls):
The write/read operation is a composite of an operating system write
function followed by a read. The read status information, however,
is returned in the message described below.
3C = create 40 = write
3D = open 42 = delete
3E = close 43 = seek EOF
3F = read