<root>
<document schema='101' license='1,Christina Frauenberger,63V1VG' title='' description='' target='PIC.18F.18F2680' >
	<config data='!0,f2ff!10,feff!20,ffff!30,ff8b!40,ffff!50,ffff!60,ffff%8,2%e,1%f,1%10,1%11,3%13,3%18,0%19,f%29,1%2a,1%2f,1%30,1%32,0%34,0%36,0%37,1%40,1%41,1%42,1%43,1%4f,1%4e,1%50,1%51,1%52,1%53,1%5f,1%5e,1%5d,1%60,1%61,1%62,1%63,1%6e,1' clkspd='19660800' 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 >
		<watch expr='Res' />
	</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='9' />
			<data name='CalculatedCommsDelay' value='9' />
		</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='fc05e9a1-1d6f-4bcd-ae41-52079e4068fb' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='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' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='S1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</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='F1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Res' type='s16' description='' 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='StringFind' description='' >
						<return name='Return' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='xString' type='T8' description='String to be searched' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='200' />
						</param>
						<param name='xFind' type='T8' description='String to search for' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='200' />
						</param>
						<param name='Mode' type='u8' description='0 = Case Sensitive, 1 Case Insensitive' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Cnt1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Cnt2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Str1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<local name='FndFlg' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Len' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Str2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<local name='Cnt3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Str3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='100' />
						</local>
						<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
							<exp exp='.Cnt1 = 0' />
							<exp exp='.Cnt2 = 0' />
							<exp exp='.FndFlg = 0' />
							<exp exp='.Len = Length$ (.xString)' />
							<exp exp='.Str2 = Left$ (.xFind,1)' />
						</command>
						<command class_type='loop' title='Schleife' cmdcolor='13959167' cmdcolor_sec='13959167' type='0' forvar='(Length$ (.xString) &lt;&gt; 0) AND (.FndFlg = 0)' exp='(Length$ (.xString) &lt;&gt; 0) AND (.FndFlg = 0)' >
							<flowline >
								<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
									<exp exp='.Str1 = Left$ (.xString,1)' />
								</command>
								<command class_type='decision' title='Entscheidung' cmdcolor='13959167' cmdcolor_sec='13959167' exp='Compare$ (.Str1, .Str2, .Mode) = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
											<exp exp='.Str3 = Mid$ (.xString,0, Length$ (.xFind))' />
											<exp exp='.xString = Mid$ (.xString,1, Length$ (.xString))' />
										</command>
										<command class_type='decision' title='Entscheidung' cmdcolor='13959167' cmdcolor_sec='13959167' exp='Compare$ (.Str3, .xFind, .Mode) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
													<exp exp='.Cnt2 = .Cnt1' />
													<exp exp='.FndFlg = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
											<exp exp='.Cnt1 = .Cnt1 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
											<exp exp='.xString = Mid$ (.xString,1, Length$ (.xString))' />
											<exp exp='.Cnt1 = .Cnt1 + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Entscheidung' cmdcolor='13959167' cmdcolor_sec='13959167' exp='(.Cnt1 &lt;= .Len) AND (.FndFlg = 1)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
									<exp exp='.Return = .Cnt2' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
									<exp exp='.Return = -1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
							<exp exp='S1 = &quot;Is there a string function in FC that allows you to search for a string within a string?&quot;' />
							<exp exp='F1 = &quot;within&quot;' />
						</command>
						<command class_type='call' title='Makro-Aufruf' cmdcolor='16772088' cmdcolor_sec='16772088' macro='StringFind' >
							<return exp='Res' />
							<argument exp='S1' />
							<argument exp='F1' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Berechnung' break='1' cmdcolor='13959167' cmdcolor_sec='13959167' />
					</flowline>
				</macro>
			</macros>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='12632256' 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---------------------wUAAAAaAAAAIwUAAI8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='StringFind' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAIwUAAI8CAAA' zoom='75' scrollx='0' scrolly='527' flags='0' />
	</layout>
</document>
</root>
