Epson TM-T88V-DT User Manual page 45

Server direct print
Hide thumbs Also See for TM-T88V-DT:
Table of Contents

Advertisement

Program Example
Refer to the programming below. (File name: Test_status.php)
<?php
header('Content-Type: text/xml; charset=UTF-8');
# Open the file to save status.
$fhandle = @fopen("ResultStatus.log", "wt");
# Update the printer status.
if (isset($_POST["Status"])) {
$status =
$_POST["Status"];
}
$xml = simplexml_load_string($status);
foreach ($xml->printerstatus as $printerstatus) {
$asb = hexdec($printerstatus['asbstatus']);
$strmsg = "";
if (($asb & 0x00000001) == 0x00000001)
{
$strmsg .= "
}
if (($asb & 0x00000002) == 0x00000002)
{
$strmsg .= "
}
if (($asb & 0x00000004) == 0x00000004)
{
$strmsg .= "
}
if (($asb & 0x00000008) == 0x00000008)
{
$strmsg .= "
}
if (($asb & 0x00000020) == 0x00000020)
{
$strmsg .= "
}
if (($asb & 0x00000040) == 0x00000040)
{
$strmsg .= "
}
if (($asb & 0x00000100) == 0x00000100)
{
$strmsg .= "
}
if (($asb & 0x00000200) == 0x00000200)
{
$strmsg .="
}
if (($asb & 0x00000400) == 0x00000400)
{
$strmsg .= "
}
if (($asb & 0x00000800) == 0x00000800)
{
$strmsg .= "
}
No TM printer response\n";
Print completed \n";
Status of the drawer kick number 3 connector pin\n";
Offline status \n";
Cover is open \n";
During paper feeding by pressing paper feed switch \n";
Waiting for online recovery \n";
Paper feed switch is being pressed (ON) \n";
Mechanical error generated \n";
Auto cutter error generated \n";
Chapter 4
Status Notification
4
45

Advertisement

Table of Contents
loading

Table of Contents