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

MX_FloatUnion FloatUnion;
' body='' />
	<debug >
		<watch expr='PulsIn' />
		<watch expr='PulsInPrevious' />
		<watch expr='PulsCount' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='4095' />
			<data name='ClockPin' value='0' />
			<data name='DataPort' value='4095' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='2' />
			<data name='CalculatedCommsDelay' value='2' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='MONTH' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GetKey' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsOVCounter' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HOUR_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FloatFiktGrader' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_Up_Down_EndeStop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrackingPeriode' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='the2' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PinChange' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='the1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Helttal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Induktive_sensorer_EndeStop' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Fiktgrader' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_Ost' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsGrader' type='u16' description='' isconst='0' isinit='1' usrinit='125' setinit='125' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pi' type='f32' description='' isconst='0' isinit='1' usrinit='3.1415929999999998578630311385495588183403' setinit='3.14159265' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sun_Elevation' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Volt' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Hours' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SECOND' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DanskNormalTid' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lat' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mnanom' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='freq' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AzStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ha' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update_Anemometer' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsIn' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='REAL_YEAR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='deg2rad' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Up_Down_EndeStop' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Oneshoot_OV' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rad2deg' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsCount' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimeStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsIND' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Enable' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SetFlag' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OstPulsIn' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Tick' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AZ_STR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MaxWindspeed' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='twopi' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OvGrader' type='u8' description='' isconst='0' isinit='1' usrinit='20' setinit='20' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lat_new' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='el' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DAYS' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DateStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MilliVolt' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Donelt' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='YEAR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dec' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Decimaltal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsOst' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ra' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lmst' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='az' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LDR' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='current_time' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsWest' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ost_West_EndeStop' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Manuel_Reset_EndeStop' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='neg_pi' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mnlong' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sun_Azimuth' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='num' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='leap' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MINUTE' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='gmst' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EL_STR_2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_vest' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Fiktdisp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MIN_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='p' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='delta' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='delta_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EL_STR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulsInPrevious' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term5' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='eclong' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='arcsine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term4' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='oblqec' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='elc' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='freqOld' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term3' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term2' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AZ_STR_2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WestPulsIn' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='term1' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SEC_FP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MaxDecimal' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='current_date' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cosine' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='long' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='arc_theta' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='time' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='GetDateString' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='date' type='b1' description='Pass true to get a date string DDMMYY false for time HHMMSS' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='current' type='T8' description='Current date or time in DDMMYY or HHMMSS format' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</param>
						<local name='max_value' type='T8' description='Holds the maximum digit at any position (Hrs !&gt; 2 day !&gt; 31)' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='res' type='T8' description='Final result string' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='x' type='u8' description='Current digit being edited in string' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='done' type='b1' description='Set to true when user presses done key (or cancel)' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='hide' type='u16' description='Hide current char for flashing cursor' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='key' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mx' type='u8' description='Maximum HHMMSS values' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='value' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cancel' type='b1' description='Has the user pressed cancel?' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST DATE&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DDMMYY&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 31' />
									<exp exp='.mx[1] = 12' />
									<exp exp='.mx[2] = 99' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST TIME&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;HHMMSS&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 23' />
									<exp exp='.mx[1] = 59' />
									<exp exp='.mx[2] = 59' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='0' />
							<argument exp='4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;OK set F3 Cancel&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.res = .current' />
							<exp exp='.x = 0 // Current char being edited' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='.done OR .cancel' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='.key' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='.res' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.hide' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='.x + 3' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;  &quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = false' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = true' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.value = (.res[.x] - &apos;0&apos;) * 10' />
									<exp exp='.value = .value + (.res[.x + 1] - &apos;0&apos;)' />
								</command>
								<command class_type='switch' title='Action key press' textarea='36,209,36,209' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.key' >
									<case >
										<flowline />
									</case>
									<case exp='3 // Down arrow' >
										<flowline >
											<command class_type='decision' title='Can we decrement value' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &gt; 0 OR (.date &amp; .value &gt; 1)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value - 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='4 // OK' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.done = true' />
											</command>
										</flowline>
									</case>
									<case exp='5 //Up arrow' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &lt; .mx[.x / 2]' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value + 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='1 // Left' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x - 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='7 // Right' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &lt; 4' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x + 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='8 // Cancel Key' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.cancel = true' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.done' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='14' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;20&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetDate' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the date here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetTime' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the time here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='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>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</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>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</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='Tracking' description='Tracking
