<root>
<document schema='101' license='1,Martin Whitlock,JQE1YE' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='1' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='#pragma DATA 0xF000,255,1,7,0,23,0,0,0,0,0,0,99;' body='' />
	<debug >
		<watch expr='Loop' />
		<watch expr='Count' />
		<watch expr='Temp' />
		<watch expr='QuickProgMode' />
		<watch expr='RX' />
		<watch expr='Recivedchars' />
		<watch expr='Date' />
		<watch expr='Hours' />
		<watch expr='Minutes' />
		<watch expr='Month' />
		<watch expr='Year' />
		<watch expr='MonthCode' />
		<watch expr='DayNum' />
		<watch expr='BSTGMT' />
		<watch expr='ReadEEPROM.Loop' />
		<watch expr='DayOfTheWeekCalulation.Temp' />
		<watch expr='TempMin' />
		<watch expr='TempMax' />
		<watch expr='ReadI2C.Temperature' />
		<watch expr='Seconds' />
		<watch expr='PreviouseSeconds' />
		<watch expr='RuntimeSeconds' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='RX' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Month' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempMax' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RuntimeSeconds' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StartByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BSTGMT' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Hours' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Status' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GMT' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='QuickProgMode' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MonthCode' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TotalBytes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Date' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempMin' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PreviouseSeconds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DayString' type='T8' description='' isconst='0' isinit='1' usrinit='&quot; &quot;' setinit='&quot; &quot;' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DayNum' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Year' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Input' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Loop' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Recivedchars' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ClearScreen' description='' >
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
							<argument exp='27' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;H&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
							<argument exp='27' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;J&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='RXint2' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='Update = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='ReceiveChar' >
							<return exp='RX' />
							<argument exp='200' />
						</command>
						<command class_type='decision' title='Decision' exp='RX = 81' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='QuickProgMode = 1' />
									<exp exp='Count = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='QuickProgMode' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='RX = 81' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='Count = 0' />
											<exp exp='Date = 0' />
											<exp exp='DayNum = 0' />
											<exp exp='DayString = &quot;&quot;' />
											<exp exp='Hours = 0' />
											<exp exp='Minutes = 0' />
											<exp exp='Month = 0' />
											<exp exp='Seconds = 0' />
											<exp exp='Year = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' exp='((RX &gt; 47) &amp;&amp; (RX &lt; 58)) &amp;&amp; (RX &lt;&gt; 32)' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='RX = RX - 48' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='Recivedchars[Count] = RX' />
													<exp exp='RX = 255' />
												</command>
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='Count = Count + 1' />
												</command>
												<command class_type='decision' title='Decision' exp='Count &gt;= 12' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' break='1' >
															<exp exp='QuickProgMode = 2' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='RX = RX - 48' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initiallise' description='' >
						<local name='ReadStatusReg' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Dummy' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='' component='v5__rs2320' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='Call Component Macro' disable='1' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='0x0F' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__i2c_master0' macro='Restart' />
						<command class_type='call' title='Call Component Macro' disable='1' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='209' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='.ReadStatusReg' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__i2c_master0' macro='Stop' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='208 = write mode' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='0x0F' />
						</command>
						<command class_type='comment' title='' comment='Control/Status Address' textarea='89,-47,89,-47' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='48' />
						</command>
						<command class_type='comment' title='' comment='Set sensor to read evey 512 seconds' textarea='50,-34,50,-34' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Stop' />
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' enable='1' name='INT0' call='PortInt' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='2' maskhi='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' enable='1' name='RXINT0' call='RXint2' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='comment' title='' comment='Reset' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='8' exp='0' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='input' title='Input' mode='1' port='1048578' mask='8' exp='.Dummy' />
					</flowline>
				</macro>
				<macro >
					<flowline name='QuickProgMode' description='' >
						<command class_type='loop' title='Loop' type='0' exp='Count &lt; 12' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Count' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Hours = Recivedchars[Count] * 10 + Hours' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Hours = Hours + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Minutes = Recivedchars[Count] * 10 + Minutes' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Minutes = Minutes + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,522,0' >
												<exp exp='Seconds = Recivedchars[Count] * 10 + Seconds' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Seconds = Seconds + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Date = Recivedchars[Count] * 10 + Date' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Date = Date + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Month = Recivedchars[Count] * 10 + Month' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Month = Month + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
								<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Count' >
									<case >
										<flowline />
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Year = Recivedchars[Count] * 10 + Year' />
											</command>
										</flowline>
									</case>
									<case exp='11' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Year = Year + Recivedchars[Count]' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='Count = Count + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' break='1' >
							<exp exp='QuickProgMode = 3' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PortInt' description='' >
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Input = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='QuickProgSetI2CParameters2' description='' >
						<local name='TempString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='Loop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='RXTemp' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Byte2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ByteCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='7' />
						</local>
						<local name='LoopCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='DayOfTheWeekCalulation' />
						<command class_type='decision' title='Decision' exp='GMT' swap='0' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='Hours = Hours - 1' />
								</command>
								<command class_type='decision' title='Decision' exp='Hours &gt; 23' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Hours = 23' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' break='1' >
							<exp exp='Seconds = (Seconds / 10 &lt;&lt; 4) + (Seconds MOD 10)' />
							<exp exp='Minutes = (Minutes / 10 &lt;&lt; 4) + (Minutes MOD 10)' />
							<exp exp='Hours = (Hours / 10 &lt;&lt; 4) + (Hours MOD 10)' />
							<exp exp='DayNum = (DayNum / 10 &lt;&lt; 4) + (DayNum MOD 10)' />
							<exp exp='Date = (Date / 10 &lt;&lt; 4) + (Date MOD 10)' />
							<exp exp='Month = (Month / 10 &lt;&lt; 4) + (Month MOD 10)' />
							<exp exp='Year = (Year / 10 &lt;&lt; 4) + (Year MOD 10)' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='208 = write mode' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,36,45' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Seconds' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Minutes' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Hours' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='DayNum' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Date' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Month' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='Year' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Stop' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='QuickProgMode = 0' />
							<exp exp='RX = 255' />
							<exp exp='//TestVar = 51' />
							<exp exp='Count = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadEEPROM' description='' >
						<local name='Loop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='EEPROMData' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Preprogrammed EEPROM Data is within Supplemantry code' textarea='12,0,487,300' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='.Loop = 0' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='2' exp='2' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.Loop = .Loop + 1' />
								</command>
								<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__eeprom0' macro='Read' >
									<return exp='.EEPROMData' />
									<argument exp='.Loop' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='.Loop' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='TempMax = .EEPROMData' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='TempMin = .EEPROMData' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='10' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DayOfTheWeekCalulation' description='' >
						<local name='Temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
							<exp exp='Date = 10' />
							<exp exp='Month = 8' />
							<exp exp='Year = 15' />
							<exp exp='Hours = 1' />
							<exp exp='Minutes = 0' />
							<exp exp='Seconds = 2' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Temp = Date' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Loop = 0' />
						</command>
						<command class_type='loop' title='Loop' type='2' exp='3' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Loop' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='MonthCode = 3' />
												<exp exp='Date = 31' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='MonthCode = 0' />
												<exp exp='Date = 31' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='Date = .Temp' />
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Year % 4 = 0' swap='0' >
												<flowline >
													<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Month' >
														<case >
															<flowline />
														</case>
														<case exp='1' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 6' />
																</command>
															</flowline>
														</case>
														<case exp='2' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 2' />
																</command>
															</flowline>
														</case>
													</command>
												</flowline>
												<flowline >
													<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Month' >
														<case >
															<flowline />
														</case>
														<case exp='1' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 0' />
																</command>
															</flowline>
														</case>
														<case exp='2' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 3' />
																</command>
															</flowline>
														</case>
														<case exp='3' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 3' />
																</command>
															</flowline>
														</case>
														<case exp='4' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 6' />
																</command>
															</flowline>
														</case>
														<case exp='5' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 1' />
																</command>
															</flowline>
														</case>
														<case exp='6' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 4' />
																</command>
															</flowline>
														</case>
														<case exp='7' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 6' />
																</command>
															</flowline>
														</case>
														<case exp='8' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 2' />
																</command>
															</flowline>
														</case>
														<case exp='9' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 5' />
																</command>
															</flowline>
														</case>
														<case exp='10' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 0' />
																</command>
															</flowline>
														</case>
													</command>
													<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Month' >
														<case >
															<flowline />
														</case>
														<case exp='11' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 3' />
																</command>
															</flowline>
														</case>
														<case exp='12' >
															<flowline >
																<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																	<exp exp='MonthCode = 5' />
																</command>
															</flowline>
														</case>
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='DayNum = ((Date - 1) + MonthCode + Year + (Year / 4)) MOD 7 + 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='Loop &lt; 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='BSTGMT[Loop] = 31 - (DayNum - 1)' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='Loop = Loop + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='DayNum' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Sun&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Mon&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Tue&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Wed&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Thu&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Fri&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='DayString = &quot;Sat&quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Decision' exp='(13 - month &lt; 11) &amp;&amp; (13 - month &gt; 3)' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Here between march and october' textarea='46,46,46,46' />
								<command class_type='comment' title='' comment='Mainly Summer Time :-)
