Pclgetblackmarksensor - Paxar Gold 6037EX Programmer's Manual

Paxar printer programmer's manual
Table of Contents

Advertisement

Example
#include <conio.h>
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
PRINTINIT pConfig;
unsigned short usStatus = 0;
short sStatus = 0;
sStatus = pclInit(NULL);
if (sStatus != 0)
printf("Init Failed\nError: %d", usStatus);
else
{
usStatus = pclGetBatteryLevel();
if (usStatus <= 711)
printf("Charge your battery");
else
{
usStatus = pclGetBlackMarkSensor();
switch (usStatus)
{
case 1: printf("Supplies are aligned");
case 0: printf("Supplies misaligned or system error");
default: printf("Error-- press any key when reset.");
}
}
}
pclClose();
}
break;
break;
_getch();
pclClearError();
// Print data structure
// Battery level
// Command calls status
// Start Print subsystem
// Check battery
// Get sensor state
// Display result
// Close Print subsystem
Function Reference 4-27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents