<root>
<document schema='101' license='1,JayDee,6TNVMV' title='' description='' target='PIC16.33E.ECIO40P16' >
	<config data='' clkspd='140000000' simspd='2' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='1000' />
			<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='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
			<data name='anlpres' value='19' />
			<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='0' head='' body='' />
	<debug />
	<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' 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 >
				<property name='Sim Model' target='SimModel' typeid='16' hidden='0' locked='0' info='' filter='0002nd Order
0013rd Order' />
				<property name='Second Order Coefficient' target='SndOrd' typeid='15' hidden='0' locked='0' info='' />
				<property name='Third Order Coefficient' target='TrdOrd' typeid='15' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='SimModel' data='001' />
				<value target='SndOrd' data='0.200000' />
				<value target='TrdOrd' data='0.400000' />
			</values>
			<events />
			<apis />
			<variables >
				<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='Control' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SecOrdSimVar' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrdOrdSimVar' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='trigger' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Feedback' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Setpoint' type='u8' description='' isconst='0' isinit='0' usrinit='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='gLCD_DrawFrame' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='TitleText' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='10' />
						</param>
						<command class_type='call' title='Call Component Macro' textarea='46,1,521,301' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='ClearDisplay' />
						<command class_type='call' title='Set Frame Colour' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Title Outer Border' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='1' />
							<argument exp='126' />
							<argument exp='18' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Title Inner Border' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='3' />
							<argument exp='3' />
							<argument exp='124' />
							<argument exp='16' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box1' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='20' />
							<argument exp='126' />
							<argument exp='35' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box 2' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='50' />
							<argument exp='126' />
							<argument exp='65' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box3' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='80' />
							<argument exp='126' />
							<argument exp='95' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box4' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='126' />
							<argument exp='125' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box5' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='140' />
							<argument exp='126' />
							<argument exp='155' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Box5' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='DrawRectangle' >
							<argument exp='1' />
							<argument exp='20' />
							<argument exp='126' />
							<argument exp='155' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Set Title Color' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.TitleText' />
							<argument exp='5' />
							<argument exp='6' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='gLCD_ValueText' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Text1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text4' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text5' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text6' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text7' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text8' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<param name='Text9' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='12' />
						</param>
						<command class_type='call' title='Set Value Text Color' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text1' />
							<argument exp='4' />
							<argument exp='24' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text2' />
							<argument exp='4' />
							<argument exp='39' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text3' />
							<argument exp='4' />
							<argument exp='54' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text4' />
							<argument exp='4' />
							<argument exp='69' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text5' />
							<argument exp='4' />
							<argument exp='84' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text6' />
							<argument exp='4' />
							<argument exp='99' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text7' />
							<argument exp='4' />
							<argument exp='114' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text8' />
							<argument exp='4' />
							<argument exp='129' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='.Text9' />
							<argument exp='4' />
							<argument exp='144' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Set Values Color' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='24' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='39' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='54' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='69' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='84' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='99' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=&quot;' />
							<argument exp='83' />
							<argument exp='114' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=      &quot;' />
							<argument exp='83' />
							<argument exp='129' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;=      &quot;' />
							<argument exp='83' />
							<argument exp='144' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SecondOrdCalc' description='Simulates a basic 2nd order system' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Get the current feedback reading' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Connection.GetAn' >
							<return exp='SecOrdSimVar' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculate 2nd Order System Response' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='SecOrdSimVar = ((1.0 - SndOrd) * SecOrdSimVar) + (SndOrd * (FLOAT Control / 255.0))' />
						</command>
						<command class_type='sim' title='Assign new feedback reading' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Connection.SetAn' >
							<argument exp='0' />
							<argument exp='SecOrdSimVar' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_tick' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Read Feedback ADC' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADCFeedback' macro='GetByte' >
							<return exp='Feedback' />
						</command>
						<command class_type='call' title='Send Feedback to Process Input Buffer' cmdcolor='1975743' cmdcolor_sec='1975743' component='DSPInput1' macro='AddAsByteTick' >
							<argument exp='Feedback' />
						</command>
						<command class_type='call' title='Read Setpoint ADC' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADCSetpoint' macro='GetByte' >
							<return exp='Setpoint' />
						</command>
						<command class_type='call' title='Send Setpoint to Process Input Buffer' cmdcolor='1975743' cmdcolor_sec='1975743' component='DSPControl1' macro='ProcessTick' >
							<argument exp='Setpoint' />
						</command>
						<command class_type='call' title='Read from DSP output buffer' cmdcolor='1975743' cmdcolor_sec='1975743' component='DSPOutput1' macro='ReadAsByteTick' >
							<return exp='Control' />
						</command>
						<command class_type='call' title='Assign to PWM duty' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM1' macro='SetDutyCycle' >
							<argument exp='Control' />
						</command>
						<command class_type='call' title='Perform DSP tick' cmdcolor='1975743' cmdcolor_sec='1975743' component='DSPSystem1' macro='TickAllBuffers' >
							<return exp='trigger' />
						</command>
						<command class_type='decision' title='Manuall Set to determine Simumlation Reaction Type (Sim Only)' cmdcolor='3568629' cmdcolor_sec='3568629' exp='SimModel = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='ThirdOrderCalc' />
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SecondOrdCalc' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ThirdOrderCalc' description='Simulates a basic 3rd order system' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Get the current feedback reading' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Connection.GetAn' >
							<return exp='SecOrdSimVar' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculate 2nd Order System Response' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='SecOrdSimVar = ((1.0 - SndOrd) * SecOrdSimVar) + (SndOrd * (FLOAT Control / 255.0))' />
						</command>
						<command class_type='calculation' title='Calculate 3rd Order System Response' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='TrdOrdSimVar = ((1.0 - TrdOrd) * TrdOrdSimVar) + (TrdOrd * SecOrdSimVar)' />
						</command>
						<command class_type='sim' title='Assign new feedback reading' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Connection.SetAn' >
							<argument exp='0' />
							<argument exp='TrdOrdSimVar' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='gLCD_UpdateNumbers' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Num1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num3' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num4' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num5' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num6' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num7' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num8' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Num9' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Set Values Color' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='24' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.Num1' />
							<argument exp='90' />
							<argument exp='24' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='39' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.Num2' />
							<argument exp='90' />
							<argument exp='39' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='54' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.Num3' />
							<argument exp='90' />
							<argument exp='54' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='69' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.Num4' />
							<argument exp='90' />
							<argument exp='69' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='84' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.num5' />
							<argument exp='90' />
							<argument exp='84' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='99' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.num6' />
							<argument exp='90' />
							<argument exp='99' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='114' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.num7' />
							<argument exp='90' />
							<argument exp='114' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='129' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.num8' />
							<argument exp='90' />
							<argument exp='129' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Print' >
							<argument exp='&quot;      &quot;' />
							<argument exp='90' />
							<argument exp='144' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='PrintNumber' >
							<argument exp='.num9' />
							<argument exp='90' />
							<argument exp='144' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='gLCD_EBM001' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='DSPSystem1' macro='Initialise' />
						<command class_type='call' title='Enable PWM Output' textarea='36,0,511,300' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM1' macro='Enable' />
						<command class_type='interrupt' title='Enable Timer Tick' textarea='36,0,511,300' cmdcolor='3610239' cmdcolor_sec='3610239' enable='1' name='TMR1' call='timer_tick' >
							<settings timer='1' prescale='64' postscale='-1' rollover='2048' bitcount='-1' trigger='3' maskhi='------------------8AAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='------------------8AAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='0' />
								<option value='2' />
								<option value='2048' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Draw Graphic Framework on Display' cmdcolor='1975743' cmdcolor_sec='1975743' macro='gLCD_DrawFrame' >
							<argument exp='&quot;PID Test&quot;' />
						</command>
						<command class_type='call' title='Write Value Names Text to Display' cmdcolor='1975743' cmdcolor_sec='1975743' macro='gLCD_ValueText' >
							<argument exp='&quot;Control&quot;' />
							<argument exp='&quot;Set Point&quot;' />
							<argument exp='&quot;Feedback&quot;' />
							<argument exp='&quot;&quot;' />
							<argument exp='&quot;&quot;' />
							<argument exp='&quot;&quot;' />
							<argument exp='&quot;&quot;' />
							<argument exp='&quot;&quot;' />
							<argument exp='&quot;&quot;' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Update Variable Values to Display' cmdcolor='1975743' cmdcolor_sec='1975743' macro='gLCD_UpdateNumbers' >
									<argument exp='Control' />
									<argument exp='SetPoint' />
									<argument exp='Feedback' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' cmdcolor='3568629' cmdcolor_sec='3568629' exp='trigger = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='trigger = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='917f243e-4102-4bee-9998-81f18bc6ca9d' vmin='2' vmaj='1' codename='DSPSystem1' x='-59.0007' y='29.4009' z='1.0112' xsz='32' ysz='32' zsz='1.14286' 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='buffer_count' data='002' />
					<value target='simple_mode' data='0' />
					<value target='DSPsystem_ID' data='1' />
					<value target='buff_a_name' data='Feedback' />
					<value target='buff_b_name' data='Control Signal' />
					<value target='buff_c_name' data='MyBuf3' />
					<value target='buff_d_name' data='MyBuf4' />
					<value target='buff_e_name' data='MyBuf5' />
					<value target='buff_f_name' data='MyBuf6' />
					<value target='buff_g_name' data='MyBuf7' />
					<value target='buff_h_name' data='MyBuf8' />
					<value target='buff_a_depth' data='001' />
					<value target='buff_a_sign' data='000' />
					<value target='buff_a_size' data='8' />
					<value target='buff_b_depth' data='001' />
					<value target='buff_b_sign' data='000' />
					<value target='buff_b_size' data='8' />
					<value target='buff_c_depth' data='001' />
					<value target='buff_c_sign' data='000' />
					<value target='buff_c_size' data='8' />
					<value target='buff_d_depth' data='001' />
					<value target='buff_d_sign' data='000' />
					<value target='buff_d_size' data='8' />
					<value target='buff_e_depth' data='001' />
					<value target='buff_e_sign' data='000' />
					<value target='buff_e_size' data='8' />
					<value target='buff_f_depth' data='001' />
					<value target='buff_f_sign' data='000' />
					<value target='buff_f_size' data='8' />
					<value target='buff_g_depth' data='001' />
					<value target='buff_g_sign' data='000' />
					<value target='buff_g_size' data='8' />
					<value target='buff_h_depth' data='001' />
					<value target='buff_h_sign' data='000' />
					<value target='buff_h_size' data='8' />
					<value target='buff_simp_depth' data='001' />
					<value target='buff_simp_sign' data='000' />
					<value target='buff_simp_size' data='8' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e6dd1315-4acf-4fb5-abd9-5743d3715cbe' vmin='2' vmaj='1' codename='DSPControl1' x='14.0144' y='-17.9934' z='1.08191' xsz='52' ysz='32' zsz='1.14286' 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='buffer_manager' data='1' />
					<value target='input_a' data='000' />
					<value target='output_c' data='001' />
					<value target='size_a' data='8' />
					<value target='size_o' data='8' />
					<value target='depth_a' data='001' />
					<value target='depth_o' data='001' />
					<value target='sign_a' data='000' />
					<value target='sign_o' data='000' />
					<value target='style' data='001' />
					<value target='method' data='001' />
					<value target='Hysteresis' data='10' />
					<value target='on_val' data='1' />
					<value target='off_val' data='0' />
					<value target='proportional' data='2.000000' />
					<value target='integral' data='2.500000' />
					<value target='derivative' data='2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1392d5c3-35ba-4c7f-a539-7f30a09758e4' vmin='2' vmaj='1' codename='DSPOutput1' x='67.5374' y='-18.5295' z='1.08191' xsz='43.5' ysz='32' zsz='1.14286' 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='buffer_manager' data='1' />
					<value target='input_a' data='001' />
					<value target='size_a' data='8' />
					<value target='depth_a' data='001' />
					<value target='sign_a' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='ADCSetpoint' x='0.428741' y='24.9255' z='2.03648' xsz='30' ysz='30' zsz='1.14286' 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='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='1' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='0' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='6' vmaj='1' codename='PWM1' x='120.938' y='-18.7576' z='1.05' 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 >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTE.0' />
					<value target='RemapPin' data='008' />
					<value target='timer' data='2' />
					<value target='period' data='255' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='3.657143' />
					<value target='frequency_calc' data='273.437500' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73d493a-b6a0-4dbe-b4b5-79648f67d11e' vmin='2' vmaj='1' codename='DSPInput1' x='-40.8412' y='-25.7854' z='2.98251' xsz='43.5' ysz='32' zsz='5.965' 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='buffer_manager' data='001' />
					<value target='input_a' data='000' />
					<value target='size_a' data='8' />
					<value target='depth_a' data='001' />
					<value target='sign_a' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='ADCFeedback' x='-81.7231' y='-24.748' z='1.44754' xsz='30' ysz='30' zsz='1.14286' 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='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='0' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5a6d2f2e-da92-49b4-ad5c-71f51e8fe24b' vmin='6' vmaj='1' codename='gLCD_EBM001' x='54.7299' y='38.9631' z='67.964' 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 >
					<value target='pixel_height' data='160' />
					<value target='pixel_width' data='128' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='FGCOL' data='0' />
					<value target='BGCOL' data='65535' />
					<value target='data_pin' data='$PORTD.0' />
					<value target='clock_pin' data='$PORTD.1' />
					<value target='chip_sel_pin' data='$PORTD.2' />
					<value target='a0_pin' data='$PORTD.3' />
					<value target='reset_pin' data='$PORTD.4' />
					<value target='led_pin' data='$PORTD.5' />
					<value target='DisplayMethod' data='000' />
				</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='0' />
		<camera xe='31' ye='-3' ze='367.589' xt='31' yt='-3' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='185' flags='0' />
		<view type='0' name='timer_tick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='168' flags='0' />
		<view type='0' name='gLCD_UpdateNumbers' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='1191' flags='0' />
		<view type='0' name='SecondOrdCalc' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ThirdOrderCalc' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='gLCD_DrawFrame' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAZgQAAI8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
