<root>
<document scada='0' schema='102' license='1,monie jacobsen,X6U4U7' title='' description='' fcversion='524545' target='PIC16.33E.MIAC (dsPIC) System' >
	<config data='' clkspd='140000000' simspd='9' usewdt='0' constif='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 >
		<watch expr='AZ_STR' />
		<watch expr='AZ_STR_2' />
		<watch expr='az' />
	</debug>
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='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' />
		</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='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='HOUR_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='COUNT' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Mode' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CountTick' 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='the1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</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='Hours' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SECOND' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='CursorX_pos' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Hide' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Char_Position' type='u8' description='' isconst='0' 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='key' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='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='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='Elevation' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='twopi' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='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='ra' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp5' type='u8' description='' isconst='0' isinit='0' usrinit='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='temp4' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp3' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</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='temp2' 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='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Temp0' type='u8' description='' isconst='0' isinit='0' usrinit='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='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='Entered_Digit' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</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='3' />
					</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='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='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='OK' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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>
				<variable public='0' >
					<def class_type='variable' name='Char_Number' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Display_On_OFF' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Beslutning' cmdcolor='12615680' cmdcolor_sec='15376912' exp='el &lt; 100' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Elevation:  &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='12' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,1260,0' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='EL_STR_2' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
									<argument exp='223' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Elevation:  &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='11' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,1260,0' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='EL_STR' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
									<argument exp='223' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Beslutning' cmdcolor='12615680' cmdcolor_sec='15376912' exp='az &lt; 100' swap='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='4' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Azimuth  : &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='11' />
									<argument exp='4' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='AZ_STR_2' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
									<argument exp='223' />
								</command>
							</flowline>
							<flowline >
								<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;Azimuth  : &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='11' />
									<argument exp='4' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='AZ_STR' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
									<argument exp='223' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='arctangent' description='' >
						<return name='Return' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='arc_theta' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Convert angle to radians' />
							<exp exp='p = .arc_theta' />
						</command>
						<command class_type='comment' title='' comment='arcsinx=x+(x^3)/6 +3(x^5)/40 + 15(x^7)/336 +105(x^9)/3456 +945(x^11)/42240 + .......' textarea='12,0,1523,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 3 and divide by 3' />
							<exp exp='term1 = fmul (p,p)' />
							<exp exp='term1 = fmul (term1,p)' />
							<exp exp='term1 = fdiv (term1,3)' />
						</command>
						<command class_type='calculation' title='8' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 5 and divide by 5' />
							<exp exp='term2 = fmul (p,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fdiv (term2,5)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 7 and divide by 7' />
							<exp exp='term3 = fmul (p,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fdiv (term3,7)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 9 and divide by 9' />
							<exp exp='term4 = fmul (p,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fdiv (term4,9)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 11 and divide by 11' />
							<exp exp='term5 = fmul (p,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fdiv (term5,11)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// p - term1 + term2 - term3 + term4 - term5' />
							<exp exp='term1 = fsub (p,term1)' />
							<exp exp='term1 = fadd (term1,term2)' />
							<exp exp='term1 = fsub (term1,term3)' />
							<exp exp='term1 = fadd (term1,term4)' />
							<exp exp='.Return = fsub (term1,term5)' />
						</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='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_dspic1' 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_dspic1' 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_dspic1' 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_dspic1' 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_dspic1' 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_dspic1' 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_dspic1' macro='PrintASCII' >
							<argument exp='.type' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Solar_position' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' ccode='/*
  Enter C code below this comment
*/
FCV_DAYS = MONTH_DAYS[FCV_MONTH-1];' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='DAYS = DAYS + 20 * (MONTH - 1) + DAYS' />
						</command>
						<command class_type='comment' title='' comment='Leap year checking..' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='((REAL_YEAR MOD 4) = 0) OR ((REAL_YEAR MOD 400) != 0) AND (DAYS &gt;= 60)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='DAYS = DAYS + 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='%% Get Julian date - 2400000' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' ccode='//Calculation
