<root>
<document scada='0' schema='102' license='1,wayne millard,U5Z4FU' title='' description='' fcversion='524801' target='PIC.18F.18F46K42' >
	<config data='!0,d5fa!10,e62f!20,ff80!30,dfff!40,ffff%0,2%4,7%8,1%9,0%b,0%d,0%10,1%11,3%13,1%14,0%15,1%16,0%18,2%1a,1%1b,0%1c,0%1d,1%1f,1%20,0%25,0%28,7%2b,7%30,7%33,1%34,1%37,1%38,1%39,1%3a,1%3b,1%3d,0%40,1' clkspd='49152000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='freq' />
		<watch expr='count' />
		<watch expr='Display_Freq' />
		<watch expr='Float_Velocity' />
		<watch expr='str' />
		<watch expr='str1' />
		<watch expr='str2' />
		<watch expr='str3' />
		<watch expr='Velocity' />
		<watch expr='Timer' />
		<watch expr='En_Timer' />
		<watch expr='F_factor' />
		<watch expr='F_freq' />
		<watch expr='freq' />
		<watch expr='R_factor' />
		<watch expr='in' />
		<watch expr='update_display' />
		<watch expr='int' />
	</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='4' />
			<data name='CalculatedCommsDelay' value='4' />
			<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='7eae5c22-0392-4214-bd36-2a1b7d6d7852' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' 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='Clear' type='u8' description='clear display' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='str' type='T8' description='string' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='En_Timer' type='b1' description='enable timer' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='freq' type='u32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='update_display' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='str3' type='T8' description='str3' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F_factor' type='f32' description='factor' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='str2' type='T8' description='str2' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='str1' type='T8' description='str1' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F_Timer' type='f32' description='Float timer' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Shot_Count' type='u8' description='Shot count' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F_freq' type='f32' description='float freq' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Float_Velocity' type='f32' description='float' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F_Count' type='f32' description='Float count' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='R_factor' type='f32' description='Round factor' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Velocity' type='u32' description='velocity' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='clear_flag' type='b1' description='clear flag' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Timer' type='u16' description='event timer' 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>
				<variable public='0' >
					<def class_type='variable' name='Display_Freq' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FLAG' type='b1' description='FLAG' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='int' type='b1' description='pin int' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Clear_Display' description='Clear_Display' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048577' mask='2' exp='Clear' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Clear = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Cursor' >
									<argument exp='1' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Ready for Shot&quot;' />
								</command>
								<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT0' call='int_call' >
									<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='0' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
									</settings>
								</command>
								<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='Clear = 0' >
									<flowline >
										<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048577' mask='2' exp='Clear' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Update_display' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Is the count ready to display?' cmdcolor='12615680' cmdcolor_sec='15376912' exp='update_display' swap='0' >
							<flowline >
								<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='0' name='INT0' >
									<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
									</settings>
								</command>
								<command class_type='calculation' title='Convert' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='F_Count = int2float (count)' />
									<exp exp='F_Timer = int2float (Timer)' />
									<exp exp='F_freq = int2float (freq)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='F_factor = fdiv (F_count,F_Timer)' />
									<exp exp='F_freq = fmul (freq,F_factor)' />
								</command>
								<command class_type='calculation' title='Round' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='R_factor = fround (F_factor,1)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Shot_Count = Shot_Count + 1' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Convert frequency to m/s' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Float_Velocity = fdiv (F_freq,158.40)' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Init Cursor' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Shot No &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Shot_Count' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;V &quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Velocity = float2int (Float_Velocity)' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Velocity &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='str = FloatToString$ (Float_Velocity)' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Output Frequency' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
											<argument exp='str' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Velocity &gt;= 1 &amp;&amp; Velocity &lt; 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='str1 = FloatToString$ (Float_Velocity)' />
													<exp exp='' />
												</command>
												<command class_type='call' title='Output Frequency' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
													<argument exp='str1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Velocity &gt;= 10 &amp;&amp; Velocity &lt; 100' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='str2 = FloatToString$ (Float_Velocity)' />
															<exp exp='' />
														</command>
														<command class_type='call' title='Output Frequency' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
															<argument exp='str2' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Velocity &gt;= 100 &amp;&amp; Velocity &lt; 1000' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='str3 = FloatToString$ (Float_Velocity)' />
																	<exp exp='' />
																</command>
																<command class_type='call' title='Output Frequency' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
																	<argument exp='str3' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Output Units' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; m/s   &quot;' />
								</command>
								<command class_type='calculation' title='Reset Counters' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='freq = 0' />
									<exp exp='count = 0' />
									<exp exp='update_display = 0' />
									<exp exp='En_Timer = 0' />
									<exp exp='in = 0' />
								</command>
								<command class_type='native' title='Reset Timer Count register to 0' ccode='TMR2 = 0x00;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
								<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='Clear = 1' >
									<flowline >
										<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048577' mask='2' exp='Clear' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='int_call' description='Call int' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='int = 1' />
							<exp exp='Timer = count' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='En_Timer = 0' swap='0' >
							<flowline >
								<command class_type='interrupt' title='Start Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR2' call='TMR_INT' >
									<settings timer='1' prescale='128' postscale='4' rollover='24' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='2' />
										<option value='7' />
										<option value='3' />
										<option value='24' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
									</settings>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='En_Timer = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TMR_INT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Increment Interrupt Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='count = count + 1' />
						</command>
						<command class_type='decision' title='1000 Interrupts = 1000ms' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count &lt; 1000' swap='1' >
							<flowline >
								<command class_type='calculation' title='Set flag to allow LCD to update' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='update_display = 1' />
								</command>
								<command class_type='calculation' title='Store count variable into Display copy' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Display_Freq = freq' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='int = 0' />
								</command>
								<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='0' name='TMR2' >
									<settings timer='1' prescale='1' postscale='1' rollover='0' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
									</settings>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Prints out the freqency of 