Run mod Vest' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Return' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<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='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='Sun_Azimuth &gt;= PulsWest' start='0' >
							<flowline >
								<command class_type='calculation' title='Beregning' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Flag_vest = 1' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Pulser_O_N_O_V' />
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
									<argument exp='PulsWest' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsWest &lt; Sun_Azimuth' swap='1' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='StartForwards' />
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
											<argument exp='PulsWest' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='0' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;Tracking! &quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
											<argument exp='MINUTE' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='Stop' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Flag_vest = 0' />
							<exp exp='Donelt = 1' />
							<exp exp='.Return = PulsWest' />
						</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='Test2' description='Test2' >
						<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='1' >
							<flowline >
								<command class_type='decision' title='West' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Flag_vest = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Vest
' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
										<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
											<return exp='PulsIn' />
											<argument exp='7' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsIn != PulsInPrevious' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='PulsInPrevious = PulsIn' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsIn = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='PulsIn = 0' />
															<exp exp='PulsGrader = PulsGrader + 1' />
															<exp exp='Fiktgrader = PulsGrader + 125' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
															<argument exp='PulsGrader' />
														</command>
														<command class_type='calculation' title='Streng Håndtering' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='Fiktdisp = ToString$ (Fiktgrader)' />
														</command>
														<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='11' />
															<argument exp='4' />
														</command>
														<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
															<argument exp='&quot;    &quot;' />
														</command>
														<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='11' />
															<argument exp='4' />
														</command>
														<command class_type='call' title='Kald Komponent Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
															<argument exp='Fiktdisp' />
														</command>
														<command class_type='call' title='Print custom character' textarea='36,0,511,300' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
															<argument exp='0' />
														</command>
														<command class_type='delay' title='Delay' disable='1' cmdcolor='12632064' cmdcolor_sec='16769676' exp='30' type='2' />
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsGrader = 150' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='PulsGrader = 0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
																	<argument exp='0' />
																	<argument exp='1' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
																	<argument exp='&quot;   &quot;' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='PulsIn = PulsIn + 1' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Beregning' textarea='36,0,511,300' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Flag_vest = 0' />
										</command>
										<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='PulsIn = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='WestPulser' description='Pulser fra motorene  West' >
						<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='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Flag_vest = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
											<return exp='WestPulsIn' />
											<argument exp='7' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='WestPulsIn != PulsInPrevious' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='PulsInPrevious = WestPulsIn' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='WestPulsIn = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='PulsWest = PulsWest + 1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
															<argument exp='&quot;West: &quot;' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
															<argument exp='PulsWest' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsWest = 200' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='PulsWest = 0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
																	<argument exp='6' />
																	<argument exp='1' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
																	<argument exp='&quot;   &quot;' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Up_Down_EndeStop' 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='Up_Down_EndeStop = 1' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TvangRunOstWest' description='Automotive Controller PLC type module based on a PIC18F4455' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
							<return exp='Induktive_sensorer_EndeStop' />
							<argument exp='2' />
						</command>
						<command class_type='decision' title='Beslutning' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Induktive_sensorer_EndeStop' swap='0' >
							<flowline >
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Endestop aktiv!     &quot;' />
								</command>
								<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
									<return exp='Manuel_Reset_EndeStop' />
									<argument exp='8' />
								</command>
								<command class_type='decision' title='Beslutning' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Manuel_Reset_EndeStop = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Manuel_Reset_EndeStop = 0' />
											<exp exp='Ost_West_EndeStop = 0' />
											<exp exp='Up_Down_EndeStop = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GetKey = 9' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='Stop' />
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible2' macro='Stop' />
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
											<argument exp='1' />
										</command>
										<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
											<argument exp='2' />
										</command>
										<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
											<argument exp='3' />
										</command>
										<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
											<argument exp='4' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
								</command>
								<command class_type='loop' title='Make sure I8 is low' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='Manuel_Reset_EndeStop' start='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
											<return exp='Manuel_Reset_EndeStop' />
											<argument exp='8' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='2' />
								</command>
								<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Manuel_Reset_EndeStop = 0' />
									<exp exp='Induktive_sensorer_EndeStop = 0' />
								</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='switch' title='Switch' textarea='36,102,36,102' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GetKey' >
									<case >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible2' macro='StartForwards' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='Stop' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible2' macro='Stop' />
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='0' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot;                    &quot;' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
												<argument exp='1' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
												<argument exp='2' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
												<argument exp='3' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='OutputOFF' >
												<argument exp='4' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='comment' title='' comment='RUN West' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
												<return exp='LDR' />
												<argument exp='3' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='LDR = (LDR + 4) / 8' />
												<exp exp='Volt = LDR / 10' />
												<exp exp='MilliVolt = LDR % 10' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='0' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot;West:&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='StartForwards' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='6' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
												<argument exp='Volt' />
											</command>
											<command class_type='call' title='Call Component Macro' 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='PrintNumber' >
												<argument exp='MilliVolt' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot; Vdc&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='comment' title='' comment='RUN Ost' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
												<return exp='LDR' />
												<argument exp='4' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='LDR = (LDR + 4) / 8' />
												<exp exp='Volt = LDR / 10' />
												<exp exp='MilliVolt = LDR % 10' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='0' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot;Ost:&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='StartReverse' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='5' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
												<argument exp='Volt' />
											</command>
											<command class_type='call' title='Call Component Macro' 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='PrintNumber' >
												<argument exp='MilliVolt' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot; Vdc&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='comment' title='' comment='RUN Down' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
												<return exp='LDR' />
												<argument exp='5' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='LDR = (LDR + 4) / 8' />
												<exp exp='Volt = LDR / 10' />
												<exp exp='MilliVolt = LDR % 10' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='0' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot;Down:&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible2' macro='StartReverse' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='6' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
												<argument exp='Volt' />
											</command>
											<command class_type='call' title='Call Component Macro' 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='PrintNumber' >
												<argument exp='MilliVolt' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot; Vdc&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='comment' title='' comment='RUN Up' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
												<return exp='LDR' />
												<argument exp='6' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='LDR = (LDR + 4) / 8' />
												<exp exp='Volt = LDR / 10' />
												<exp exp='MilliVolt = LDR % 10' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='0' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot;Up:&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible2' macro='StartForwards' />
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
												<argument exp='4' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
												<argument exp='Volt' />
											</command>
											<command class_type='call' title='Call Component Macro' 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='PrintNumber' >
												<argument exp='MilliVolt' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
												<argument exp='&quot; Vdc&quot;' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Beregning' textarea='69,-12,69,-12' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Ost_West_EndeStop = 0' />
							<exp exp='Up_Down_EndeStop = 0' />
							<exp exp='' />
							<exp exp='' />
						</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='el = el * 0.52 //0.76' />
							<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='az = az * 0.925' />
							<exp exp='Sun_Azimuth = float2int (az) //EEPROM' />
							<exp exp='AZ_STR = FloatToString$ (az)' />
							<exp exp='AZ_STR_2 = FloatToString$ (az)' />
						</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>
				</macro>
				<macro >
					<flowline name='DisplayDate' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='line' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='set the cursor position' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='6' />
							<argument exp='.line' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[0]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[1]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='&apos;-&apos;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[2]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[3]' />
						</command>
						<command class_type='call' title='print the : character ' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='&apos;-&apos;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;20&quot;' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[4]' />
						</command>
						<command class_type='call' title='print a character from the str array' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='DateStr[5]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintTime' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='seperator' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='.x' />
							<argument exp='.y' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.t1 = Left$ (.data,2)' />
							<exp exp='.t2 = Mid$ (.data,2,2)' />
							<exp exp='.t3 = Right$ (.data,2)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t3' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Anemomenter' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Increment Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='//INT1 REMAP til RB0 (I1 på dspMIAC)' />
							<exp exp='freq = freq + 1' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ost_West_Endestop' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Ost_West_EndeStop = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadADCvalueLDR' description='ReadADCvalueLDR' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='GetKey = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputANALOG_10Bit' >
							<return exp='LDR' />
							<argument exp='3' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='LDR = (LDR + 4) / 8' />
							<exp exp='Volt = LDR / 10' />
							<exp exp='MilliVolt = LDR % 10' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;West: &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
							<argument exp='Volt' />
						</command>
						<command class_type='call' title='Call Component Macro' 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='PrintNumber' >
							<argument exp='MilliVolt' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot; &quot;' />
						</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='UpdatSolarPosition' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='GetTime' >
							<return exp='current_time' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='GetDate' >
							<return exp='current_date' />
						</command>
						<command class_type='calculation' title='Calculation for convert' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='TempStr[0] = current_time[0]' />
							<exp exp='TempStr[1] = current_time[1]' />
							<exp exp='TempStr[2] = 0' />
							<exp exp='Hours = StringToInt$ (TempStr)' />
							<exp exp='' />
							<exp exp='TempStr[0] = current_time[2]' />
							<exp exp='TempStr[1] = current_time[3]' />
							<exp exp='TempStr[2] = 0' />
							<exp exp='MINUTE = StringToInt$ (TempStr)' />
							<exp exp='' />
							<exp exp='TempStr[0] = current_time[4]' />
							<exp exp='TempStr[1] = current_time[5]' />
							<exp exp='TempStr[2] = 0' />
							<exp exp='SECOND = StringToInt$ (TempStr)' />
							<exp exp='' />
							<exp exp='//-------------------------------------' />
							<exp exp='' />
							<exp exp='TempStr[0] = current_date[0]' />
							<exp exp='TempStr[1] = current_date[1]' />
							<exp exp='TempStr[2] = 0' />
							<exp exp='DAYS = StringToInt$ (TempStr)' />
							<exp exp='' />
							<exp exp='TempStr[0] = current_date[2]' />
							<exp exp='TempStr[1] = current_date[3]' />
							<exp exp='TempStr[2] = 0' />
							<exp exp='MONTH = StringToInt$ (TempStr)' />
							<exp exp='' />
							<exp exp='TempStr[0] = current_date[4]' />
							<exp exp='TempStr[1] = current_date[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>
					</flowline>
				</macro>
				<macro >
					<flowline name='Vindmaaler' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Wind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;Wind:&quot;' />
						</command>
						<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='6' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Helttal = freq / 10' />
							<exp exp='Decimaltal = (freq MOD 10)' />
						</command>
						<command class_type='call' title='Tiere' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
							<argument exp='Helttal' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;.&quot;' />
						</command>
						<command class_type='call' title='Enere' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
							<argument exp='Decimaltal' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;m/s &quot;' />
						</command>
						<command class_type='decision' title='Beslutning' cmdcolor='12615680' cmdcolor_sec='15376912' exp='freq &gt;= freqOld' swap='0' >
							<flowline >
								<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='freqOld = freq' />
								</command>
								<command class_type='calculation' title='Beregning' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='MaxWindspeed = freqOld / 10' />
									<exp exp='MaxDecimal = (freqOld MOD 10)' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='14' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
									<argument exp='MaxWindspeed' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;.&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
									<argument exp='MaxDecimal' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;  &quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='DanskNormalTid = 23' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='MaxWindspeed = 0' />
									<exp exp='MaxDecimal = 0' />
									<exp exp='Decimaltal = 0' />
									<exp exp='Helttal = 0' />
									<exp exp='freq = 0' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='14' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;      &quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Helttal = 0' />
							<exp exp='Decimaltal = 0' />
							<exp exp='freq = 0' />
							<exp exp='Update_Anemometer = 0' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetTimeString' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='date' type='b1' description='Pass true to get a date string DDMMYY false for time HHMMSS' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='current' type='T8' description='Current date or time in DDMMYY or HHMMSS format' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</param>
						<local name='max_value' type='T8' description='Holds the maximum digit at any position (Hrs !&gt; 2 day !&gt; 31)' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='res' type='T8' description='Final result string' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='x' type='u8' description='Current digit being edited in string' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='done' type='b1' description='Set to true when user presses done key (or cancel)' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='hide' type='u16' description='Hide current char for flashing cursor' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<local name='key' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mx' type='u8' description='Maximum HHMMSS values' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='value' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cancel' type='b1' description='Has the user pressed cancel?' isconst='0' isinit='1' usrinit='0' setinit='false' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST DATE&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;DDMMYY&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 31' />
									<exp exp='.mx[1] = 12' />
									<exp exp='.mx[2] = 99' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;ADJUST TIME&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;HHMMSS&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.mx[0] = 23' />
									<exp exp='.mx[1] = 59' />
									<exp exp='.mx[2] = 59' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.res = .current' />
							<exp exp='.x = 0 // Current char being edited' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='.done OR .cancel' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='GetKeypad' >
									<return exp='.key' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='3' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='.res' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.hide' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='.x + 3' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;  &quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = false' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.hide = true' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.value = (.res[.x] - &apos;0&apos;) * 10' />
									<exp exp='.value = .value + (.res[.x + 1] - &apos;0&apos;)' />
								</command>
								<command class_type='switch' title='Action key press' textarea='36,209,36,209' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.key' >
									<case >
										<flowline />
									</case>
									<case exp='3 // Down arrow' >
										<flowline >
											<command class_type='decision' title='Can we decrement value' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &gt; 0 OR (.date &amp; .value &gt; 1)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value - 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='4 // OK' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.done = true' />
											</command>
										</flowline>
									</case>
									<case exp='5 //Up arrow' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.value &lt; .mx[.x / 2]' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.value = .value + 1' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.res[.x] = .value / 10 + &apos;0&apos;' />
														<exp exp='.res[.x + 1] = .value % 10 + &apos;0&apos;' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='1 // Left' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x - 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='7 // Right' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.x &lt; 4' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='.x = .x + 2' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='8 // Cancel Key' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.cancel = true' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.done' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.date' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='14' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;20&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetDate' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the date here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='rtc1' macro='SetTime' >
											<argument exp='.res' />
										</command>
										<command class_type='comment' title='' comment='Set the time here' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='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='Tick = Tick + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Tick = 1068.115' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Tick = 0' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Increment Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Update_Anemometer = 1' />
									<exp exp='TrackingPeriode = TrackingPeriode + 1' />
								</command>
								<command class_type='native' title='C Code' ccode='TMR1=0;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintDate' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='seperator' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='t3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
							<argument exp='.x' />
							<argument exp='.y' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.t1 = Left$ (.data,2)' />
							<exp exp='.t2 = Mid$ (.data,2,2)' />
							<exp exp='.t3 = Right$ (.data,2)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
							<argument exp='.seperator' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='&quot;20&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
							<argument exp='.t3' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='OstPulser' description='Pulser fra motorene Ost' >
						<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='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Flag_Ost = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
											<return exp='OstPulsIn' />
											<argument exp='6' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='OstPulsIn != PulsInPrevious' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='PulsInPrevious = OstPulsIn' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='OstPulsIn = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='PulsOst = PulsOst + 1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='0' />
															<argument exp='1' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
															<argument exp='&quot;Ost: &quot;' />
														</command>
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
															<argument exp='PulsOst' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsOst = 200' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='PulsOst = 0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
																	<argument exp='5' />
																	<argument exp='1' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
																	<argument exp='&quot;   &quot;' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</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='Wind_Speed_Updat' 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='//INT1 REMAP til RB1 (I2 på dspMIAC)' />
							<exp exp='freq = freq + 1' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ExecutarUumloop' description='' >
						<return name='Return' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='FiktGrader = 176' />
						</command>
						<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
							<return exp='Fiktgrader' />
							<argument exp='7' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Fiktgrader = Fiktgrader + 1' />
						</command>
						<command class_type='loop' title='executar um loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='az = FloatFiktGrader' start='0' >
							<flowline >
								<command class_type='calculation' title='Input Fiktgrader' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='FloatFiktGrader = int2float (Fiktgrader)' />
									<exp exp='Fiktdisp = FloatToString$ (FloatFiktGrader)' />
								</command>
								<command class_type='calculation' title='Test AZ = 182' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='//az = 138' />
									<exp exp='FloatFiktGrader = int2float (Fiktgrader)' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='&quot;Fiktgrader: &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='Fiktdisp' />
								</command>
								<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
									<argument exp='11' />
									<argument exp='4' />
								</command>
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='AzStr = ToString$ (az)' />
								</command>
								<command class_type='call' title='Kald Komponent Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
									<argument exp='AzStr' />
								</command>
								<command class_type='decision' title='Hvis FloatFiktGrader er mindre er end AZ' cmdcolor='12615680' cmdcolor_sec='15376912' exp='FloatFiktGrader &lt; az' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='StartForwards' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='Stop' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Return = Fiktgrader //FloatFiktGrader' />
						</command>
						<command class_type='delay' title='Delay' disable='1' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Pulser_O_N_O_V' description='Pulser fra motorene  Ost / West' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Flag_Ost = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
									<return exp='OstPulsIn' />
									<argument exp='6' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='OstPulsIn != PulsInPrevious' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='PulsInPrevious = OstPulsIn' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='OstPulsIn = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='PulsOst = PulsOst + 1' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;Ost: &quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintNumber' >
													<argument exp='PulsOst' />
												</command>
												<command class_type='decision' title='Decision' disable='1' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PulsOst = 200' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='PulsOst = 0' />
														</command>
														<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
															<argument exp='5' />
															<argument exp='1' />
														</command>
														<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
															<argument exp='&quot;   &quot;' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Beregning' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Flag_Ost = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Flag_vest = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Vest puls ind' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='InputDIGITAL' >
											<return exp='WestPulsIn' />
											<argument exp='7' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='WestPulsIn != PulsInPrevious' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='PulsInPrevious = WestPulsIn' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='WestPulsIn = 1' swap='0' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='WestPulsIn = 1' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='Fiktgrader = PulsWest + 1' />
																	<exp exp='//PulsWest = 0' />
																</command>
																<command class_type='calculation' title='Streng Håndtering' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='Fiktdisp = ToString$ (Fiktgrader)' />
																</command>
																<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
																	<argument exp='11' />
																	<argument exp='2' />
																</command>
																<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
																	<argument exp='&quot;    &quot;' />
																</command>
																<command class_type='call' title='Kald Komponent Macro' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayCursor' >
																	<argument exp='11' />
																	<argument exp='2' />
																</command>
																<command class_type='call' title='Kald Komponent Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintString' >
																	<argument exp='Fiktdisp' />
																</command>
																<command class_type='call' title='Print custom character' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='PrintASCII' >
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Beregning' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Flag_vest = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='10-07-2019' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='reset_display' type='u16' description='' isconst='0' isinit='1' usrinit='1' setinit='true' />
						<local name='current_date' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='current_time' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='miac_dspic1' macro='DisplayStart' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Flag_vest = 1' />
							<exp exp='Flag_Ost = 1' />
						</command>
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='OstPulser' />
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Test2' />
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='WestPulser' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='//User: Serial EEPROM (24C32)' />
							<exp exp='//I1 INT1 REMAP til RB0 Anemometer' />
							<exp exp='//I2 Induktive_sensorer_EndeStop' />
							<exp exp='//I3 LDR West' />
							<exp exp='//I4 LDR Øst' />
							<exp exp='//I5 LDR Down' />
							<exp exp='//I6 LDR Up' />
							<exp exp='//I6 OstPulsIn' />
							<exp exp='//I7 WestPulsIn' />
							<exp exp='//I8 Manuel_Reset_EndeStop' />
						</command>
						<command class_type='calculation' title=' Cordinates' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='LAT = 55.121522853078424' />
							<exp exp='LONG = 10.512693524360657' />
						</command>
						<command class_type='call' title='Set Duty Cycle to 50%' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle10Bit' >
							<argument exp='7000' />
						</command>
						<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='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='MaxWindspeed = 0' />
							<exp exp='MaxWindspeed = 0' />
							<exp exp='MaxDecimal = 0' />
							<exp exp='Helttal = 0' />
							<exp exp='Decimaltal = 0' />
							<exp exp='freq = 0' />
							<exp exp='Update_Anemometer = 0' />
							<exp exp='Donelt = 1' />
							<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' />
							<exp exp='' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR1' call='Time_Trick' >
							<settings timer='1' prescale='64' postscale='-1' rollover='21875' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='2' />
								<option value='21875' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt Windspeed' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT1' call='Anemomenter' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt_Up_Down_EndeStop' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR2' call='Up_Down_EndeStop' >
							<settings timer='1' prescale='1' postscale='-1' rollover='0' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt Ost_West_EndeStop' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT0' call='Ost_West_Endestop' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='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='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Update_Anemometer = 1' swap='0' >
									<flowline >
										<command class_type='call' title='INT1 REMAP tol RB0 ( I1 on dspMIAC)' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Vindmaaler' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='TvangRunOstWest' />
								<command class_type='call' title='Call MacroTest' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ReadADCvalueLDR' />
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='SetFlag' swap='0' >
									<flowline folded='1' >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' hiddenFromFold='1' >
											<exp exp='SetFlag = 0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayClear' />
										<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' hiddenFromFold='1' type='0' exp='GetKey &lt;&gt; 8' start='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayCursor' >
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;F1/F2 set Time/Date&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' 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' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;OK set F3 Cancel&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='GetKeypad' >
													<return exp='GetKey' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='rtc1' macro='GetDate' >
													<return exp='current_date' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='rtc1' macro='GetTime' >
													<return exp='current_time' />
												</command>
												<command class_type='switch' title='F1 to set Time F2 to set Date' textarea='36,220,36,220' cmdcolor='12615680' cmdcolor_sec='15376912' hiddenFromFold='1' exp='GetKey' >
													<case >
														<flowline />
													</case>
													<case exp='0 // F2 pressed' >
														<flowline >
															<command class_type='comment' title='' comment='F2 pressed' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' hiddenFromFold='1' />
															<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='GetDateString' >
																<argument exp='true' />
																<argument exp='current_date' />
															</command>
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' hiddenFromFold='1' >
																<exp exp='.reset_display = true' />
															</command>
														</flowline>
													</case>
													<case exp='2 // F1 pressed' >
														<flowline >
															<command class_type='comment' title='' comment='F1 pressed' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' hiddenFromFold='1' />
															<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='GetTimeString' >
																<argument exp='false' />
																<argument exp='current_time' />
															</command>
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' hiddenFromFold='1' >
																<exp exp='.reset_display = true' />
															</command>
														</flowline>
													</case>
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayCursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;Time is &quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='PrintTime' >
													<argument exp='8' />
													<argument exp='1' />
													<argument exp='current_time' />
													<argument exp='&apos;:&apos;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayCursor' >
													<argument exp='0' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
													<argument exp='&quot;Date is &quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='PrintDate' >
													<argument exp='8' />
													<argument exp='2' />
													<argument exp='current_date' />
													<argument exp='&apos;:&apos;' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' hiddenFromFold='1' exp='100' type='1' />
												<command class_type='call' title='Call Macro' ccode='//Call Macro
