<root>
<document schema='101' license='1,Martin,N5YWPW' title='' description='' target='PIC.18F.18F2420' >
	<config data='!0,47!10,e!20,1e!30,0!40,81!50,3!60,c0%8,0%e,0%f,0%10,0%11,3%13,1%18,0%19,0%28,0%29,0%2a,0%2f,0%30,0%32,0%36,0%37,0%40,1%41,0%42,0%43,0%4f,0%4e,0%50,1%51,1%52,0%53,0%5d,0%5e,0%5f,0%60,0%61,0%62,0%63,0%6e,0' 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='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='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<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='21' />
			<data name='CalculatedCommsDelay' value='21' />
		</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='' 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='POUND_STRING' type='T8' description='is used to Display positive side of pound_LB' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MAX_LOAD_CELL' type='u8' description='is used to monitor the LOAD CELL Preventing it from Damaged (Over Cap)' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Key_Lock' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EEP_SCALE_STRING' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='KILO_STRING' type='T8' description='is used to DIsplay positive side of the kilo gram numbers' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<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='BEEPER_LED' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pound_NEG_String_' type='T8' description='is used only to display negative String numbers' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp' type='s16' description='is created as variable to multiply by ADC' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Scale_Calibrate' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch_SPAN' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC_Volts' type='f32' description='Read ADC from 0 - 5 volts VDC' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GAS_PER' type='s16' description='Display the Actual Gas in Percentage' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC_Zero' type='f32' description='this variable (ADC_Zero)  Will Copy ADC_Voltage' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Kilo_NEG_String_' type='T8' description='is used only to display negative String numbers' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='POUND_LB' type='f32' description='is used to mutliply the Pound(LB)' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch_KG_LB' type='u8' description='is used to Convert from KG-LB AND LB-KG' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Unit_Converter' type='b1' description='is used to switch betwwen kg/lb switch unit is pressed' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch_ZERO' type='u8' description='this Switch is used to Zero the Scale' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EEP_SCALE_DATA' type='f32' description='IT STORES SCALE DATA' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Zero_Scale' type='b1' description='is used to zero the scale when.. switch zero is pressed' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='KILO_GRAM' type='f32' description='is used to mutliply the Kilo_Gram (KG)' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sw_Calibrate' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Int_Buzz' type='u8' description='' isconst='0' 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='LED_OUT' description='This Macro there are 3 Leds to INDICATE the LEVEL of the GAS
1 FULL (GREEN LED)
2 HALF (YELLOW)
3 LOW (EMPTY)' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='FULL_GAS' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Voltage &gt; 3.5' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &gt; 3.5' swap='1' >
							<flowline >
								<command class_type='call' title='GREEN_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led2' macro='TurnOff' />
							</flowline>
							<flowline >
								<command class_type='call' title='GREEN_LED' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led2' macro='TurnOn' />
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Medium Gas' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='ADC_Volts &gt;= 2.5 AND ADC_Volts &lt;= 3.5' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &gt;= 2.5 AND ADC_Volts &lt;= 3.5' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &gt;= 2.5 AND ADC_Volts &lt;= 3.5' swap='1' >
							<flowline >
								<command class_type='call' title='BLUE_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led1' macro='TurnOff' />
							</flowline>
							<flowline >
								<command class_type='call' title='BLUE_LED_ON' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led1' macro='TurnOn' />
								<command class_type='call' title='BEEPER_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led3' macro='TurnOff' />
							</flowline>
						</command>
						<command class_type='comment' title='' comment='LOW GAS' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &lt; 2.5' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &lt; 2.5' swap='1' >
							<flowline >
								<command class_type='call' title='RED_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led0' macro='TurnOff' />
							</flowline>
							<flowline >
								<command class_type='call' title='RED_LED_ON' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led0' macro='TurnOn' />
							</flowline>
						</command>
						<command class_type='decision' title='ADC_Volts &lt;= 0.5' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &lt;= 0.5' swap='1' >
							<flowline >
								<command class_type='call' title='BEEPER_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led3' macro='TurnOff' />
							</flowline>
							<flowline >
								<command class_type='decision' title='BEEPER_LED = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='BEEPER_LED = 1' swap='1' >
									<flowline >
										<command class_type='call' title='BEEPER_LED_OFF' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led3' macro='TurnOff' />
									</flowline>
									<flowline >
										<command class_type='call' title='BEEPER_LED_ON' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__led3' macro='TurnOn' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ADC_Voltage' description='In This MACRO 1 (ONE) ADC is used TWICE
