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

Page 56

Advertising
background image

Function Reference 4-15

If the value is a function address, pclCalibrate calls the
corresponding callback function to prompt the operator for the
supply parameters. If the operator enters illegal values, the
callback function should re-prompt the operator.

The callback functions must return zero for success.
Otherwise, pclCalibrate aborts the calibration process.

Declare the callback functions as shown below. Each
parameter points to variables containing the calibrated values.

unsigned short far pascal SupplyTypePrompt(

unsigned short far *lpusPaperType);

// The stock type

unsigned short far pascal SupplyPrompt(

unsigned short far* lpusLenInches,

// Length in 1/100“

unsigned short far* lpusWidthInches);

// Width in 1/100“

You can name the functions anything you

want.

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

#include <stdio.h>

#include <stdlib.h>

#include <conio.h>

#include "mmsultra.h"

unsigned short far pascal StockTypePrompt

(unsigned short far * lpusPaperType);

Advertising