<root>
<document scada='0' schema='102' license='1,54349151,1WPA8J' title='' description='' fcversion='590336' target='PIC.18F.18F47K40' >
	<config data='!0,ff8c!10,f6fd!20,cfef!30,dfff!40,ffff!50,ffff%0,4%4,0%8,1%b,1%d,1%10,1%11,0%15,1%16,3%18,2%1a,1%1b,0%1c,1%1d,1%1f,1%20,f%25,3%28,7%2b,1%30,ff%38,1%39,1%3a,1%3c,1%3d,0%40,1%41,1%50,ff%59,1' clkspd='64000000' simspd='1' usewdt='1' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='RXD.Data' />
		<watch expr='RXD1' />
		<watch expr='RXD' />
		<watch expr='RXD.exit' />
		<watch expr='Num_Byte' />
		<watch expr='Value' />
		<watch expr='Check_Data' />
		<watch expr='retval' />
		<watch expr='flag' />
		<watch expr='Main.signal' />
		<watch expr='strength' />
		<watch expr='Temp' />
		<watch expr='Main.CNT3' />
		<watch expr='SendCommand.CommandString' />
		<watch expr='Data' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='3' />
			<data name='CalculatedCommsDelay' value='3' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='df71c879-cbd1-4cfb-954f-a4ef9055ac47' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<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' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='BPS' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Cnt' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Reset' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='open' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='coms' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='End' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Name' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='50' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='strength' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='stop' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ign' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Length' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrigTime1' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Char' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Check_Data' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='80' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='output' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tm2' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='del' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tm1' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Data' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='net' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RXD1' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='80' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='delay_val' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Collect_Number' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='50' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrigTime' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FRX2' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Cnt2' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FRX1' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RXD' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='80' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Time2' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag1' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Time1' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value1' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Num_Byte' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TX_Out' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='jump' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Out' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ComsOk' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimerCount' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Time' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Check' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NetLight' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Read_buffer' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='AddStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='DataRB' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Collect_Number = &quot;&quot;' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='.DataRB &lt; 255' >
							<flowline >
								<command class_type='native' title='Watchdog Clear' ccode='/*
  Clear Whatchdog
*/
MX_CLEAR_WATCHDOG;' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
								<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Check = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='GetByte' >
											<return exp='.DataRB' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
											<argument exp='&quot;A&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Ign = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferC' macro='GetByte' >
													<return exp='.DataRB' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;C&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='GetByte' >
													<return exp='.DataRB' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;A&quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendChar' >
									<argument exp='13' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Value = ToString$ (.DataRB)' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
									<argument exp='Value' />
								</command>
								<command class_type='comment' title='' comment='If Buffer returns 255 then all data 
has been loaded into Variable
and now ready to be processed' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.DataRB = 255' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Check = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;Buffer &quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='Collect_Number' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='BPS = 1' swap='0' >
													<flowline />
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='Collect_Number = Mid$ (Collect_Number,9,8)' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='.AddStr[0] = .DataRB' />
											<exp exp='.AddStr[1] = 0' />
										</command>
										<command class_type='calculation' title='Add Data to read_mem vairable' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Collect_Number = Collect_Number + .AddStr' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendCommand' description='' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='CommandString' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='200' />
						</param>
						<param name='AddCR' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='timeout' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='FlushBuffer' />
						<command class_type='comment' title='' comment='Get lenth of string 
to send Char' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='.len = Length$ (.CommandString)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='.timeout = 0' />
							<exp exp='.idx = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='.idx &lt; .len' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendChar' >
									<argument exp='.CommandString[.idx]' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
									<argument exp='.CommandString' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Send CR if  AddCR =1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.AddCR' swap='0' >
							<flowline >
								<command class_type='call' title='Send CR character' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendChar' >
									<argument exp='13' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='.timeout &lt; 30' >
							<flowline >
								<command class_type='native' title='Watchdog Clear' ccode='/*
  Clear Whatchdog
