<root>
<document schema='101' license='1,Monie Jacobsen,A663VK' title='' description='' target='AVR.ATMEGA.Arduino Mega 2560 R3' >
	<config data='' clkspd='16000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='1' head='typedef union
{
  MX_FLOAT AsFloat;
  MX_UINT8  AsByte[4];
} MX_FloatUnion;

MX_FloatUnion FloatUnion;

typedef union
{
  MX_FLOAT AsFloat;
  MX_UINT8  AsByte[4];
} MX_FloatUnion;

MX_FloatUnion FloatUnion2;' body='' />
	<debug >
		<watch expr='F0' />
		<watch expr='F1' />
		<watch expr='F2' />
		<watch expr='F3' />
		<watch expr='F4' />
		<watch expr='Lat' />
		<watch expr='LatOutputDiaplay' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='52961915-f825-4a49-a37c-0a7b33b0787d' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Lat' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F9' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F8' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F7' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F6' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F5' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='F0' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LongOutputDiaplay' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LatOutputDiaplay' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Long' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='EEPROM_READ' description='' >
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F2' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F3' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F4' />
							<argument exp='4' />
						</command>
						<command class_type='comment' title='' comment='Convert Bytes to Float' textarea='59,30,59,30' />
						<command class_type='native' title='Convert Bytes to Float' ccode='FloatUnion.AsByte[0] = FCV_F0;
FloatUnion.AsByte[1] = FCV_F1;
FloatUnion.AsByte[2] = FCV_F2;
FloatUnion.AsByte[3] = FCV_F3;
FloatUnion.AsByte[4] = FCV_F4;
FCV_LAT = FloatUnion.AsFloat;' language='C' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F5' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F6' />
							<argument exp='6' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F7' />
							<argument exp='7' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F8' />
							<argument exp='8' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='F9' />
							<argument exp='9' />
						</command>
						<command class_type='comment' title='' comment='Convert Bytes to Float' textarea='59,30,59,30' />
						<command class_type='native' title='Convert Bytes to Float' ccode='FloatUnion2.AsByte[5] = FCV_F5;
FloatUnion2.AsByte[6] = FCV_F6;
FloatUnion2.AsByte[7] = FCV_F7;
FloatUnion2.AsByte[8] = FCV_F8;
FloatUnion2.AsByte[9] = FCV_F9;
FCV_Long = FloatUnion2.AsFloat;' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='EEPROM_WRITE' description='' >
						<command class_type='comment' title='' comment='Convert Float Lat To Bytes' textarea='12,0,12,0' />
						<command class_type='native' title='Convert Float To Bytes' ccode='FloatUnion.AsFloat = FCV_LAT;
FCV_F0 = FloatUnion.AsByte[0];
FCV_F1 = FloatUnion.AsByte[1];
FCV_F2 = FloatUnion.AsByte[2];
FCV_F3 = FloatUnion.AsByte[3];
FCV_F4 = FloatUnion.AsByte[4];
' language='C' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='0' />
							<argument exp='F0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='1' />
							<argument exp='F1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='2' />
							<argument exp='F2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='3' />
							<argument exp='F3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='4' />
							<argument exp='F4' />
						</command>
						<command class_type='comment' title='' comment='Convert Float Long To Bytes' textarea='12,0,12,0' />
						<command class_type='native' title='Convert Float To Bytes' ccode='FloatUnion2.AsFloat = FCV_Long;
FCV_F5 = FloatUnion2.AsByte[5];
FCV_F6 = FloatUnion2.AsByte[6];
FCV_F7 = FloatUnion2.AsByte[7];
FCV_F8 = FloatUnion2.AsByte[8];
FCV_F9 = FloatUnion2.AsByte[9];
' language='C' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='5' />
							<argument exp='F5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='6' />
							<argument exp='F6' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='7' />
							<argument exp='F7' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='8' />
							<argument exp='F8' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='9' />
							<argument exp='F9' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Clear' />
						<command class_type='calculation' title='My Coordinats Float format' >
							<exp exp='Lat = 58.121566' />
							<exp exp='Long = 12.511286' />
						</command>
						<command class_type='call' title='Call Macro' macro='EEPROM_WRITE' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='EEPROM_READ' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='LatOutputDiaplay = FloatToString$ (Lat)' />
									<exp exp='LongOutputDiaplay = FloatToString$ (Long)' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
									<argument exp='LatOutputDiaplay' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
									<argument exp='LongOutputDiaplay' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='bcd6a955-12c6-4ed4-a22f-f16eb62e0762' vmin='1' vmaj='1' codename='lcd_I2C1' x='-16' y='14.15' z='0' xsz='2' ysz='1.5427' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Channel' data='000' />
					<value target='SDA' data='$PORTD.1' />
					<value target='SCL' data='$PORTD.0' />
					<value target='Address' data='32' />
					<value target='Rows' data='004' />
					<value target='Columns' data='020' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='-32' y='-32' z='0' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='4096 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='45' />
		<camera xe='0' ye='0' ze='250.156' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAjQQAAJsDAAA' zoom='75' scrollx='0' scrolly='99' flags='0' />
		<view type='0' name='EEPROM_READ' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAjQQAAJsDAAA' zoom='75' scrollx='0' scrolly='505' flags='0' />
		<view type='0' name='EEPROM_WRITE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAjQQAAJsDAAA' zoom='75' scrollx='0' scrolly='744' flags='0' />
	</layout>
</document>
</root>
