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

Page 65

Advertising
background image

4-24 Programmer’s Manual

p c l G e t B a t t e r y L e v e l

Description

Retrieves the NiCd battery’s level. This battery is located in the
printer’s handle. It is good programming practice to check the
battery level before any processing.

Use this function immediately prior to

printing, but not during printing. If you use

this function during printing, the return value

is not accurate.

Syntax

unsigned short far pclGetBatteryLevel(void);

Parameters

None

Return Values

<= 711

You must charge the battery.

712-831

The battery level is high enough to run the printer, but
not print.

>= 832

The battery level is high enough to run the printer and
print.


Example

#include <stdio.h>

#include "mmsultra.h"

void main(void)

{

PRINTINIT pConfig;

// Print data structure

short sStatus = 0;

// Status of comm. calls

unsigned short usStatus = 0;

// Battery level

pConfig.lpuchFntAddr = 0;

// Start Print subsystem

pConfig.ulFntSize = 0;

Advertising