Paxar 6039 Printer User Manual


 
Printing Functions 3-19
Sensors
fBlackMark
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
public bool fBlackMark
Parameters
None
Return Values
TRUE
The supplies are aligned on the black mark.
FALSE
The supplies are not aligned on the black mark, or the Print
subsystem is busy or uninitialized.
Example C#
using Ultra;
{
bool blnBlackMark;
Ultra.Print rPrint = new Print(); //Instantiate class
blnBlackMark = rPrint.fBlackMark;
if (blnBlackMark) // if true
{
MessageBox.Show("Blocked", "Blk Mrk Sensor",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button1);
}
else // if false
{
MessageBox.Show("Not Blocked", "Blk Mrk Sensor",
MessageBoxButtons.OK,MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button1);
}
}