Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 83

Advertising
background image

4-42 Programmer’s Manual

p c l W r i t e

Description

Writes MPCLII packets to the Print subsystem. The printer
stores the packet in memory.

You can send no more than one packet at a

time.

A batch packet starts a print job, which makes an asynchronous
call to the Print subsystem. After submitting a print job, the
application should call pclStatus in a loop, waiting until the
printer becomes free. See “Pausing While Printing” in Chapter
6 for more information.

Syntax

short far pclWrite(char far* lpchBuffer,

unsigned short usCount);

Parameters

lpchBuffer

A pointer to the data to write.

usCount

The number of bytes to write. The maximum size is
64K.


Return Values

0

Successful.

Non-zero

An error occurred. For errors between 703-793, The
operator corrects the printer condition. Then the
application must call pclClearError to reset the
Motion Control subsystem. Refer to the MPCLII
Packet Reference Manual
for more information.


Example

See “pclGetOnDemandSensor” for an example.

Advertising