*/
MX_CLEAR_WATCHDOG;' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
									<return exp='.idx' />
									<argument exp='&quot;\n&quot;' />
									<argument exp='1' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.idx = 1' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.timeout = .timeout + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.timeout = 255' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.Return = 255' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
									<return exp='.idx' />
									<argument exp='&quot;OK&quot;' />
									<argument exp='2' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.idx = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='.Return = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='.Return = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='retval = .Return' />
							<exp exp='Value = ToString$ (retval)' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
							<argument exp='Value' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='RXD1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='DataB' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='ExitB' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='DataC' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='ReceiveChar' >
							<return exp='.DataB' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='PutByte' >
							<argument exp='.DataB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TimerInt' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='TimerCount = TimerCount + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TimerCount &amp; 0x01' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='1' exp='1' usechipref='1' />
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='1' exp='0' usechipref='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FRX' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='FRX0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048577' mask='8' exp='open' usechipref='1' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='open = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='FRX1 = 1' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
											<return exp='Time1' />
											<argument exp='1' />
										</command>
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='4' exp='1' usechipref='1' />
										<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='Time1' type='2' />
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='4' exp='0' usechipref='1' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='FRX1 = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='open = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='FRX1 = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='input' title='FRX-1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048577' mask='16' exp='open' usechipref='1' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='open = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='FRX2 = 1' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
											<return exp='Time2' />
											<argument exp='2' />
										</command>
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='2' exp='1' usechipref='1' />
										<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='Time2' type='2' />
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='2' exp='0' usechipref='1' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='FRX2 = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='open = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='FRX2 = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='delay' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='delay' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='.delay = 0' />
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.delay = delay_val' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.delay = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='1' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.delay = .delay + 1' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='RXD' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='exit' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='ReceiveChar' >
							<return exp='.Data' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Data = 93' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='jump = 0' />
								</command>
								<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR1' call='TimerInt' >
									<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='1' />
										<option value='0' />
										<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='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
									<argument exp='&quot;DATA 93&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Data = 123' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='jump = 1' />
										</command>
										<command class_type='interrupt' title='Interrupt' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR1' >
											<settings timer='1' prescale='8' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<option value='3' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
										<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR1' call='TimerInt' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<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='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
											<argument exp='&quot;DATA 123&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' ccode='// Decision