pulses incoming to the pin 
specified in macro Read_Input

Max Input freq approx 64000Hz

This can be simulated by pressing the SMT switch in the system panel
during simulation' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Init LCD' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Start' />
						<command class_type='calculation' title='Init Counters' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='freq = 0' />
							<exp exp='count = 0' />
							<exp exp='update_display = 0' />
							<exp exp='FLAG = 0' />
							<exp exp='Shot_Count = 0' />
							<exp exp='En_Timer = 0' />
							<exp exp='Timer = 0' />
							<exp exp='in = 0' />
							<exp exp='int = 0' />
							<exp exp='update_display = 0' />
						</command>
						<command class_type='call' title='Init In Variable' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Read_input' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT0' call='int_call' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='Cursor' >
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Ready for Shot&quot;' />
						</command>
						<command class_type='loop' title='Main Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Update_display' />
								<command class_type='loop' title='Wait Until Low Or Update flag set' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='in = 1 &amp;&amp; update_display = 0' >
									<flowline >
										<command class_type='call' title='Collect Input' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Read_input' />
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='FLAG = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Wait Until High Or Update flag set' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='in = 0 &amp;&amp; update_display = 0' >
									<flowline >
										<command class_type='call' title='Collect Input' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Read_input' />
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Clear_Display' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='FLAG = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Increment Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='freq = freq + 1' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Increment Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='FLAG = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_input' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='int = 1' swap='0' >
							<flowline >
								<command class_type='input' title='Read Input Pin' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048577' mask='1' exp='in' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-7' y='22' z='5.5725' xsz='0.3' ysz='0.3' zsz='0.3' 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 >
					<value target='Pin_Data_0' data='$PORTA.0' />
					<value target='Pin_Data_1' data='$PORTA.1' />
					<value target='Pin_Data_2' data='$PORTA.2' />
					<value target='Pin_Data_3' data='$PORTA.3' />
					<value target='Pin_RS' data='$PORTA.4' />
					<value target='Pin_E' data='$PORTA.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='26732594-ad79-472f-80ff-95d365b3b252' vmin='2' vmaj='1' codename='sw_push_pcb1' x='14' y='25' z='6.371' xsz='0.5' ysz='0.5' zsz='0.5' 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 >
					<value target='pin' data='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='26732594-ad79-472f-80ff-95d365b3b252' vmin='2' vmaj='1' codename='sw_push_pcb2' x='14' y='20' z='6.371' xsz='0.5' ysz='0.5' zsz='0.5' 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 >
					<value target='pin' data='$PORTB.1' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='26732594-ad79-472f-80ff-95d365b3b252' vmin='2' vmaj='1' codename='sw_push_pcb3' x='24' y='15' z='6.371' xsz='1.11111' ysz='1.6129' zsz='0.5' 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='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='26732594-ad79-472f-80ff-95d365b3b252' vmin='2' vmaj='1' codename='sw_push_pcb4' x='24' y='-10' z='6.371' xsz='1.11111' ysz='1.6129' zsz='0.5' 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='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='80.1148' y='49.8781' z='-230.167' 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 >
					<value target='Color' data='0' />
					<value target='Background' data='16777215' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Frequency input' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='60.6138' y='28.88' z='-230.167' 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 >
					<value target='Color' data='0' />
					<value target='Background' data='16777215' />
					<value target='Font' data='Arial' />
					<value target='Text' data='ARM' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='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='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='5' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='8.61762' ye='18.6305' ze='69.8332' xt='8.61762' yt='18.6305' 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='Update_display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='75' scrollx='0' scrolly='1859' flags='0' />
		<view type='0' name='Clear_Display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_input' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TMR_INT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='int_call' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAewcAAFICAAA' zoom='80' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