1 ADC INPUT VOLTAGE
2.ADC_ZERO
ADC ZERO IS USED TO MINUS ADC INPUT VOLTAGE IF
ADC_INPUT VOLTS &gt;= ADC_ZERO' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='SENSING INPUT' textarea='12,0,487,300' disable='1' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='ADC_Volts_Read_As_Voltage' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__adc0' macro='GetVoltage' >
							<return exp='ADC_Volts' />
						</command>
						<command class_type='decision' title='Zero_Scale = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Zero_Scale = 1' swap='0' >
							<flowline >
								<command class_type='call' title='ADC_ZERO_Read_As_Voltage' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__adc0' macro='GetVoltage' >
									<return exp='ADC_Zero' />
								</command>
								<command class_type='comment' title='' comment='ADC_ZERO = ADC VOLTAGE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='delay' title='Delay of 20 milliseconds' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' exp='20' type='1' />
								<command class_type='comment' title='' comment='Reset &quot;Zero Scale&quot; bck to 0' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='calculation' title='Zero_Scale = 0' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Zero_Scale = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='INT_Buzzer' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Int_Buzz = 0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Int_Buzz = 0' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='Count down till 
reach 0' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='calculation' title='Int_Buzz - 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Int_Buzz = Int_Buzz - 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='BEEPER_LED = 0' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='BEEPER_LED = 0' />
								</command>
								<command class_type='calculation' title='Int_Buzz = 250' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Int_Buzz = 250' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Int_Buzz = 10' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Int_Buzz = 10' swap='1' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='BEEPER_LED = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='BEEPER_LED = 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Load_Cell_Cal' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Display' description='In The LCD Display Macro Will  Display 
The Actual KG/LB Number in String form Both positive and Negative
Actual Gas Percentage Positive and Negative' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='(0,0) LINE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='SET_CURSOR' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='&quot;WEIGHT  CYLINDER&quot;' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;WEIGHT  CYLINDER&quot;' />
						</command>
						<command class_type='comment' title='' comment='0,1 LINE' textarea='12,0,487,300' disable='1' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='SET_CURSOR' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='&quot;GAS &quot;' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;GAS &quot;' />
						</command>
						<command class_type='comment' title='' comment='If ADC Volts is Less Than 0
DO NOT ENTER GO AROUND
' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &lt; 0.0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &lt; 0.0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='IN THIS CASE ADC is &gt; 0' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='comment' title='' comment='Change Between 
(POSITIVE) KG/LB' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='decision' title='Unit_Converter = 0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Unit_Converter = 0' swap='1' >
									<flowline >
										<command class_type='call' title='POUND_STRING' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='POUND_STRING' />
										</command>
										<command class_type='call' title='&quot;LB with 2 space &quot;' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='&quot;LB  &quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='KILO_STRING' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='KILO_STRING' />
										</command>
										<command class_type='call' title='KG with 2 space only' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='&quot;KG  &quot;' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='If ADC Volts is Less Than 0
