<root>
<document scada='0' schema='102' license='1,96450348,R84MNU' title='' description='' fcversion='590336' target='PIC16.24F.24FJ64GB002' >
	<config data='!0,ff1f!10,fcff!20,4aae!30,3f7f%0,f%4,1%5,0%6,0%7,0%8,ff%10,3f%16,3%18,0%1a,3%1c,1%1d,1%1e,1%1f,1%20,2%22,1%23,1%24,0%25,1%26,2%28,2%2b,1%2c,4%2f,0%30,f%34,1%35,1%36,1%37,0%38,3%3a,1%3b,1%3c,1%3d,1%3e,0%3f,0' clkspd='20000000' simspd='0' usewdt='1' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Address_String' />
		<watch expr='Board_Address_int' />
		<watch expr='Question_int' />
		<watch expr='Value_Float' />
		<watch expr='Load_PWM.Load_Value' />
		<watch expr='Load_PWM.Current_Target' />
		<watch expr='AN0_current_HP' />
		<watch expr='PWM1_Load_Store' />
		<watch expr='PWM1_loop_Active' />
		<watch expr='Branch_int' />
		<watch expr='PWM_Flag' />
		<watch expr='Enable_HP_15V' />
	</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='1' />
			<data name='ClockPin' value='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='9' />
			<data name='CalculatedCommsDelay' value='9' />
			<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='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='08a639ac-4e64-4066-84e1-181c3bd7baeb' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<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' comp2dType='0' >
			<resources />
			<properties >
				<property name='Alternative pin' target='PWM1::altpin' typeid='7' hidden='0' locked='1' info='Allows an alternate pin to be used if available. 
Note that on some devices you will also have to change this setting in the device configuration.' />
			</properties>
			<values >
				<value target='PWM1::altpin' data='0' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Current_Float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Error_Register' type='T8' description='Used as binary error bits' isconst='0' isHidden='0' isinit='1' usrinit='&quot;No Error&quot;' setinit='&quot;No Error&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Result' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Branch_int' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hp_array_list' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='160' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='s32' description='LED Flasher' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp_Var' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_Command_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM4_Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_Load_Store' type='u16' description='PWM3 Store for Closed Loop' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AN10_Current_LP' type='f32' description='Global Current Feedback for PWM3 driver' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM4_gain' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Revision' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;Benz 1.09&quot;' setinit='&quot;Benz 1.09&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_Current_Target' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp_Float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Address_Flag' type='b1' description='Causes address to be invoked' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AN1_current_HP' type='f32' description='Global Current Feedback for PWM2 Driver' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Gain' type='f32' description='Trim for PWM2' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_loop_Active' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Load_Store' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pointer' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='State' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Tens' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ignore' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Address_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;xxx&quot;' setinit='&quot;xxx&quot;' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AN0_current_HP' type='f32' description='Global current  Feedback for PWM1 driver' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Board_Address_int' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='01' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ANALOG_Int' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Branch_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value_string' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM4_Load_Store' type='u16' description='PWM4 Store for Closed Loop' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Listen' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Units' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_Current_Target' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Address_int' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Current_Target' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Serial_Compare_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HP_Limit' type='u16' description='Lowest 800mA range' isconst='0' isHidden='0' isinit='1' usrinit='3320' setinit='3320' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='First_Time' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Loop_Active' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Serial_String' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='11' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LP1_Pointer_History' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_loop_Active' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM4_loop_active' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HP2_Pointer_History' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Enable_HP_15V' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LP_Array_list' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Question_int' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM_Flag' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Light_p2' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AN9_current_LP' type='f32' description='Global Current for PWM4 driver' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LP_Limit' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1000' setinit='1000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_Gain' type='f32' description='TRim for PWM3' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM3_Command_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Enable_Bit' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Light_p1' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value_Float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_gain' type='f32' description='PWM5 trim' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM4_Current_Target' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Load_Value' type='u16' description='PWM2 storage for Closed Loop' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM1_Load_Store' type='u16' description='Storage for Closed Loop' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='LP_Array_Fills' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Question' description='Serial Command requested data. Formulate and answer
Entered as state 8' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='' macro='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='Enable?' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;Enable   =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
										<argument exp='Enable_Bit' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='Lo powers LP1?
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Get LP1 Current Value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog10' macro='GetAverageInt' >
										<return exp='ANALOG_Int' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Reset Pointer and Temp_var' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = 0' />
										<exp exp='Temp_var = 0' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='1' exp='Temp_var &gt;= Analog_int' >
										<flowline >
											<command class_type='calculation' title='Increment pointer and store contents' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Pointer = pointer + 1' />
												<exp exp='Temp_Var = lp_array_list[pointer]' />
											</command>
										</flowline>
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;LP1 Amps   =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
										<argument exp='AN10_Current_LP' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='comment' title='' comment='LP1 CONCLUDED ******************************' textarea='36,-111,36,-111' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='comment' title='' comment='Lo powers LP2?
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Get LP2 Current Value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog9' macro='GetAverageInt' >
										<return exp='ANALOG_Int' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Reset Pointer and Temp_var' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = 0' />
										<exp exp='Temp_var = 0' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='1' exp='Temp_var &gt;= Analog_int' >
										<flowline >
											<command class_type='calculation' title='Increment pointer and store contents' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Pointer = pointer + 1' />
												<exp exp='Temp_Var = lp_array_list[pointer]' />
											</command>
										</flowline>
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;LP2 Amps   =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
										<argument exp='AN9_Current_LP' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='comment' title='' comment='LP2 CONCLUDED' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='comment' title='' comment='Report Hi power values HP1' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Get HP1 Current Value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog1' macro='GetAverageInt' >
										<return exp='ANALOG_Int' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Reset Pointer and Temp_var' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = 0' />
										<exp exp='Temp_var = 0' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='1' exp='Temp_var &gt;= Analog_int' >
										<flowline >
											<command class_type='calculation' title='Increment pointer and store contents' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Pointer = pointer + 1' />
												<exp exp='Temp_Var = hp_array_list[pointer]' />
											</command>
										</flowline>
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;HP1 Amps   =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
										<argument exp='AN1_current_HP' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='comment' title='' comment='HP1 CONCLUDED ******************************' textarea='36,-111,36,-111' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='comment' title='' comment='Report Hi Power values HP2' textarea='55,-69,55,-69' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Get HP2 Current Value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog0' macro='GetAverageInt' >
										<return exp='ANALOG_Int' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Reset Pointer and Temp_var' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = 0' />
										<exp exp='Temp_var = 0' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='1' exp='Temp_var &gt;= Analog_int' >
										<flowline >
											<command class_type='calculation' title='Increment pointer and store contents' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Pointer = pointer + 1' />
												<exp exp='Temp_Var = hp_array_list[pointer]' />
											</command>
										</flowline>
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;HP2 Amps   =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
										<argument exp='AN0_current_HP' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='comment' title='' comment='HP2 CONCLUDED ******************************' textarea='55,-69,55,-69' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='comment' title='' comment='Temperature?' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Temperatures' />
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='comment' title='' comment='Light level P1?' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Light_AN2' macro='GetAverageInt' >
										<return exp='Light_p1' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;Light_p1  =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
										<argument exp='Light_p1' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='comment' title='' comment='Light level P2' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Light_AN4' macro='GetAverageInt' >
										<return exp='Light_p2' />
										<argument exp='250000' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;Light_p2  =&quot;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
										<argument exp='Light_p2' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n&quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Closed_Loop_PWM4' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Check number range' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM4_Load_Store &lt; 2 OR PWM4_Load_Store &gt; 600' swap='0' >
							<flowline >
								<command class_type='goto' title='Goto Connection Point' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Get all current readings' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
						<command class_type='delay' title='Delay' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
						<command class_type='decision' title='If larger' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN9_current_LP &gt; PWM4_Current_Target * 1.001' swap='0' >
							<flowline >
								<command class_type='calculation' title='Decrement Load value' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='PWM4_Load_Store = PWM4_Load_Store - 1' />
								</command>
								<command class_type='decision' title='Decision' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM4_Load_Store &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='PWM4_Load_Store = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
									<argument exp='PWM4_Load_Store' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='label' title='Declare Connection Point' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Respond' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;*&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Closed_loop_PWM2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Check number range' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM2_Load_Store &lt; 1 OR PWM2_Load_Store &gt; 334' swap='0' >
							<flowline >
								<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
						<command class_type='decision' title='If larger' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN1_current_HP &gt; PWM2_Current_Target * 1.001' swap='0' >
							<flowline >
								<command class_type='calculation' title='Decrement Load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='PWM2_Load_Store = PWM2_Load_Store - 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM2_Load_Store &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='PWM2_Load_Store = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
									<argument exp='PWM2_Load_Store' />
								</command>
								<command class_type='delay' title='Wait for current settle' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
								<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN1_current_HP &gt; PWM2_Current_Target OR AN1_current_HP = PWM1_Current_Target' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LP_Drive_Enable' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Enable Low Power 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='4' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Closed_Loop_PWM1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='High_Count' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='Low_Count' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='decision' title='Check number range' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_Load_Store &lt; 2 OR PWM1_Load_Store &gt; 1500' swap='0' >
							<flowline >
								<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
						<command class_type='calculation' title='Determine difference' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Result = PWM1_Current_Target - AN0_current_HP //target minus read' />
						</command>
						<command class_type='decision' title='Do nothing?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Result = 0 OR Load_value = 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='If larger' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &lt; PWM1_Current_Target - .005' swap='0' >
									<flowline >
										<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='C' />
										<command class_type='call' title='User Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Plus' />
										<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
										<command class_type='calculation' title='Decrement Load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='PWM1_Load_Store = PWM1_Load_Store + 1' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
											<argument exp='PWM1_Load_Store' />
										</command>
										<command class_type='decision' title='Check number range' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_Load_Store &gt; 1500' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='PWM1_Load_Store = 1' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
													<argument exp='PWM1_Load_Store' />
												</command>
												<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
											</flowline>
											<flowline />
										</command>
										<command class_type='delay' title='Wait for current settle' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
										<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_Current_Target &gt; AN0_current_HP + .005' swap='0' >
											<flowline >
												<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='If smaller' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &gt; PWM1_Current_Target + .005' swap='0' >
											<flowline >
												<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='B' />
												<command class_type='call' title='User Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Minus' />
												<command class_type='decision' title='Check number range' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_Load_Store &lt; 2 OR PWM1_Load_Store &lt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
															<exp exp='PWM1_Load_Store = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
												<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
												<command class_type='calculation' title='Decrement Load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='PWM1_Load_Store = PWM1_Load_Store - 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_Load_Store &lt; 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
															<exp exp='PWM1_Load_Store = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
													<argument exp='PWM1_Load_Store' />
												</command>
												<command class_type='delay' title='Wait for current settle' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
												<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
												<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &gt; PWM1_Current_Target OR AN0_current_HP = PWM1_Current_Target' swap='0' >
													<flowline >
														<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Zero_ALL_PWMS' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Enable_ALL_PWM' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Enable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Enable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Enable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Enable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
							<argument exp='PWM3_Load_Value' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
							<argument exp='PWM4_Load_Value' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Enable_bit = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_all_Currents' description='Read currents, and store values in PWM1 through PWM4 Global registers. 
