Paxar Gold 6037EX User Manual Page 59

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 58
Function Reference 4-23
Example
#include <stdio.h>
#include <conio.h>
#include "mmsultra.h"
void main(void)
{
PRINTINIT pConfig; // Print data structure
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
{
usStatus = pclGetBatteryLevel(); // Get the battery level
if (usStatus > 711) // If level OK,
{
usStatus = pclFeed(); // Feed supplies
if (usStatus != 0)
{
printf("Feed Error-- press any key when printer is reset.");
_getch();
pclClearError();
}
}
else
printf("Charge battery"); // Display low level msg
}
pclClose(); // Close Print subsystem
}
Page view 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 229 230

Comments to this Manuals

No comments