Enter Only when is NEGATIVE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &lt; 0.0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &lt; 0.0' swap='1' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='Change Between 
(NEGATIVE) KG/LB' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='decision' title='Unit_Converter = 0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Unit_Converter = 0' swap='1' >
									<flowline >
										<command class_type='call' title='Pound_String_2' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='Pound_NEG_String_' />
										</command>
										<command class_type='call' title='&quot;LB&quot;' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='&quot;LB&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Kilo_string_2' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='Kilo_NEG_String_' />
										</command>
										<command class_type='call' title='&quot;KG&quot;' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
											<argument exp='&quot;KG&quot;' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='If ADC_Volts &gt;=0 then ENTER
(Postive Gas Percentage)' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &gt;= 0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &gt;= 0' swap='1' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='ACTUAL GAS PERCENTAGE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='call' title='SET CURSOR ' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='Cursor' >
									<argument exp='12' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='GAS_PER &lt; 100' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='GAS_PER &lt; 100' swap='1' >
									<flowline >
										<command class_type='comment' title='' comment='PRINT ALL' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
										<command class_type='call' title='GAS_PERCENTAGE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintNumber' >
											<argument exp='GAS_PER' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='GAS_PER &lt; 10' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='GAS_PER &lt; 10' swap='1' >
											<flowline >
												<command class_type='call' title='PRINT_1_SPACE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
													<argument exp='&quot; &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='PRINT_2_SPACE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
													<argument exp='&quot;  &quot;' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='GAS_PERCENTAGE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintNumber' >
											<argument exp='GAS_PER' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='If ADC_Volts &lt; 0 then (NEG)
ENTER Negative Gas Percentage' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &lt; 0' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &lt; 0' swap='1' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='NEGATIVE GAS PERCENTAGE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='call' title='SET CURSOR ' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='Cursor' >
									<argument exp='11' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='GAS_PER = -100' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='GAS_PER = -100' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='PRINT ALL' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
										<command class_type='call' title='GAS_PERCENTAGE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintNumber' >
											<argument exp='GAS_PER' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='GAS_PER &lt; -10' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='GAS_PER &lt; -10' swap='0' >
											<flowline >
												<command class_type='call' title='PRINT_1_SPACE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
													<argument exp='&quot; &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='GAS_PER = -10' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='GAS_PER = -10' swap='0' >
													<flowline >
														<command class_type='call' title='PRINT_1_SPACE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
															<argument exp='&quot; &quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='PRINT_2_SPACE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
															<argument exp='&quot;  &quot;' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='call' title='GAS_PERCENTAGE' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintNumber' >
											<argument exp='GAS_PER' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='PRINT_%' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;%&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Switch' description='This Macro &quot;Read Switch&quot; We Check the State of the Switch if it is &quot;HIGH or LOW&quot;
1. Switch_Zero is Used to Zero the Scale
2. Switch Unit_Converter  from KG - LB and LB - KG
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Switch_ZERO' textarea='36,0,511,300' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048576' mask='128' exp='Switch_ZERO' />
						<command class_type='input' title='Switch_UNIT_CON_KG_LB' textarea='36,0,511,300' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048576' mask='64' exp='Switch_KG_LB' />
						<command class_type='input' title='Input' textarea='36,0,511,300' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048578' mask='1' exp='Sw_Calibrate' />
						<command class_type='decision' title='Switch_ZERO = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Switch_ZERO = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Switch_KG_LB = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Switch_KG_LB = 1' swap='0' >
									<flowline />
									<flowline >
										<command class_type='decision' title='Switch_calibrate = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Sw_Calibrate = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='Key_Lock = 0' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='Key_Lock = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Operation Of Switches' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='Key_Lock  = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Key_Lock = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Switch_ZERO = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Switch_ZERO = 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Key_Lock = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='Key_Lock = 1' />
										</command>
										<command class_type='calculation' title='Zero_Scale = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='Zero_Scale = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Switch_KG_LB = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Switch_KG_LB = 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Key_Lock = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='Key_Lock = 1' />
										</command>
										<command class_type='decision' title='Unit_Converter = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Unit_Converter = 1' swap='1' >
											<flowline >
												<command class_type='calculation' title='Unit_Converter = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='Unit_Converter = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Unit_Converter = 0' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='Unit_Converter = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Sw_Calibrate = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Sw_Calibrate = 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Key_Lock = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='Key_Lock = 1' />
										</command>
										<command class_type='calculation' title='Scale_Calibrate = 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='Scale_Calibrate = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='KG_LB_Calculation' description='This Macro
