<root>
<document scada='0' schema='102' license='1,96450348,R84MNU' title='' description='' fcversion='590080' target='PIC16.24F.24FJ64GB002' >
	<config data='!0,ff1f!10,fcff!20,188f!30,3fff%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,3%22,1%23,1%24,0%25,0%26,2%28,0%2b,1%2c,1%2f,0%30,f%34,1%35,1%36,1%37,1%38,3%3a,1%3b,1%3c,1%3d,1%3e,0%3f,0' clkspd='8000000' simspd='0' usewdt='1' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Compare_question' />
		<watch expr='Compare_Command' />
		<watch expr='Board_Address_int' />
		<watch expr='Value' />
		<watch expr='State' />
		<watch expr='State' />
		<watch expr='Serial_handler.Flash_Address' />
		<watch expr='Value_Float' />
		<watch expr='Pointer' />
		<watch expr='load_Value' />
		<watch expr='ANALOG_Int' />
		<watch expr='Serial_String' />
		<watch expr='Branch_int' />
		<watch expr='TypeC' />
		<watch expr='TypeQ' />
	</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='21' />
			<data name='CalculatedCommsDelay' value='21' />
			<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='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='150' />
					</def>
				</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='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='TypeC' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;C&quot;' setinit='&quot;C&quot;' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='junk_Count' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='State_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pointer' type='u8' 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='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='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='0' setinit='0' />
				</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='Listen' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Compare_question' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Compare_Command' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Serial_String' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;HELLO&quot;' setinit='&quot;HELLO&quot;' >
						<array size='11' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flash_Address' type='u8' 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='PWM3_Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</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='PWM_Drive_Value' 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.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PWM2_Load_Value' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TypeQ' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;Q&quot;' setinit='&quot;Q&quot;' >
						<array size='2' />
					</def>
				</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='Enable_150VDC' 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='Enable_150VDC' macro='TurnOn' />
						<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='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='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='LP_Array_Fills' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='lp_array_list[7] = 0' />
							<exp exp='lp_array_list[8] = 0' />
							<exp exp='lp_array_list[9] = 0' />
							<exp exp='lp_array_list[10] = 1' />
							<exp exp='lp_array_list[11] = 2' />
							<exp exp='lp_array_list[12] = 3' />
							<exp exp='lp_array_list[13] = 10' />
							<exp exp='lp_array_list[14] = 11' />
							<exp exp='lp_array_list[15] = 13' />
							<exp exp='lp_array_list[16] = 18' />
							<exp exp='lp_array_list[17] = 23' />
							<exp exp='lp_array_list[18] = 30' />
							<exp exp='lp_array_list[19] = 36' />
							<exp exp='lp_array_list[20] = 40' />
							<exp exp='lp_array_list[21] = 50' />
							<exp exp='lp_array_list[22] = 57' />
							<exp exp='lp_array_list[23] = 65' />
							<exp exp='lp_array_list[24] = 73' />
							<exp exp='lp_array_list[25] = 83' />
							<exp exp='lp_array_list[26] = 96' />
							<exp exp='lp_array_list[27] = 104' />
							<exp exp='lp_array_list[28] = 108' />
							<exp exp='lp_array_list[29] = 126' />
							<exp exp='lp_array_list[30] = 135' />
							<exp exp='lp_array_list[31] = 142' />
							<exp exp='lp_array_list[32] = 151' />
							<exp exp='lp_array_list[33] = 171' />
							<exp exp='lp_array_list[34] = 179' />
							<exp exp='lp_array_list[35] = 196' />
							<exp exp='lp_array_list[36] = 212' />
							<exp exp='lp_array_list[37] = 220' />
							<exp exp='lp_array_list[38] = 242' />
							<exp exp='lp_array_list[39] = 256' />
							<exp exp='lp_array_list[40] = 262' />
							<exp exp='lp_array_list[41] = 279' />
							<exp exp='lp_array_list[42] = 291' />
							<exp exp='lp_array_list[43] = 303' />
							<exp exp='lp_array_list[44] = 327' />
							<exp exp='lp_array_list[45] = 346' />
							<exp exp='lp_array_list[46] = 351' />
							<exp exp='lp_array_list[47] = 369' />
							<exp exp='lp_array_list[48] = 392' />
							<exp exp='lp_array_list[49] = 419' />
							<exp exp='lp_array_list[50] = 430' />
							<exp exp='lp_array_list[51] = 440' />
							<exp exp='lp_array_list[52] = 456' />
							<exp exp='lp_array_list[53] = 469' />
							<exp exp='lp_array_list[54] = 493' />
							<exp exp='lp_array_list[55] = 517' />
							<exp exp='lp_array_list[56] = 534' />
							<exp exp='lp_array_list[57] = 547' />
							<exp exp='lp_array_list[58] = 556' />
							<exp exp='lp_array_list[59] = 580' />
							<exp exp='lp_array_list[60] = 620' />
							<exp exp='lp_array_list[61] = 647' />
							<exp exp='lp_array_list[62] = 668' />
							<exp exp='lp_array_list[63] = 668' />
							<exp exp='lp_array_list[64] = 681' />
							<exp exp='lp_array_list[65] = 701' />
							<exp exp='lp_array_list[66] = 718' />
							<exp exp='lp_array_list[67] = 725' />
							<exp exp='lp_array_list[68] = 745' />
							<exp exp='lp_array_list[69] = 775' />
							<exp exp='lp_array_list[70] = 795' />
							<exp exp='lp_array_list[71] = 823' />
							<exp exp='lp_array_list[72] = 842' />
							<exp exp='lp_array_list[73] = 842' />
							<exp exp='lp_array_list[74] = 892' />
							<exp exp='lp_array_list[75] = 892' />
							<exp exp='lp_array_list[76] = 929' />
							<exp exp='lp_array_list[77] = 939' />
							<exp exp='lp_array_list[78] = 944' />
							<exp exp='lp_array_list[79] = 951' />
							<exp exp='lp_array_list[80] = 952' />
							<exp exp='lp_array_list[81] = 953' />
							<exp exp='lp_array_list[82] = 954' />
							<exp exp='lp_array_list[83] = 958' />
							<exp exp='lp_array_list[84] = 959' />
							<exp exp='lp_array_list[85] = 960' />
							<exp exp='lp_array_list[86] = 964' />
							<exp exp='lp_array_list[87] = 965' />
							<exp exp='lp_array_list[88] = 965' />
							<exp exp='lp_array_list[89] = 965' />
							<exp exp='lp_array_list[90] = 967' />
							<exp exp='lp_array_list[91] = 968' />
							<exp exp='lp_array_list[92] = 969' />
							<exp exp='lp_array_list[93] = 969' />
							<exp exp='lp_array_list[94] = 970' />
							<exp exp='lp_array_list[95] = 971' />
							<exp exp='lp_array_list[96] = 972' />
							<exp exp='lp_array_list[97] = 973' />
						</command>
						<command class_type='calculation' title='Calculation' break='1' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Current_Float = 20.5 //Milliamps' />
							<exp exp='Pointer = Current_float / .35' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='PWM_Drive_Value = lp_array_list[pointer]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Question' description='Serial Command requested data. Formulate and answer' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Disable_150VDC' 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='Enable_150VDC' macro='TurnOff' />
						<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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Disable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Disable' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Disable' />
						<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='Load_PWM1_HP1' 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='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='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='0' />
						</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='0' />
						</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='0' />
						</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='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Serial_handler' description='Object is to get serial data and separate into individual packets.