// Decision: .Data = 126?
if (FCL_DATA == 126)
{
' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Data = 125' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Check = 1' />
													<exp exp='.exit = 0' />
													<exp exp='flag = 0' />
													<exp exp='Ign = 1' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;DATA 125&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Data = 126' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='Check = 0' />
															<exp exp='.exit = 0' />
															<exp exp='flag = 1' />
															<exp exp='.Data = 0' />
															<exp exp='Ign = 1' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
															<argument exp='&quot;DATA 126&quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='PutByte' >
															<argument exp='.Data' />
														</command>
														<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='net = 0' />
															<exp exp='Cnt = 0' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
															<argument exp='&quot;PUT BYTE&quot;' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Check_string' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Collect_Number = RXD' />
							<exp exp='Temp = Length$ (RXD)' />
							<exp exp='.Idx = 0' />
							<exp exp='retval = 1' />
							<exp exp='Count = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='.Idx &lt; Temp' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Check_Data = Mid$ (RXD, .Idx,Num_Byte)' />
									<exp exp='retval = Compare$ (Check_Data,Value,Num_Byte)' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 0' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='.Idx = .Idx + 1' />
											<exp exp='Count = Count + 1' />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='1' type='1' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='count = 30000' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
						<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Count = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='working GSM board with signal strenght meter, ResetAll, 
watchdog timer, repaired RXD  
09/12/2023 Coms Rese, Larger Buffer  ' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='open' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='CNT1' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='signal' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='out' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='exit' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Data' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='CNT3' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='C Code' ccode='OSCFRQ = 0x08;' cmdcolor='255' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' cmdAuto_color='0' cmdcustom_color='1' language='C' />
						<command class_type='input' title='Input' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='8' exp='Reset' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='8' exp='1' usechipref='1' />
						<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='1' type='2' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='8' exp='0' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048578' mask='4' exp='0' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='2' exp='0' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='4' exp='0' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='1' exp='1' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='2' exp='1' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='4' exp='1' usechipref='1' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR4' call='TimerInt' >
							<settings timer='1' prescale='8' postscale='14' rollover='256' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='3' />
								<option value='13' />
								<option value='256' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='Initialise' />
						<command class_type='call' title='Get Timer 1 value from EEPROM' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
							<return exp='Time1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Get Timer 2 value from EEPROM' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
							<return exp='Time2' />
							<argument exp='2' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='tm1 = &quot;TM1 &quot;' />
							<exp exp='tm1 = tm1 + ToString$ (Time1)' />
							<exp exp='tm2 = &quot;TM2 &quot;' />
							<exp exp='tm2 = tm2 + ToString$ (Time2)' />
							<exp exp='' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='RXINT0' call='RXD' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' 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>
						<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='RXINT1' call='RXD1' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' 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>
						<command class_type='comment' title='' comment='Puls D1 To turn on the EG915N GSM MODULE' textarea='185,67,185,67' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048579' mask='2' exp='1' usechipref='1' />
						<command class_type='calculation' title='500ms' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='delay_val = 500' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048579' mask='2' exp='0' usechipref='1' />
						<command class_type='calculation' title='500ms' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='delay_val = 500' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048579' mask='2' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='Wait For the EG915N GSM MODULE to power Up' textarea='80,133,80,133' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='10s' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='delay_val = 10000' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
						<command class_type='output' title='Output' cmdcolor='2263842' cmdcolor_sec='65535' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='1' cmdAuto_color='0' cmdcustom_color='1' mode='1' port='1048580' mask='1' exp='0' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='65280' cmdcolor_sec='65535' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='1' cmdAuto_color='0' cmdcustom_color='1' mode='1' port='1048580' mask='2' exp='0' usechipref='1' />
						<command class_type='output' title='Output' ccode='// Name: Output, Type: Output: 0 -&gt; E2
SET_PORT_PIN(E,2,(0));
' cmdcolor='65280' cmdcolor_sec='65535' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='1' cmdAuto_color='0' cmdcustom_color='1' mode='1' port='1048580' mask='4' exp='0' usechipref='1' />
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='2' exp='10' >
							<flowline >
								<command class_type='calculation' title='Get signal strength' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send = &quot;AT&quot;' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
									<argument exp='send' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
									<return exp='retval' />
									<argument exp='&quot;OK&quot;' />
									<argument exp='2' />
									<argument exp='1' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='retval = 0' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='C' />
						<command class_type='comment' title='' comment='Set the parameters of the EG915N' textarea='342,115,342,115' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='comment' title='' comment='Setup Board rate ' textarea='102,70,102,70' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='Set Eco' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;ATE1&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Set Eco' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CMEE=1&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='.CNT3 = 0' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='1' exp='.CNT3 = 10' start='0' breakend='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='.CNT3 = .CNT3 + 1' />
									<exp exp='Data = ToString$ (.CNT3)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send = &quot;AT+CMGD=&quot;' />
									<exp exp='send = send + Data' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
									<argument exp='send' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
									<argument exp='Data' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='.CNT3 = 0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
							<argument exp='&quot;OUT&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendChar' >
							<argument exp='13' />
						</command>
						<command class_type='comment' title='' comment='Set up GSM Module' textarea='317,135,317,135' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='CLI-IN' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CALM=1&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='CLI-IN' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CLIP=1&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='CLI-OUT' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CLIR=0&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='CLI-IN' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;ATQ0&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CMGF = 1&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CSMP =17,167,0,241&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Set the SMS Format respons' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CNMI=2,2,0,0,0&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Check SMS send number' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='send = &quot;AT+CSCA?&quot;' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
							<argument exp='send' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='flag = 0' />
							<exp exp='Ign = 0' />
							<exp exp='Cnt = 0' />
							<exp exp='net = 0' />
						</command>
						<command class_type='comment' title='' comment='Read the stored times if Value not set 
then set to 1 second' textarea='337,125,337,125' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
							<return exp='Time1' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Time1 &gt; 60' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Write' >
									<argument exp='1' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
									<return exp='Time2' />
									<argument exp='2' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Time2 &gt; 60' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Write' >
											<argument exp='2' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='If Data received on (UART 1 RXD)
then send same Data out on (UART 2 TXD) ' textarea='357,165,357,165' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Ign = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Ign = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
											<argument exp='&quot;BYPAS&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Reset = Reset + 1' />
											<exp exp='delay_val = 1' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Reset = 3000' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Ign = 0' />
													<exp exp='Reset = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='LookForValue' >
											<return exp='retval' />
											<argument exp='&quot;Clear&quot;' />
											<argument exp='5' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Ign = 0' />
													<exp exp='Reset = 0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;IGN_Cleared&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='FlushBuffer' />
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
											<argument exp='&quot;IGN &quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='GetNumberBytes' >
											<return exp='Temp' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Temp &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='GetByte' >
													<return exp='Temp' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendChar' >
													<argument exp='Temp' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='If Data received on (UART 2 RXD)
then send same Data out on (UART 1 TXD)' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='GetNumberBytes' >
											<return exp='Temp' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Temp &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='GetByte' >
													<return exp='Temp' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendChar' >
													<argument exp='Temp' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='If RXD-A int accours and 
flag is 1 switch output' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='flag = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' break='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='flag = 0' />
											<exp exp='Reset = 0' />
											<exp exp='Check = 0' />
											<exp exp='.exit = 0' />
											<exp exp='.Data = 0' />
											<exp exp='Ign = 0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
											<return exp='Time1' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
											<return exp='Time2' />
											<argument exp='2' />
										</command>
										<command class_type='comment' title='' comment='switch output 1' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='WaitForValue' >
											<return exp='retval' />
											<argument exp='&quot;+TRG1&quot;' />
											<argument exp='5' />
											<argument exp='0' />
											<argument exp='20' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
													<return exp='Time1' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='1s' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='delay_val = Time1 * 1000' />
												</command>
												<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='2' exp='1' usechipref='1' />
												<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
												<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='2' exp='0' usechipref='1' />
												<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='2' exp='3' >
													<flowline >
														<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='1' type='2' />
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendString' >
															<argument exp='&quot;ATH\r&quot;' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='WaitForValue' >
													<return exp='retval' />
													<argument exp='&quot;+TRG2&quot;' />
													<argument exp='5' />
													<argument exp='0' />
													<argument exp='20' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Read' >
															<return exp='Time2' />
															<argument exp='2' />
														</command>
														<command class_type='calculation' title='1s' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='delay_val = Time2 * 1000' />
														</command>
														<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='4' exp='1' usechipref='1' />
														<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
														<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048576' mask='4' exp='0' usechipref='1' />
														<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='2' exp='3' >
															<flowline >
																<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='1' type='2' />
																<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendString' >
																	<argument exp='&quot;ATH\r&quot;' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='WaitForValue' >
															<return exp='retval' />
															<argument exp='&quot;+TRG3&quot;' />
															<argument exp='5' />
															<argument exp='1' />
															<argument exp='20' />
														</command>
														<command class_type='decision' title='Decision' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
															<flowline >
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048578' mask='4' exp='1' usechipref='1' />
																<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232B' macro='SendString' >
																	<argument exp='&quot;ATH\r&quot;' />
																</command>
																<command class_type='calculation' title='1s' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='delay_val = Time2 * 1000' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048578' mask='4' exp='0' usechipref='1' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
											<return exp='retval' />
											<argument exp='&quot;ResetAll&quot;' />
											<argument exp='8' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
											<flowline >
												<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='E' />
												<command class_type='native' title='C Code' disable='1' ccode='/*
  Reset Software
*/
RESET();' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
											</flowline>
											<flowline >
												<command class_type='input' title='Input' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048577' mask='1' exp='NetLight' usechipref='1' />
												<command class_type='decision' title='Decision' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='NetLight = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='net = 0' />
															<exp exp='End = 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='comment' title='' comment='If no reset after 10 seconds then the network or 
GSM Module have a problem and needs to be Reset' textarea='12,0,12,0' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='net &gt; 15000' swap='0' >
															<flowline >
																<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='net = 0' />
																	<exp exp='' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
															</flowline>
															<flowline >
																<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='net = net + 1' />
																	<exp exp='' />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
									<return exp='retval' />
									<argument exp='&quot;+CMT:&quot;' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Cnt = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Send CMD to check the signal 
strenth and see if connected to network every 10 seconds' textarea='159,55,159,55' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Cnt = 10000' swap='0' >
									<flowline >
										<command class_type='native' title='Watchdog Clear' ccode='/*
  Clear Whatchdog
*/
MX_CLEAR_WATCHDOG;' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
										<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='FRX' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Cnt = 0' />
											<exp exp='.out = 0' />
											<exp exp='retval = 0' />
											<exp exp='Ign = 0' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Ign = 0' />
										</command>
										<command class_type='calculation' title='Get signal strength' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='send = &quot;AT+CSQ&quot;' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
											<argument exp='send' />
											<argument exp='1' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Cnt &lt; 1000' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
													<return exp='retval' />
													<argument exp='&quot;+CSQ:&quot;' />
													<argument exp='5' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='delay_val = 10' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
													<flowline >
														<command class_type='call' title='Read Buffer' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Read_buffer' />
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='strength = Mid$ (Collect_Number,6,4)' />
															<exp exp='.signal = StringToInt$ (strength)' />
															<exp exp='Collect_Number = &quot;&quot;' />
															<exp exp='strength = ToString$ (.signal)' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='FlushBuffer' />
														<command class_type='decision' title='Signal Low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.signal &gt; 0 &amp;&amp; .signal &lt; 12' swap='0' >
															<flowline >
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='1' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='2' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='4' exp='1' usechipref='1' />
															</flowline>
															<flowline />
														</command>
														<command class_type='decision' title='Signal Medim' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.signal &gt; 11 &amp;&amp; .signal &lt; 22' swap='0' >
															<flowline >
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='1' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='2' exp='1' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='4' exp='0' usechipref='1' />
															</flowline>
															<flowline />
														</command>
														<command class_type='decision' title='Signal Heigh' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.signal &gt; 21 &amp;&amp; .signal &lt; 32' swap='0' >
															<flowline >
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='1' exp='1' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='2' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='4' exp='0' usechipref='1' />
															</flowline>
															<flowline />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.signal = 99' swap='0' >
															<flowline >
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='4' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='2' exp='0' usechipref='1' />
																<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='1048580' mask='1' exp='0' usechipref='1' />
															</flowline>
															<flowline />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='Cnt = Cnt + 1' />
														</command>
														<command class_type='comment' title='' comment='If No +CSQ received afrer time out then 
there is a problem with network or coms to
M95 Module. If so Reset ' textarea='129,103,129,103' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Cnt = 1300' swap='0' >
															<flowline >
																<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='B' />
										<command class_type='native' title='Watchdog Clear' ccode='/*
  Clear Whatchdog
*/
MX_CLEAR_WATCHDOG;' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Cnt = 0' />
											<exp exp='Ign = 0' />
										</command>
										<command class_type='calculation' title='Get signal strength' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='send = &quot;AT+CREG?&quot;' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='SendCommand' >
											<argument exp='send' />
											<argument exp='1' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Cnt &lt; 100' >
											<flowline >
												<command class_type='comment' title='' comment='Check to see if registerd to a 
network if not then Reset' textarea='196,93,196,93' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
												<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
													<return exp='retval' />
													<argument exp='&quot;+CREG: 0,1&quot;' />
													<argument exp='10' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='delay' title='Delay' disable='1' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='30' type='1' />
												<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='BPS = 1' />
												</command>
												<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Cnt = Cnt + 1' />
												</command>
												<command class_type='decision' title='Decision' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='FlushBuffer' />
													</flowline>
													<flowline >
														<command class_type='comment' title='' comment='If Nework registration not correct reset' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='LookForValue' >
															<return exp='retval' />
															<argument exp='&quot;+CREG: 0,5&quot;' />
															<argument exp='10' />
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='30' type='1' />
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferB' macro='FlushBuffer' />
															</flowline>
															<flowline >
																<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='' />
											</flowline>
										</command>
										<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='D' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='BPS = 0' />
											<exp exp='Ign = 0' />
											<exp exp='Cnt = 0' />
										</command>
										<command class_type='native' title='Watchdog Clear' ccode='/*
  Clear Whatchdog
*/
MX_CLEAR_WATCHDOG;' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' language='C' />
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='jump = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Cnt2 = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
													<argument exp='&quot;ComsReset&quot;' />
												</command>
												<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='delay_val = 10' />
														</command>
														<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='LookForValue' >
															<return exp='ComsOk' />
															<argument exp='&quot;ComsOk&quot;' />
															<argument exp='6' />
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='ComsOk = 1' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='ComsOk = 1' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='BPS = 0' />
																	<exp exp='Ign = 0' />
																	<exp exp='Cnt2 = 0' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='5' labelname='' />
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='Cnt2 = Cnt2 + 1' />
																</command>
																<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Cnt2 &gt; 2000' swap='0' >
																	<flowline >
																		<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='RS232A' macro='SendString' >
																			<argument exp='&quot;ComsFail&quot;' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='5' labelname='F' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='delay_val = 1' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Cnt = Cnt + 1' />
										</command>
										<command class_type='comment' title='' comment='Set up the Delay Times and store on EEprom' textarea='477,125,477,125' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Check = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='delay_val = 100' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='delay' />
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Cnt = 0' />
												</command>
												<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Cnt &lt; 100' >
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='CircularBufferA' macro='LookForValue' >
															<return exp='retval' />
															<argument exp='&quot;SetDel&quot;' />
															<argument exp='6' />
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
														<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='retval = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Read_buffer' />
																<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='Value = Mid$ (Collect_Number,6,4)' />
																	<exp exp='Out = Mid$ (Value,0,1)' />
																	<exp exp='Time = Mid$ (Value,1,3)' />
																	<exp exp='del = StringToInt$ (Time)' />
																	<exp exp='output = StringToInt$ (Out)' />
																</command>
																<command class_type='comment' title='' comment='Wright the Timer value to EEprom' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
																<command class_type='call' title='Call Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='Write' >
																	<argument exp='output' />
																	<argument exp='del' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
																	<exp exp='Cnt = Cnt + 1' />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='label' title='Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='Cnt = 0' />
													<exp exp='Check = 0' />
													<exp exp='Ign = 0' />
												</command>
												<command class_type='comment' title='' comment='Check whats happening to debug' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='open = 1' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='FRX' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='RS232A' x='-107.458' y='109.264' z='0.755' xsz='60' ysz='26' zsz='1.51' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='009' />
					<value target='cal_uart::BAUD' data='115200' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTC.6' />
					<value target='cal_uart::OutputPins' data='006' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTC.7' />
					<value target='cal_uart::InputPins' data='023' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='RS232' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='RS232B' x='-108.55' y='69.2225' z='0.755' xsz='60' ysz='26' zsz='1.51' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='002' />
					<value target='cal_uart::BAUD_LIST' data='009' />
					<value target='cal_uart::BAUD' data='115200' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTD.6' />
					<value target='cal_uart::OutputPins' data='006' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTD.7' />
					<value target='cal_uart::InputPins' data='031' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='RS232' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBufferA' x='-187.626' y='109.268' z='0' xsz='1.19048' ysz='1.19048' zsz='1.19048' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='300' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBufferB' x='-187.185' y='47.1' z='0' xsz='1.19048' ysz='1.19048' zsz='1.19048' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='300' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBufferC' x='-190' y='-20' z='0' xsz='1.19048' ysz='1.19048' zsz='1.19048' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='50' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='2' vmaj='1' codename='eeprom1' x='-112' y='24' z='10' xsz='20' ysz='20' zsz='20' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='1024 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;' />
					<value target='ResetValues' data='0' />
					<value target='BitDepth' data='8' />
					<value target='Sim' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='3e5cc6d0-3e36-46b8-bc40-f238a5735b6e' vmin='0' vmaj='1' codename='IntOscHelper2' x='-110' y='160' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='OscSpeed' data='009' />
					<value target='OscFreq' data='64000000' />
					<value target='ClockSpeed' data='64000000' />
					<value target='Info' data='Clock Speed OK, Check configuration Osc settings are correct' />
					<value target='Code' data='OSCFRQ = 0x08;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='0' >
		<background rgb='6908265' img='' style='0' />
		<camera xe='-109.918' ye='75.31' ze='819.942' xt='-109.918' yt='75.31' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='739' dy='411' zoom='109.055' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='40' />
		<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---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='369' flags='0' />
		<view type='0' name='RXD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FRX' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TimerInt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendCommand' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='205' flags='0' />
		<view type='0' name='RXD1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='delay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_buffer' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='577' flags='0' />
		<view type='0' name='Check_string' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA7QQAAMoCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