Local registers are used so as not to conflict.
PWM1 =  AN0 at 2 ohms to 1 amp PWM2 =  AN1 at 2 ohms to 1 amp
PWM3  AN10 at 100 ohms to 30mA PWM4 = AN9 at 2 ohms to 1 amp' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='PWM1_AN0' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='PWM2_AN1' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='PWM3_AN10' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='PWM4_AN9' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000' />
						<local name='AN0_Volts' type='f32' description='PWM1 Drive Volts Feedback' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='AN1_Volts' type='f32' description='PWM2 Drive Feedback Volts' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='AN10_volts' type='f32' description='PWM3 Drive Feedback Volts' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='AN9_Volts' type='f32' description='PWM4 Drive Feedback Volts' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.00' />
						<local name='CGLP_PWM4_branch3' type='f32' description='Gain for current to match light levels in mW/CM^2 Low Power' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.0000' />
						<local name='CGHP_PWM2_branch4' type='f32' description='Current gain to match Light levels Hi Power' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.0000' />
						<local name='CGHP_PWM1_branch5' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.0000' />
						<local name='CGLP_PWM3_branch2' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='1.0' setinit='1.0000' />
						<command class_type='comment' title='' comment='User to send request for 
High Power 0 to 332 = 0 to 800mA = 0 to 3.32 mW/Cm^2 light level
Low Power 0 to 187 = 0 to 30mA = 0 to .187mW/Cm^2 Light Level

Gain for trim and calibrate by +/- 10%' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='comment' title='' comment='Figure gain values from stored eeprom' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM1_gain' />
							<argument exp='11' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM2_gain' />
							<argument exp='12' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM3_gain' />
							<argument exp='13' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM4_gain' />
							<argument exp='14' />
						</command>
						<command class_type='calculation' title='Form to decimal value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='.CGHP_PWM1_branch5 = PWM1_gain / 1000' />
							<exp exp='.CGHP_PWM2_branch4 = PWM2_gain / 1000' />
							<exp exp='.CGLP_PWM3_branch2 = PWM3_gain / 1000' />
							<exp exp='.CGLP_PWM4_branch3 = PWM4_gain / 1000' />
							<exp exp='PWM1_gain = PWM1_gain / 1000' />
							<exp exp='PWM2_Gain = PWM2_Gain / 1000' />
							<exp exp='PWM3_Gain = PWM3_Gain / 1000' />
							<exp exp='PWM4_gain = PWM4_gain / 1000' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog9' macro='GetAverageInt' >
							<return exp='.PWM4_AN9' />
							<argument exp='10000' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.PWM4_AN9 &lt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Make Minimum' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='.PWM4_AN9 = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog10' macro='GetAverageInt' >
							<return exp='.PWM3_AN10' />
							<argument exp='10000' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.PWM3_AN10 &lt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Make Minimum' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='.PWM3_AN10 = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog1' macro='GetAverageInt' >
							<return exp='.PWM2_AN1' />
							<argument exp='10000' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.PWM2_An1 &lt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Make Minimum' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='.PWM2_AN1 = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog0' macro='GetAverageInt' >
							<return exp='.PWM1_AN0' />
							<argument exp='10000' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.PWM1_An0 &lt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Make Minimum' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='.PWM1_AN0 = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='.PWM1_AN0 = (.PWM1_AN0 / 1024) * 3 //Get volts' />
							<exp exp='.PWM2_AN1 = (.PWM2_AN1 / 1024) * 3 //Get volts' />
							<exp exp='.PWM3_AN10 = (.PWM3_AN10 / 1024) * 3 //Get volts' />
							<exp exp='.PWM4_AN9 = (.PWM4_AN9 / 1024) * 3 //Get volts' />
						</command>
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='Convert to Current Value in amps and apply gain (Default 1)' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='AN0_current_HP = (.PWM1_AN0 / 2) * .CGHP_PWM1_branch5 //ohms law' />
							<exp exp='AN1_current_HP = (.PWM2_AN1 / 2) * .CGHP_PWM2_branch4 //ohms law' />
							<exp exp='AN10_Current_LP = (.PWM3_AN10 / 80) * .CGLP_PWM3_branch2 //ohms law' />
							<exp exp='AN9_current_LP = (.PWM4_AN9 / 80) * .CGLP_PWM4_branch3 //ohms law' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plus' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Plus&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Serial_handler' description='Object is to get serial data and separate into individual packets.
and simply store the info into variables.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Returns with State 8, 9 or 10' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='address_string = Mid$ (Serial_String,1,2)' />
							<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
							<exp exp='' />
							<exp exp='address_string = Mid$ (Serial_String,1,2)' />
							<exp exp='Serial_Compare_byte = Compare$ (address_string,&quot;X&quot;,1)' />
							<exp exp='' />
							<exp exp='Question_int = serial_string[0]' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Serial_Compare_byte = 0' swap='0' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Eprom_Address_Setup' />
								<command class_type='calculation' title='Reset Serial Compare byte' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='Serial_Compare_byte = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Do nothing if incorrect address' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = Address_int' swap='1' >
							<flowline >
								<command class_type='calculation' title='Not for this address' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='State = 11' />
								</command>
								<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='address_string = Mid$ (Serial_String,1,2)' />
									<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
									<exp exp='value_string = Mid$ (Serial_String,5,4)' />
									<exp exp='' />
									<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
									<exp exp='Value_float = Stringtofloat$ (value_string)' />
									<exp exp='Branch_int = stringtoint$ (Branch_string)' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Question_int = &apos;A&apos;' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Is this a global command?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='State = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='E' />
								<command class_type='switch' title='Based on Q or C or A  first serial character' textarea='136,-130,136,-130' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='question_int' >
									<case >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 10 //wrong characters sent.' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;Q&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='QUESTION STATE' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
												<exp exp='Branch_int = stringtoint$ (Branch_string)' />
												<exp exp='//only require branch' />
											</command>
											<command class_type='calculation' title='State announce' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 8 // Question state.' />
											</command>
											<command class_type='comment' title='' comment='QUESTION STATE' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
										</flowline>
									</case>
									<case exp='&apos;C&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Command State' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='B' />
											<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='address_string = Mid$ (Serial_String,1,2)' />
												<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
												<exp exp='value_string = Mid$ (Serial_String,5,4)' />
												<exp exp='' />
												<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
												<exp exp='Value_float = Stringtofloat$ (value_string)' />
												<exp exp='Branch_int = stringtoint$ (Branch_string)' />
											</command>
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 9 // Command State' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;A&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Address verification request
Only use for single board setup
To program' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='C' />
											<command class_type='call' title='Turn on transmit' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;Address =&quot;' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
												<argument exp='Address_int' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Turn on receive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
												<return exp='Address_int' />
												<argument exp='0' />
											</command>
											<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Tens = Address_int / 10' />
												<exp exp='Units = Address_int - (tens * 10)' />
											</command>
											<command class_type='comment' title='' comment='Flash LED to indicate address' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='comment' title='' comment='Follpowing LED flashes address.
