
4-40 Programmer’s Manual
Return Values
0
Successful.
703-793
A motion control 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.
Other non-zero
An error occurred. Refer to the MPCL
Packet
Reference Manual
for more information.
Example
#include <stdio.h>
#include <stdlib.h>
#include "mmsultra.h"
void GetSupplyType(unsigned short *);
void GetStockLength(unsigned short *);
void GetStockWidth(unsigned short *);
unsigned short main(void)
{
unsigned short usStatus;
// Printer completion status
unsigned short usStockWidth;
// Stk. width in 1/100th inches
unsigned short usStockLength;
// Stk. length in 1/100th inches
unsigned short usSupplyType;
// Supply type, 0 - 2
unsigned short status = 0;
// Print subsystem init. status
PRINTINIT rConfig;
// Print subsystem data
struct.
status = pc
l
Init(NULL);
// Start Print subsystem
if (status != 0)
{
printf("Init Failed\nError: %d", status);
exit(1);
}
pclPaperInfo(&usStockLength, &usStockWidth,
&usSupplyType);
/* GetSupplyType is a programmer-written function */
GetSupplyType(&usSupplyType);
Summary of Contents for Gold 6037EX
Page 1: ... ROG TC6037EXPM Rev AA 8 03 Printed in the U S A 2003 Paxar Americas Inc All rights reserved ...
Page 2: ... Trademarks 0 1 2 0 0 3 4 5 6 7 78 ...
Page 10: ...viii Table of Contents ...
Page 30: ...2 16 Programmer s Manual ...
Page 36: ...3 6 Programmer s Manual ...
Page 154: ...4 118 Programmer s Manual ...
Page 228: ...14 Index ...
Page 229: ......
Page 230: ......