1. VOLTAGE IF ADC_INPUT VOLTS &gt;= ADC_ZERO
2. A Calulation is done for both KG AND LB
3. A Calculation is done for the Actual Gas Percentage' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='IF ADC_Volts &gt;= ADC_Zero' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='ADC_Volts &gt;= ADC_Zero' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ADC_Volts &gt;= ADC_Zero' swap='0' >
							<flowline >
								<command class_type='calculation' title='ADC_Volts - ADC_Zero' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='ADC_Volts = ADC_Volts - ADC_Zero' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='ADC_Volts - ADC_Zero' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='ADC_Volts = ADC_Volts - ADC_Zero' />
									<exp exp='' />
									<exp exp='' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='UNIT_CONVERTER = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Unit_Converter' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='POUND_UNIT' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='comment' title='' comment='LB = ADC_Voltage * 8.82' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='calculation' title='POUND_LB ' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='POUND_LB = fmul (ADC_Volts,8.82)' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='POUND_STRING = FloatToString$ (POUND_LB)' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='POUND_STRING = FloatToString$ (POUND_LB)' />
									<exp exp='Pound_NEG_String_ = FloatToString$ (POUND_LB)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='KILO_GRAM_UNIT' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='comment' title='' comment='KILO_GRAM = ADC_Voltage * 4' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='calculation' title='KILO_GRAM' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='KILO_GRAM = fmul (ADC_Volts,4)' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='KILO_STRING = FloatToString$ (KILO_GRAM)' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='KILO_STRING = FloatToString$ (KILO_GRAM)' />
									<exp exp='Kilo_NEG_String_ = FloatToString$ (KILO_GRAM)' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Temp = ADC_Input * 20' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='Temp = ADC_Volts * 20' />
						</command>
						<command class_type='comment' title='' comment='ACTUAL GAS PERCENTAGE' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='GAS_PER = Temp / 1' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='GAS_PER = Temp / 1' />
						</command>
						<command class_type='comment' title='' comment='Calibration of Scale' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='Scale_Calibrate = 1' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Scale_Calibrate = 1' swap='1' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='Scale_Calibrate = 0' textarea='36,0,511,300' break='1' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Scale_Calibrate = 0' />
								</command>
								<command class_type='calculation' title='EEP_SCALE_DATA = ADC_Volts' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='EEP_SCALE_DATA = ADC_Volts' />
								</command>
								<command class_type='call' title='Write EEprom Data' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__eeprom0' macro='Write' >
									<argument exp='0' />
									<argument exp='EEP_SCALE_DATA' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='This is the MAIN PROMGRAMM it Consist of 5 Macro
ADC INPUT
READ SWITCH STATE
KG/LB CALCULATION
DISPALY' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' disable='1' cmdcolor='3610239' cmdcolor_sec='3610239' enable='1' name='TMR0' call='INT_Buzzer' >
							<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='1' />
								<option value='8' />
								<option value='-1' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='native' title='C Code' textarea='36,0,511,300' disable='1' ccode='; Initialize the PIC18F2420 microcontroller
; Set up the ADC module to read from AN0
; Set up Timer0 for a 10 ms delay

; Declare variables
READINGS EQU 10
index   EQU 0
total   EQU 1
average EQU 2