Disabled for now' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;OK Address is &quot;' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
												<argument exp='Address_int' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;Address?\n&quot;' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
											<command class_type='calculation' title='Reset address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Address_int = 0' />
											</command>
											<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Address_int = 0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveNumber' >
														<return exp='Address_int' />
														<argument exp='10' />
														<argument exp='0' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
											<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Write Value to Flash' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
												<argument exp='0' />
												<argument exp='Address_int' />
											</command>
											<command class_type='call' title='Get flash Value to verify' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
												<return exp='Address_int' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;Address is now &quot;' />
											</command>
											<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
												<argument exp='Address_int' />
											</command>
											<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;S&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='&quot;Small&quot; - Low Power PWM Raw Duty Cycle' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='address_string = Mid$ (Serial_String,1,2)' />
												<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
												<exp exp='value_string = Mid$ (Serial_String,5,4)' />
												<exp exp='' />
												<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
												<exp exp='Value_float = Stringtofloat$ (value_string)' />
												<exp exp='Branch_int = stringtoint$ (Branch_string)' />
											</command>
											<command class_type='decision' title='Get out. Number too large' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1100 OR Value_Float &lt; 0' swap='0' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Stops the PWM pulse due to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='decision' title='Which Branch?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int = 3 //pwm4' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='PWM4_loop_active = 0' />
																<exp exp='Value_float = 0' />
															</command>
														</flowline>
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='PWM3_loop_Active = 0' />
																<exp exp='Value_Float = 0' />
															</command>
														</flowline>
													</command>
													<command class_type='call' title='Sets PWM3/PWM4 to zero' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_LP' />
													<command class_type='calculation' title='Calculation' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Value_Float = 1' />
														<exp exp='PWM3_Load_Store = 1' />
														<exp exp='PWM4_Load_Store = 1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='PWM3_loop_Active = 1' />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int &gt; 03 OR Branch_int &lt; 02' swap='0' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' textarea='36,-10,36,-10' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Limit Data Entry' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; LP_Limit //10% over 30mA' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Value_Float = 0' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='low power or side 02 (PWM3) or 03 (PWM4) DETERMINE WHICH PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int = 02 //PWM3' swap='0' >
												<flowline >
													<command class_type='calculation' title='Direct which PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='PWM_Flag = 3' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Direct which PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='PWM_Flag = 4' />
														<exp exp='' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Ramp PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Ramp_PWM' />
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;B&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='&quot;BIG&quot; High Power PWM raw Duty Cycle' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='address_string = Mid$ (Serial_String,1,2)' />
												<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
												<exp exp='value_string = Mid$ (Serial_String,5,4)' />
												<exp exp='' />
												<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
												<exp exp='Value_float = Stringtofloat$ (value_string)' />
												<exp exp='Branch_int = stringtoint$ (Branch_string)' />
											</command>
											<command class_type='decision' title='Get out. Number too large' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1100 OR Value_Float &lt; 0' swap='0' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Stops the PWM pulse due to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int = 4' swap='0' >
														<flowline >
															<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
																<argument exp='1' />
															</command>
															<command class_type='calculation' title='' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='PWM2_Loop_Active = 0' />
																<exp exp='PWM2_Load_Store = 0' />
																<exp exp='PWM2_Current_Target = 0' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
																<argument exp='1' />
															</command>
															<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='//Value_Float = 0' />
																<exp exp='PWM1_loop_Active = 0' />
																<exp exp='PWM1_Load_Store = 0' />
																<exp exp='PWM1_Current_Target = 0' />
															</command>
														</flowline>
													</command>
													<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
													<command class_type='call' title='User Macro' mark='1' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int &gt; 05 OR Branch_int &lt; 04' swap='0' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Limit Data entry' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; HP_Limit' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Value_Float = 0' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='High power side 04 (PWM2) or 05 (PWM1) DETERMINE WHICH PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int = 04 //PWM2' swap='0' >
												<flowline >
													<command class_type='calculation' title='Direct which PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='PWM_Flag = 2' />
														<exp exp='PWM2_Loop_Active = 1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Direct which PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='PWM_Flag = 1' />
														<exp exp='PWM1_loop_Active = 1' />
													</command>
												</flowline>
											</command>
											<command class_type='call' title='Ramp PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Ramp_PWM' />
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;G&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Gains' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Organize Characters to integers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='address_string = Mid$ (Serial_String,1,2)' />
												<exp exp='branch_string = Mid$ (Serial_String,3,2)' />
												<exp exp='value_string = Mid$ (Serial_String,5,4)' />
												<exp exp='' />
												<exp exp='Board_Address_int = Stringtoint$ (address_string)' />
												<exp exp='Value_float = Stringtofloat$ (value_string)' />
												<exp exp='Branch_int = stringtoint$ (Branch_string)' />
											</command>
											<command class_type='switch' title='Set Gains' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int' >
												<case >
													<flowline />
												</case>
												<case exp='2' >
													<flowline >
														<command class_type='decision' title='Limit the value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1.35' swap='0' >
															<flowline />
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																	<exp exp='PWM3_gain = Value_float' />
																</command>
																<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
																	<argument exp='13' />
																	<argument exp='Value_Float*1000' />
																</command>
															</flowline>
														</command>
													</flowline>
												</case>
												<case exp='3' >
													<flowline >
														<command class_type='decision' title='Limit the value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1.35' swap='0' >
															<flowline />
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																	<exp exp='PWM4_gain = Value_float' />
																</command>
																<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
																	<argument exp='14' />
																	<argument exp='Value_Float*1000' />
																</command>
															</flowline>
														</command>
													</flowline>
												</case>
												<case exp='4' >
													<flowline >
														<command class_type='decision' title='Limit the value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1.35' swap='0' >
															<flowline />
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																	<exp exp='PWM2_Gain = Value_float' />
																</command>
																<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
																	<argument exp='12' />
																	<argument exp='Value_Float*1000' />
																</command>
															</flowline>
														</command>
													</flowline>
												</case>
												<case exp='5' >
													<flowline >
														<command class_type='decision' title='Limit the value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 1.35' swap='0' >
															<flowline />
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																	<exp exp='PWM1_gain = Value_float' />
																</command>
																<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
																	<argument exp='11' />
																	<argument exp='Value_Float*1000' />
																</command>
															</flowline>
														</command>
													</flowline>
												</case>
											</command>
											<command class_type='call' title='Respond' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Respond' />
										</flowline>
									</case>
									<case exp='&apos;R&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Reset gains to 1' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='PWM1 Giain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
												<argument exp='11' />
												<argument exp='1000' />
											</command>
											<command class_type='call' title='PWM2 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
												<argument exp='12' />
												<argument exp='1000' />
											</command>
											<command class_type='call' title='PWM3 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
												<argument exp='13' />
												<argument exp='1000' />
											</command>
											<command class_type='call' title='PWM3 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
												<argument exp='14' />
												<argument exp='1000' />
											</command>
											<command class_type='call' title='Reset Gains to 1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Gains_Default' />
											<command class_type='call' title='Respond' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Respond' />
										</flowline>
									</case>
									<case exp='&apos;D&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Disable HPfor zero light' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='Disable 15v drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
											<command class_type='calculation' title='INFORM closed loops' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Enable_HP_15v = 0' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='switch' title='Light/Current/Temperature' textarea='393,57,393,57' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Question_int' >
									<case >
										<flowline />
									</case>
									<case exp='&apos;P&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Light levels' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Light_Levels' />
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;H&apos;' >
										<flowline />
									</case>
									<case exp='&apos;L&apos;' >
										<flowline />
									</case>
									<case exp='&apos;T&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Temperature' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Temperatures' />
											<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='&apos;E&apos;' >
										<flowline >
											<command class_type='comment' title='' comment='Error Register Contents' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Report' />
										</flowline>
									</case>
									<case exp='&apos;Z&apos;' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='count = 33' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Enable' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
												<argument exp='Count' />
											</command>
											<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='D' />
											<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='1' type='2' />
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
												<argument exp='Count' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
												<argument exp='Count' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;, &quot;' />
											</command>
											<command class_type='call' title='PWM4 Associate' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
												<argument exp='AN10_Current_LP' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;Current AN9 = &quot;' />
											</command>
											<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
												<argument exp='&quot;\n&quot;' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='Count = Count + 1' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_current_LP &gt; .03' swap='0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
														<argument exp='&quot;\n&quot;' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
														<argument exp='&quot;Finished! &quot;' />
													</command>
													<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='' />
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Load_PWM2_HP2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
							<argument exp='load_Value' />
						</command>
						<command class_type='calculation' title='Save for serial inquiry' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='PWM1_Command_String = tostring$ (0)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='HP_Driver_Enable' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Enable High Power 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='16' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='HP_Array_Fills' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title=' Array number * 5 = mA - Stored number is read or PWM value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='hp_array_list[0] = 99' />
							<exp exp='hp_array_list[1] = 100' />
							<exp exp='hp_array_list[2] = 101' />
							<exp exp='hp_array_list[3] = 102' />
							<exp exp='hp_array_list[4] = 103' />
							<exp exp='hp_array_list[5] = 104' />
							<exp exp='hp_array_list[6] = 105' />
							<exp exp='hp_array_list[7] = 106' />
							<exp exp='hp_array_list[8] = 107' />
							<exp exp='hp_array_list[9] = 109' />
							<exp exp='hp_array_list[10] = 111' />
							<exp exp='hp_array_list[11] = 113' />
							<exp exp='hp_array_list[12] = 114' />
							<exp exp='hp_array_list[13] = 115' />
							<exp exp='hp_array_list[14] = 117' />
							<exp exp='hp_array_list[15] = 119' />
							<exp exp='hp_array_list[16] = 120' />
							<exp exp='hp_array_list[17] = 121' />
							<exp exp='hp_array_list[18] = 122' />
							<exp exp='hp_array_list[19] = 123' />
							<exp exp='hp_array_list[20] = 124' />
							<exp exp='hp_array_list[21] = 125' />
							<exp exp='hp_array_list[22] = 127' />
							<exp exp='hp_array_list[23] = 130' />
							<exp exp='hp_array_list[24] = 132' />
							<exp exp='hp_array_list[25] = 134' />
							<exp exp='hp_array_list[26] = 136' />
							<exp exp='hp_array_list[27] = 137' />
							<exp exp='hp_array_list[28] = 138' />
							<exp exp='hp_array_list[29] = 139' />
							<exp exp='hp_array_list[30] = 140' />
							<exp exp='hp_array_list[31] = 141' />
							<exp exp='hp_array_list[32] = 142' />
							<exp exp='hp_array_list[33] = 143' />
							<exp exp='hp_array_list[34] = 145' />
							<exp exp='hp_array_list[35] = 146' />
							<exp exp='hp_array_list[36] = 148' />
							<exp exp='hp_array_list[37] = 149' />
							<exp exp='hp_array_list[38] = 150' />
							<exp exp='hp_array_list[39] = 151' />
							<exp exp='hp_array_list[40] = 152' />
							<exp exp='hp_array_list[41] = 158' />
							<exp exp='hp_array_list[42] = 159' />
							<exp exp='hp_array_list[43] = 160' />
							<exp exp='hp_array_list[44] = 161' />
							<exp exp='hp_array_list[45] = 162' />
							<exp exp='hp_array_list[46] = 163' />
							<exp exp='hp_array_list[47] = 164' />
							<exp exp='hp_array_list[48] = 165' />
							<exp exp='hp_array_list[49] = 166' />
							<exp exp='hp_array_list[50] = 167' />
							<exp exp='hp_array_list[51] = 171' />
							<exp exp='hp_array_list[52] = 172' />
							<exp exp='hp_array_list[53] = 173' />
							<exp exp='hp_array_list[54] = 174' />
							<exp exp='hp_array_list[55] = 178' />
							<exp exp='hp_array_list[56] = 179' />
							<exp exp='hp_array_list[57] = 180' />
							<exp exp='hp_array_list[58] = 182' />
							<exp exp='hp_array_list[59] = 183' />
							<exp exp='hp_array_list[60] = 184' />
							<exp exp='hp_array_list[61] = 185' />
							<exp exp='hp_array_list[62] = 186' />
							<exp exp='hp_array_list[63] = 184' />
							<exp exp='hp_array_list[64] = 186' />
							<exp exp='hp_array_list[65] = 187' />
							<exp exp='hp_array_list[66] = 192' />
							<exp exp='hp_array_list[67] = 193' />
							<exp exp='hp_array_list[68] = 194' />
							<exp exp='hp_array_list[69] = 195' />
							<exp exp='hp_array_list[70] = 195' />
							<exp exp='hp_array_list[71] = 197' />
							<exp exp='hp_array_list[72] = 198' />
							<exp exp='hp_array_list[73] = 201' />
							<exp exp='hp_array_list[74] = 202' />
							<exp exp='hp_array_list[75] = 203' />
							<exp exp='hp_array_list[76] = 204' />
							<exp exp='hp_array_list[77] = 205' />
							<exp exp='hp_array_list[78] = 206' />
							<exp exp='hp_array_list[79] = 207' />
							<exp exp='hp_array_list[80] = 209' />
							<exp exp='hp_array_list[81] = 211' />
							<exp exp='hp_array_list[82] = 212' />
							<exp exp='hp_array_list[83] = 214' />
							<exp exp='hp_array_list[84] = 216' />
							<exp exp='hp_array_list[85] = 217' />
							<exp exp='hp_array_list[86] = 219' />
							<exp exp='hp_array_list[87] = 220' />
							<exp exp='hp_array_list[88] = 221' />
							<exp exp='hp_array_list[89] = 222' />
							<exp exp='hp_array_list[90] = 223' />
							<exp exp='hp_array_list[91] = 224' />
							<exp exp='hp_array_list[92] = 226' />
							<exp exp='hp_array_list[93] = 227' />
							<exp exp='hp_array_list[94] = 228' />
							<exp exp='hp_array_list[95] = 231' />
							<exp exp='hp_array_list[96] = 232' />
							<exp exp='hp_array_list[97] = 234' />
							<exp exp='hp_array_list[98] = 235' />
							<exp exp='hp_array_list[99] = 239' />
							<exp exp='hp_array_list[100] = 241' />
							<exp exp='hp_array_list[101] = 243' />
							<exp exp='hp_array_list[102] = 244' />
							<exp exp='hp_array_list[103] = 245' />
							<exp exp='hp_array_list[104] = 246' />
							<exp exp='hp_array_list[105] = 247' />
							<exp exp='hp_array_list[106] = 248' />
							<exp exp='hp_array_list[107] = 249' />
							<exp exp='hp_array_list[108] = 250' />
							<exp exp='hp_array_list[109] = 251' />
							<exp exp='hp_array_list[110] = 252' />
							<exp exp='hp_array_list[111] = 253' />
							<exp exp='hp_array_list[112] = 254' />
							<exp exp='hp_array_list[113] = 255' />
							<exp exp='hp_array_list[114] = 256' />
							<exp exp='hp_array_list[115] = 257' />
							<exp exp='hp_array_list[116] = 258' />
							<exp exp='hp_array_list[117] = 260' />
							<exp exp='hp_array_list[118] = 262' />
							<exp exp='hp_array_list[119] = 264' />
							<exp exp='hp_array_list[120] = 266' />
							<exp exp='hp_array_list[121] = 268' />
							<exp exp='hp_array_list[122] = 270' />
							<exp exp='hp_array_list[123] = 272' />
							<exp exp='hp_array_list[124] = 273' />
							<exp exp='hp_array_list[125] = 274' />
							<exp exp='hp_array_list[126] = 275' />
							<exp exp='hp_array_list[127] = 277' />
							<exp exp='hp_array_list[128] = 279' />
							<exp exp='hp_array_list[129] = 281' />
							<exp exp='hp_array_list[130] = 282' />
							<exp exp='hp_array_list[131] = 283' />
							<exp exp='hp_array_list[132] = 284' />
							<exp exp='hp_array_list[133] = 285' />
							<exp exp='hp_array_list[134] = 286' />
							<exp exp='hp_array_list[135] = 287' />
							<exp exp='hp_array_list[136] = 288' />
							<exp exp='hp_array_list[137] = 289' />
							<exp exp='hp_array_list[138] = 290' />
							<exp exp='hp_array_list[139] = 291' />
							<exp exp='hp_array_list[140] = 292' />
							<exp exp='hp_array_list[141] = 293' />
							<exp exp='hp_array_list[142] = 294' />
							<exp exp='hp_array_list[143] = 295' />
							<exp exp='hp_array_list[144] = 296' />
							<exp exp='hp_array_list[145] = 297' />
							<exp exp='hp_array_list[146] = 299' />
							<exp exp='hp_array_list[147] = 301' />
							<exp exp='hp_array_list[148] = 302' />
							<exp exp='hp_array_list[149] = 307' />
							<exp exp='hp_array_list[150] = 310' />
							<exp exp='hp_array_list[151] = 313' />
							<exp exp='hp_array_list[152] = 316' />
							<exp exp='hp_array_list[153] = 320' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='HP_Driver_Disable' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Disable High Power 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='Discharge Cap' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Eprom_Address_Setup' description='If input A4 is &quot;ON&quot; this will allow an address to be programmed in flash eprom
