<root>
<document scada='0' schema='102' license='1,monie jacobsen,X6U4U7' title='My Project' description='Tillader brugere at give en detaljeret beskrivelse af projektet.
Disse oplysninger vises i den genererede C-kode og i nogen af dokumentationsfunktionerne i Flowcode.' fcversion='524800' target='PIC16.33E.MIAC (dsPIC) System' >
	<config data='' clkspd='140000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins />
	<supplement use='1' head='#define FCV_PRECISION 6
char MONTH_DAYS[] ={0,31,28,31,30,31,30,31,31,30,31,30};
typedef union
{
  MX_FLOAT AsFloat;
  MX_UINT8  AsByte[4];
} MX_FloatUnion;

MX_FloatUnion FloatUnion;
' body='' />
	<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='' 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='MONTH' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GetKey' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsOVCounter' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HOUR_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FloatFiktGrader' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrackingPeriode' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='the2' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PinChange' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='the1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Helttal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Induktive_sensorer_EndeStop' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Fiktgrader' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_Ost' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pi' type='f32' description='' isconst='0' isinit='1' usrinit='3.1415929999999998578630311385495588183403' setinit='3.14159265' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sun_Elevation' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Volt' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='SECOND' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DanskNormalTid' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lat' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mnanom' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='freq' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AzStr' 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='ha' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update_Anemometer' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='REAL_YEAR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='deg2rad' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Oneshoot_OV' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rad2deg' type='f32' description='' isconst='0' isinit='0' usrinit='0.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='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsIND' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Enable' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SetFlag' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OstPulsIn' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Tick' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AZ_STR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MaxWindspeed' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='twopi' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OvGrader' type='u8' description='' isconst='0' isinit='1' usrinit='20' setinit='20' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lat_new' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='el' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DAYS' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='MilliVolt' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Donelt' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='YEAR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dec' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Decimaltal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ra' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lmst' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='az' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LDR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='current_time' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Manuel_Reset_EndeStop' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='neg_pi' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mnlong' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sun_Azimuth' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='num' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='leap' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MINUTE' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='gmst' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EL_STR_2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_vest' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Fiktdisp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MIN_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='p' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='delta' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='delta_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EL_STR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term5' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='eclong' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='arcsine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term4' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='oblqec' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='elc' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='freqOld' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term3' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term2' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AZ_STR_2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WestPulsIn' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SEC_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MaxDecimal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='current_date' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cosine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='long' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='arc_theta' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='time' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='GetDateString' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='date' type='b1' description='Pass true to get a date string DDMMYY false for time HHMMSS' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='current' type='T8' description='Current date or time in DDMMYY or HHMMSS format' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</param>
						<local name='max_value' type='T8' description='Holds the maximum digit at any position (Hrs !&gt; 2 day !&gt; 31)' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='res' type='T8' description='Final result string' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='x' type='u8' description='Current digit being edited in string' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='done' type='b1' description='Set to true when user presses done key (or cancel)' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='hide' type='u16' description='Hide current char for flashing cursor' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='key' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mx' type='u8' description='Maximum HHMMSS values' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='value' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cancel' type='b1' description='Has the user pressed cancel?' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST DATE&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DDMMYY&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 31' />
									<exp exp='.mx[1] = 12' />
									<exp exp='.mx[2] = 99' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST TIME&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;HHMMSS&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 23' />
									<exp exp='.mx[1] = 59' />
									<exp exp='.mx[2] = 59' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='0' />
							<argument exp='4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;OK set F3 Cancel&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.res = .current' />
							<exp exp='.x = 0 // Current char being edited' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='.done OR .cancel' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='.key' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='.res' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.hide' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='.x + 3' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;  &quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = false' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = true' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.value = (.res[.x] - &apos;0&apos;) * 10' />
									<exp exp='.value = .value + (.res[.x + 1] - &apos;0&apos;)' />
								</command>
								<command class_type='switch' title='Action key press' textarea='36,209,36,209' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.key' >
									<case >
										<flowline />
									</case>
									<case exp='3 // Down arrow' >
										<flowline >
											<command class_type='decision' title='Can we decrement value' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &gt; 0 OR (.date &amp; .value &gt; 1)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value - 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='4 // OK' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.done = true' />
											</command>
										</flowline>
									</case>
									<case exp='5 //Up arrow' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &lt; .mx[.x / 2]' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value + 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='1 // Left' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x - 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='7 // Right' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &lt; 4' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x + 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='8 // Cancel Key' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.cancel = true' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.done' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='14' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;20&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetDate' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the date here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetTime' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the time here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<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_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='TimeStr[1]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='TimeStr[3]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='TimeStr[5]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DisplayDate' description='' >
						<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_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[1]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[3]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='&apos;-&apos;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;20&quot;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[5]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintTime' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='seperator' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='.x' />
							<argument exp='.y' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.t1 = Left$ (.data,2)' />
							<exp exp='.t2 = Mid$ (.data,2,2)' />
							<exp exp='.t3 = Right$ (.data,2)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t3' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetTimeString' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='date' type='b1' description='Pass true to get a date string DDMMYY false for time HHMMSS' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='current' type='T8' description='Current date or time in DDMMYY or HHMMSS format' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</param>
						<local name='max_value' type='T8' description='Holds the maximum digit at any position (Hrs !&gt; 2 day !&gt; 31)' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='res' type='T8' description='Final result string' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='x' type='u8' description='Current digit being edited in string' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='done' type='b1' description='Set to true when user presses done key (or cancel)' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='hide' type='u16' description='Hide current char for flashing cursor' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='key' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mx' type='u8' description='Maximum HHMMSS values' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='value' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cancel' type='b1' description='Has the user pressed cancel?' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST DATE&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DDMMYY&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 31' />
									<exp exp='.mx[1] = 12' />
									<exp exp='.mx[2] = 99' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST TIME&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;HHMMSS&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 23' />
									<exp exp='.mx[1] = 59' />
									<exp exp='.mx[2] = 59' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.res = .current' />
							<exp exp='.x = 0 // Current char being edited' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='.done OR .cancel' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='.key' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='.res' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.hide' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='.x + 3' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;  &quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = false' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = true' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.value = (.res[.x] - &apos;0&apos;) * 10' />
									<exp exp='.value = .value + (.res[.x + 1] - &apos;0&apos;)' />
								</command>
								<command class_type='switch' title='Action key press' textarea='36,209,36,209' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.key' >
									<case >
										<flowline />
									</case>
									<case exp='3 // Down arrow' >
										<flowline >
											<command class_type='decision' title='Can we decrement value' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &gt; 0 OR (.date &amp; .value &gt; 1)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value - 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='4 // OK' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.done = true' />
											</command>
										</flowline>
									</case>
									<case exp='5 //Up arrow' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &lt; .mx[.x / 2]' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value + 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='1 // Left' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x - 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='7 // Right' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &lt; 4' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x + 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='8 // Cancel Key' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.cancel = true' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.done' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='14' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;20&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetDate' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the date here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetTime' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the time here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintDate' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='seperator' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='.x' />
							<argument exp='.y' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.t1 = Left$ (.data,2)' />
							<exp exp='.t2 = Mid$ (.data,2,2)' />
							<exp exp='.t3 = Right$ (.data,2)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;20&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t3' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='09-08-2019' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='reset_display' type='u16' description='' isconst='0' isinit='1' usrinit='1' setinit='true' />
						<local name='current_date' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='current_time' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayStart' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='GetKey &lt;&gt; 8' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;F1/F2 set Time/Date&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='4' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;OK set F3 Cancel&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='GetKey' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='GetDate' >
									<return exp='current_date' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='GetTime' >
									<return exp='current_time' />
								</command>
								<command class_type='switch' title='F1 to set Time F2 to set Date' textarea='36,220,36,220' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GetKey' >
									<case >
										<flowline />
									</case>
									<case exp='0 // F2 pressed' >
										<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='GetDateString' >
												<argument exp='true' />
												<argument exp='current_date' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.reset_display = true' />
											</command>
										</flowline>
									</case>
									<case exp='2 // F1 pressed' >
										<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='GetTimeString' >
												<argument exp='false' />
												<argument exp='current_time' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.reset_display = true' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Time is &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='PrintTime' >
									<argument exp='8' />
									<argument exp='1' />
									<argument exp='current_time' />
									<argument exp='&apos;:&apos;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Date is &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='PrintDate' >
									<argument exp='8' />
									<argument exp='2' />
									<argument exp='current_date' />
									<argument exp='&apos;:&apos;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='596e6f4d-d87a-4e8b-b108-c0501127c382' vmin='2' vmaj='1' codename='miac_dspic1' x='-119.404' y='168.885' z='56.75' xsz='133' ysz='98.5' zsz='57.75' 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='5' />
					<value target='LCD_Y' data='1' />
					<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='rtc1' x='-2.6897' y='168.116' 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='1' lighting='2' brightness='51' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='37.0666' ye='124.007' ze='603.05' xt='37.0666' yt='124.007' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='-94.7854' ye='153.287' ze='354.109' xt='-94.7854' yt='153.287' 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---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='55' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PrintTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetTimeString' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetDateString' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PrintDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAaAAAAyAQAAOkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
