Paxar Gold 6037EX User Manual

Browse online or download User Manual for Bar code readers Paxar Gold 6037EX. Paxar Gold 6037EX User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 230
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Printed in the U.S.A

 TC6037EXPM Rev. AA 8/03Printed in the U.S.A.©2003 Paxar Americas, Inc. All rights reserved.

Page 2

viii Table of Contents

Page 3 - TABLE OF CONTENTS

4-64 Programmer’s Manual > 0 The type of bar code retrieved. The following values can be returned when you use either library: DCDE_C39 Code

Page 4

Function Reference 4-65 Example #include <stdio.h> #include <conio.h> #include "mmsultra.h" void main (void) { short sStat

Page 5 - Table of Contents iii

4-66 Programmer’s Manual scnGetUPCEANInfo Description LMSSCEN.LIB only. Retrieves a pointer to the scanner’s default configuration for UPC and EAN

Page 6

Function Reference 4-67 scnOpenScanner Description Enables the scanner and sets the configuration values to the defaults. Be sure to enable the sc

Page 7 - Table of Contents v

4-68 Programmer’s Manual Parameters None Return Values 0 Successful. -1 The scanner is already enabled. -2 No scanner is installed or the applica

Page 8

Function Reference 4-69 scnOpenScannerShared Description Enables the scanner and sets the configuration values to the defaults. Be sure to enable

Page 9 - Table of Contents vii

4-70 Programmer’s Manual Return Values 0 Successful. -1 The scanner is already enabled. -2 No scanner is installed or the application cannot comm

Page 10

Function Reference 4-71 printf("\nScanning...\n"); // Perform scan iInput = getch(); if (iInput == 0x00) {

Page 11 - INTRODUCTION

4-72 Programmer’s Manual scnScannerHit Description Checks for data in the scanner buffer. If there is data, it returns the type of bar code the da

Page 12 - System Requirements

Function Reference 4-73 Example #include <stdio.h> #include "mmsultra.h" void main (void) { short sStatus = 0; // Command

Page 13 - SDK Contents

Introduction 1-1 INTRODUCTION Welcome to the software development kit (SDK) for the Monarch® Pathfinder® Ultra® Gold 6037EX™ printer. The SDK co

Page 14 - Related Documentation

4-74 Programmer’s Manual scnSetCodabarInfo Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the CODABAR

Page 15 - PRINTER FEATURES

Function Reference 4-75 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 16 - Display

4-76 Programmer’s Manual scnSetCode128Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the CODE128

Page 17 - LCD Utility

Function Reference 4-77 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 18

4-78 Programmer’s Manual scnSetCode39Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the CODE39IN

Page 19 - Speaker

Function Reference 4-79 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 20 - 2-6 Programmer’s Manual

4-80 Programmer’s Manual scnSetCode93Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the CODE93IN

Page 21 - Printer Features 2-7

Function Reference 4-81 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 22 - Using Non-Resident Fonts

4-82 Programmer’s Manual scnSetD2of5Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the D2OF5INFO

Page 23 - Scanners

Function Reference 4-83 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 24 - Scanner Function Overview

1-2 Programmer’s Manual System Requirements Following are the hardware and software requirements for the SDK. Refer to your Windows® and C/C++ docum

Page 25 - Boot Process

4-84 Programmer’s Manual scnSetGeneralInfo Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the GENERAL

Page 26 - Boot Options

Function Reference 4-85 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 27 - Booting from a PC

4-86 Programmer’s Manual scnSetI2of5Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the I2OF5INFO

Page 28 - Startup Menu

Function Reference 4-87 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 29 - Windows 95/Network Notes

4-88 Programmer’s Manual scnSetMSI Info Description LMSSCEN.LIB only. Saves the scanner configuration values the application set in the MSIINFO da

Page 30 - 2-16 Programmer’s Manual

Function Reference 4-89 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 31 - DEVELOPING APPLICATIONS

4-90 Programmer’s Manual scnSetScanInfo Description Saves the scanner’s configuration values the application set in the SCANINFO data structure. S

Page 32 - Writing Applications

Function Reference 4-91 Example #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatus = 0; // Command

Page 33 - Building Applications

4-92 Programmer’s Manual scnSetUPCEANInfo Description LMSSCNEN.LIB only. Saves the scanner configuration values the application set in the UPCEANI