; Main program loop
main:
    ; Read the analog input and add it to the total
    clrf    ADRESL      ; 
    bsf     ADCON0, GO_DONE ; 
    btfsc   ADCON0, GO_DONE ; 
    goto    $-1
    movf    ADRESH, W   ; 
    movwf   temp        ; 
    addwf   total, F    ; 
    movf    temp, W     ;
    addwfc  total+1, F  ; 
    
    ; Increment the index and reset if necessary
    movlw   READINGS-1  ; 
    subwf   index, W    ; 
    btfsc   STATUS, C   ; 
    goto    $+3         ; 
    clrf    index       ; 
    
    ; Calculate the average reading
    movf    total, W    ; 
    movwf   average     ; 
    movf    total+1, W  ; 
    addwf   average, F  ; 
    movlw   READINGS    ; 
    movwf   temp        ; 
    movlw   0           ; 
    divwf   average, W  ; 
    movwf   average     ; 

   // ; Do something with the average reading
    //; ...
    
   // ; Delay for 10 ms using Timer0
   // ; ...
    
   // ; Go back to the beginning of the loop
   // goto    main
' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' disable='1' ccode='//; Initialize the PIC18F2420 microcontroller
//; Set up the ADC module to read from AN0
//; Set up Timer0 for a 10 ms delay

//; Declare variables
//READINGS EQU 10
//index   EQU 0
//total   EQU 1
//average EQU 2

//; Main program loop
//main:
    //; Read the analog input and add it to the total
    clrf    ADRESL      ; 
    bsf     ADCON0, GO_DONE ; 
    btfsc   ADCON0, GO_DONE ; 
    goto    $-1
    movf    ADRESH, W   ; 
    movwf   temp        ; 
    addwf   total, F    ; 
    movf    temp, W     ; 
    addwfc  total+1, F  ; 
    
    //; Increment the index and reset if necessary
    movlw   READINGS-1  ; 
    subwf   index, W    ; 
    btfsc   STATUS, C   ; 
    goto    $+3         ; 
    clrf    index       ; 
    
    //; Calculate the average reading
    movf    total, W    ;
    movwf   average     ; 
    movf    total+1, W  ; 
    addwf   average, F  ; 
    movlw   READINGS    ; 
    movwf   temp        ; 
    movlw   0           ; 
    divwf   average, W  ; 
    movwf   average     ; 
    
   // ; Smooth the analog input by filtering out high-frequency noise
    movf    average, W  ; 
    movwf   temp        ; 
    movlw   0x80        ; 
    movwf   filter      ; 
//filter_loop:
    movf    temp, W     ; 
    subwf   average, W  ; 
    movf    filter, W   ; 
    call    multiply    ; 
    addwf   filtered, F ; 
    movlw   0x7F        ; 
    movwf   filter      ; 
    movf    temp, W     ; 
    subwf   average, W  ; 
    movf    filter, W   ; 
    call    multiply    ; 
    addwf   filtered+1, F ; 
    decfsz  temp, F     ; ' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code 8_MHZ' textarea='36,0,511,300' ccode='/*=============================================================
;        Assembly Program script
;  Configure the TMR0 Counter for 8 Mhz operation
;  Flowcode already setup the config for Internal Oscillator
;==============================================================
*/
    asm {
;=============================================================
; Initialize the OSCON (SFR) 
;-------------------------------------------------------------
	bsf		_osccon,7 		;
	bsf		_osccon,6 		;
	bsf		_osccon,5 		;
	bsf		_osccon,4 		;
	bsf		_osccon,1 		;
;-------------------------------------------------------------
;==============================================================
}   

' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='call' title='Initialized_Lcd' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__lcddisplay0' macro='Start' />
						<command class_type='delay' title='Delay of 20 milliseconds' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' exp='20' type='1' />
						<command class_type='comment' title='' comment='FIRST READ EEPROM 
SCALE DATA @ Location = 0' textarea='12,0,487,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='EEP_SCALE_DATA' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='v5__eeprom0' macro='Read' >
							<return exp='EEP_SCALE_DATA' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='MAX_LOAD_CELL = 20_KG' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='MAX_LOAD_CELL = 20' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='0_ADC_INPUT' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' macro='ADC_Voltage' />
								<command class_type='call' title='1_READ_SWITCH' textarea='36,0,511,300' ccode='//1_READ_SWITCH
