Paxar Gold 6037EX manual L W r i t e

Models: Gold 6037EX

1 230
Download 230 pages 30.9 Kb
Page 79
Image 79

p c l W r i t e

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

0Successful.

Non-zeroAn 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.

Function Reference 4-43

Page 79
Image 79
Paxar Gold 6037EX manual L W r i t e