and simoply 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='*********** Needs review' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
							<exp exp='Board_Address_int = 1' />
							<exp exp='Flash_address = 1' />
						</command>
						<command class_type='decision' title='Do nothing if incorrect address' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Board_Address_int = Flash_Address' 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>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Valid First Char?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='TypeQ = Left$ (Serial_String,1)' />
									<exp exp='TypeC = Left$ (serial_string,1)' />
									<exp exp='Compare_question = Compare$ (TypeQ,&quot;Q&quot;,1)' />
									<exp exp='Compare_Command = Compare$ (TypeC,&quot;C&quot;,1)' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Compare_Command &gt; 0 AND Compare_question &gt; 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='Is this a command?' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Compare_question = 0' swap='1' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Compare_Command = 0' swap='1' >
											<flowline >
												<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='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>
											<flowline >
												<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>
										</command>
									</flowline>
									<flowline >
										<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='State announce' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='State = 8 // Question state.' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</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_Array_Fills' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Number is read value per 5 mA' 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' />
						</command>
					</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='7' >
								<flowline >
									<command class_type='comment' title='' comment='HP1 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='call' title='Start at Zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='SetDutyCycle10Bit' >
										<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='Pointer = Value_Float / 5 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<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='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' />
											</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>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='comment' title='' comment='HP2 PWM2 Plug1 FB  AN1' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
									<command class_type='call' title='Start at Zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='SetDutyCycle10Bit' >
										<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='Pointer = Value_Float / 5 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<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='call' title='Get analog0 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' />
											</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>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='9' >
								<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='call' title='Start from zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='SetDutyCycle10Bit' >
										<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='Pointer = Value_Float / .35 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<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='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='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='PWM3_Load_Value = Load_Value' />
											</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>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='10' >
								<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='call' title='Start at Zero' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='SetDutyCycle10Bit' >
										<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='Pointer = Value_Float / .35 //mA' />
										<exp exp='Pointer = pointer - 1' />
										<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='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='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='PWM4_Load_Value = Load_Value' />
											</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='No Currenmt being drawn?' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Load_Value &gt; 100 AND analog_int &lt; 100' swap='0' >
												<flowline >
													<command class_type='call' title='ERROR Stop the PWM' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Disable' />
													<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
														<exp exp='State = 911' />
													</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>
										</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='0' labelname='A' />
					</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='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='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='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='1' usechipref='1' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='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='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='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' />
						<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
					</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_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='Setup' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<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' mark='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM1' macro='Enable' />
						<command class_type='call' title='Enable' mark='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM2' macro='Enable' />
						<command class_type='call' title='Enable' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM3' macro='Enable' />
						<command class_type='call' title='Enable' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='PWM4' macro='Enable' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM1_HP1' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM2_HP2' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM3_LP1' />
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Load_PWM4_LP2' />
						<command class_type='delay' title='Delay' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='1' type='2' />
						<command class_type='output' title='Output' disable='1' 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='Test_LED' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='4' exp='1' usechipref='1' />
						<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='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='2097152' mask='4' exp='0' usechipref='1' />
					</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='call' title='Temporary Eprom address Store' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='FlashEEPROM1' macro='Write' >
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='Initialise' />
						<command class_type='interrupt' title='Interrupt' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='RXINT0' call='Serial_handler' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' 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='Enable UART and Set to listen on serial' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Listen' />
						<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' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Serial_handler' />
						<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='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Test_LED' />
						<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' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Disable_150VDC' />
											<command class_type='calculation' title='Reset State' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 6' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='call' title='Enable PWMs' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='Enable_150VDC' />
											<command class_type='calculation' title='Reset State' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 7' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Reset State' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 8' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Reset State' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 9' />
											</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' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 10' />
											</command>
										</flowline>
									</case>
									<case exp='11' >
										<flowline >
											<command class_type='calculation' title='Reset State Wrong address' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 0' />
											</command>
											<command class_type='calculation' title='Calculation' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='State = 11' />
											</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='Test_LED' />
								<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='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='10' />
									<argument exp='15' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='5' type='1' />
								<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='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='state = 9 OR State = 8' 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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendString' >
											<argument exp='Serial_String' />
										</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 = &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='Address_String' />
										</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;state =&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='state' />
										</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;Question =&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='Compare_question' />
										</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;Command =&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='Compare_Command' />
										</command>
									</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='-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='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='-52.5157' 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='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='-35.0313' 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='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='-17.547' 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='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.3' />
					<value target='RemapPin' data='005' />
					<value target='timer' data='001' />
					<value target='period' data='600' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='150.250000' />
					<value target='frequency_calc2' data='6655.574219' />
					<value target='frequency_calc' data='6.655574' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
					<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.7' />
					<value target='RemapPin' data='007' />
					<value target='timer' data='002' />
					<value target='period' data='600' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='150.250000' />
					<value target='frequency_calc2' data='6655.574219' />
					<value target='frequency_calc' data='6.655574' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
					<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='600' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='150.250000' />
					<value target='frequency_calc2' data='6655.574219' />
					<value target='frequency_calc' data='6.655574' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
					<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='600' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='150.250000' />
					<value target='frequency_calc2' data='6655.574219' />
					<value target='frequency_calc' data='6.655574' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
					<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='1.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='1.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='led_Flasher' 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.2' />
					<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='1.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='-110' 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='-52.5784' y='-40' 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='-35.0941' y='-40' 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='1085ee2f-0d48-4189-869c-f659fd873fd4' vmin='1' vmaj='1' codename='Enable_150VDC' x='-30' y='10' 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='10551200' />
					<value target='length' data='4.000000' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.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='06829bc6-9e27-4353-9d95-3ba9dabc3384' vmin='0' vmaj='1' codename='FlashEEPROM1' x='0' y='30' z='16.8' 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='010' />
					<value target='FlashPage2' data='011' />
					<value target='FlashAddress' data='10240' />
					<value target='Initaliser' data='0,1,2,3' />
					<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='60' y='0' 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='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<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='0' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
				</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='-50.8248' ye='-9.73382' ze='461.181' xt='-50.8248' yt='-9.73382' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='1347' dy='852' zoom='353.413' 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='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='60' scrollx='0' scrolly='841' flags='0' />
		<view type='0' name='Command' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='55' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Serial_handler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='80' scrollx='0' scrolly='39' flags='0' />
		<view type='0' name='Close_Current_loops' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Load_PWM1_HP1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Load_PWM3_LP1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Load_PWM4_LP2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Question' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Load_PWM2_HP2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Zero_ALL_PWMS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Setup' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Listen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Speak' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Test_LED' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARwYAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
