<root>
<document scada='0' schema='102' license='1,r_teixeir,4BUK3G' title='' description='' fcversion='524800' target='PIC16.33E.BL0032' >
	<config data='' clkspd='140000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='3' />
			<data name='CalculatedCommsDelay' value='3' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='930e9045-7ce3-4ed9-81d5-e0afc7001396' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='MCP23S17' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='MCP41XX1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='Enable' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='0' port='1048580' mask='0' exp='1' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='MCP41XX1' macro='WriteAddress' >
									<argument exp='1' />
									<argument exp='128' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='MCP23S17' macro='WritePort' >
									<argument exp='1' />
									<argument exp='252' />
									<argument exp='252' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot;rod&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='331daac0-653d-4f45-9822-6408a8258bda' vmin='0' vmaj='1' codename='MCP23S17' x='-10' y='20' z='4.585' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='ExtAddress' data='001' />
					<value target='cal_spi1::CHANNEL' data='001' />
					<value target='cal_spi1::PR_SCALE' data='062' />
					<value target='cal_spi1::MOSI' data='$PORTD.1' />
					<value target='cal_spi1::MOSIPins' data='008' />
					<value target='cal_spi1::MISO' data='' />
					<value target='cal_spi1::MISOPins' data='013' />
					<value target='cal_spi1::CLK' data='$PORTF.4' />
					<value target='cal_spi1::CLKPins' data='004' />
					<value target='cal_spi1::SS' data='$PORTD.2' />
					<value target='reset_pin' data='$PORTD.7' />
					<value target='label' data='MCP23S17' />
					<value target='cal_spi1::ScopeTraces' data='1' />
					<value target='cal_spi1::ConsoleData' data='1' />
					<value target='cal_spi1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='37025734-a84d-46ad-9078-925beb81f38b' vmin='0' vmaj='1' codename='MCP41XX1' x='-79.4839' y='-66.2581' z='6.25242' xsz='1.45161' ysz='1.45161' zsz='1.45161' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi1::CHANNEL' data='000' />
					<value target='cal_spi1::PR_SCALE' data='062' />
					<value target='cal_spi1::MOSI' data='$PORTD.0' />
					<value target='cal_spi1::MOSIPins' data='008' />
					<value target='cal_spi1::MISO' data='$PORTG.7' />
					<value target='cal_spi1::MISOPins' data='013' />
					<value target='cal_spi1::CLK' data='$PORTG.6' />
					<value target='cal_spi1::CLKPins' data='012' />
					<value target='cal_spi1::SS' data='$PORTE.2' />
					<value target='NumOutputs' data='000' />
					<value target='NumTaps' data='000' />
					<value target='SimulateComms' data='1' />
					<value target='cal_spi1::ScopeTraces' data='1' />
					<value target='cal_spi1::ConsoleData' data='1' />
					<value target='cal_spi1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM1' x='60' y='10' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTD.6' />
					<value target='RemapPin' data='013' />
					<value target='timer' data='2' />
					<value target='period' data='256' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='3.671429' />
					<value target='frequency_calc2' data='272373.531250' />
					<value target='frequency_calc' data='272.373535' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f8c9b53d-0bf2-469f-8f0a-34caa93749ba' vmin='1' vmaj='1' codename='lcd_16x2' x='-10' y='66.85' z='10.1903' xsz='1.25' ysz='1.37741' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='' />
					<value target='Pin_Data_1' data='' />
					<value target='Pin_Data_2' data='' />
					<value target='Pin_Data_3' data='' />
					<value target='Pin_RS' data='' />
					<value target='Pin_E' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='51677753-5eaf-4e3a-a3c8-71c49a142171' vmin='1' vmaj='1' codename='lcd_generic1' x='-20' y='120' z='10.1903' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='LCD::LCD_Mode' data='000' />
					<value target='LCD::Pin_Data_0' data='$PORTB.0' />
					<value target='LCD::Pin_Data_1' data='$PORTB.1' />
					<value target='LCD::Pin_Data_2' data='$PORTB.2' />
					<value target='LCD::Pin_Data_3' data='$PORTB.3' />
					<value target='LCD::Pin_Data_4' data='$PORTB.4' />
					<value target='LCD::Pin_Data_5' data='$PORTB.5' />
					<value target='LCD::Pin_Data_6' data='$PORTB.6' />
					<value target='LCD::Pin_Data_7' data='$PORTB.7' />
					<value target='LCD::LCD_Port' data='$PORTB0' />
					<value target='LCD::Pin_RS' data='$PORTB.4' />
					<value target='LCD::Pin_E' data='$PORTB.5' />
					<value target='LCD::LCD_Use_Write' data='0' />
					<value target='LCD::Pin_RW' data='$PORTB.6' />
					<value target='LCD::Rows' data='004' />
					<value target='LCD::Columns' data='020' />
					<value target='LCD::RemapCharacters' data='0' />
					<value target='LCD::DelayTiming' data='100' />
					<value target='LCD::BackgroundColor' data='49152' />
					<value target='LCD::LineColor' data='0' />
					<value target='LCD::TextColor' data='0' />
					<value target='LCD::Font' data='Fixedsys' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c4badacf-868a-4744-ad5a-a74fea126d6b' vmin='0' vmaj='2' codename='gLCD_EB057' x='-20' y='-40' z='6.025' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_height' data='128' />
					<value target='pixel_width' data='128' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='FGCOL' data='0' />
					<value target='BGCOL' data='65535' />
					<value target='cal_spi::CHANNEL' data='001' />
					<value target='cal_spi::PR_SCALE' data='004' />
					<value target='cal_spi::MOSI' data='$PORTD.1' />
					<value target='cal_spi::MOSIPins' data='008' />
					<value target='cal_spi::MISO' data='' />
					<value target='cal_spi::MISOPins' data='013' />
					<value target='cal_spi::CLK' data='$PORTF.4' />
					<value target='cal_spi::CLKPins' data='004' />
					<value target='cal_spi::SS' data='$PORTC.2' />
					<value target='DisplayMethod' data='000' />
					<value target='cal_spi::ScopeTraces' data='0' />
					<value target='cal_spi::ConsoleData' data='0' />
					<value target='cal_spi::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='-22.3675' ye='12.7279' ze='306.685' xt='-22.3675' yt='12.7279' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' 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---------------------wUAAAAeAAAALwIAAFgDAAA' zoom='75' scrollx='0' scrolly='3' flags='0' />
	</layout>
</document>
</root>