Address will be programmed via serial comms
If Serial address = &quot;X&quot; do same' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Stop Drivers' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Serial_Compare_byte = 0 //or Address_Flag = 0' swap='0' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Address_Flag = 0 OR Serial_Compare_byte = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
											<return exp='Address_int' />
											<argument exp='0' />
										</command>
										<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='Tens = Address_int / 10' />
											<exp exp='Units = Address_int - (tens * 10)' />
										</command>
										<command class_type='comment' title='' comment='Flash LED to indicate address' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
										<command class_type='delay' title='Delay' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='1' type='2' />
										<command class_type='delay' title='Delay' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='2' type='2' />
										<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;OK Address is &quot;' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
											<argument exp='Address_int' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;\n&quot;' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;Address?\n&quot;' />
										</command>
										<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
										<command class_type='calculation' title='Reset address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='Address_int = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Address_int = 0' >
											<flowline >
												<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveNumber' >
													<return exp='Address_int' />
													<argument exp='10' />
													<argument exp='0' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
										<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;\n&quot;' />
										</command>
										<command class_type='call' title='Write Value to Flash' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
											<argument exp='0' />
											<argument exp='Address_int' />
										</command>
										<command class_type='call' title='Get flash Value to verify' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
											<return exp='Address_int' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;Address is now &quot;' />
										</command>
										<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
											<argument exp='Address_int' />
										</command>
										<command class_type='call' title='Send Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='&quot;\n&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Back to listening' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LP_Drive_Disable' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Disable Low Power 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='4' exp='0' usechipref='1' />
						<command class_type='call' title='Discharge Cap' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Discharge' description='Discharges caps' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Turn on Dump resistor' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='0' usechipref='1' />
						<command class_type='delay' title='Let Capacitors deplete' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='250' type='1' />
						<command class_type='output' title='Turn off Dump resistor' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Close_Loop_PWM3' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Check number range' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM3_Load_Store &lt; 1 OR PWM3_Load_Store &gt; 334' swap='0' >
							<flowline >
								<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Get all current readings' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
						<command class_type='decision' title='If larger' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_Current_LP &gt; PWM3_Current_Target * 1.001' swap='0' >
							<flowline >
								<command class_type='calculation' title='Decrement Load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='PWM3_Load_Store = PWM3_Load_Store - 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM3_Load_Store &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='PWM3_Load_Store = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
									<argument exp='PWM3_Load_Store' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Command' description='Value has been dictated. Change relevant PWM, Enable etc' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Ramp up new PWM values starting from zero. Return when completed' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='switch' title='Which Branch' textarea='36,25,36,25' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Branch_int' >
							<case >
								<flowline />
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									<command class_type='comment' title='' comment='HP1 PWM2 Plug1 FB AN1 [resistive]' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='decision' title='Safe Zone' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; HP_Limit' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='delay' title='Allow Discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = Value_Float / 5 //mA' />
										<exp exp='Pointer = pointer - 1' />
									</command>
									<command class_type='decision' title='Roll Over to 65535?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='pointer = 65535' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='pointer = 0' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='HP2_Pointer_History = Pointer //save' />
										<exp exp='Value = HP_Array_list[pointer]' />
										<exp exp='load_Value = 0' />
									</command>
									<command class_type='loop' title='Match value to commanded' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Value &gt; analog_int' start='0' >
										<flowline >
											<command class_type='delay' title='Ramp to value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
											<command class_type='call' title='Get analog1 current value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog1' macro='GetAverageInt' >
												<return exp='ANALOG_Int' />
												<argument exp='20000' />
												<argument exp='5' />
											</command>
											<command class_type='calculation' title='Increment value to load' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = Load_Value + 1' />
												<exp exp='PWM2_Load_Value = Load_Value //store for later' />
											</command>
											<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
												<argument exp='load_value' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='load_Value &gt; 450' swap='0' >
												<flowline >
													<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
												</flowline>
												<flowline />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='B' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*\n&quot;' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Value = 0' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='comment' title='' comment='HP2 PWM1 Plug2 FB  AN0' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									<command class_type='decision' title='Safe Zone' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; HP_Limit' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Start at Zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='delay' title='Allow Discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = Value_Float / 5 //mA' />
										<exp exp='Pointer = pointer - 1' />
									</command>
									<command class_type='decision' title='Roll Over to 65535?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='pointer = 65535' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='pointer = 0' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='HP2_Pointer_History = Pointer //save' />
										<exp exp='Value = HP_Array_list[pointer]' />
										<exp exp='load_Value = 0' />
									</command>
									<command class_type='loop' title='Match value to commanded' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Value &gt; analog_int' start='0' >
										<flowline >
											<command class_type='delay' title='Ramp to value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
											<command class_type='call' title='Get analog0 current value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog0' macro='GetAverageInt' >
												<return exp='ANALOG_Int' />
												<argument exp='20000' />
												<argument exp='5' />
											</command>
											<command class_type='calculation' title='Increment value to load' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = Load_Value + 1' />
												<exp exp='PWM1_Load_Value = Load_Value //store for later' />
											</command>
											<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
												<argument exp='load_value' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='load_Value &gt; 450' swap='0' >
												<flowline >
													<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
												</flowline>
												<flowline />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*\n&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='LP1 PWM3 Plug1 FB AN10' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									<command class_type='decision' title='Safe Zone' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 40.0' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='delay' title='Allow Discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = Value_Float / .35 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Roll over to 65535?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='pointer = 65535' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='pointer = 0' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='LP1_Pointer_History = Pointer //Save' />
										<exp exp='Value = LP_Array_list[pointer]' />
										<exp exp='load_Value = 0' />
									</command>
									<command class_type='loop' title='Match value to commanded' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Value &gt; analog_int' start='0' >
										<flowline >
											<command class_type='delay' title='Ramp to value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
											<command class_type='call' title='Get analog9 current value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog10' macro='GetAverageInt' >
												<return exp='ANALOG_Int' />
												<argument exp='40000' />
												<argument exp='5' />
											</command>
											<command class_type='calculation' title='Increment value to load' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = Load_Value + 1' />
												<exp exp='' />
												<exp exp='PWM3_Load_Value = Load_Value //store for later' />
											</command>
											<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
												<argument exp='load_value' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='load_Value &gt; 400' swap='0' >
												<flowline >
													<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
												</flowline>
												<flowline />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*\n&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='comment' title='' comment='LP2 PWM4 Plug2 FB AN9' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
									<command class_type='decision' title='Safe Zone' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 40.0' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Start at Zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='delay' title='Allow Discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='Pointer = Value_Float / .35 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<exp exp='' />
									</command>
									<command class_type='decision' title='Roll Over to 65535?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='pointer = 65535' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='pointer = 0' />
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='LP1_Pointer_History = Pointer //Save' />
										<exp exp='Value = LP_Array_list[pointer]' />
										<exp exp='load_Value = 0' />
									</command>
									<command class_type='loop' title='Match value to commanded' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='Value &gt; analog_int' start='0' >
										<flowline >
											<command class_type='delay' title='Ramp to value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
											<command class_type='call' title='Get analog9 current value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Analog9' macro='GetAverageInt' >
												<return exp='ANALOG_Int' />
												<argument exp='40000' />
												<argument exp='5' />
											</command>
											<command class_type='calculation' title='Increment value to load' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = Load_Value + 1' />
												<exp exp='' />
												<exp exp='PWM4_Load_Value = Load_Value //store for later' />
											</command>
											<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
												<argument exp='load_value' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='load_Value &gt; 400' swap='0' >
												<flowline >
													<command class_type='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
												</flowline>
												<flowline />
											</command>
										</flowline>
									</command>
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*\n&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='11' >
								<flowline >
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='HP_Driver_Enable' />
									<command class_type='call' title='User Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Enable_ALL_PWM' />
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Don&apos;t speak' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
									<command class_type='decision' title='Global Command - No response' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = 99' swap='0' >
										<flowline >
											<command class_type='goto' title='Don&apos;t speak' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
										<argument exp='&quot;\n*&quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Gains_Default' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Get location 99 for first time operation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='First_time' />
							<argument exp='9' />
						</command>
						<command class_type='decision' title='Do nothing if 9 present' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='First_Time = 9' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Setup location 99 for future powerups' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
									<argument exp='9' />
									<argument exp='9' />
								</command>
								<command class_type='comment' title='' comment='Setup PWM1 thru PWM4 gains to default (1.000)' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='PWM1 Giain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
									<argument exp='11' />
									<argument exp='1000' />
								</command>
								<command class_type='call' title='PWM2 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
									<argument exp='12' />
									<argument exp='1000' />
								</command>
								<command class_type='call' title='PWM3 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
									<argument exp='13' />
									<argument exp='1000' />
								</command>
								<command class_type='call' title='PWM3 Gain place holder' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Write' >
									<argument exp='14' />
									<argument exp='1000' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Load gains' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM1_gain' />
							<argument exp='11' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM2_gain' />
							<argument exp='12' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM3_gain' />
							<argument exp='13' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='PWM4_gain' />
							<argument exp='14' />
						</command>
						<command class_type='calculation' title='Form to decimal value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='PWM1_gain = PWM1_gain / 1000' />
							<exp exp='PWM2_gain = PWM2_gain / 1000' />
							<exp exp='PWM3_gain = PWM3_gain / 1000' />
							<exp exp='PWM4_gain = PWM4_gain / 1000' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Temperatures' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Temp_AN11' macro='GetAverageInt' >
							<return exp='Temp_Float' />
							<argument exp='100000' />
							<argument exp='5' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Temp_Float = (Temp_Float / 1024) * 3 //volts' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Temp_AN11' macro='GetVoltage' >
							<return exp='Temp_Float' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='//Formula according to spec sheet fro MCP9000' />
							<exp exp='Temp_Float = (Temp_float - .5) / .01' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Celsius     =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='Temp_Float' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Temp_Float = (Temp_Float * 1.8) + 32' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Fahrenheit     =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='Temp_Float' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Disable_HP' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='PWM1 and 2 can&apos;t be disabled - Will cause full on