Page 34 - Test the Application

Function Reference 4-93 Example #include <stdio.h> #include "scan1223.h" #include "mmsultra.h" void main(void) { short

Page 35 - Training the End Users

Introduction 1-3 SDK Contents The SDK is located in the directory you specified during installation. It is divided into several sub-directories,

Page 36 - 3-6 Programmer’s Manual

4-94 Programmer’s Manual // Save values sStatus = scnSetUPCEANInfo(UEconfig); if (sStatus != 0) printf(

Page 37 - FUNCTION REFERENCE

Function Reference 4-95 scnTrigger Description Initiates a scan, placing the scanned data in the scanner buffer. If the LED on the keypad turns gr

Page 38

4-96 Programmer’s Manual spkBeep Description Sounds the printer’s beeper for the specified duration and frequency. If you pass invalid values in e

Page 39

Function Reference 4-97 sysGetBIOSVersion Description Retrieves the BIOS version and build date. The date string’s format is mm/dd/yy. The version

Page 40

4-98 Programmer’s Manual iStatus = sysGetBIOSVersion(ucVersion, ucDate); // Get info if (iStatus != 0) printf("BIOS Version retri

Page 41

Function Reference 4-99 vidBackLightOn Description Turns the LCD backlight on or off. Syntax void far vidBackLightOn(short sOn); Parameters sOn Th

Page 42

