<?xml version="1.0" encoding="UTF-8"?>
<n:status xmlns:n="http://pansonic.co.jp">
	<main>
		<version>1.00</version>
		<deviceID>
			<!-- Tray Information -->
			<byte def="GETDEVOPTION_TRAY" index="0" len="1" sbit="0" ebit="0"></byte>
			<byte def="GETDEVTRAY1_NAME">#TRAY1</byte>
			<byte def="GETDEVTRAY2_NAME">#TRAY2</byte>
			<byte def="GETDEVTRAY3_NAME">#TRAY3</byte>
			<byte def="GETDEVTRAY1_SIZECODE" index="12" len="1"></byte>
			<byte def="GETDEVTRAY2_SIZECODE" index="15" len="1"></byte>
			<byte def="GETDEVTRAY3_SIZECODE" index="13" len="1"></byte>
			<byte def="GETDEVTRAY1_MEDIATYPE" index="16" len="1"></byte>
			<byte def="GETDEVTRAY2_MEDIATYPE" index="19" len="1"></byte>
			<byte def="GETDEVTRAY3_MEDIATYPE" index="17" len="1"></byte>
			<byte def="GETDEVTRAY1_STATUS" index="7" len="1" sbit="0" ebit ="1"></byte>
			<byte def="GETDEVTRAY2_STATUS" index="11" len="1" sbit="0" ebit ="1"></byte>
			<byte def="GETDEVTRAY3_STATUS" index="8" len="1" sbit="0" ebit ="1"></byte>

			<!-- Device Information -->
			<byte def="GETDEVINFO_MACADDRESS" index="90" len="6"></byte>

			<!-- Device Status -->
			<byte def="GETDEVSTATUS_ALERTCODENUM" index="20" len="1"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE1" index="21" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE2" index="23" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE3" index="25" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE4" index="27" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE5" index="29" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE6" index="31" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE7" index="33" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE8" index="35" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE9" index="37" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE10" index="39" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE11" index="41" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE12" index="43" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE13" index="45" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE14" index="47" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE15" index="49" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE16" index="51" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE17" index="53" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE18" index="55" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE19" index="57" len="2"></byte>
			<byte def="GETDEVSTATUS_ALERTCODE20" index="59" len="2"></byte>
			<byte def="GETDEVSTATUS_DEVSTATUS" index="212" len="1"></byte>
			<byte def="GETDEVSTATUS_PRNSTATUS" index="213" len="1"></byte>
			<byte def="GETDEVSTATUS_STATUS_NUM" index="20" len="1"></byte>

			<!-- Toner Information -->
			<byte def="GETDEV_BLACK_TONER" index="79" len="1">#BLACKTONER</byte>
			<!-- <byte def="GETDEV_CYAN_TONER" index="80" len="1">#CYANTONER</byte> -->
			<!-- <byte def="GETDEV_MAGENTA_TONER" index="81" len="1">#MAGENTATONER</byte> -->
			<!-- <byte def="GETDEV_YELLOW_TONER" index="82" len="1">#YELLOWTONER</byte> -->

			<!-- Controller ROM/Engine ROM Version Information -->
			<byte def="GETDEVVERSION_CONTROLLER" index="63" len="7">#CONTROLLERFW</byte>
			<byte def="GETDEVVERSION_SUM" index="70" len="2">#FWCHECKSUM</byte>

			<!-- Print Counter Information -->
			<!--<byte def="GETDEVCOUNTER_MONO" index="76" len="3">#COUNTERMONO</byte> -->

			<!-- Power Save -->
			<!--<byte def="GETDEVPOWERSAVE_MODE" index="72" len="1" sbit="0" ebit ="3"></byte> -->

			<!-- Console Information -->
			<byte def="GETDEVDISPMSG1" index="132" len="32">#CONSOLEL</byte>
			<byte def="GETDEVDISPMSG2" index="164" len="32">#CONSOLEL</byte>

			<!-- Option Information (not translate.this value change bitmap) -->
			<byte def="GETDEVOPTION1_VAL1">#1 Tray</byte>
			<byte def="GETDEVOPTION1_VAL2">#2 Tray</byte>
			<byte def="GETDEVOPTION1_VAL3">#3 Tray</byte>

			<!-- Current Job Information  -->
			<byte def="GETDEVCURRENTJOBINFO_HOSTNAME" index="214" len="16"></byte>

			<!-- Automatic Duplex Unit -->
			<byte def="GETDEVADU_PATHTYPE" index="0" len="1" sbit="2" ebit="2"></byte>

			<!-- Serial Number -->
			<!-- <byte def="GETDEVSERIAL_SERIAL" index="235" len="12"></byte> -->

			<!-- Consumable Information -->
			<byte def="GETDEV_PCK_PERCENT" index="83" len="1">#PCBLACK</byte>
			<!-- <byte def="GETDEV_PCC_PERCENT" index="84" len="1">#PCCOLOR</byte> -->
			<!-- <byte def="GETDEV_WTB_PERCENT" index="85" len="1">#WTC</byte> -->
			<!-- <byte def="GETDEV_AU_PERCENT" index="80" len="1">#AU</byte> -->
			<!-- <byte def="GETDEV_TR_PERCENT" index="81" len="1">#TRANSFERUNIT</byte> -->
			<!-- <byte def="GETDEV_FUSER_PERCENT" index="82" len="1">#FUSER</byte> -->

		</deviceID>
		<word>
			<!-- *************************************************************
			check device power save mode or not.
			key1: mdStatusCode, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVSTATUSSIMPLE_POWERSAVE">
				<exchange key1="40000" key2="*" key3="*"></exchange>
				<exchange key1="40001" key2="*" key3="*"></exchange>
			</keyword>

			<!-- *************************************************************
			convert following simple status code.
			1:ready, 2:printing, 3:warming up, 4:warning, 5:error,6:enegy star, 7:unknown 
			key1: hrDeviceStatus, key2: hrPrinterStatus, key3:-
			****************************************************************** -->
			<keyword name="GETDEVSTATUSSIMPLE_ALERT">
				<exchange key1="1" key2="3" key3="*">1</exchange>
				<exchange key1="1" key2="4" key3="*">2</exchange>
				<exchange key1="1" key2="5" key3="*">3</exchange>
				<exchange key1="1" key2="*" key3="*">7</exchange>
				<exchange key1="2" key2="4" key3="*">2</exchange>
				<exchange key1="2" key2="5" key3="*">3</exchange>
				<exchange key1="2" key2="*" key3="*">1</exchange>
				<exchange key1="3" key2="4" key3="*">2</exchange>
				<exchange key1="3" key2="5" key3="*">3</exchange>
				<exchange key1="3" key2="*" key3="*">4</exchange>
				<exchange key1="4" key2="4" key3="*">2</exchange>
				<exchange key1="4" key2="5" key3="*">3</exchange>
				<exchange key1="4" key2="*" key3="*">7</exchange>
				<exchange key1="5" key2="*" key3="*">5</exchange>
				<exchange key1="*" key2="3" key3="*">1</exchange>
				<exchange key1="*" key2="4" key3="*">2</exchange>
				<exchange key1="*" key2="5" key3="*">3</exchange>
				<exchange key1="*" key2="*" key3="*">7</exchange>
			</keyword>

			<!-- *************************************************************
			check tray2 staus and exist tray2
			key1: device id value, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVOPTION_TRAY2_STATUS">
				<exchange key1="1" key2="*" key3="*">1</exchange>
				<exchange key1="3" key2="*" key3="*">1</exchange>
				<exchange key1="*" key2="*" key3="*">0</exchange>
			</keyword>
			
			<!-- *************************************************************
			check tray3 staus and exist tray3
			key1: device id value, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVOPTION_TRAY3_STATUS">
				<exchange key1="1" key2="*" key3="*">1</exchange>
				<exchange key1="3" key2="*" key3="*">1</exchange>
				<exchange key1="*" key2="*" key3="*">0</exchange>
			</keyword>
			
			<!-- *************************************************************
			convert paper size code to paper size
			key1: paper size code, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVTRAY_PAPERCODE">
				<exchange key1="0" key2="*" key3="*">#LETTER</exchange>
				<exchange key1="2" key2="*" key3="*">#LEGAL</exchange>
				<exchange key1="17" key2="*" key3="*">#A4</exchange>
				<exchange key1="18" key2="*" key3="*">#A5</exchange>
				<exchange key1="19" key2="*" key3="*">#A6</exchange>
				<exchange key1="21" key2="*" key3="*">#B5J</exchange>
				<exchange key1="24" key2="*" key3="*">#B5I</exchange>
				<exchange key1="22" key2="*" key3="*">#B6J</exchange>
				<exchange key1="25" key2="*" key3="*">#B6I</exchange>
				<exchange key1="8" key2="*" key3="*">#CH16K</exchange>
				<exchange key1="6" key2="*" key3="*">#85X13</exchange>
				<exchange key1="78" key2="*" key3="*">#85X134</exchange>
				<exchange key1="*" key2="*" key3="*">#UNKNOWN</exchange>
			</keyword>

			<!-- *************************************************************
			convert media type code to media type
			key1: media type code, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVTRAY_MEDIACODE">
				<exchange key1="0" key2="*" key3="*">#PLAINPAPER</exchange>
				<exchange key1="5" key2="*" key3="*">#THICKPAPER_CARD</exchange>
				<exchange key1="3" key2="*" key3="*">#THINPAPER</exchange>
				<exchange key1="17" key2="*" key3="*">#LABEL</exchange>
				<exchange key1="*" key2="*" key3="*">#UNKNOWN</exchange>
			</keyword>

			<!-- *************************************************************
			convert tray remain value to remain string
			key1: tray remain value, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVTRAY_STATUS">
				<exchange key1="0" key2="*" key3="*">#EXIST</exchange>
				<exchange key1="1" key2="*" key3="*">#NOPAPER</exchange>
				<exchange key1="2" key2="*" key3="*">#UNKNOWN</exchange>
				<exchange key1="*" key2="*" key3="*">#UNKNOWN</exchange>
			</keyword>

			<!-- *************************************************************
			convert power save level value to power save mode string
			key1: power save level value, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVPOWERSAVE_ON_OFF">
				<exchange key1="1" key2="*" key3="*">#POWERSAVEON</exchange>
				<exchange key1="0" key2="*" key3="*">#POWERSAVEOFF</exchange>
			</keyword>

			<!-- *************************************************************
			convert supplies remain value to supplies remain string.
			key1: supplies remain value, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVTONER_REMAIN">
				<exchange key1="-3" key2="*" key3="*">#EXIST</exchange>
				<exchange key1="0" key2="*" key3="*">#NOPAPER</exchange>
			</keyword>

			<!-- *************************************************************
			convert automatic duplex unit exist flag to string
			key1: automatic duplex installed flag(1:exist, 0:no exist), key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVADU_INSTALL">
				<exchange key1="0" key2="*" key3="*">#NOTINSTALLED</exchange>
				<exchange key1="1" key2="*" key3="*">#INSTALLED</exchange>
			</keyword>

			<!-- *************************************************************
			convert supplies remain value to supplies remain string
			key1: supplies remain value, key2: supplies index, key3:-
			****************************************************************** -->
			<keyword name="GETDEVSUPPLIES_REMAIN">
				<exchange key1="-3" key2="*" key3="*">#USABLE</exchange>
				<exchange key1="-2" key2="*" key3="*">#FULL</exchange>
				<exchange key1="0" key2="*" key3="*">#REPLACE</exchange>
			</keyword>


		</word>
	</main>
</n:status>