and blow fuse
Set duty to zero which will equate to 1' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Disable 15V drive to Low Power' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Disable' />
						<command class_type='call' title='Disable drive to high power' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='HP_Driver_Disable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Disable' />
						<command class_type='output' title='Slam RB7 low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='128' exp='0' usechipref='1' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Disable' />
						<command class_type='output' title='Slam RB3 Low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='8' exp='0' usechipref='1' />
						<command class_type='call' title='PWM1 High Power 1 Signal is upside down' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='PWM2 High Power 2  Signal is upside down' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='comment' title='' comment='Set duty to zero then disable PWM 3 and 4' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Enable_bit = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Speak' description='Turns Transmitter on and receiver off' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Receive active' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='32' exp='1' usechipref='1' />
						<command class_type='output' title='Transmit off' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='16' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Close_Current_loops' description='Monitor feedback and adjust if required' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Listen' description='Turns Transmitter off and receiver on' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
						<command class_type='output' title='Transmit off' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='16' exp='0' usechipref='1' />
						<command class_type='output' title='Receive active' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='32' exp='0' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Minus' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Minus&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Value_Float' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Value Float is  &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='Value_float' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Load_PWM3_LP1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
							<argument exp='load_Value' />
						</command>
						<command class_type='calculation' title='Save for serial inquiry' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='PWM3_Command_String = tostring$ (load_Value)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Load_PWM' description='Values are loaded into relevant PWM register to match current' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='count' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='LP_multiplier' type='f32' description='' isconst='1' isHidden='0' isinit='1' usrinit='0.00002999999924213625490665435791015625' setinit='.00003' />
						<local name='HP_Multiplier' type='f32' description='' isconst='1' isHidden='0' isinit='1' usrinit='0.0007999999797903001308441162109375' setinit='0.0008' />
						<local name='Current_Target' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0000000' />
						<local name='Measure_Time' type='u32' description='Changes as current gets closer to target' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Error_Register = &quot;No Error&quot;' />
						</command>
						<command class_type='switch' title='Which PWM are we working with?' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM_Flag' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='High Power PWM1 Branch 5' textarea='12,0,12,0' mark='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='label' title='Wait for low current' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='13' labelname='N' />
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='PWM1_Loop_Active = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &gt; .005 //amp' swap='0' >
										<flowline >
											<command class_type='call' title='Dump CAPS' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='13' labelname='' />
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Enable' />
											<command class_type='call' title='Load PWM1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
												<argument exp='1' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Convert value to current to liearize' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='.Current_Target = Value_Float * .HP_multiplier * PWM1_gain' />
										<exp exp='.Load_Value = 0' />
										<exp exp='PWM1_Current_Target = .Current_Target' />
										<exp exp='Enable_HP_15V = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; 1.00 //amps' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='decision' title='Get out after loading' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 20' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
														<argument exp='Value_Float' />
													</command>
												</flowline>
											</command>
											<command class_type='goto' title='Done' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
									<command class_type='decision' title='Decision' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &lt; .Current_Target' swap='0' >
										<flowline >
											<command class_type='calculation' title='Decrement .load_value to reach current' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='.Load_Value = .Load_Value + 1' />
												<exp exp='.count = 0' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
												<argument exp='.Load_Value' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Time' />
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN0_current_HP &gt; .Current_Target * .95' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='40' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='comment' title='' comment='At count 15 we should be around 23mA' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='decision' title='No current at high load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; 300 AND AN0_current_HP &lt; .005' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;PWM1 no current detected&quot;' />
														<exp exp='.count = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='6' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; HP_Limit //limit is 332 W/Cm^2' swap='1' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;No Current HP1 PWM1&quot;' />
														<exp exp='.count = 0' />
													</command>
													<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='6' labelname='G' />
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Disable' />
													<command class_type='output' title='Slam output low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='128' exp='0' usechipref='1' />
												</flowline>
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='load_Value = .Load_Value' />
										<exp exp='PWM1_Load_Store = load_Value' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='High Power PWM2 Branch 4' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='label' title='Wait for low current' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='14' labelname='O' />
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='PWM2_Loop_Active = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN1_current_HP &gt; .005' swap='0' >
										<flowline >
											<command class_type='call' title='Let caps discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='14' labelname='' />
										</flowline>
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Enable' />
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
												<argument exp='1' />
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Convert value to current to liearize' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='.Current_Target = (Value_Float * .HP_multiplier) * PWM2_Gain' />
										<exp exp='.Load_value = 0' />
										<exp exp='PWM2_Current_Target = .Current_Target' />
										<exp exp='Enable_HP_15V = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; 1.00 //amp' swap='0' >
										<flowline >
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='decision' title='Get out after loading' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 20' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
														<argument exp='Value_Float' />
													</command>
												</flowline>
											</command>
											<command class_type='goto' title='Done' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='B' />
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN1_current_HP &lt; .Current_Target' swap='0' >
										<flowline >
											<command class_type='calculation' title='Decrement .load_value to reach current' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='.Load_Value = .Load_Value + 1' />
												<exp exp='.count = 0' />
											</command>
											<command class_type='call' title='Load PWM with load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
												<argument exp='.Load_Value' />
											</command>
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Time' />
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN1_current_HP &gt; .Current_Target * .95' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='40' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='comment' title='' comment='At count 15 we should be around 23mA' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='decision' title='No Current at High Load Value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; 300 AND AN1_current_HP &lt; .005' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;PWM2 no current detected&quot;' />
														<exp exp='.count = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='5' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Do again if current not reached' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; HP_Limit //Lmit is 332+30 w/Cm^2' swap='1' >
												<flowline >
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='1' labelname='' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;No Current HP1 PWM2&quot;' />
														<exp exp='.count = 0' />
													</command>
													<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='5' labelname='F' />
													<command class_type='call' title='Load PWM with load value' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Disable' />
													<command class_type='output' title='Slam output low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='8' exp='0' usechipref='1' />
												</flowline>
											</command>
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='load_Value = .Load_Value' />
										<exp exp='PWM2_Load_Store = load_Value' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='comment' title='' comment='Low Power BRANCH 02 PWM3 AN10' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='11' labelname='Drain Loop' />
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='PWM3_loop_Active = 1' />
									</command>
									<command class_type='decision' title='Wait for discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_Current_LP &gt; .001' swap='0' >
										<flowline >
											<command class_type='call' title='Let caps discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='11' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Convert value to current to liearize AND save Target' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='.Current_Target = (Value_Float * .LP_multiplier) * PWM3_gain' />
										<exp exp='Current_Float = .Current_Target //set in global var' />
										<exp exp='PWM3_Current_Target = .Current_Target //Store for Closed Loop' />
										<exp exp='.Load_Value = 30 //current starting point' />
									</command>
									<command class_type='decision' title='Direct loading of PWM register' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 20' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
														<argument exp='Value_Float+10' />
													</command>
												</flowline>
											</command>
											<command class_type='goto' title='Done' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; .033 //amps' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
												<argument exp='1' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='PWM3_Load_Store = 1' />
											</command>
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='delay' title='Delay' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; AN10_current_LP' swap='0' >
										<flowline >
											<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='15' labelname='PWM3 Loop' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='.Load_Value = .Load_Value + 1' />
												<exp exp='.count = 0' />
												<exp exp='PWM3_Load_Store = .Load_Value' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
												<argument exp='.Load_Value' />
											</command>
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &lt; 0.005' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='300' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
											<command class_type='decision' title='Getting close? Then slow down' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_current_LP &gt; .Current_Target * .75' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='50 count should be around 4mA' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.load_Value &gt; 334 //5% over at 4khz' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;Load Value high&quot;' />
														<exp exp='.count = 0' />
														<exp exp='PWM3_Load_Store = 1' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='7' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; LP_Limit' swap='1' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_Current_LP &lt; .Current_Target' swap='0' >
														<flowline >
															<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='15' labelname='' />
														</flowline>
														<flowline />
													</command>
													<command class_type='label' title='Decrement' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='C' />
													<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
													<command class_type='comment' title='' comment='Decrement if large' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
													<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_Current_LP &gt; .Current_Target' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='.load_Value = .Load_Value - 1' />
															</command>
															<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
																<argument exp='.Load_Value' />
															</command>
															<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
															<command class_type='goto' title='Decrement' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='2' labelname='' />
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;No Current LP1 PWM3&quot;' />
														<exp exp='.count = 0' />
														<exp exp='PWM3_Load_Store = 1' />
													</command>
													<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='7' labelname='Error' />
													<command class_type='call' title='Set PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Disable' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = .Load_Value' />
												<exp exp='PWM3_Load_Store = .Load_Value' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='comment' title='' comment='Low Power BRANCH 03 PWM4 AN9' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='12' labelname='Drain Loop' />
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='PWM4_loop_Active = 1' />
									</command>
									<command class_type='decision' title='Wait for discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN9_Current_LP &gt; .001' swap='0' >
										<flowline >
											<command class_type='call' title='Let caps discharge' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='12' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='calculation' title='Convert value to current to liearize' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='.Current_Target = (Value_Float * .LP_multiplier) * PWM4_gain' />
										<exp exp='Current_Float = .Current_Target //set in global var' />
										<exp exp='PWM4_Current_Target = .Current_Target' />
										<exp exp='.Load_Value = 20 //current starting point' />
									</command>
									<command class_type='decision' title='Direct loading of PWM register' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 20' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
												</flowline>
												<flowline >
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
														<argument exp='Value_Float+10' />
													</command>
												</flowline>
											</command>
											<command class_type='goto' title='Done' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; .033 //amps' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
												<argument exp='1' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='PWM4_Load_Store = 1' />
											</command>
											<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='' />
										</flowline>
										<flowline />
									</command>
									<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
									<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &gt; AN9_current_LP' swap='0' >
										<flowline >
											<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='9' labelname='PWM4 Loop' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='.Load_Value = .Load_Value + 1' />
												<exp exp='.count = 0' />
												<exp exp='PWM4_Load_Store = .Load_Value' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
												<argument exp='.Load_Value' />
											</command>
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Current_Target &lt; 0.005' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='300' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
											<command class_type='decision' title='Getting close? Then slow down' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN9_current_LP &gt; .Current_Target * .75' swap='0' >
												<flowline >
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Too much drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.load_Value &gt; 334 //5% over at 4khz' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;Load Value high&quot;' />
														<exp exp='.count = 0' />
														<exp exp='PWM4_Load_Store = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='8' labelname='' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='.Load_Value &gt; LP_Limit' swap='1' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN9_Current_LP &lt; .Current_Target' swap='0' >
														<flowline >
															<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='9' labelname='' />
														</flowline>
														<flowline />
													</command>
													<command class_type='label' title='Decrement' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='D' />
													<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
													<command class_type='comment' title='' comment='Decrement if large' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
													<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='AN10_Current_LP &gt; .Current_Target' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
																<exp exp='.load_Value = .Load_Value - 1' />
															</command>
															<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
																<argument exp='.Load_Value' />
															</command>
															<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
															<command class_type='goto' title='Decrement' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='3' labelname='' />
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='Error_Register = &quot;No Current LP2 PWM4&quot;' />
														<exp exp='.count = 0' />
														<exp exp='PWM4_Load_Store = 0' />
													</command>
													<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='8' labelname='Error' />
													<command class_type='call' title='Set PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Disable' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='call' title='Read Analogs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='load_Value = .Load_Value' />
												<exp exp='PWM4_Load_Store = .Load_Value' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='4' labelname='Finished' />
						<command class_type='calculation' title='Reset load value and count to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='.Load_Value = 0' />
							<exp exp='.count = 0' />
							<exp exp='State = 0' />
							<exp exp='Value_Float = 1.0' />
							<exp exp='AN0_current_HP = 0' />
							<exp exp='AN1_current_HP = 0' />
							<exp exp='AN10_Current_LP = 0' />
							<exp exp='AN9_current_LP = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Dump_Pulse_OFF' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Turn OFF dump and LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Load_PWM4_LP2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
							<argument exp='load_Value' />
						</command>
						<command class_type='calculation' title='Save for serial inquiry' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='PWM1_Command_String = tostring$ (load_Value)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Dump_Pulse_ON' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Turn on dump and LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='0' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Setup' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Turns off 15v drive to LP/HP loads LP0 and HP1 0' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
						<command class_type='call' title='Turn OFF dump pulse and LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Dump_Pulse_OFF' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Low Power Tables' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Array_Fills' />
						<command class_type='call' title='High Power Tables' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='HP_Array_Fills' />
						<command class_type='call' title='Enable LP 15V' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Report' description='Serially sends stored data' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Temp_AN11' macro='GetAverageInt' >
							<return exp='Temp_Var' />
							<argument exp='10000' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Turn on transmit' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Error =&quot;' />
						</command>
						<command class_type='call' title='Se nd contents of error reg' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='Error_Register' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send board address' textarea='36,-9,36,-9' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Address =&quot;' />
						</command>
						<command class_type='call' title='Get flash Value to verify' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='Address_int' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Se nd contents of error reg' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='Address_int' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send software revision' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Software Rev =&quot;' />
						</command>
						<command class_type='call' title='Se nd contents of error reg' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='Revision' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send Currents' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Read_all_Currents' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM1 HP Current =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='AN0_current_HP' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM2 HP Current =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='AN1_current_HP' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM3 HP Current =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='AN10_Current_LP' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM4 HP Current =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='AN9_current_LP' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send gain values' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM1 Gain =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM1_gain' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM2 Gain =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM2_gain' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM3 Gain =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM3_gain' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM4 Gain =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM4_gain' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Se nd contents of error reg' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='Revision' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send Load Value' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;load Value = &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='load_Value' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Send Temperatures' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Temperatures' />
						<command class_type='comment' title='' comment='Send Light Levels' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='comment' title='' comment='Current Float Calculated' textarea='12,0,12,0' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Current Float =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='Current_Float' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='calculation' title='Command' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='State = 0' />
							<exp exp='Error_Register = &quot;No Error&quot; //cleared error resgister' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Light_Levels' />
						<command class_type='comment' title='' comment='Load Stores
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM1 Load Store =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='PWM1_Load_Store' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM2 Load Store =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='PWM2_Load_Store' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM3 Load Store =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='PWM3_Load_Store' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM4 Load Store =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='PWM4_Load_Store' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='comment' title='' comment='Current Targets' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Current Targets:&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM1 = &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM1_Current_Target' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM2 = &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM2_Current_Target' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM3 = &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM3_Current_Target' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;PWM4 = &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM4_Current_Target' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Turn on receive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Time2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Serial_Interrupt' description='Just get data and out' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR5' >
							<settings timer='1' prescale='256' postscale='-1' rollover='65536' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='3' />
								<option value='65536' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Both Handshakes low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
						<command class_type='call' title='Get data' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveString' >
							<return exp='Serial_String' />
							<argument exp='15' />
							<argument exp='12' />
						</command>
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='1' usechipref='1' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='8' exp='0' usechipref='1' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR5' call='Serial_Interrupt' >
							<settings timer='1' prescale='256' postscale='-1' rollover='65536' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='3' />
								<option value='65536' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ramp_PWM' description='Ramp PWM to commanded value' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Current Loops' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR5' >
							<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='call' title='Test and Send Data' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Send_Data' />
						<command class_type='decision' title='Is the value at zero?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='PWM2 to full (off)' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Disable' />
								<command class_type='output' title='Slam RB7 low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='128' exp='0' usechipref='1' />
								<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Disable' />
								<command class_type='output' title='Slam RB3 low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='8' exp='0' usechipref='1' />
								<command class_type='comment' title='' comment='One and two done Low' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='Disable PWM3' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Disable' />
								<command class_type='output' title='Slam RB8 LOW' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='256' exp='0' usechipref='1' />
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Disable' />
								<command class_type='output' title='Slam RB9 Low' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='512' exp='0' usechipref='1' />
								<command class_type='call' title='Dump CAPS and flash LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
									<argument exp='&quot;PWM HP Current =&quot;' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
									<argument exp='AN0_current_HP' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
									<argument exp='&quot;\n&quot;' />
								</command>
								<command class_type='call' title='remove 15v Drive' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='HP_Driver_Disable' />
								<command class_type='call' title='remove 15v Drive' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Disable' />
								<command class_type='goto' title='Goto Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='switch' title='Determine which PWM to ramp' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM_Flag' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='High Power Branch 5' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Set PWM to full off' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='call' title='Discharge Caps' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
									<command class_type='call' title='Ramp and Load PWM1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='High Power Brach 4' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Set PWM to Full (OFF)' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='call' title='Discharge Caps' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Discharge' />
									<command class_type='call' title='Ramp and Load PWM2' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='comment' title='' comment='Low Power Branch 2' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Enable' />
									<command class_type='call' title='Set PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='call' title='Enable 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
									<command class_type='call' title='Ramp and Load PWM3' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='comment' title='' comment='Low Power Branch 3' textarea='36,7,36,7' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Enable' />
									<command class_type='call' title='Set PWM to zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
										<argument exp='1' />
									</command>
									<command class_type='call' title='Enable 15V drive' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
									<command class_type='call' title='Ramp and Load PWM4' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM' />
								</flowline>
							</case>
						</command>
						<command class_type='interrupt' title='Current Loops' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR5' call='Close_Current_loops' >
							<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='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Light_Levels' description='Serially report levels' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Light_AN2' macro='GetAverageInt' >
							<return exp='Light_p1' />
							<argument exp='250000' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;LP Light_p1 =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='Light_p1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Light_AN4' macro='GetAverageInt' >
							<return exp='Light_p2' />
							<argument exp='250000' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;HP Light_p2 =&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='Light_p2' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Send_Data' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='User Macro' break='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;pwm3 load store  &quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendFloat' >
							<argument exp='PWM3_Load_Store' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Value Float is &quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='Value_Float' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;HERE &quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Value String is &quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='Value_string' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Value Float is &quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
							<argument exp='Value_Float' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='500000 counts = 15 seconds