//Call Macro: Read_Switch()
FCM_Read_Switch();
' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Read_Switch' />
								<command class_type='call' title='2_KG_LB_CALCULATION' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' macro='KG_LB_Calculation' />
								<command class_type='call' title='3_LCD_DISPLAY' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Display' />
								<command class_type='call' title='4_LED_OUT' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LED_OUT' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='4' vmaj='2' codename='v5__lcddisplay0' x='-42.2857' y='-37.4857' z='0' xsz='78.2857' ysz='13.1429' zsz='1.14286' 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='LCD_Mode' data='000' />
					<value target='Pin_Data_0' data='$PORTB0.3' />
					<value target='Pin_Data_1' data='$PORTB0.2' />
					<value target='Pin_Data_2' data='$PORTB0.1' />
					<value target='Pin_Data_3' data='$PORTB0.0' />
					<value target='Pin_Data_4' data='$PORTA.1' />
					<value target='Pin_Data_5' data='$PORTA.1' />
					<value target='Pin_Data_6' data='$PORTA.1' />
					<value target='Pin_Data_7' data='$PORTA.1' />
					<value target='LCD_Port' data='$PORTA' />
					<value target='Pin_RS' data='$PORTB0.5' />
					<value target='Pin_E' data='$PORTB0.4' />
					<value target='LCD_Use_Write' data='0' />
					<value target='Pin_RW' data='$PORTA.0' />
					<value target='Rows' data='2' />
					<value target='Columns' data='16' />
					<value target='RemapCharacters' data='0' />
					<value target='DelayTiming' data='100' />
					<value target='BackgroundColor' data='0x808080' />
					<value target='LineColor' data='0' />
					<value target='TextColor' data='0x000000' />
					<value target='Font' data='Fixedsys' />
					<value target='CursorPosX' data='11' />
					<value target='CursorPosY' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1a8c2bb7-8bed-4a1c-9186-ba24688c8840' vmin='3' vmaj='1' codename='v5__adc0' x='42.2857' y='-42.0571' z='0' xsz='25.1419' ysz='25.1419' zsz='18.45' 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='tang_col' data='2960685' />
					<value target='mark_col' data='255' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='0' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='v5__switch0' x='-50' y='-12.3429' 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 >
					<value target='pin' data='$PORTA0.7' />
					<value target='polarity' data='0' />
					<value target='debounce' data='15' />
					<value target='operation' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='v5__switch1' x='-10.2857' y='-12.3429' 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 >
					<value target='pin' data='$PORTA0.6' />
					<value target='polarity' data='0' />
					<value target='debounce' data='15' />
					<value target='operation' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='v5__led0' x='19.4286' y='33.3714' 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 >
					<value target='pin' data='$PORTC0.3' />
					<value target='polarity' data='1' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='v5__led1' x='19.4286' y='21.9429' 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 >
					<value target='pin' data='$PORTC0.4' />
					<value target='polarity' data='1' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='v5__led2' x='19.4286' y='10.5143' 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 >
					<value target='pin' data='$PORTC0.5' />
					<value target='polarity' data='1' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='v5__eeprom0' x='-42.2857' y='35.9429' z='0' xsz='47.7143' ysz='47.7143' zsz='1.14286' 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='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='v5__switch2' x='24.8571' y='-12.3429' 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 >
					<value target='pin' data='$PORTC0.0' />
					<value target='polarity' data='0' />
					<value target='debounce' data='15' />
					<value target='operation' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='v5__led3' x='19.4286' y='44.8' 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 >
					<value target='pin' data='$PORTC0.2' />
					<value target='polarity' data='1' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' 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='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<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---------------------wUAAAAYAAAATQYAAHgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
