<root>
<document schema='101' license='1,JayDee,6TNVMV' title='' description='' target='PIC.18F.ECIO-40' >
	<config data='' clkspd='48000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='SenLevelRaw' type='u8' description='Sensor Level value in Raw AD Counts' isconst='0' isinit='1' usrinit='128' setinit='128' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SenLevelRawStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOO1_String' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SenLevelmmStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SenLevelmm' type='s16' description='Level in 100ths of a mm. 500 = 5mm' isconst='0' isinit='1' usrinit='500' setinit='500' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SenTempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SenTempC' type='u8' description='Temp of Level Sensor' isconst='0' isinit='1' usrinit='13' setinit='13' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOO1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='INTERRUPT_TMR0' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='INTERRUPT_PORTB' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='INTERRUPT_RB0INT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='retval = 0' />
						</command>
						<command class_type='output' title='Output' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='1' exp='1' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='webserver0' macro='Initialise' />
						<command class_type='output' title='Output' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='2' exp='1' />
						<command class_type='call' title='Create the server socket on port 88' cmdcolor='1975743' cmdcolor_sec='1975743' component='webserver0' macro='CreateServerSocket' >
							<return exp='retval' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='88' />
						</command>
						<command class_type='output' title='Output' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='4' exp='1' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='retval = 1' swap='1' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='8' exp='1' />
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='16' exp='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='9e68a715-edc2-4a98-be64-c0d02f700135' vmin='5' vmaj='1' codename='webserver0' x='-2' y='-24' z='0.755' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='label' data='Web Server' />
					<value target='max_channels' data='4' />
					<value target='html_source' data='000' />
					<value target='Directory' data='' />
					<value target='max_pages' data='1' />
					<value target='name1' data='index.html' />
					<value target='html1' data='&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Embedded Switch Monitor&lt;/title&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

function reFresh()
{
  location.reload(true)
}

window.setInterval(&quot;reFresh()&quot;,1000);

function checkSwitch()
{
  var temp = %1;

  if(temp &gt; 100)
  {
	document.write(
&apos;&lt;span class=\\&quot;style5\\&quot;&gt;&lt;b&gt;Switch Value Over 100&lt;/b&gt;&lt;/span&gt;&apos;);
  }
  else
  {
	document.write(
&apos;&lt;span class=\\&quot;style4\\&quot;&gt;&lt;b&gt;Switch Value Under 100&lt;/b&gt;&lt;/span&gt;&apos;);
  }
}

&lt;/script&gt;

&lt;style type=&quot;text/css&quot;&gt;
.style1 {
	font-size: xx-large;
	font-weight: bold;
	color: #0000FF;
}
.style2 {font-size: medium}
.style3 {font-size: medium; font-weight: bold; color: #0000FF; }
.style4 {color: #00FF00}
.style5 {color: #FF0000}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p align=&quot;center&quot; class=&quot;style1&quot;&gt;
Embedded Switch Monitor&lt;br&gt;
  &lt;br&gt;
  &lt;span class=&quot;style2&quot;&gt;
System Status: &lt;span class=&quot;style4&quot;&gt;
Online&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot; class=&quot;style3&quot;&gt;
Sensor Level Raw: %1 &lt;/p&gt;
&lt;p align=&quot;center&quot; class=&quot;style3&quot;&gt;
Sensor Level mm: %2 &lt;/p&gt;
&lt;p align=&quot;center&quot; class=&quot;style3&quot;&gt;
Sensor Temp C: %3 &lt;/p&gt;
&lt;p align=&quot;center&quot; class=&quot;style3&quot;&gt;
Switch Status: &lt;script&gt; checkSwitch() &lt;/script&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

' />
					<value target='name2' data='page2' />
					<value target='html2' data='' />
					<value target='name3' data='page3' />
					<value target='html3' data='' />
					<value target='name4' data='page4' />
					<value target='html4' data='' />
					<value target='ORDINAL' data='000' />
					<value target='channel' data='000' />
					<value target='MOSI_pin' data='$PORTC.7' />
					<value target='MISO_pin' data='$PORTC.6' />
					<value target='CLK_pin' data='$PORTC.2' />
					<value target='CS_pin' data='$PORTC.1' />
					<value target='int_pin' data='$PORTC.0' />
					<value target='MosiRemap' data='' />
					<value target='MisoRemap' data='' />
					<value target='ClkRemap' data='' />
					<value target='gateway0' data='192' />
					<value target='gateway1' data='168' />
					<value target='gateway2' data='1' />
					<value target='gateway3' data='1' />
					<value target='subnet0' data='255' />
					<value target='subnet1' data='255' />
					<value target='subnet2' data='255' />
					<value target='subnet3' data='0' />
					<value target='ip0' data='192' />
					<value target='ip1' data='168' />
					<value target='ip2' data='1' />
					<value target='ip3' data='111' />
					<value target='mac0' data='0' />
					<value target='mac1' data='8' />
					<value target='mac2' data='220' />
					<value target='mac3' data='0' />
					<value target='mac4' data='123' />
					<value target='mac5' data='0' />
					<value target='MIAC_SYSTEM' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='63177601-e8e2-4330-89d3-a4c5a7e228f5' vmin='1' vmaj='1' codename='led_array_pcb1' x='-0.958335' y='0.6389' z='2.3' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='count' data='6' />
					<value target='port' data='000' />
					<value target='PortByte' data='$PORTA0' />
					<value target='pin0' data='$PORTA0.0' />
					<value target='pin1' data='$PORTA0.1' />
					<value target='pin2' data='$PORTA0.2' />
					<value target='pin3' data='$PORTA0.3' />
					<value target='pin4' data='$PORTA0.4' />
					<value target='pin5' data='$PORTA0.5' />
					<value target='pin6' data='$PORTA0.6' />
					<value target='pin7' data='$PORTA0.7' />
					<value target='polarity' data='001' />
					<value target='full_port' data='$PORTA0' />
					<value target='align' data='000' />
					<value target='spacing' data='12.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='003' />
					<value target='color_led0' data='65280' />
					<value target='label_color' data='16777215' />
					<value target='bitmask' data='255' />
					<value target='inv_bitmask' data='-256' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='1' lighting='2' brightness='0' perspective='0' >
		<background rgb='32768' img='' style='0' />
		<table rgb='8404224' img='' style='0' size='25' />
		<camera xe='-12.0627' ye='-5.8192' ze='336.875' xt='-12.0627' yt='-5.8192' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAPQIAAHECAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='INTERRUPT_TMR0' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAPQIAAHECAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='INTERRUPT_RB0INT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAPQIAAHECAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='INTERRUPT_PORTB' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAPQIAAHECAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