//Call Macro: Solar_position()
FCM_Solar_position();
' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='Solar_position' />
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' 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' hiddenFromFold='1' component='serial_eeprom1' macro='Write' >
													<argument exp='1' />
													<argument exp='Sun_Azimuth' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayClear' />
									</flowline>
									<flowline folded='1' >
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;Time is &quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='PrintTime' >
											<argument exp='8' />
											<argument exp='1' />
											<argument exp='current_time' />
											<argument exp='&apos;:&apos;' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='DisplayCursor' >
											<argument exp='0' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' component='miac_dspic1' macro='PrintString' >
											<argument exp='&quot;Date is &quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='PrintDate' >
											<argument exp='8' />
											<argument exp='2' />
											<argument exp='current_date' />
											<argument exp='&apos;:&apos;' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='UpdatSolarPosition' />
										<command class_type='call' title='Print  Elevation Azimuth' cmdcolor='1879295' cmdcolor_sec='5751039' hiddenFromFold='1' macro='Display_On_OFF' />
									</flowline>
								</command>
								<command class_type='decision' title='Tracking Periode' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TrackingPeriode % 5 = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Donelt = 0' swap='0' >
											<flowline >
												<command class_type='call' title='Tracking' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ExecutarUumloop' >
													<return exp='FiktGrader' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Tracking' >
													<argument exp='PulsWest' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='10' type='2' />
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='Donelt = 1' />
													<exp exp='TrackingPeriode = 0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='motor_reversible1' macro='Stop' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Donelt = 0' />
										</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='168.885' z='56.75' xsz='133' ysz='98.5' zsz='57.75' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='LCD_X' data='5' />
					<value target='LCD_Y' data='4' />
					<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='178.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='10' y='180' z='0' xsz='35.1' ysz='45.1954' zsz='30.315' 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='$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::ScopeTraces' data='0' />
					<value target='cal_i2c1::ConsoleData' data='0' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='3becc5a1-4034-45ca-b84f-d995c6cacdb2' vmin='2' vmaj='1' codename='motor_reversible1' x='-159.915' y='90' z='0' xsz='1.6' ysz='1.6' 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 >
					<value target='pinA' data='$PORTD.4' />
					<value target='pinB' data='$PORTD.5' />
					<value target='pattern_fwd' data='001' />
					<value target='pattern_rvs' data='002' />
					<value target='pattern_stop' data='000' />
					<value target='speed' data='250.000000' />
					<value target='acceleration' data='0.000000' />
					<value target='deceleration' data='0.000000' />
					<value target='show_actuator' data='1' />
					<value target='direction' data='000' />
					<value target='target_object' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='3becc5a1-4034-45ca-b84f-d995c6cacdb2' vmin='2' vmaj='1' codename='motor_reversible2' x='-159.915' y='25' z='0' xsz='1.6' ysz='1.6' 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 >
					<value target='pinA' data='$PORTD.7' />
					<value target='pinB' data='$PORTD.6' />
					<value target='pattern_fwd' data='001' />
					<value target='pattern_rvs' data='002' />
					<value target='pattern_stop' data='000' />
					<value target='speed' data='250.000000' />
					<value target='acceleration' data='0.000000' />
					<value target='deceleration' data='0.000000' />
					<value target='show_actuator' data='1' />
					<value target='direction' data='000' />
					<value target='target_object' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='-160' y='57.4575' z='0' xsz='1.64874' ysz='2.00813' zsz='7.275' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='MS Sans Serif' />
					<value target='Text' data='Ost or West' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='-158.989' y='-2.5425' z='0' xsz='1.64874' ysz='2.00813' zsz='7.275' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='MS Sans Serif' />
					<value target='Text' data='Up or Down' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM1' x='-70' y='90' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTF.1' />
					<value target='RemapPin' data='012' />
					<value target='timer' data='2' />
					<value target='period' data='255' />
					<value target='prescale' data='003' />
					<value target='period_calc' data='29.257143' />
					<value target='frequency_calc2' data='34179.687500' />
					<value target='frequency_calc' data='34.179688' />
					<value target='pwm_prescale' data='8' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='51' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='37.0666' ye='124.007' ze='603.05' xt='37.0666' yt='124.007' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='-63.6692' ye='95.1057' ze='609.077' xt='-63.6692' yt='95.1057' zt='85.6251' 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---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='55' scrollx='0' scrolly='2314' flags='0' />
		<view type='0' name='Time_Trick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Tracking' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Pulser_O_N_O_V' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='45' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ExecutarUumloop' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Up_Down_EndeStop' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TvangRunOstWest' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAcgMAAJYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
