Lexmark C762 Manuale Utente

Pagina di 402
PJL
3-87
 
Table 3-22 lists the parameters used with most of the commands. Additional 
parameters are noted in the description of each command.
Table 3-22:  Variables for Flash and Disk File and Password Commands
Parameter
Syntax
Description
accesstype
ACCESS = 
accesstype
 
One of the following access types must be specified when a file is opened:
RO
Open for read only. The file must already exist on the specified 
device.
WO
Create a new file. If the file already exists, its contents will be 
discarded and a new file will be created.
RW
Open for reading and writing. The file must already exist.
AP
Open for reading and writing, and position the file pointer to the end 
of the file. The file must already exist.
Access types are case sensitive.
The LREADFILE command is ignored if the file was not opened with an 
accesstype
 of 
RO
RW
, or 
AP
. The LWRITEFILE command is ignored if the 
file was not opened with an 
accesstype
 of 
WO
RW
, or 
AP
.
bytecount
LENGTH = 
bytecount
The amount of data in bytes to be read or written. The parameter is optional 
for both the LREADFILE and LWRITEFILE commands.
If the LENGTH parameter is omitted from the LREADFILE command, 
bytecount
 is assumed to be equal to the entire file beginning at the START 
location. If the LENGTH parameter is omitted from the LWRITEFILE 
command, an @PJL END DATA command must be placed at the 
end
 of the 
data. All data up to ‘@’ in @PJL END DATA is written to the file.
Note: 
The LWRITEFILE command requires that 
either
 the LENGTH 
parameter or the @PJL END DATA command be specified, but not both.
If the LENGTH is greater than the file size on a LREADFILE command, it is 
assumed to be the entire file beginning at the START location.