33,333 counts = 1 second
1 count = .00003 sec (30uS)
3333counts = 100mS
' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='output' title='Clamp HP LED on for transistor off at Powerup' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='8' exp='0' usechipref='1' />
						<command class_type='output' title='Clamp HP LED on for transistor off at Powerup' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097153' mask='128' exp='0' usechipref='1' />
						<command class_type='comment' title='' comment='******************************************' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Gains_Default' />
						<command class_type='comment' title='' comment='******************************************' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
						<command class_type='call' title='Setup Registers' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Setup' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='100' type='1' />
						<command class_type='call' title='Turn on dump and LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Dump_Pulse_ON' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='100' type='1' />
						<command class_type='call' title='Turn OFF dump pulse and LED' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Dump_Pulse_OFF' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='Initialise' />
						<command class_type='call' title='Get Board Address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='Address_eprom' macro='Read' >
							<return exp='Address_int' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='State = 0' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Respond' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Speak' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
							<argument exp='&quot;Ready\n&quot;' />
						</command>
						<command class_type='call' title='User Macro' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Send_Data' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='LP_Drive_Enable' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='HP_Driver_Enable' />
						<command class_type='loop' title='Waiting for serial action' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
							<flowline >
								<command class_type='switch' title='State Determined by Serial action' textarea='36,-129,36,-129' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='State' >
									<case >
										<flowline />
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='call' title='Disable PWM&apos;s' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_HP' />
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='call' title='Enable PWMs' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Enable_ALL_PWM' />
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='comment' title='' comment='QUESTION STATE' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Question' />
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='comment' title='' comment='COMMAND STATE' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Command' />
										</flowline>
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='comment' title='' comment='bad char' textarea='12,0,12,0' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
									<case exp='11' >
										<flowline >
											<command class_type='comment' title='' comment='Wrong Address' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='State = 0' />
								</command>
								<command class_type='call' title='Both Handshakes low' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
								<command class_type='call' title='Get data' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveString' >
									<return exp='Serial_String' />
									<argument exp='30' />
									<argument exp='12' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Serial_handler' />
								<command class_type='calculation' title='Zero out serial string' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='Serial_string = &quot;&quot;' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM1_loop_Active = 0 OR PWM1_current_target = 0 OR Enable_HP_15V = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='High Power' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Closed_Loop_PWM1' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM2_Loop_Active = 0 OR PWM2_Current_Target = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='High Power' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Closed_loop_PWM2' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM3_loop_Active = 0 OR PWM3_Current_Target = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='Low Power' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Close_Loop_PWM3' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM4_loop_active = 0 OR PWM4_Current_Target = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='Low Power' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Closed_Loop_PWM4' />
									</flowline>
								</command>
								<command class_type='label' title='Declare Connection Point' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' labelid='0' labelname='A' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Disable_LP' description='Onlt disables low power' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Enable_bit = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Time' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Dwell_period' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='decision' title='Is this high power timing or not?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='PWM_Flag = 1 OR PWM_Flag = 2' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 100' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='20' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 99 AND Value_Float &lt; 300' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='15' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 299 AND Value_Float &lt; 600' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 599' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &lt; 100' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='500' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 99 AND Value_Float &lt; 300' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='100' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 299 AND Value_Float &lt; 600' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='50' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Value_Float &gt; 599' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='30' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Analog0' x='-70' y='-70' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<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='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Analog1' x='-12.5157' y='-70' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='1' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<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='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Analog9' x='74.9687' y='-70' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='8388863' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='9' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<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='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Analog10' x='142.453' y='-70' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='8388863' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='10' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<value target='actime' data='100' />
					<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='1' vmaj='2' codename='PWM1' x='-90' y='110' 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='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTB.7' />
					<value target='RemapPin' data='007' />
					<value target='timer' data='001' />
					<value target='period' data='799' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='80.000000' />
					<value target='frequency_calc2' data='12500.000000' />
					<value target='frequency_calc' data='12.500000' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='5000.000000' />
					<value target='OldReqFreq' data='5000.000000' />
					<value target='CalcFreq' data='5000.000000' />
					<value target='CalcPeriod' data='799' />
					<value target='CalcScaler' data='1' />
					<value target='Apply' data='1' />
					<value target='ClockSpeed' data='20000000' />
					<value target='SimRep' data='001' />
					<value target='Family' data='PIC16' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM2' x='-28.9539' y='110' z='1.25' 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='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='002' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTB.3' />
					<value target='RemapPin' data='005' />
					<value target='timer' data='002' />
					<value target='period' data='799' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='80.000000' />
					<value target='frequency_calc2' data='12500.000000' />
					<value target='frequency_calc' data='12.500000' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='5000.000000' />
					<value target='OldReqFreq' data='5000.000000' />
					<value target='CalcFreq' data='5000.000000' />
					<value target='CalcPeriod' data='799' />
					<value target='CalcScaler' data='1' />
					<value target='Apply' data='1' />
					<value target='ClockSpeed' data='20000000' />
					<value target='SimRep' data='001' />
					<value target='Family' data='PIC16' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM3' x='-87.9079' y='70' z='2.5' 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='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='003' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTB.8' />
					<value target='RemapPin' data='008' />
					<value target='timer' data='003' />
					<value target='period' data='2499' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='249.999985' />
					<value target='frequency_calc2' data='4000.000000' />
					<value target='frequency_calc' data='4.000000' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='4000.000000' />
					<value target='OldReqFreq' data='4000.000000' />
					<value target='CalcFreq' data='4000.000000' />
					<value target='CalcPeriod' data='2499' />
					<value target='CalcScaler' data='1' />
					<value target='Apply' data='1' />
					<value target='ClockSpeed' data='20000000' />
					<value target='SimRep' data='001' />
					<value target='Family' data='PIC16' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM4' x='-26.8618' y='70' z='3.75' 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='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='004' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTB.9' />
					<value target='RemapPin' data='009' />
					<value target='timer' data='004' />
					<value target='period' data='266' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='26.700001' />
					<value target='frequency_calc2' data='37453.183594' />
					<value target='frequency_calc' data='37.453182' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='15000.000000' />
					<value target='OldReqFreq' data='15000.000000' />
					<value target='CalcFreq' data='14981.273438' />
					<value target='CalcPeriod' data='266' />
					<value target='CalcScaler' data='1' />
					<value target='Apply' data='1' />
					<value target='ClockSpeed' data='20000000' />
					<value target='SimRep' data='001' />
					<value target='Family' data='PIC16' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1085ee2f-0d48-4189-869c-f659fd873fd4' vmin='1' vmaj='1' codename='Recieve_Enable' x='-80' y='10' z='7.3' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.5' />
					<value target='polarity' data='000' />
					<value target='on_color' data='10551200' />
					<value target='length' data='4.000000' />
					<value target='show_label' data='001' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='2.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1085ee2f-0d48-4189-869c-f659fd873fd4' vmin='1' vmaj='1' codename='Transmit_Enable' x='-40' y='40' z='7.3' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.4' />
					<value target='polarity' data='001' />
					<value target='on_color' data='4325631' />
					<value target='length' data='4.000000' />
					<value target='show_label' data='001' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='2.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ad052176-691e-4542-adb5-53f6fbea9b5b' vmin='1' vmaj='1' codename='Dump_LED' x='-80' y='40' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.3' />
					<value target='polarity' data='001' />
					<value target='on_color' data='255' />
					<value target='show_label' data='001' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='2.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1a8c2bb7-8bed-4a1c-9186-ba24688c8840' vmin='3' vmaj='1' codename='Temp_AN11' x='-120' y='-20' z='20.651' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='tang_col' data='16711680' />
					<value target='mark_col' data='255' />
					<value target='body_color' data='12632256' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='11' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<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='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Light_AN2' x='-62.5784' y='-10' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='2' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<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='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='Light_AN4' x='44.9059' y='-10' z='0' xsz='22.6274' ysz='22.6274' zsz='14.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='8388863' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='4' />
					<value target='vrefvol' data='300' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='064' />
					<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='06829bc6-9e27-4353-9d95-3ba9dabc3384' vmin='0' vmaj='1' codename='Address_eprom' x='30' y='70' z='17.05' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Enabled' data='1' />
					<value target='NumValues' data='001' />
					<value target='Storage' data='000' />
					<value target='FlashPage' data='001' />
					<value target='FlashPage2' data='011' />
					<value target='FlashAddress' data='1024' />
					<value target='Initaliser' data='0,1,2,3,4' />
					<value target='BitsPerVal' data='16' />
					<value target='FlashSize' data='21845' />
					<value target='BitsPerInst' data='24' />
					<value target='PageSizeInst' data='512' />
					<value target='PageMask' data='4294966272' />
					<value target='RowSizeInst' data='64' />
					<value target='MinWriteInst' data='1' />
					<value target='RowsPerPage' data='8' />
					<value target='PCINC' data='2' />
					<value target='ReadInst' data='' />
					<value target='ErasePage' data='' />
					<value target='WriteRowInst' data='' />
					<value target='DeviceFamily' data='PIC16' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' x='70' y='70' z='8.065' xsz='64' ysz='32' zsz='1.48' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='000' />
					<value target='cal_uart::BAUD' data='38400' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='000' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTB.10' />
					<value target='cal_uart::OutputPins' data='010' />
					<value target='cal_uart::TXAlt' data='1' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTB.11' />
					<value target='cal_uart::InputPins' data='011' />
					<value target='cal_uart::RXAlt' data='1' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.5' />
					<value target='cal_uart::CTS' data='$PORTB.4' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='001' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' x='-70' y='-90' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='AN0 HP PWM1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='-10' y='-90' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='AN1 HP PWM2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='80' y='-90' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='AN9 LP PWM4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label4' x='140' y='-90' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='AN10 LP PWM3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label5' x='-60' y='-30' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Light Level AN2 Plug1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label6' x='50' y='-30' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Light Level AN4 Plug2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label7' x='-160' y='-20' z='7.3' xsz='8' ysz='8' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='TEMP AN11' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='-5.76936' ye='79.4488' ze='275.183' xt='-5.76936' yt='79.4488' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='857' dy='748' zoom='376.829' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='781.66' xt='0' yt='0' 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='Load_PWM3_LP1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Question' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='80' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Speak' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Listen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Report' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Light_Levels' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Discharge' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Enable_ALL_PWM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Disable_LP' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='105' scrollx='0' scrolly='1868' flags='0' />
		<view type='0' name='Ramp_PWM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='120' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Load_PWM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='55' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Serial_handler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Data' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Disable_HP' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='HP_Driver_Enable' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Setup' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='95' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Closed_Loop_PWM1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Serial_Interrupt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_all_Currents' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='110' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Send_Value_Float' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Time' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Time2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Respond' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Closed_Loop_PWM4' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Close_Loop_PWM3' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQwYAAGEDAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