//Calculation:
//  HOUR_FP = int2float (HOUR)
//  MIN_FP = int2float (MIN)
//  SEC_FP = int2float (SEC)
//  HOUR_FP = HOUR_FP + fdiv (MIN_FP,60) + fdiv (SEC_FP,3600)
//  delta = REAL_YEAR - 1949
//  leap = delta / 4
//  delta = delta * 365 + leap + DAYS
//  delta_FP = int2float (delta)
//  delta_FP = fadd (32916.5,delta_FP)
//  HOUR_FP = fdiv (HOUR_FP,24)
//  delta_FP = fadd (delta_FP,HOUR_FP)
//  time = fsub (delta_FP,51545)
//  DISP_STR = FloatToString$ (time)
FCV_HOUR_FP = flt_fromi(FCV_HOUR);
FCV_MIN_FP = flt_fromi(FCV_MIN);
FCV_SEC_FP = flt_fromi(FCV_SEC);
FCV_HOUR_FP = flt_add(flt_add(FCV_HOUR_FP, flt_div(FCV_MIN_FP, 60)), flt_div(FCV_SEC_FP, 3600));
FCV_DELTA = FCV_REAL_YEAR - 1949;
FCV_LEAP = FCV_DELTA / 4;
FCV_DELTA = FCV_DELTA * 365 + FCV_LEAP + FCV_DAYS;
FCV_DELTA_FP = flt_fromi(FCV_DELTA);
FCV_DELTA_FP = flt_add(32916.5, FCV_DELTA_FP);
FCV_HOUR_FP = flt_div(FCV_HOUR_FP, 24);
FCV_DELTA_FP = flt_add(FCV_DELTA_FP, FCV_HOUR_FP);
FCV_TIME = flt_sub(FCV_DELTA_FP, 51545);
FCI_FLOAT_TO_STRING(FCV_TIME, 6, FCV_DISP_STR,FCSZ_DISP_STR);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='HOUR_FP = int2float (Hours)' />
							<exp exp='MIN_FP = int2float (MINUTE)' />
							<exp exp='SEC_FP = int2float (SECOND)' />
							<exp exp='HOUR_FP = HOUR_FP + fdiv (MIN_FP,60.0) + fdiv (SEC_FP,3600.0)' />
							<exp exp='delta = REAL_YEAR - 1949' />
							<exp exp='leap = delta / 4' />
							<exp exp='delta = delta * 365 + leap + DAYS' />
							<exp exp='delta_FP = int2float (delta)' />
							<exp exp='delta_FP = fadd (32916.5,delta_FP)' />
							<exp exp='delta_FP = fadd (delta_FP,fdiv (HOUR_FP,24.0))' />
							<exp exp='time = fsub (delta_FP,51545.0)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='% Ecliptic coordinates
%% Mean longitude' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='mnlong = fadd (280.460,fmul (0.9856474,time))' />
							<exp exp='mnlong = fmod (mnlong,360)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' ccode='//Decision
