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

Page 81

Advertising
background image

4-40 Programmer’s Manual

/* GetSupplyType is a programmer -written function */

GetSupplyType(&usSupplyType);

/* If fax, save setting, do not calibrate */

if (usSupplyType == MMS_MEDIUM_ENERGY)

{

GetStockWidth(&usStockWidth);

usStatus = pclPaperSetup(usStockLength, usStockWidth,

usSupplyType);

return(usStatus);

}

usStatus = pclCalibratePaper(&usStockLength,

&usStockWidth);

if (usStatus != 0)

{

pclClearError();

return(usStatus);

}

/* GetStockLength is a programmer -written function */

GetStockLength(&usStockLength);

/* GetStockWidth is a programmer -written function */

GetStockWidth(&usStockWidth);

usStatus = pclPaperSetup(usStockLength, usStockWidth,

usSupplyType);

pclClose();

}

Advertising