A SERVICE OF

logo

Function Reference 4-43
pclWrite
Description
Writes MPCL packets to the Print subsystem.
You can send no more than one packet at a
time. It must be complete.
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 MPCL
Packet
Reference Manual
for more information.
Example
See “pclGetOnDemandSensor” for an example.