p c l O p e n

Description

Loads MPCL packets from the specified file. Generally you use this function for fixed packets, such as formats. An application can call this function as often as needed. It is not necessary to open a particular file more than once in an application.

Syntax

short far pclOpen(char far* lpszFileName);

Parameters

lpszFileName The fully-qualified path for the file containing the MPCL packets. If it is in the same directory as the application’s .EXE file, specify only the file name.

You must use the drive that the printer recognizes. For example, if the files are on the PC’s C: drive, but the printer refers to it as B:, use B: in the path.

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 “pclGetErrorMsg” for an example.

Function Reference 4-37

Page 73
Image 73
Paxar Gold 6037EX manual L O p e n