<?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="165" len="1"></byte>
			<byte def="GETDEVSTATUS_PRNSTATUS" index="166" 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>

			<!-- 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="16">#CONSOLEL</byte>
			<byte def="GETDEVDISPMSG2" index="148" len="16">#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="167" len="16"></byte>

		</deviceID>
		<word>
			<!-- *************************************************************
			check device power save mode or not.
			key1: mdStatusCode, key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVSTATUSSIMPLE_POWERSAVE">
				<exchange key1="40000" 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="1" key2="*" key3="*">#A4</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="*" 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 supplies index to supplies name(only toner), 
			key1: supplies oid index.key2:-, key3:-
			****************************************************************** -->
			<keyword name="GETDEVTONER_NAME">
				<exchange key1="*" key2="*" key3="*">#BLACKTONER</exchange>
			</keyword>

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

