Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 67
4-26 Programmer’s Manual
p c l G e t B l a c k M a r k S e n s o r
Description
Retrieves the black mark sensor’s latest state. This state is not
necessarily the current state because it is updated only by the
Print subsystem.
Syntax
unsigned short far pclGetBlackMarkSensor(void);
Parameters
None
Return Values
1
The supplies are aligned on the black mark.
0
The supplies are not aligned on the black mark, or the
Print subsystem is busy or uninitialized.
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 "mmsultra.h"
void main(void)
{
PRINTINIT pConfig;
// Print data structure
unsigned short usStatus = 0;
// Battery level
short sStatus = 0;
// Command calls status
pConfig.lpuchFntAddr = 0;
// Start Print subsystem
pConfig.ulFntSize = 0;
sStatus = pcl
I
nit(&pConfig);
if (sStatus != 0)