4-100 Programmer’s Manual vidGetState Description Retrieves the current video mode as defined in vidSetMode. Syntax unsigned short far vidGetState(

Page 43

Function Reference 4-101 vidPutCursor Description Moves the cursor for the specified display page to the specified row and column. Syntax void far

Page 44

4-102 Programmer’s Manual vidPutStr Description Writes a string of ASCII characters with an attribute at the specified display page’s current curso

Page 45

Function Reference 4-103 Example #include "mmsultra.h" void main(void) { vidSetPage(0); // Set the page vidScroll(0, 0, 7, 1

Page 46

1-4 Programmer’s Manual Related Documentation The following table describes other documentation for the printer. Item Description ROM-DOS User Manual

Page 47

4-104 Programmer’s Manual vidReadCA Description Reads a character and attribute from the current cursor location for the specified display page. Sy

Page 48 - Non-zero

Function Reference 4-105 // Display results printf("Character read is %c\n", ucCharacter); if (ucAttribute == 0x07) p

Page 49

4-106 Programmer’s Manual vidReadCursor Description Retrieves the specified display page’s current cursor location. Syntax void far vidReadCursor(u

Page 50

Function Reference 4-107 vidScroll Description Does either of the following to the current display page: ♦ Sets the display to ASCII space charact

Page 51

4-108 Programmer’s Manual Return Values None Example #include <stdio.h> #include <conio.h> #include "mmsultra.h" void main(v

Page 52

Function Reference 4-109 vidSetCursorType Description Defines the cursor style to use. The display consists of 4 or 8 rows, depending on the printe

Page 53

4-110 Programmer’s Manual Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { int cStyle

Page 54

Function Reference 4-111 vidSetMode Description Sets the video mode and clears the screen for the current display page. Syntax void far vidSetMode(

Page 55

4-112 Programmer’s Manual vidSetPage Description Switches to the specified display page and displays it. Switching between pages does not affect t

Page 56

Function Reference 4-113 void main(void) { vidSetPage(0); // Clear page 0 vidScroll(0, 0, 3, 11, 0, 0x07); vidSetPage(1); //

Page 57

Printer Features 2-1 PRINTER FEATURES There are several printer features that you must understand to write applications. For example, just knowing t

Page 58

4-114 Programmer’s Manual vidWriteC Description Writes an ASCII character at the specified display page’s current cursor location, overwriting any

Page 59

Function Reference 4-115 Example #include "mmsultra.h" void main(void) { int iCharacter = 42; // An asterisk vidSetPage(0);

Page 60

4-116 Programmer’s Manual vidWriteCA Description Writes a character with an attribute at the specified display page’s current cursor location, over

Page 61

Function Reference 4-117 sPage The display page. For 4-row printers, values are 0-3. For 8-row printers, values are 0-1. Return Values None Ex

Page 62

4-118 Programmer’s Manual

Page 63

Data Structure Reference 5-1 DATA STRUCTURE REFERENCE Certain functions described in the last chapter require the application to use certain data s

Page 64 - Pointer to a null-terminated

5-2 Programmer’s Manual CODABARINFO The CODABARINFO data structure contains scanner configuration information about Codabar bar codes. To read the

Page 65

Data Structure Reference 5-3 Field Description uchEnableCLSIEdit Enable/disable the ability to strip the start and stop characters from 14-charac

Page 66

5-4 Programmer’s Manual CODE128INFO The CODE128INFO data structure contains scanner configuration information about Code 128 bar codes. To read th

Page 67

Data Structure Reference 5-5 CODE39INFO The CODE39INFO data structure contains scanner configuration information about Code 39 bar codes. To read

Page 68

2-2 Programmer’s Manual Display The printer has an 8-row display. The printers can display characters in either reverse or normal video. A display

Page 69

5-6 Programmer’s Manual Field Description uchEnableC32Prefix Enable/disable the ability to add “A” as a prefix to all Code 32 bar codes. You mus

Page 70

Data Structure Reference 5-7 CODE93INFO The CODE93INFO data structure contains scanner configuration information about Code 93 bar codes. To read

Page 71

5-8 Programmer’s Manual D2OF5INFO The D2OF5INFO data structure contains scanner configuration information about D 2 of 5 bar codes. To read these

Page 72

Data Structure Reference 5-9 GENERALINFO The GENERALINFO data structure contains general scanner configuration information. To read these values,

Page 73 - Reference Manual

5-10 Programmer’s Manual Field Description uchSameSymbolTMO The minimum time that must elapse between scans of the same bar code (in increments o

Page 74

Data Structure Reference 5-11 Level Number Description 3 Bar code types other than the following (or these bar codes, as long as they do not mee

Page 75

5-12 Programmer’s Manual I2OF5INFO The I2OF5INFO data structure contains scanner configuration information about I 2 of 5 bar codes. To read these

Page 76

Data Structure Reference 5-13 Field Description uchChkDgtAlgorithm Specifies whether the scanner should check the integrity of I 2 of 5 bar codes

Page 77

5-14 Programmer’s Manual MSIINFO The MSIINFO data structure contains scanner configuration information about MSI bar codes. To read these values,

Page 78 - Packet Reference Manual

Data Structure Reference 5-15 Field Description uchCheckDigits The number of check digits to use with the bar codes. Values are: 0 One check di

Page 79

Printer Features 2-3 If the application writes to ♦ a display page other than the current one, the displayed information does not appear until the a

Page 80

5-16 Programmer’s Manual UPCEANINFO The UPCEANINFO data structure contains scanner configuration information about UPC and EAN bar codes. To read

Page 81

Data Structure Reference 5-17 Field Description uchEnableUPCE1 Enable/disable the ability to scan UPCE1 bar codes. Default: SCN_DISABLE uchEnable

Page 82

5-18 Programmer’s Manual Field Description uchEnableSuppRedun The number of times to scan bar codes without supplementals before transmission. F

Page 83

Data Structure Reference 5-19 Field Description uchUPCEPreamble Specifies how to transmit lead-in characters for UPCE0 bar codes. Values are: 0

Page 84

5-20 Programmer’s Manual Field Description uchCvtEAN8toEAN13 Enable/disable the ability to convert EAN8 zero-extended bar codes to EAN13 format.

Page 85

Programming Techniques 6-1 PROGRAMMING TECHNIQUES Many applications have common features, such as requiring the operator to press the trigger to

Page 86

6-2 Programmer’s Manual An application can ♦ print single labels. ♦ print multiple labels. ♦ reprint labels. No matter what printing method it u

Page 87

Programming Techniques 6-3 Quantity Use either or both of the following methods to control the quantity of labels printed: ♦ Set up a print loop

Page 88 - Scanner is disabled

6-4 Programmer’s Manual Reprinting Labels To reprint labels, submit the following batch with pclWrite: {B, format, U, quantity|} where format is th

Page 89 - Function Reference 4-53

Programming Techniques 6-5 Building Packets Dynamically An application can use fixed packets or packets that change every time they are used, suc

Page 90 - 4-54 Programmer’s Manual

2-4 Programmer’s Manual LCD [options… ] You can enter one or more of the following options on the command line. Y Enable the display. This option i

Page 91 - Function Reference 4-55

6-6 Programmer’s Manual Audio/Visual Feedback It is recommended that in the application, you include some sort of audio or visual feedback indicati

Page 92 - 4-56 Programmer’s Manual

Using UServe and UClient 7-1 USING USERVE AND UCLIENT To prepare the printer to run an application, you must copy the application’s files to it fro

Page 93 - Function Reference 4-57

7-2 Programmer’s Manual 3. Start UClient on the PC. You will see: 4. Select Properties from the Connection Menu. You will see: You set the comm

Page 94 - 4-58 Programmer’s Manual

Using UServe and UClient 7-3 A Note About Connections For a connection to be open, both sides (printer and PC) have to be ready. If only one side,

Page 95 - Function Reference 4-59

7-4 Programmer’s Manual 3. Enter commands, one at a time, at the UClient prompt to copy files to the printer. See ”Example File Copy” to get an ide

Page 96

Using UServe and UClient 7-5 Following is the sequence of commands you would use to copy these files and create this directory structure on the pri

Page 97

7-6 Programmer’s Manual Command Description setbaud Sets the baud rate for communications between the printer and the PC (overriding the default set

Page 98 - 4-62 Programmer’s Manual

Using UServe and UClient 7-7 close Description Closes the connection between the PC and printer by taking the PC out of a ready state. UServe stay

Page 99

7-8 Programmer’s Manual Example get autoexec.bat copies autoexec.bat from the printer to the PC, giving the file the same name on the PC. The PC dis

Page 100

Using UServe and UClient 7-9 lcd Description Changes the directory on the PC. Syntax lcd directory Parameters directory The directory to change to

Page 101 - Example

Printer Features 2-5 Speaker Applications can make the printer speaker beep for different lengths of time and frequencies. For example, you might us

Page 102 - UPCEANINFO data structure

7-10 Programmer’s Manual ldir Description Lists details about files and/or directories on the PC, as specified. Details include date and time of cre

Page 103 - Description

Using UServe and UClient 7-11 lmd Description Creates a directory on the PC. Syntax lmd directory Parameters directory The name (and optionally, th

Page 104 - Return Values

7-12 Programmer’s Manual lwd Description Displays the path to the current directory on the PC. Syntax lwd Parameters None Example lwd displays the p

Page 105

Using UServe and UClient 7-13 ping Description Confirms that the open PC/printer connection is valid. Syntax ping Parameters None Example ping con

Page 106

7-14 Programmer’s Manual Example put lookup.txt copies lookup.txt from the PC to the printer, giving it the same name on the printer. It also displa

Page 107

Using UServe and UClient 7-15 Example puttrueffs flash.bin copies flash.bin from the PC to the printer, displaying the file name and status of the

Page 108

7-16 Programmer’s Manual setbaud Description Sets the baud rate for communications between the printer and the PC (overriding the default set from UC

Page 109

Using UServe and UClient 7-17 settimeout Description Sets the length of time for the PC to wait for the printer to respond to a command. The conne

Page 110

7-18 Programmer’s Manual udel Description Deletes a file on the printer. Wild cards are not valid with this command. Syntax udel filename Parameters

Page 111

Using UServe and UClient 7-19 Example udir c: displays a list of files in the c: root directory. Below is an example. . 01/02/1980 00:17:18 <DI

Page 112



Page 113

2-6 Programmer’s Manual Following is the address map for the printer. 200000 180000 1

Page 114

7-20 Programmer’s Manual Example udiskfree c displays something like the following: Drive = C Total Size = 1462272 bytes Available = 659456 byt

Page 115

Using UServe and UClient 7-21 urd Description Deletes a directory on the printer. If the directory does not exist, an error occurs. Syntax urd dir

Page 116

7-22 Programmer’s Manual Example urun diag runs the printer’s diagnostics program as an offshoot task from UServe. uview Description Displays a file’

Page 117

Using UServe and UClient 7-23 Example uwd displays the path to the current directory on the printer. For example, D:\DATA Troubleshooting Consult

Page 118

7-24 Programmer’s Manual Message Solution Could not get the file. Verify that a valid PC/printer connection exists. If so, verify the syntax of th

Page 119

Using UServe and UClient 7-25 Message Solution Invalid Parameters for command Verify the syntax of the command and retry it with all of the parame

Page 120

7-26 Programmer’s Manual Message Solution Supplied Buffer was too small for amount of data. Call Technical Support at the phone number on the back of

Page 121

Sample Applications A-1 SAMPLE APPLICATIONS The SDK contains several sample applications for both printers for you to study as you write your own a

Page 122

A-2 Programmer’s Manual Sample 1 Function Prints with the trigger. Algorithm 1. Initialize the Print subsystem without allocating font storage mem

Page 123

Sample Applications A-3 5. Waits until the label prints by checking the status repeatedly until it returns something other than “busy.” 6. Closes

Page 124

Printer Features 2-7 Fonts The printer has many resident fonts. You must load other fonts separately. Following is a list of these fonts and their

Page 125

A-4 Programmer’s Manual Sample 4 Function Prints using fonts and formats loaded with pclOpen. Algorithm 1. Initializes the Print subsystem. 2. Lo

Page 126 - The scanner is disabled

Sample Applications A-5 Sample 6 Function Scans and prints. Algorithm 1. Initializes the Print subsystem without allocating font storage memory. 2

Page 127

A-6 Programmer’s Manual 4. Sets the scanner to transmit the System characters and country code with UPCA bar codes. 5. Performs the following unt

Page 128

Glossary B-1 GLOSSARY Following is a list of terms you must be familiar with to write printer applications. Term Definition Application Buffer T

Page 129

B-2 Programmer’s Manual Term Definition SDK Software Development Kit. This kit includes everything you need (libraries, utilities, documentation,

Page 130

Index 1 INDEX 1 1223 scanner configuration CODABARINFO data structure, 5-2 CODE128INFO data structure, 5-4 CODE39INFO data structure, 5-5, 5-7 D2OF

Page 131

2 Index AUTOEXEC.BAT bypassing, 2-12 receiving prompts for each line, 2-12 B backlight, adjusting, 4-99 backlight, turning on or off, 2-3 bar code ty

Page 132 - 110-10,000

Index 3 closing Print subsystem, 4-21 Codabar bar codes configuration data structure, 5-2 retrieving configuration values, 4-52 setting configurati

Page 133

4 Index configuring 1223 scanner for Codabar bar codes, 4-74 1223 scanner for Code 128 bar codes, 4-76 1223 scanner for Code 39 bar codes, 4-78 1223

Page 134

Index 5 for Codabar bar codes, 5-2 for Code 128 bar codes, 5-4 for Code 39 bar codes, 5-5 for Code 93 bar codes, 5-7 for D 2 of 5 bar codes, 5-8 fo

Page 135

2-8 Programmer’s Manual ♦ CG Triumvirate Bold Condensed (Full Character Set) 12 pt. (1009) ♦ CG Triumvirate Bold Condensed (Partial Character Set)

Page 136

6 Index kbdGetMode, 4-3 kbdRestoreMode, 4-4 kbdSetAlpha, 4-6 kbdSetCaps, 4-8 kbdSetFunct, 4-9 kbdSetNormal, 4-11 pclBatteryOkToPrint, 4-12 pclCalibra

Page 137

Index 7 vidBackLightOff, 4-99 vidGetState, 4-100 vidPutCursor, 4-101 vidPutStr, 4-102 vidReadCA, 4-104 vidReadCursor, 4-106 vidScroll, 4-107 vidSet

Page 138

8 Index ldir command, 7-10 libraries, SDK, 3-4 linking applications, 3-4 lmd command, 7-11 loading MPCLII packets, 4-37 multiple packets together, 6-

Page 139

Index 9 pclGetErrorMsg function, 4-28 pclGetOnDemandSensor function, 4-30 pclGetSupplyType function, 4-33 pclI nit function, 4-35 pclOpen function,

Page 140

10 Index 1223 scanner Code 93 bar code configuration, 4-55 1223 scanner D 2 of 5 bar code configuration, 4-56 1223 scanner general configuration, 4-

Page 141

Index 11 scnGetCodabarInfo function, 4-52 scnGetCode128Info function, 4-53 scnGetCode39Info function, 4-54 scnGetCode93Info function, 4-55 scnGetD2

Page 142

12 Index T techniques for programming, 6-1 testing applications away from PC, 3-4 training the end users, 3-5 trigger pulls, reading, 6-5 troubleshoo

Page 143

Index 13 W Windows 95 notes, 2-15 writing applications, 3-2 characters and attributes at current cursor location, 4-116 characters at current curso

Page 144

14 Index

Page 146

Printer Features 2-9 Scanners Each printer comes with either of two bar code scanners. ♦ SE-923 ♦ SE-923HS Using the Scanners To use the either sca

Page 148

2-10 Programmer’s Manual Scanner Function Overview The scanner contains a buffer to hold the data from a scan. The application should contain a buf

Page 149

Printer Features 2-11 Boot Process The printer’s boot process is straightforward and flexible enough to enable you to do a variety of things as neede

Page 150

2-12 Programmer’s Manual Display Control You can either enable or disable the display. Enabling the Display To enable the display, either ♦ press f

Page 151

Printer Features 2-13 To choose the boot options: 1. Turn on the printer while pressing f until messages appear. You must do this step. Otherwise,

Page 152

2-14 Programmer’s Manual Startup Menu To display the Startup Menu: 1. Press the f and On/Off keys at the same time. 2. When the logo screen appears

Page 153

Printer Features 2-15 6037 Startup Me nu 1. Diagnostics 2. Print Passthru 3. CMOS Setup 4. F/W Update 5. DOS Prompt Diagnostics Runs the Diagnostic

Page 154 - 4-118 Programmer’s Manual

Table of Contents i TABLE OF CONTENTS Introduction ...1-1 System

Page 155 - REFERENCE

2-16 Programmer’s Manual

Page 156 - CODABARINFO

Developing Applications 3-1 DEVELOPING APPLICATIONS Developing applications is a long, detailed process. You cannot just write the application cod

Page 157

3-2 Programmer’s Manual Creating MPCL Packets An application prints labels by submitting MPCL packets to the printer. Refer to the MPCL Packet Ref

Page 158 - CODE128INFO

Developing Applications 3-3 Building Applications A build consists of compiling and linking the application’s source code. If your application has

Page 159 - CODE39INFO

3-4 Programmer’s Manual Linking Applications Although you may also use other options when linking, you must specify the ♦ object files ♦ executab

Page 160 - 5-6 Programmer’s Manual

Developing Applications 3-5 Training the End Users The last step in the development of an application is to train the end users (Operators) and/or

Page 161 - CODE93INFO

3-6 Programmer’s Manual

Page 162 - D2OF5INFO

Function Reference 4-1 FUNCTION REFERENCE The SDK contains several libraries of functions you can call in your application. This chapter describes

Page 163 - GENERALINFO

4-2 Programmer’s Manual kbdClrFunct Description Changes the keypad’s data entry mode to the mode in effect immediately before the application calle

Page 164 - Scan Security Levels

Function Reference 4-3 kbdGetMode Description Checks if Function Key mode is set or saves the keypad mode (Numeric/Normal, Upper-case Alpha, or Low

Page 165

ii Table of Contents Windows 95/Network Notes...2-15 Directory Names ...

Page 166 - I2OF5INFO

4-4 Programmer’s Manual kbdRestoreMode Description Changes the keypad’s data entry mode to the one saved previously when the application called kbd

Page 167

Function Reference 4-5 printf("\nPress the same key: "); // Test the mode while (_kbhit()) ; iInput = _getch(); printf

Page 168 - MSIINFO

4-6 Programmer’s Manual kbdSetAlpha Description Changes the keypad’s data entry mode to Lower-case Alpha mode. Syntax void kbdSetAlpha (void); Para

Page 169

Function Reference 4-7 printf("\nPress the same\nkey: "); // Test the mode while (_kbhit()) ; iInput = _getch(); prin

Page 170 - UPCEANINFO

4-8 Programmer’s Manual kbdSetCaps Description Changes the keypad’s data entry mode to Upper-case Alpha mode. Syntax void kbdSetCaps(void); Paramet

Page 171

Function Reference 4-9 kbdSetFunct Description Changes the keypad’s data entry mode to Function Key mode. Syntax void kbdSetFunct(void); Parameters

Page 172 - 5-18 Programmer’s Manual

4-10 Programmer’s Manual Example #include <stdio.h> #include <conio.h> #include "mmsultra.h" void main(void) { int iInput

Page 173

Function Reference 4-11 kbdSetNormal Description Changes the keypad’s data entry mode to Numeric/Normal mode. Syntax void kbdSetNormal(void); Param

Page 174

4-12 Programmer’s Manual pclBatteryOkToPrint Description Checks if the printer’s NiCd battery (located in the handle) is charged enough to allow pr

Page 175 - PROGRAMMING TECHNIQUES

Function Reference 4-13 pclCalibrate Description Calibrates the supplies in the printer and gives the supply information to the Print subsystem. Op

Page 176 - Printing Multiple Labels

Table of Contents iii pclGetErrorMsg ...4-28 pclGetOnDemandSensor...

Page 177 - Feed Mode

4-14 Programmer’s Manual Parameters usStockLength The supply length in hundredths of an inch. Values are 55-400 or –1 to prompt the user. usStock

Page 178 - Pausing While Printing

Function Reference 4-15 Example #include <stdio.h> #include <stdlib.h> #include <conio.h> #include "mmsultra.h" unsigne

Page 179 - Reading Trigger Pulls

4-16 Programmer’s Manual /* Calibrate with constant 2" width and paper type */ /* Let function prompt for the stock length */ usStatu

Page 180 - Audio/Visual Feedback

Function Reference 4-17 /* Calibration callback function to always return constant size */ unsigned short far pascal StockPrompt (unsigned short

Page 181 - USING USERVE AND UCLIENT

4-18 Programmer’s Manual pclCalibratePaper Description Calibrates supplies in the printer. Operators can load supplies (as described in the Equipme

Page 182 - Properties

Function Reference 4-19 Return Values 0 Successful. Non-zero An error occurred. For errors between 703-793, the operator corrects the printer cond

Page 183 - A Note About Connections

4-20 Programmer’s Manual pclClearError Description Resets the Motion Control subsystem after an application receives a motion control error (703-79

Page 184 - Example File Copy

Function Reference 4-21 pclClose Description Closes the Print subsystem by freeing all internally allocated resources. A call to this function mus

Page 185 - UClient Commands

4-22 Programmer’s Manual pclFeed Description Feeds a label through the printer. Syntax unsigned short far pclFeed(void); Parameters None Return Val

Page 186 - Syntax Conventions

Function Reference 4-23 Example #include <stdio.h> #include <conio.h> #include "mmsultra.h" void main(void) { PRINTINIT pC

Page 187

iv Table of Contents scnSetCodabarInfo ...4-74 scnSetCode128Info...

Page 188

4-24 Programmer’s Manual pclGetBatteryLevel Description Retrieves the NiCd battery’s level. This battery is located in the printer’s handle. It i

Page 189

Function Reference 4-25 Example #include <stdio.h> #include "mmsultra.h" void main(void) { PRINTINIT pConfig; // Print data

Page 190

4-26 Programmer’s Manual pclGetBlackMarkSensor Description Retrieves the black mark sensor’s latest state. This state is not necessarily the curre

Page 191

Function Reference 4-27 Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { PRINTINIT pC

Page 192 - 7-12 Programmer’s Manual

4-28 Programmer’s Manual pclGetErrorMsg Description Testing/Debugging Only. Retrieves a pointer to the error message corresponding to a specified

Page 193

Function Reference 4-29 Example #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatus = 0; // Command

Page 194

4-30 Programmer’s Manual pclGetOnDemandSensor Description Determines the on-demand sensor’s current state. This sensor is an option for the printe

Page 195

Function Reference 4-31 Example #include <conio.h> #include <stdio.h> #include <string.h> #include "mmsultra.h" void ma

Page 196 - 7-16 Programmer’s Manual

4-32 Programmer’s Manual if (sStatus != 0) printf("Format Write error - %d", sStatus); else {

Page 197

Function Reference 4-33 pclGetSupplyType Description Retrieves the current supply type. Syntax unsigned short far pclGetSupplyType(void); Parameter

Page 198

Table of Contents v CODE39INFO...5-5 CODE93INFO...

Page 199

4-34 Programmer’s Manual Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { unsigned sh

Page 200

Function Reference 4-35 pcl Init Description Initializes the Print subsystem. An application must call this function before calling any other pcl

Page 201

4-36 Programmer’s Manual if (sStatus == 0) { /* Branch to printing routine */ else if (sStatus >= 703 && sStatus <

Page 202

Function Reference 4-37 pclOpen Description Loads MPCL packets from the specified file. Generally you use this function for fixed packets, such as

Page 203 - Troubleshooting

4-38 Programmer’s Manual pclPaperInfo Description Retrieves information (length, width, and type) about the current supplies. Syntax void far pclPa

Page 204 - 7-24 Programmer’s Manual

Function Reference 4-39 pclPaperSetup Description Gives information to the Print subsystem about the supplies being used. If you are using paper or

Page 205

4-40 Programmer’s Manual Return Values 0 Successful. 703-793 A motion control error occurred. For errors between 703-793. The operator corrects t

Page 206 - 7-26 Programmer’s Manual

Function Reference 4-41 /* If fax, save setting, do not calibrate */ if (usSupplyType == MMS_MEDIUM_ENERGY) { GetStockWidth(&usS

Page 207 - SAMPLE APPLICATIONS

4-42 Programmer’s Manual pclStatus Description Retrieves the Print subsystem’s status. After submitting a print job, the application should call pc

Page 208 - Sample 2

Function Reference 4-43 pclWrite Description Writes MPCL packets to the Print subsystem. You can send no more than one packet at a time. It must

Page 209 - Sample 3

vi Table of Contents get ...7-7 help...

Page 210 - Sample 5

4-44 Programmer’s Manual scnCloseScanner Description Disables the scanner. Be sure to disable the scanner only when it is already enabled. If the

Page 211 - Sample 7

Function Reference 4-45 Example #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatus = 0; // Command

Page 212 - A-6 Programmer’s Manual

4-46 Programmer’s Manual scnGetBarCodeType Description Retrieves the last scanned bar code’s type. Call this function only after receiving success

Page 213 - GLOSSARY

Function Reference 4-47 Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatu

Page 214 - B-2 Programmer’s Manual

4-48 Programmer’s Manual scnGetch Description Retrieves a character from the scanner buffer without echoing it to the display. If the scanner buff

Page 215

Function Reference 4-49 Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatu

Page 216

4-50 Programmer’s Manual scnGetche Description Retrieves a character from the scanner buffer and echoes it to the display. If the scanner buffer i

Page 217

Function Reference 4-51 Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { short sStatu

Page 218

4-52 Programmer’s Manual scnGetCodabarInfo Description LMSSCEN.LIB only. Retrieves a pointer to a CODABARINFO data structure containing the defaul

Page 219

Function Reference 4-53 scnGetCode128Info Description LMSSCEN.LIB only. Retrieves a pointer to a CODE128INFO data structure containing the default

Page 220

Table of Contents vii Sample Applications... A-1 Sample 1 ...

Page 221

4-54 Programmer’s Manual scnGetCode39Info Description LMSSCEN.LIB only. Retrieves a pointer to a CODE39INFO data structure containing the default

Page 222

Function Reference 4-55 scnGetCode93Info Description LMSSCEN.LIB only. Retrieves a pointer to a CODE93INFO data structure containing the default v

Page 223

4-56 Programmer’s Manual scnGetD2of5Info Description LMSSCEN.LIB only. Retrieves a pointer to a D2OF5INFO data structure containing the default va

Page 224

Function Reference 4-57 scnGetGeneralInfo Description LMSSCEN.LIB only. Retrieves a pointer to a GENERALINFO data structure containing the default

Page 225

4-58 Programmer’s Manual scnGetI2of5Info Description LMSSCEN.LIB only. Retrieves a pointer to an I2OF5INFO data structure containing the default v

Page 226

Function Reference 4-59 scnGetMSI Info Description LMSSCEN.LIB only. Retrieves a pointer to a MSIINFO data structure containing the default values

Page 227

4-60 Programmer’s Manual scnGets Description Initiates a scan and moves the scanner buffer’s contents to a programmer-defined application buffer as

Page 228 - 14 Index

Function Reference 4-61 Example #include <conio.h> #include <stdio.h> #include "mmsultra.h" void main(void) { char *pStatu

Page 229

4-62 Programmer’s Manual scnGetScanInfo Description Retrieves a pointer to a SCANINFO data structure containing the default values for each paramet

Page 230

Function Reference 4-63 scnGetScannedData Description Retrieves the scanner buffer’s contents as a null-terminated string, placing them in a progra

Comments to this Manuals

No comments