//Decision: mnlong &lt; 0?
if (flt_lt(FCV_MNLONG, 0))
{
' cmdcolor='12615680' cmdcolor_sec='15376912' exp='mnlong &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' ccode='//Calculation
//Calculation:
//  mnlong = fadd (mnlong,360)
FCV_MNLONG = flt_add(FCV_MNLONG, 360);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='mnlong = fadd (mnlong,360)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Mean longitude' />
							<exp exp='mnanom = fadd (357.528,fmul (0.9856003,time))' />
							<exp exp='mnanom = fmod (mnanom,360)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' ccode='//Decision
//Decision: mnlong &lt; 0?
if (flt_lt(FCV_MNLONG, 0))
{
' cmdcolor='12615680' cmdcolor_sec='15376912' exp='mnanom &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' ccode='//Calculation
//Calculation:
//  mnlong = fadd (mnlong,360)
FCV_MNLONG = flt_add(FCV_MNLONG, 360);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='mnanom = fadd (mnanom,360)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='//Ecliptic longitude and obliquity of ecliptic' />
							<exp exp='mnanom = fmul (mnanom,deg2rad)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,423,0' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='mnanom' />
						</command>
						<command class_type='calculation' title='Calculation' ccode='//Calculation
//Calculation:
//  eclong = fmul (1.915,sine)
//  deg = 2 * mnanom
FCV_ECLONG = flt_mul(1.915, FCV_SINE);
FCV_DEG = flt_mul(2, FCV_MNANOM);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='eclong = fmul (1.915,sine)' />
							<exp exp='mnanom = fmul (2,mnanom)' />
							<exp exp='eclong = fadd (eclong,mnlong)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='mnanom' />
						</command>
						<command class_type='calculation' title='Calculation' ccode='//Calculation
//Calculation:
//  eclong = eclong + (0.020 * sine)
//  eclong = eclong MOD 360
FCV_ECLONG = flt_add(FCV_ECLONG, (flt_mul(0.020, FCV_SINE)));
FCV_ECLONG = flt_rem(FCV_ECLONG, 360);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='eclong = fadd (eclong,fmul (0.020,sine))' />
							<exp exp='eclong = fmod (eclong,360)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' ccode='//Decision
//Decision: mnlong &lt; 0?
if (flt_lt(FCV_MNLONG, 0))
{
' cmdcolor='12615680' cmdcolor_sec='15376912' exp='eclong &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' ccode='//Calculation
//Calculation:
//  mnlong = fadd (mnlong,360)
FCV_MNLONG = flt_add(FCV_MNLONG, 360);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='eclong = fadd (eclong,360)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='eclong = fmul (eclong,deg2rad)' />
							<exp exp='oblqec = fsub (23.429,fmul (0.0000004,time))' />
							<exp exp='oblqec = fmul (oblqec,deg2rad)' />
						</command>
						<command class_type='comment' title='' comment='// Celestial coordinates
// Right ascension and declination' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='eclong' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='cosine' />
							<argument exp='oblqec' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='num = fmul (sine,cosine)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='cosine' />
							<argument exp='eclong' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='arc_theta = fdiv (num,cosine)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='arc_theta &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='the1 = 0.7' />
									<exp exp='the2 = (the1 - arc_theta) / ((-arc_theta * the1) - 1)' />
								</command>
								<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arctangent' >
									<return exp='ra' />
									<argument exp='the1' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='temp1 = ra' />
								</command>
								<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arctangent' >
									<return exp='ra' />
									<argument exp='the2' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ra = ra + temp1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='arc_theta &gt;= -1 AND arc_theta &lt;= 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arctangent' >
											<return exp='ra' />
											<argument exp='arc_theta' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='arc_theta &lt; -1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='arc_theta = arc_theta * (-1)' />
													<exp exp='the1 = 0.7' />
													<exp exp='the2 = (the1 - arc_theta) / ((-arc_theta * the1) - 1)' />
												</command>
												<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arctangent' >
													<return exp='ra' />
													<argument exp='the1' />
												</command>
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='temp1 = ra' />
												</command>
												<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arctangent' >
													<return exp='ra' />
													<argument exp='the2' />
												</command>
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='ra = ra + temp1' />
													<exp exp='ra = ra * (-1)' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cosine &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ra = fadd (ra,pi)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(cosine &gt;= 0) &amp;&amp; (num &lt; 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ra = fadd (ra,twopi)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='dec = sine' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='oblqec' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='arc_theta = fmul (sine,dec)' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arcsine' >
							<return exp='dec' />
							<argument exp='arc_theta' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,-16,36,-16' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Local coordinates' />
							<exp exp='// Greenwich mean sidereal time' />
							<exp exp='gmst = fmul (0.0657098242,time)' />
							<exp exp='gmst = fadd (gmst,HOUR_FP)' />
							<exp exp='gmst = fadd (6.697375,gmst)' />
							<exp exp='gmst = fmod (gmst,24)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='gmst &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='gmst = fadd (gmst,24)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Local mean sidereal time' />
							<exp exp='lmst = fdiv (long,15)' />
							<exp exp='lmst = fadd (gmst,lmst)' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='lmst = fmod (lmst,24)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='lmst &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='lmst = fadd (lmst,24)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' ccode='//Calculation
//Calculation:
//  lmst = fmul (lmst,fmul (15,deg2rad))
//  // Hour angle
//  ha = fsub (lmst,ra)
//  neg_pi = fmul (-1,pi)
FCV_LMST = flt_mul(FCV_LMST, flt_mul(15, FCV_DEG2RAD));
FCV_HA = flt_sub(FCV_LMST, FCV_RA);
FCV_NEG_PI = flt_mul(-1, FCV_PI);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='ha = fmul (15,deg2rad)' />
							<exp exp='lmst = fmul (lmst,ha)' />
							<exp exp='// Hour angle' />
							<exp exp='ha = fsub (lmst,ra)' />
							<exp exp='neg_pi = fmul (-1,pi)' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' ccode='//Decision
//Decision: ha &lt; neg_pi?
if (flt_lt(FCV_HA, FCV_NEG_PI))
{
' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ha &lt; neg_pi' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ha = fadd (ha,twopi)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ha &gt; pi' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ha = fsub (ha,twopi)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='el' />
							<argument exp='ha' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' ccode='//Calculation
//Calculation:
//  deg = fmul (lat,deg2rad)
FCV_DEG = flt_mul(FCV_LAT, FCV_DEG2RAD);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='lat_new = fmul (lat,deg2rad)' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='cosine' />
							<argument exp='lat_new' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='el = fmul (cosine,el)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='cosine' />
							<argument exp='dec' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='el = fmul (cosine,el)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='arc_theta' />
							<argument exp='dec' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='elc = arc_theta' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='lat_new' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='arc_theta = fmul (elc,sine)' />
							<exp exp='arc_theta = fadd (arc_theta,el)' />
							<exp exp='elc = fdiv (elc,sine)' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arcsine' >
							<return exp='el' />
							<argument exp='arc_theta' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='sine' >
							<return exp='sine' />
							<argument exp='ha' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='az = fmul (cosine,sine)' />
							<exp exp='az = fmul (-1,az)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='cosine' >
							<return exp='cosine' />
							<argument exp='el' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='arc_theta = fdiv (az,cosine)' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arcsine' >
							<return exp='az' />
							<argument exp='arc_theta' />
						</command>
						<command class_type='call' title='Call Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='arcsine' >
							<return exp='arcsine' />
							<argument exp='elc' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' ccode='//Decision
//Decision: el &gt;= arcsine?
if (flt_ge(FCV_EL, FCV_ARCSINE))
{
' cmdcolor='12615680' cmdcolor_sec='15376912' exp='el &gt;= arcsine' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='az = fsub (pi,az)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(el &lt;= arcsine) AND (ha &gt; 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='az = fadd (az,twopi)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='el = fdiv (el,deg2rad)' />
							<exp exp='Sun_Elevation = float2int (el) //EEPROM' />
							<exp exp='EL_STR = FloatToString$ (el)' />
							<exp exp='EL_STR_2 = FloatToString$ (el)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='az = fdiv (az,deg2rad) //Float' />
							<exp exp='Sun_Azimuth = float2int (az) //EEPROM' />
							<exp exp='AZ_STR = FloatToString$ (az)' />
							<exp exp='AZ_STR_2 = FloatToString$ (az)' />
						</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='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<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_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' 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' component='miac_dspic1' macro='DisplayCursor' >
							<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_dspic1' 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='rtc1' macro='SetTime' >
												<argument exp='TimeStr' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFlag' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='SetFlag = 1' />
						</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='Set_Time_Date' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Char_Number = 5' />
							<exp exp='CursorX_pos = 3' />
							<exp exp='Char_Position = 0' />
							<exp exp='Enable = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot; ADJUST &quot;' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Mode' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Entered_Digit[0] = DAYS / 10 MOD 10' />
									<exp exp='Entered_Digit[1] = DAYS MOD 10' />
									<exp exp='Entered_Digit[2] = MONTH / 10 MOD 10' />
									<exp exp='Entered_Digit[3] = MONTH MOD 10' />
									<exp exp='Entered_Digit[4] = YEAR / 10 MOD 10' />
									<exp exp='Entered_Digit[5] = YEAR MOD 10' />
									<exp exp='' />
									<exp exp='Temp0 = Entered_Digit[0]' />
									<exp exp='Temp1 = Entered_Digit[1]' />
									<exp exp='Temp2 = Entered_Digit[2]' />
									<exp exp='Temp3 = Entered_Digit[3]' />
									<exp exp='Temp4 = Entered_Digit[4]' />
									<exp exp='Temp5 = Entered_Digit[5]' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DAYS&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' 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' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DDMMYY&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Entered_Digit[0] = Hours / 10 MOD 10' />
									<exp exp='Entered_Digit[1] = Hours MOD 10' />
									<exp exp='Entered_Digit[2] = MINUTE / 10 MOD 10' />
									<exp exp='Entered_Digit[3] = MINUTE MOD 10' />
									<exp exp='Entered_Digit[4] = SECOND / 10 MOD 10' />
									<exp exp='Entered_Digit[5] = SECOND MOD 10' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;TIME 24H&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' 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' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;HHMMSS&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='0' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;OK When Finished&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='3' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='CursorX_pos' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Count = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
							<argument exp='Char_Number' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,-150,36,-150' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='OK = 0' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='GetKey' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='186,3,186,3' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='CursorX_pos = Count + 3' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='CursorX_pos' />
									<argument exp='1' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,511,325' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GetKey' >
									<case >
										<flowline />
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Char_Number = Char_Number - 1' />
												<exp exp='' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Char_Number = 255' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Char_Number = 9' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Entered_Digit[Char_Position] = Char_Number' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='OK = 1' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Char_Number = Char_Number + 1' />
												<exp exp='' />
											</command>
											<command class_type='decision' title='Up Button Detected' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Char_Number &gt; 9' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Char_Number = 0' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Entered_Digit[Char_Position] = Char_Number' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Char_Position &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Char_Position = Char_Position - 1' />
														<exp exp='Hide = 0' />
														<exp exp='CursorX_pos = CursorX_pos - 1' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Char_Position &lt; 5' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Char_Position = Char_Position + 1' />
														<exp exp='Hide = 0' />
														<exp exp='CursorX_pos = CursorX_pos + 1' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Char_Position = Count' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Hide = !Hide' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='loop' title='Loop' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='GetKey = 255' >
									<flowline >
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
											<return exp='GetKey' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='16769676' exp='30' type='1' />
								<command class_type='decision' title='Flash Number' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Hide = 1) &amp;&amp; (Char_Position = Count)' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot; &quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Entered_Digit[Count] &lt;&gt; 100' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' textarea='36,184,511,484' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
													<argument exp='Entered_Digit[Count]' />
												</command>
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='Char_Number = Entered_Digit[Char_Position]' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' textarea='36,184,511,484' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;5&quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Count &gt; 4' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Count = 255' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Count = Count + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Mode' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[0] &lt;&gt; 100) &amp;&amp; (Entered_Digit[1] &lt;&gt; 100)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='133,20,965,20' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='DAYS = Entered_Digit[0] * 10 + Entered_Digit[1]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[2] &lt;&gt; 100) &amp;&amp; (Entered_Digit[3] &lt;&gt; 100)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='MONTH = Entered_Digit[2] * 10 + Entered_Digit[3]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[4] &lt;&gt; 100) &amp;&amp; (Entered_Digit[5] &lt;&gt; 0)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='YEAR = Entered_Digit[4] * 10 + Entered_Digit[5]' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[0] &lt;&gt; 100) &amp;&amp; (Entered_Digit[1] &lt;&gt; 100)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,868,0' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Hours = Entered_Digit[0] * 10 + Entered_Digit[1]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[2] &lt;&gt; 100) &amp;&amp; (Entered_Digit[3] &lt;&gt; 100)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='MINUTE = Entered_Digit[2] * 10 + Entered_Digit[3]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Entered_Digit[4] &lt;&gt; 100) || (Entered_Digit[5] &lt;&gt; 100)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='SECOND = Entered_Digit[4] * 10 + Entered_Digit[5]' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='OK = 0' />
							<exp exp='Mode = 0' />
							<exp exp='Enable = 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Hours &gt; 23' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Hours = 23' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='MINUTE &gt; 59' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='MINUTE = 59' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='SECOND &gt; 59' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='SECOND = 59' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='YEAR &lt; 2000' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='YEAR = YEAR + 2000' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='sine' description='' >
						<return name='Return' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='deg' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' ccode='//Calculation
//Calculation:
//  p = sine.deg - twopi * (sine.deg &gt; pi)
FCV_P = flt_sub(FCL_DEG, flt_mul(FCV_TWOPI, flt_fromi((flt_gt(FCL_DEG, FCV_PI)))));
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='p = .deg - twopi * (.deg &gt; pi)' />
						</command>
						<command class_type='comment' title='' comment='sinx=x-(x^3)/3! +(x^5)/5! - (x^7)/7! +(x^9)/9! -(x^11)/11! + .......' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 3 and divide by 6' />
							<exp exp='term1 = fmul (p,p)' />
							<exp exp='term1 = fmul (term1,p)' />
							<exp exp='term1 = fdiv (term1,6)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 5 and divide by 120' />
							<exp exp='term2 = fmul (p,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fdiv (term2,120)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 7  and divide by 5040' />
							<exp exp='term3 = fmul (p,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fdiv (term3,5040)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 9  and divide by 362880' />
							<exp exp='term4 = fmul (p,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fdiv (term4,362880)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 11  and divide by 39916800' />
							<exp exp='term5 = fmul (p,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fdiv (term5,39916800)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// p - term1 + term2 - term3 + term4 - term5' />
							<exp exp='term1 = fsub (p,term1)' />
							<exp exp='term1 = fadd (term1,term2)' />
							<exp exp='term1 = fsub (term1,term3)' />
							<exp exp='term1 = fadd (term1,term4)' />
							<exp exp='.Return = fsub (term1,term5)' />
						</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='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<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_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' 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_dspic1' 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='rtc1' macro='SetDate' >
												<argument exp='DateStr' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Time_Trick' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='CountTick = CountTick + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='CountTick &lt; 1068.115' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='CountTick = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='arcsine' description='' >
						<return name='Return' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='arc_theta' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Convert angle to radians' />
							<exp exp='p = .arc_theta' />
						</command>
						<command class_type='comment' title='' comment='arcsinx=x+(x^3)/6 +3(x^5)/40 + 15(x^7)/336 +105(x^9)/3456 +945(x^11)/42240 + .......' textarea='12,0,1548,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 3 and divide by 6' />
							<exp exp='term1 = fmul (p,p)' />
							<exp exp='term1 = fmul (term1,p)' />
							<exp exp='term1 = fdiv (term1,6)' />
						</command>
						<command class_type='calculation' title='8' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 5 multiply by 3 and divide by 120' />
							<exp exp='term2 = fmul (p,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (3,term2)' />
							<exp exp='term2 = fdiv (term2,40)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 7 multiply by 15 and divide by 336' />
							<exp exp='term3 = fmul (p,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (15,term3)' />
							<exp exp='term3 = fdiv (term3,336)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 9 multiply by 105 and divide by 3456' />
							<exp exp='term4 = fmul (p,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (105,term4)' />
							<exp exp='term4 = fdiv (term4,3456)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 11 multiply by 945 and divide by 42240' />
							<exp exp='term5 = fmul (p,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (945,term5)' />
							<exp exp='term5 = fdiv (term5,42240)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// p + term1 + term2 + term3 + term4 + term5' />
							<exp exp='term1 = fadd (p,term1)' />
							<exp exp='term1 = fadd (term1,term2)' />
							<exp exp='term1 = fadd (term1,term3)' />
							<exp exp='term1 = fadd (term1,term4)' />
							<exp exp='.Return = fadd (term1,term5)' />
						</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='GetKey != 255' start='0' >
							<flowline >
								<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='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='' />
						<local name='reset_display' type='u16' description='' isconst='0' isinit='1' usrinit='1' setinit='true' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='//User: Serial EEPROM (24C32)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayStart' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,0' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// constants' />
							<exp exp='twopi = 2 * pi' />
							<exp exp='deg2rad = pi / 180' />
							<exp exp='rad2deg = 180 / pi' />
							<exp exp='//HOUR = 15' />
							<exp exp='//MINUTE = 12' />
							<exp exp='//SECOND = 0' />
							<exp exp='//DAYS = 21' />
							<exp exp='//MONTH = 02' />
							<exp exp='//YEAR = 2019' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,0' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Put your latitude and longitude below' />
							<exp exp='lat = 55.121612' />
							<exp exp='long = -10.512711' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Enable = 1' />
							<exp exp='SetFlag = 1' />
						</command>
						<command class_type='interrupt' title='Interrupt' disable='1' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR1' call='Time_Trick' >
							<settings timer='1' prescale='1' postscale='-1' rollover='65536' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='65536' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<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='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='serial_eeprom1' macro='Read' >
									<return exp='Sun_Elevation' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='serial_eeprom1' macro='Read' >
									<return exp='Sun_Azimuth' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='SetFlag = 0' />
								</command>
								<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='PrintString' >
									<argument exp='&quot;F1 Set time\n&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;     SunTracker&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;\n\n\nF2 Set date&quot;' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='GetKey' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='Key &lt;&gt; 8' 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='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='rtc1' macro='GetTime' >
											<return exp='TimeStr' />
										</command>
										<command class_type='call' title='Call Macro' disable='1' 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='rtc1' macro='GetDate' >
											<return exp='DateStr' />
										</command>
										<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DisplayDate' >
											<argument exp='3' />
										</command>
										<command class_type='calculation' title='Calculation for convert' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempStr[0] = TimeStr[0]' />
											<exp exp='TempStr[1] = TimeStr[1]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='Hours = StringToInt$ (TempStr)' />
											<exp exp='' />
											<exp exp='TempStr[0] = TimeStr[2]' />
											<exp exp='TempStr[1] = TimeStr[3]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='MINUTE = StringToInt$ (TempStr)' />
											<exp exp='' />
											<exp exp='TempStr[0] = TimeStr[4]' />
											<exp exp='TempStr[1] = TimeStr[5]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='SECOND = StringToInt$ (TempStr)' />
											<exp exp='' />
											<exp exp='//-------------------------------------' />
											<exp exp='' />
											<exp exp='TempStr[0] = DateStr[0]' />
											<exp exp='TempStr[1] = DateStr[1]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='DAYS = StringToInt$ (TempStr)' />
											<exp exp='' />
											<exp exp='TempStr[0] = DateStr[2]' />
											<exp exp='TempStr[1] = DateStr[3]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='MONTH = StringToInt$ (TempStr)' />
											<exp exp='' />
											<exp exp='TempStr[0] = DateStr[4]' />
											<exp exp='TempStr[1] = DateStr[5]' />
											<exp exp='TempStr[2] = 0' />
											<exp exp='YEAR = StringToInt$ (TempStr)' />
										</command>
										<command class_type='call' title='Call Macro' ccode='//Call Macro
//Call Macro: Solar_position()
FCM_Solar_position();
' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Solar_position' />
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='el = int2float (Sun_Elevation)' />
											<exp exp='az = int2float (Sun_Azimuth)' />
										</command>
										<command class_type='call' title='Print  Elevation Azimuth' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Display_On_OFF' />
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='serial_eeprom1' macro='Write' >
											<argument exp='0' />
											<argument exp='Sun_Elevation' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='serial_eeprom1' macro='Write' >
											<argument exp='1' />
											<argument exp='Sun_Azimuth' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='cosine' description='' >
						<return name='Return' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='deg' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='calculation' title='Calculation' ccode='//Calculation
//Calculation:
//  // Enter angle in degrees
//  deg = 89
//  deg = deg - 360 * (deg &gt;= 180)
//  rad = 0.0174532925 // (pi/180)
//  // Convert angle to radians
//  p = fmul (deg,rad)
FCV_DEG = 89;
FCV_DEG = flt_sub(FCV_DEG, flt_fromi(360 * (flt_ge(FCV_DEG, 180))));
FCV_RAD = 0.0174532925;
FCV_P = flt_mul(FCV_DEG, FCV_RAD);
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Angle in radians' />
							<exp exp='p = .deg - twopi * (.deg &gt; pi)' />
						</command>
						<command class_type='comment' title='' comment='cosx=1-(x^2)/2! +(x^4)/4! - (x^6)/6! +(x^8)/8! -(x^10)/10! + .......' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise P to the power 2 and divide by 2' />
							<exp exp='term1 = fmul (p,p)' />
							<exp exp='term1 = fdiv (term1,2)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 4 and divide by 24' />
							<exp exp='term2 = fmul (p,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fmul (term2,p)' />
							<exp exp='term2 = fdiv (term2,24)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 6 and divide by 720' />
							<exp exp='term3 = fmul (p,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fmul (term3,p)' />
							<exp exp='term3 = fdiv (term3,720)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 8 and divide by 40320' />
							<exp exp='term4 = fmul (p,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fmul (term4,p)' />
							<exp exp='term4 = fdiv (term4,40320)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// Raise p to the power 10  and divide by 3628800' />
							<exp exp='term5 = fmul (p,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fmul (term5,p)' />
							<exp exp='term5 = fdiv (term5,3628800)' />
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='// 1 - term1 + term2 - term3 + temr4 - term5' />
							<exp exp='term1 = fsub (1,term1)' />
							<exp exp='term1 = fadd (term1,term2)' />
							<exp exp='term1 = fsub (term1,term3)' />
							<exp exp='term1 = fadd (term1,term4)' />
							<exp exp='.Return = fsub (term1,term5)' />
						</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='108.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='16' />
					<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='rtc1' x='-32.6897' y='118.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 class_type='ref' guid='35934f36-5cda-49e7-b1a0-05c85722d858' vmin='2' vmaj='2' codename='serial_eeprom1' x='-40' y='70' z='0' xsz='7.92' ysz='9.39061' zsz='6.65' 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='DEVICE_ADDRESS' data='0' />
					<value target='cal_i2c1::CHANNEL' data='2' />
					<value target='cal_i2c1::BAUD_LIST' data='002' />
					<value target='cal_i2c1::BAUD' data='400000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::SDA' data='' />
					<value target='cal_i2c1::SDAPins' data='000' />
					<value target='cal_i2c1::SCL' data='' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='cal_i2c1::ScopeTraces' data='0' />
					<value target='cal_i2c1::ConsoleData' 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='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='-84.6361' ye='98.7877' ze='260.237' xt='-84.6361' yt='98.7877' 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---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='75' scrollx='0' scrolly='1320' flags='0' />
		<view type='0' name='Display_On_OFF' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Time_Trick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Solar_position' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA.wQAAFIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
