Epson TM-T20II-i Server Direct Print Users Manual for TM-i firmware ver.4.1 - Page 46

result = fprintf$fhandle, Printer name = %s : Status ASB value is, Stop the spooler \n

Page 46 highlights

if (($asb & 0x00002000) == 0x00002000) { $strmsg .= " Unrecoverable error generated \n"; } if (($asb & 0x00004000) == 0x00004000) { $strmsg .= " Auto recovery error generated \n"; } if (($asb & 0x00020000) == 0x00020000) { $strmsg .= " No paper in the roll paper near end detector \n"; } if (($asb & 0x00080000) == 0x00080000) { $strmsg .= " No paper in the roll paper end detector \n"; } if (($asb & 0x80000000) == 0x80000000) { $strmsg .= " Stop the spooler \n"; } $result = fprintf($fhandle, "Printer name = %s : Status ASB value is %s \n", $printerstatus['devicename'], $asb); $result = fprintf($fhandle, "%s\n", $strmsg); if ($result) { # OK } else { # N.G } } fclose($fhandle); ?> 46

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48

46
if (($asb & 0x00002000) == 0x00002000)
{
$strmsg .= "
Unrecoverable error generated \n";
}
if (($asb & 0x00004000) == 0x00004000)
{
$strmsg .= "
Auto recovery error generated \n";
}
if (($asb & 0x00020000) == 0x00020000)
{
$strmsg .= "
No paper in the roll paper near end detector \n";
}
if (($asb & 0x00080000) == 0x00080000)
{
$strmsg .= "
No paper in the roll paper end detector \n";
}
if (($asb & 0x80000000) == 0x80000000)
{
$strmsg .= "
Stop the spooler \n";
}
$result = fprintf($fhandle, "Printer name = %s : Status ASB value is
%s \n",
$printerstatus['devicename'], $asb);
$result = fprintf($fhandle,
"%s\n", $strmsg);
if ($result) {
# OK
} else {
# N.G
}
}
fclose($fhandle);
?>