Description
Type
Source
Header
Data Block
READ DATA
Reply
Controller
133
Even number up to 126 bytes
Data block contains up to 63 hextuples representing the next block of data from the
file.
For example, the sequence of bytes 4Ah, 80h, 25h, 30h would appear in the data
block as the string "4A802530". If the Controller has no more bytes to send, a data
block of one null byte is transmitted by the Controller.
Description
Type
Source
Header
Data Block
OPEN FILE FOR WRITING
Command
master
134
13 bytes
This packet instructs the Controller to prepare to write a file to the Controller's
disk. This will overwrite any file of the same name on the disk (the master can
use the Open for Reading command to check if a file of the same name is present
first, and then closing the file straight away).
The data bytes are as follows:
1 byterDrive, "0"=system drive, "l"=data drive
12 bytes: File name string (left justified), eg "LOGIC.CFG "
Exactly the same precautions as with Open File for Reading apply to this command.
Description
Type
Source
Header
Data Block
OPEN FILE FOR WRITING
Reply
Controller
134
lbyte
"1"
if file was opened successfully, or
"0"
if the Controller failed to open the file for writing (file in use, disk write
protected, etc).
Description
Type
Source
Header
Data Block
WRITE BLOCK TO FILE
Command
master
135
Even number up to 126 bytes
Send a block of data to the Controller for writing to a file opened with Open File
for Writing. Data block contains up to 63 hextuples representing the next block
of data to write to the file. For example, the sequence of bytes 4Ah, 80h, 25h,
30h would appear in the data block as the string "4A802530".
Description
Type
Source
Header
Data Block
WRITE BLOCK TO FILE
Reply
Controller
135
No
The Controller sends this packet to the master to confirm that the block of data
has been written.
59