' textarea='12,0,12,0' />
								<command class_type='decision' title='Decision' exp='(month = 3) &amp;&amp; (Date &lt; BSTGMT[0])' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='200,-40,200,-40' >
											<exp exp='GMT = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GMT = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' exp='(month = 10) &amp;&amp; (Date &lt; BSTGMT[1])' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GMT = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GMT = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetI2CParameters' description='' >
						<local name='TempString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='Loop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='RXTemp' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Byte2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ByteCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='7' />
						</local>
						<local name='LoopCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='.ByteCount = StartByte' />
							<exp exp='.LoopCount = 0' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='.LoopCount &lt; TotalBytes' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.Loop = 0' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='.ByteCount = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='.ByteCount = 1' />
											<exp exp='.LoopCount = .LoopCount + 2' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='.LoopCount = .LoopCount + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
									<argument exp='27' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;Y,4&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' mark='1' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;99 Cancel Setup      &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
									<argument exp='27' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='.ByteCount' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y&amp;&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Time Hrs(0 - 23)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 1' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y&apos;&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Time Mins(0 - 59)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 2' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y&amp;&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Day(1 Sun - 7 Sat)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 6' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y&amp;&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Date(1 - 31)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 3' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y&apos;&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Month(1 - 12)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 4' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Y(&apos;&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
												<argument exp='&quot;Year(15 - 99)?&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Status = 5' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='SetUpValues' />
								<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
								<command class_type='calculation' title='Calculation' break='1' >
									<exp exp='.Byte[.ByteCount] = Temp[0] * 10 + Temp[1]' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='(.ByteCount = 1) &amp;&amp; (GMT = 0)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Byte[1] = .Byte[1] - 1' />
										</command>
										<command class_type='decision' title='Decision' exp='.Byte[1] &gt; 23' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.Byte[1] = 23' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Byte[.ByteCount] = (.Byte[.ByteCount] / 10 &lt;&lt; 4) + (.Byte[.ByteCount] MOD 10)' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='.ByteCount = 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='.RXTemp[0] = .Byte[2]' />
											<exp exp='.Byte[2] = .Byte[1]' />
											<exp exp='.Byte[1] = .RXTemp[0]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='Temp[0] * 10 + Temp[1] = 99' swap='0' >
									<flowline >
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
										<command class_type='goto' title='Goto Connection Point' textarea='36,0,511,300' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.ByteCount = .ByteCount + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' break='1' >
							<exp exp='.ByteCount = StartByte' />
							<exp exp='.LoopCount = 0' />
							<exp exp='.Byte[0] = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='208 = write mode' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='StartByte' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='1' exp='.LoopCount = TotalBytes' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
									<argument exp='.Byte[.ByteCount]' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.ByteCount = .ByteCount + 1' />
									<exp exp='.LoopCount = .LoopCount + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Stop' />
						<command class_type='label' title='Connection Point' textarea='36,0,511,300' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetUpValues' description='' >
						<local name='Loop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='RxTemp' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='OK' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Total' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='.OK = 0' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='1' exp='.OK = 1' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.Loop = 0' />
								</command>
								<command class_type='loop' title='Loop' textarea='36,0,511,300' type='1' exp='RX = 221' start='0' >
									<flowline >
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='RX &lt; 80' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='(.Loop &lt; 2) &amp;&amp; (RX &lt;&gt; 221)' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
															<argument exp='RX + 48' />
														</command>
														<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
															<exp exp='.RxTemp[.Loop] = RX' />
															<exp exp='.Loop = .Loop + 1' />
															<exp exp='RX = 255' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='RX = 255' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='.Loop = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='.RxTemp[1] = .RxTemp[0]' />
											<exp exp='.RxTemp[0] = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='Temp[0] = .RxTemp[0]' />
									<exp exp='Temp[1] = .RxTemp[1]' />
									<exp exp='.Total = .RxTemp[0] * 10 + .RxTemp[1]' />
								</command>
								<command class_type='decision' title='Decision' exp='(.Total = 99 || (Status = 1 &amp;&amp; .Total &lt; 24)) || (Status = 2 &amp;&amp; .Total &lt; 60) || (Status = 3 &amp;&amp; .Total &lt; 32) || (Status = 4 &amp;&amp; .Total &lt; 13) || ((Status = 5 &amp;&amp; .Total &lt; 99) &amp;&amp; (Status = 5 &amp;&amp; .Total &gt; 14))' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='.OK = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' exp='(.Total = 99 || (Status = 6 &amp;&amp; .Total &lt; 8) &amp;&amp; (Status = 6 &amp;&amp; .Total &gt; 0)) || (Status = 7 &amp;&amp; .Total &lt; 24) || (Status = 8 &amp;&amp; .Total &lt; 60) || (Status = 9 &amp;&amp; .Total &lt; 24) || (Status = 10 &amp;&amp; .Total &lt; 60)' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='.OK = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
													<argument exp='&quot;X&quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TXRS232' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='TempString = ToString$ (Temp[0])' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='TempString' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadI2C' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Hours' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Minutes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Seconds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='Date' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Day' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Year' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Month' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='DayOfTheWeek' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='DaysString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='21' />
						</local>
						<local name='MonthCode' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='LastDayOfTheMonth' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='BSTGMT' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='Loop' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Temperature' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='66,-10,66,-10' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='Restart' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='209' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='PreviouseSeconds = Seconds' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Seconds' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Minutes' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='65,7,65,7' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Hours' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='DayNum' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Date' />
							<argument exp='0' />
						</command>
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Month' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='59,0,59,0' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='Year' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Stop' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='208' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Restart' />
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='TransmitByte' >
							<argument exp='209' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__i2c_master0' macro='ReceiveByte' >
							<return exp='.Temperature' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__i2c_master0' macro='Stop' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.DaysString = &quot;SunMonTueWedThuFriSat&quot;' />
							<exp exp='Seconds = (Seconds &gt;&gt; 4) * 10 + (Seconds &amp; 15)' />
							<exp exp='Minutes = (Minutes &gt;&gt; 4) * 10 + (Minutes &amp; 15)' />
							<exp exp='Hours = (Hours &gt;&gt; 4) * 10 + (Hours &amp; 15)' />
							<exp exp='DayNum = (DayNum &gt;&gt; 4) * 10 + (DayNum &amp; 15)' />
							<exp exp='DayString = Mid$ (.DaysString, ((DayNum - 1) * 3),3)' />
							<exp exp='Date = (Date &gt;&gt; 4) * 10 + (Date &amp; 15)' />
							<exp exp='Month = (Month &gt;&gt; 4) * 10 + (Month &amp; 15)' />
							<exp exp='Year = (Year &gt;&gt; 4) * 10 + (Year &amp; 15)' />
						</command>
						<command class_type='decision' title='Decision' exp='GMT' swap='0' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='Clocks forward for BST' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Hours = Hours + 1' />
								</command>
								<command class_type='decision' title='Decision' exp='Hours &gt; 23' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Hours = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='(PreviouseSeconds &lt;&gt; Seconds) &amp;&amp; RuntimeSeconds &lt; 255' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='RuntimeSeconds = RuntimeSeconds + 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='.Temperature &gt; 60' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='.Temperature = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='(TempMax &lt; .Temperature) &amp;&amp; (RuntimeSeconds &gt; 1)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TempMax = .Temperature' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__eeprom0' macro='Write' >
									<argument exp='1' />
									<argument exp='TempMax' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='(TempMin &gt; .Temperature) &amp;&amp; (RuntimeSeconds &gt; 1)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='TempMin = .Temperature' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__eeprom0' macro='Write' >
									<argument exp='2' />
									<argument exp='TempMin' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
							<argument exp='27' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;Y%&apos;&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Hours &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Hours' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Hours' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Minutes &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Minutes' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Minutes' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='TempString = ToString$ (Seconds)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Seconds &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Seconds' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Seconds' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot; &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot; &quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='GMT' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;GMT&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;GMT&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;BST&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;BST&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;  &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
							<argument exp='DayString' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot; &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='DayString' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot; &quot;' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Date &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Date' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Date' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Month &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Month' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Month' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Year &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
									<argument exp='&quot;0&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Year' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot; &quot;' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = Year' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;  Temp:&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='.Temperature' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = .Temperature' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;C&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;C &quot;' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
							<exp exp='.Date = 29' />
							<exp exp='.Month = 3' />
							<exp exp='.Year = 15' />
							<exp exp='.Hours = 1' />
							<exp exp='.Minutes = 0' />
							<exp exp='.Seconds = 2' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
							<exp exp='.Date = 25' />
							<exp exp='.Month = 10' />
							<exp exp='.Year = 15' />
							<exp exp='.Hours = 2' />
							<exp exp='.Minutes = 0' />
							<exp exp='.Seconds = 2' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='169,0,169,0' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;  TempMin:&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = TempMin' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;C&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;  TempMax:&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Temp[0] = TempMax' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='TXRS232' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
							<argument exp='&quot;C &quot;' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Count = Count + 1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendChar' >
							<argument exp='27' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Count' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y)+&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Key &amp; Function&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y*#&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;1 Set Time&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y+#&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;2 Set Date&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y,#&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;3 Set Day&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y*4&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;4 Refresh Screen&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;Y+4&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='v5__rs2320' macro='SendString' >
										<argument exp='&quot;5 Reset Temp Min/Max&quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Count = 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='Count = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' macro='DayOfTheWeekCalulation' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<local name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='wdtcon=0b11001;
