Paxar Gold 6037EX manual Print data structure

Models: Gold 6037EX

1 230
Download 230 pages 30.9 Kb
Page 59
Image 59

Example

#include <stdio.h> #include <conio.h> #include "mmsultra.h"

void main(void)

 

{

// Print data structure

PRINTINIT pConfig;

unsigned short usStatus = 0;

// Battery level

short sStatus = 0;

// Command call status

sStatus = pclInit(NULL);

// Start Print subsystem

if (sStatus != 0)

 

printf("Init Failed\nError: %d", sStatus);

else

 

{

// Get the battery level

usStatus = pclGetBatteryLevel();

if (usStatus > 711)

// If level OK,

{

// Feed supplies

usStatus = pclFeed();

if (usStatus != 0)

 

{

 

printf("Feed Error-- press any key when printer is reset."); _getch();

pclClearError();

}

 

}

 

else

// Display low level msg

printf("Charge battery");

}

// Close Print subsystem

pclClose();

}

Function Reference 4-23

Page 59
Image 59
Paxar Gold 6037EX manual Print data structure