<root>
<document schema='101' license='1,Mainstream,AQQXMD' title='' description='' target='AVR.ATMEGA.ATMEGA325' >
	<config data='!0,ff!8,ff!10,ff%0,3f%6,1%7,1' clkspd='8000000' 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='1000' />
			<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='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='L4_ok' />
		<watch expr='L2not_ok' />
		<watch expr='SW__FLT' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='6528efef-42ac-4144-83e3-fdb1f536a4d9' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' 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' macronames='$(type)_$(module)__$(macro)' >
			<resources />
			<properties >
				<property name='Data Bit 0' target='DB0' typeid='5' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='DB0' data='$PORTA.0' />
			</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='L4_ok' type='b1' description='Bean Water Float Switch output' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SW__FLT' type='b1' description='Filter Mode switch' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SW_OFF' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='L2not_ok' type='b1' description='Tank 2 Float Switch' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='FLT_MODE' description='Interrupt for filter mode operation' >
						<local name='L4' type='b1' description='Bean Water Float Switch' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='L2' type='b1' description='Tank 2 float switch' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='SW_FLTR' type='b1' description='Manual switch pos to initiate filter mode' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='native' title='C Code' ccode='/*
  Enter C code below this comment
*/
' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PUMP_1_enable' description='Enables the bean water pump motor' >
						<local name='L4_ok' type='b1' description='Bean Water Tank Level' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='input' title='L4_input' mode='1' port='1048580' mask='1' exp='L4_ok' />
						<command class_type='call' title='Call Component Macro' component='basic_switch1' macro='ReadState' >
							<return exp='L4_ok' />
						</command>
						<command class_type='decision' title='Check L4' exp='L4_ok' swap='0' >
							<flowline >
								<command class_type='input' title='L2not_ok' mode='1' port='1048580' mask='2' exp='L2not_ok' />
								<command class_type='call' title='Call Component Macro' component='basic_switch1' macro='ReadState' >
									<return exp='L2not_ok' />
								</command>
								<command class_type='decision' title='Decision' exp='L2not_ok' swap='0' >
									<flowline >
										<command class_type='input' title='SW_FLT' mode='1' port='1048580' mask='4' exp='SW__FLT' />
										<command class_type='call' title='Call Component Macro' component='basic_switch1' macro='ReadState' >
											<return exp='SW__FLT' />
										</command>
										<command class_type='decision' title='Decision' exp='SW__FLT' swap='0' >
											<flowline >
												<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='1' />
											</flowline>
											<flowline >
												<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='0' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='0' />
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='0' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='interrupt' title='Pump Motor Interrupt ' enable='1' name='IOCE0' call='PUMP_1_enable' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='-----wf-------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='-----wf-------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' exp='1' type='0' start='1' count='1' breakend='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='basic_switch2' macro='ReadState' >
									<return exp='SW_OFF' />
								</command>
								<command class_type='decision' title='Decision' exp='SW_OFF = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip1' macro='TurnOn' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip1' macro='TurnOff' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch2' x='-48' y='40' z='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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTF.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='0' vmaj='1' codename='led_5mm_clip1' x='-64' y='40' z='-3.25' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0506f9ed-0e0e-493f-a08b-e9e66052b13e' vmin='0' vmaj='1' codename='ctrl_lcd1' x='0' y='0' z='1' xsz='192' ysz='32' zsz='0' 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='CellX' data='16' />
					<value target='CellY' data='2' />
					<value target='WidthX' data='40' />
					<value target='TextCol' data='0' />
					<value target='TextFont' data='Fixedsys' />
					<value target='BackCol' data='11842740' />
					<value target='LineCol' data='7895160' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch1' x='-64' y='-8' z='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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTE.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch3' x='-54' y='-8' z='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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTE.1' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch4' x='-44' y='-8' z='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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTE.2' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='0' vmaj='1' codename='led_5mm_clip2' x='-32' y='-24' z='-3.25' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.2' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='2' />
		<camera xe='0' ye='0' ze='247.958' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='1' lighting='0' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='16744535' img='' style='2' size='29' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAAwMAAEQCAAA' zoom='70' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PUMP_1_enable' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAAwMAAEQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
