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

Page 77

Advertising
background image

4-36 Programmer’s Manual

p c l O p e n

Description

Loads MPCLII 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
MPCLII 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

Succes sful.

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

Advertising