cr_bit(option_reg,7); //Enable Weak PU
' language='C' />
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='500' type='1' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ReadEEPROM' />
						<command class_type='call' title='Call Macro' macro='Initiallise' />
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='MX_CLEAR_WATCHDOG;
' language='C' />
								<command class_type='decision' title='Decision' exp='QuickProgMode' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='RX = 255' />
										</command>
										<command class_type='decision' title='Decision' exp='QuickProgMode = 2' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count = 0' />
													<exp exp='' />
												</command>
												<command class_type='call' title='Call Macro' macro='QuickProgMode' />
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__rs2320' macro='SendChar' >
											<argument exp='27' />
										</command>
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__rs2320' macro='SendString' >
											<argument exp='&quot;Y!!&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
											<exp exp='Temp[0] = Hours' />
										</command>
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' disable='1' macro='TXRS232' />
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__rs2320' macro='SendString' >
											<argument exp='&quot;,&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
											<exp exp='Temp[0] = Minutes' />
										</command>
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' disable='1' macro='TXRS232' />
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__rs2320' macro='SendString' >
											<argument exp='&quot;,&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
											<exp exp='Temp[0] = Seconds' />
										</command>
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' disable='1' macro='TXRS232' />
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' disable='1' component='v5__rs2320' macro='SendString' >
											<argument exp='&quot; Count:&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
											<exp exp='Temp[0] = Count' />
										</command>
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' disable='1' macro='TXRS232' />
										<command class_type='delay' title='Delay' disable='1' exp='100' type='1' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ReadI2C' />
										<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='RX' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='RX = 255' />
														<exp exp='StartByte = 0 //set Time mode' />
														<exp exp='TotalBytes = 3' />
													</command>
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='SetI2CParameters' />
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='RX = 255' />
														<exp exp='StartByte = 4 //set Date mode' />
														<exp exp='TotalBytes = 3' />
													</command>
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='SetI2CParameters' />
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='RX = 255' />
														<exp exp='StartByte = 3 //set Day mode' />
														<exp exp='TotalBytes = 1' />
													</command>
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='SetI2CParameters' />
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='RX = 255' />
													</command>
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='ClearScreen' />
												</flowline>
											</case>
											<case exp='5' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' mark='1' >
														<exp exp='RX = 255' />
														<exp exp='TempMax = 0' />
														<exp exp='TempMin = 99' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='QuickProgMode = 3' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='RX = 255' />
										</command>
										<command class_type='delay' title='Delay' break='1' exp='1' type='2' />
										<command class_type='call' title='Call Macro' macro='QuickProgSetI2CParameters2' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='2' vmaj='1' codename='v5__i2c_master0' x='-80' y='-72' z='0' xsz='72.5714' ysz='82.5714' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='0' />
					<value target='BAUD_LIST' data='1' />
					<value target='SRC' data='0' />
					<value target='SMB' data='0' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTB.5' />
					<value target='SCL' data='$PORTB.4' />
					<value target='label' data='I2C Master' />
					<value target='Injector' data='001' />
					<value target='InjectorHandle' data='335' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='3' vmaj='1' codename='v5__rs2320' x='-72' y='16' z='0' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='1' />
					<value target='BAUD_LIST' data='2' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='8' />
					<value target='RETURN' data='0' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='0' />
					<value target='ECHO' data='0' />
					<value target='TX' data='$PORTC.6' />
					<value target='RX' data='$PORTC.7' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='RS232' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='1' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='327' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='v5__eeprom0' x='-24' y='80' z='0' xsz='47.7143' ysz='47.7143' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='255,0,99' />
					<value target='InitValsParsed' data='255,0,99' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='2ed54982-ef92-4509-a67c-7b3a72f91279' vmin='0' vmaj='1' codename='InjectorHumanInterface1' x='-32' y='32' z='0' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CircularBufferSize' data='1000' />
					<value target='DataMode' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8d670813-9a40-4891-accc-c1bf864b8217' vmin='0' vmaj='1' codename='InjectorDS1307' x='-72' y='56' z='0' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CircularBufferSize' data='1000' />
					<value target='TermChar' data='013' />
					<value target='DeviceAddress' data='104' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='40' y='-64' z='0' xsz='2.1' ysz='2.64463' zsz='1' xang='0' yang='0' zang='-0.0129319' xquat='0' yquat='0' zquat='-0.000112852' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTD.0' />
					<value target='Pin_Data_1' data='$PORTD.1' />
					<value target='Pin_Data_2' data='$PORTD.2' />
					<value target='Pin_Data_3' data='$PORTD.3' />
					<value target='Pin_RS' data='$PORTD.4' />
					<value target='Pin_E' data='$PORTD.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='ReadI2C' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='85' scrollx='1075' scrolly='9319' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='576' flags='0' />
		<view type='0' name='ClearScreen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DayOfTheWeekCalulation' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='189' flags='0' />
		<view type='0' name='Initiallise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetI2CParameters' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='QuickProgSetI2CParameters2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PortInt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadEEPROM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='QuickProgMode' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RXint2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TXRS232' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetUpValues' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVwUAAK0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
