<root>
<document scada='0' schema='102' license='1,monie jacobsen,X6U4U7' title='' description='' fcversion='524800' target='PIC16.33E.MIAC (dsPIC)' >
	<config data='' clkspd='140000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins />
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='key' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='4095' />
			<data name='ClockPin' value='0' />
			<data name='DataPort' value='4095' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='2' />
			<data name='CalculatedCommsDelay' value='2' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='c05f27d8-77ef-4b90-9f4a-d0757420cc51' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='key' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimeStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DateStr' type='T8' 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='DisplayTime' description='display the str as time' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='line' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='set the cursor position' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
							<argument exp='6' />
							<argument exp='.line' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[0]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[1]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='&apos;:&apos;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[2]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[3]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='&apos;:&apos;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[4]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='TimeStr[5]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawCursor' description='Draw a cursor to screen at the position' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='position' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='type' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.position' >
							<case >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='6' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='7' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='9' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='10' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='12' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
										<argument exp='13' />
										<argument exp='3' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='.type' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetTime' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='cursor' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.cursor = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='GetTime' >
							<return exp='TimeStr' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayTime' >
							<argument exp='2' />
						</command>
						<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
							<argument exp='.cursor' />
							<argument exp='&apos;^&apos;' />
						</command>
						<command class_type='loop' title='loop unit OK or Back key pressed' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='(key != 4) AND (key != 6)' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='GetKeypad' >
									<return exp='key' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='key' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='comment' title='' comment='Left' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Remove the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos; &apos;' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.cursor = 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = 5' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = .cursor - 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos;^&apos;' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='comment' title='' comment='Down' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TimeStr[.cursor] = &apos;0&apos;' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='TimeStr[.cursor] = &apos;9&apos;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='TimeStr[.cursor] = TimeStr[.cursor] - 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayTime' >
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='comment' title='' comment='Up' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TimeStr[.cursor] = &apos;9&apos;' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='TimeStr[.cursor] = &apos;0&apos;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='TimeStr[.cursor] = TimeStr[.cursor] + 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayTime' >
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='comment' title='' comment='Right' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Remove the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos; &apos;' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.cursor = 5' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = 0' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = .cursor + 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos;^&apos;' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='comment' title='' comment='OK pressed
Set the time' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='SetTime' >
												<argument exp='TimeStr' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DisplayDate' description='display the str as a date' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='line' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='set the cursor position' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayCursor' >
							<argument exp='6' />
							<argument exp='.line' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[0]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[1]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='&apos;:&apos;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[2]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[3]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='&apos;:&apos;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[4]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintASCII' >
							<argument exp='DateStr[5]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetDate' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='cursor' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.cursor = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='GetDate' >
							<return exp='DateStr' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayDate' >
							<argument exp='2' />
						</command>
						<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
							<argument exp='.cursor' />
							<argument exp='&apos;^&apos;' />
						</command>
						<command class_type='loop' title='loop unit OK or Back key pressed' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='(key != 4) AND (key != 6)' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='GetKeypad' >
									<return exp='key' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='key' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='comment' title='' comment='Left' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Remove the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos; &apos;' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.cursor = 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = 5' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = .cursor - 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos;^&apos;' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='comment' title='' comment='Down' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='DateStr[.cursor] = &apos;0&apos;' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='DateStr[.cursor] = &apos;9&apos;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='DateStr[.cursor] = DateStr[.cursor] - 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayDate' >
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='comment' title='' comment='Up' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='DateStr[.cursor] = &apos;9&apos;' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='DateStr[.cursor] = &apos;0&apos;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='DateStr[.cursor] = DateStr[.cursor] + 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayDate' >
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='comment' title='' comment='Right' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Remove the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos; &apos;' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.cursor = 5' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = 0' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.cursor = .cursor + 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Draw the cursor' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawCursor' >
												<argument exp='.cursor' />
												<argument exp='&apos;^&apos;' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WaitKeyRelease' />
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='comment' title='' comment='OK pressed
Set the time' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='SetDate' >
												<argument exp='DateStr' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='WaitKeyRelease' description='Wait until the key press has been released' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='key != 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='GetKeypad' >
									<return exp='key' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='DisplayStart' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintString' >
							<argument exp='&quot; F1 to set the time\n&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintString' >
							<argument exp='&quot;    Matrix Clock&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='PrintString' >
							<argument exp='&quot;\n\n\n F2 to set the date&quot;' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac' macro='GetKeypad' >
									<return exp='key' />
								</command>
								<command class_type='switch' title='F1 to set Time F2 to set Date' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='key' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='comment' title='' comment='F2 pressed' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SetDate' />
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='comment' title='' comment='F1 pressed' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SetTime' />
										</flowline>
									</case>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='GetTime' >
									<return exp='TimeStr' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayTime' >
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc' macro='GetDate' >
									<return exp='DateStr' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayDate' >
									<argument exp='3' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='596e6f4d-d87a-4e8b-b108-c0501127c382' vmin='2' vmaj='1' codename='miac' x='-1.8202' y='-1.86239' z='28.75' xsz='133' ysz='98.5' zsz='57.5' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='LCD_X' data='14' />
					<value target='LCD_Y' data='3' />
					<value target='ORIGIN_X' data='3' />
					<value target='ORIGIN_Y' data='8' />
					<value target='ROWS' data='5' />
					<value target='COLS' data='20' />
					<value target='WIDTH' data='6' />
					<value target='HEIGHT' data='10' />
					<value target='TEMP_VAL' data='0b0000000' />
					<value target='GLYPH_COUNT' data='128' />
					<value target='Q1' data='$PORTD.0' />
					<value target='Q2' data='$PORTD.1' />
					<value target='Q3' data='$PORTD.2' />
					<value target='Q4' data='$PORTD.3' />
					<value target='A' data='$PORTD.4' />
					<value target='B' data='$PORTD.5' />
					<value target='C' data='$PORTD.6' />
					<value target='D' data='$PORTD.7' />
					<value target='DISPLAY_COLOUR' data='0xFF5757' />
					<value target='I1' data='$PORTB.0' />
					<value target='I2' data='$PORTB.1' />
					<value target='E1' data='$PORTF.0' />
					<value target='E2' data='$PORTF.1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c48dfdeb-1177-4381-86dd-d7a98fefeb7a' vmin='0' vmaj='1' codename='rtc' x='100' y='-1.88384' z='10' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='90' xquat='0' yquat='0' zquat='0.707107' wquat='0.707107' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_i2c1::CHANNEL' data='2' />
					<value target='cal_i2c1::SDA' data='$PORTF.4' />
					<value target='cal_i2c1::SDAPins' data='000' />
					<value target='cal_i2c1::SCL' data='$PORTF.5' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::BAUD_LIST' data='002' />
					<value target='cal_i2c1::BAUD' data='400000' />
					<value target='SimComms' data='0' />
					<value target='cal_i2c1::ConsoleData' data='0' />
					<value target='cal_i2c1::ScopeTraces' data='0' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='-7.40552' ye='-7.83791' ze='158.611' xt='-7.40552' yt='-7.83791' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='2' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='8404224' img='' style='0' size='0' />
		<camera xe='2.54595' ye='1.61163' ze='315.366' xt='2.54595' yt='1.61163' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='70' scrollx='0' scrolly='549' flags='0' />
		<view type='0' name='SetDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawCursor' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='WaitKeyRelease' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbQYAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
