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

Page 71

Advertising
background image

4-30 Programmer’s Manual

p c l G e t O n D e m a n d S e n s o r

Description

Determines the on-demand sensor’s current state.

Syntax

unsigned short far pclGetOnDemandSensor(void);

Parameters

None

Return Values

1

The sensor is blocked.

0

The sensor is not blocked.

703-793

A motion control error occurred. After the operator
corrects the printer condition, the application must call
pclClearError to reset the Motion Control subsystem.
Refer to the MPCLII Packet Reference Manual for
more information.


Example

#include <conio.h>

#include <stdio.h>

#include <string.h>

#include "mmsultra.h"

void main(void)

{

PRINTINIT pConfig;

// Print data structure

short sStatus = 0;

// Command calls status

char cFormat[100];

// Format to print

pConfig.lpuchFntAddr = 0;

// Start Print subsystem

pConfig.ulFntSize = 0;

sStatus = pcl

I

nit(&pConfig);

if (sStatus != 0)

printf("Init Failed \nError: %d", sStatus);

else

Advertising