Lexmark C760, C762 manual 3-89, LOPENFILE Command, LCLOSEFILE Command, Syntax

Models: C762 C760

1 402
Download 402 pages 23.32 Kb
Page 168
Image 168
"myfile.data".

 

3-89

PJL

 

 

 

 

 

 

Table 3-22: Variables for Flash and Disk File and Password Commands (Continued)

Parameter

Syntax

Description

location

START = location

The location in the file to begin writing or reading. Use an integer that

 

 

represents an offset in bytes from the beginning of the file.

 

 

Optional for both LREADFILE and LWRITEFILE commands. If this parameter

 

 

is omitted from an LREADFILE command, a location of 0 (beginning of

 

 

the file) is assumed. If it is omitted from a LWRITEFILE command with an

 

 

accesstype of RW, a location of 0 is also assumed.

 

 

If a START location is provided but it is greater than the file size, the

 

 

LREADFILE command response will contain no file data. Similarly, an

 

 

LWRITEFILE command with an accesstype of RW functions like an

 

 

LWRITEFILE command with an accesstype of AP.

 

 

 

Note: If PostScript emulation is used to create the file on the device, it may automatically attach a .data extension to the fname. See “Filename Extensions” on page 6-10for more information. For example, if "myfile" is downloaded to flash through PostScript emulation, the fname on the PJL commands is

LOPENFILE Command

Use this command to open a file on a storage device.

Syntax:

@PJL LOPENFILE DEVICE = filedevice FILENAME = "fname" ACCESS = accesstype[<CR>]<LF>

LCLOSEFILE Command

Use this command to close a file on a storage device. The command is ignored if the file doesn’t exist on the device or if the file is not open.

Syntax:

@PJL LCLOSEFILE DEVICE = filedevice FILENAME = "fname"[<CR>]<LF>

Page 168
Image 168
Lexmark C760, C762 manual 3-89, LOPENFILE Command, LCLOSEFILE Command, Syntax