Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 114
Function Reference 4-73
The following values can be returned only when you
use SCAN1223.LIB.
DCDE_DISC2OF5
D 2 of 5
DCDE_IATA2OF5
IATA 2 of 5
DCDE_C93
Code 93
DCDE_EAN128
EAN 128
DCDE_UPCE1
UPCE1
DCDE_UPCE1_2
UPCE1 + 2
DCDE_UPCE1_5
UPCE1 + 5
DCDE_TRIOPTC39
Trioptic Code 39
DCDE_BOOKLANDEAN Bookland EAN
DCDE_COUPONCODE Coupon Code
Example
#include <stdio.h>
#include "mmsultra.h"
void main (void)
{
short sStatus = 0;
// Command calls status
LPSCANINFO SScnconfig;
// Scanner data structure
sStatus = scnOpenScanner();
// Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{
// Configure scanner
sStatus = scnGetScanInfo(SScnconfig);
if (sStatus != 0)
printf("Scanner is disabled \n");
else
{
SScnconfig->uchCode39 = SCN_ENABLE;
sStatus = scnSetScanInfo(SScnconfig);
if (sStatus != 0)
printf("Scanner is disabled \n");
else
{
printf("Scanning...\n");
// Perform scan
sStatus = scnTrigger(1);