<root>
<document scada='0' schema='102' license='1,66558076,6G00VE' title='' description='' fcversion='590080' target='ESP.ESP32.ESP32_WROOM_32' >
	<config data='' clkspd='80000000' simspd='0' usewdt='1' constif='0' commport='3' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<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='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='3' />
			<data name='CalculatedCommsDelay' value='3' />
			<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='d93ca65a-0086-418b-bcf3-97d68fe39e07' 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 />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='adc0_value' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lutcntadc0' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIMER_OFF' type='u32' 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='ADC_3MIN' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM6' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM5' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM4' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM3' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TM_INTP2' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM2' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TM_INTP1' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIM1' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DATA_RX' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TM_INTP0' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC1_STATUS' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TEST_RUN' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc1_value' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TEST_STATUS_ON' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BOARD_STATUS' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FLAG1' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TIMER_ON' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC0_STATUS' type='b1' description='' 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='TEST' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='SECONDI' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TEST_STATUS_ON = 1' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='1' usechipref='0' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TEST_STATUS_ON = 0' swap='0' >
									<flowline >
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='0' usechipref='0' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TIMERTEST' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIM5 != 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='TIM5 = TIM5 - 1' />
									<exp exp='TIM6 = TIM6 + 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIM2 = 1' swap='0' >
									<flowline >
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='65536' exp='0' usechipref='0' />
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='TIM2 = 0' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='65536' exp='1' usechipref='0' />
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='TIM2 = 1' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIM6 &gt;= 60 &amp;&amp; ADC_3MIN = 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='TIM6 = 0' />
											<exp exp='FLAG1 = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIM6 &gt;= 120 &amp;&amp; ADC_3MIN = 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='TIM6 = 0' />
											<exp exp='FLAG1 = 1' />
										</command>
									</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='TIM5 = 0' swap='0' >
									<flowline >
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='0' usechipref='0' />
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='TEST_RUN = 0' />
										</command>
										<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR1' >
											<settings timer='1' prescale='-1' postscale='-1' rollover='500' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='500' />
												<option value='0' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIMER_ON != 0 &amp;&amp; TEST_STATUS_ON = 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='TIMER_ON = TIMER_ON - 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIMER_ON = 0 &amp;&amp; TEST_STATUS_ON = 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='TIMER_ON = TIM3' />
											<exp exp='TEST_STATUS_ON = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIMER_OFF != 0 &amp;&amp; TEST_STATUS_ON = 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='TIMER_OFF = TIMER_OFF - 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIMER_OFF = 0 &amp;&amp; TEST_STATUS_ON = 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='TIMER_OFF = TIM4' />
											<exp exp='TEST_STATUS_ON = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='TEST' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DSP_WAVE' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DATA_DECODE' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='n' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='DATA_RX' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
					</flowline>
				</macro>
				<macro >
					<flowline name='TIMER1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TIM1 = 1' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='32768' exp='0' usechipref='0' />
								<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='TIM1 = 0' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='32768' exp='1' usechipref='0' />
								<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
									<exp exp='TIM1 = 1' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='STORE_ADC1' 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='ADC1BUFF' macro='PutData' >
							<argument exp='adc1_value' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='STORE_ADC0' 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='ADC0BUFF' macro='PutData' >
							<argument exp='adc0_value' />
						</command>
					</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='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR0' call='TIMER1' >
							<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1000' />
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<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='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC0BUFF' macro='FlushBuffer' />
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC1BUFF' macro='FlushBuffer' />
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' macro='CMM_DECODE' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='FLAG1 = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC00' macro='GetVoltage' >
											<return exp='adc0_value' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC0BUFF' macro='PutData' >
											<argument exp='adc0_value' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
											<exp exp='FLAG1 = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CMM_DECODE' 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='DATA_RX = 0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveChar' >
							<return exp='DATA_RX' />
							<argument exp='150' />
						</command>
						<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='DATA_RX' >
							<case >
								<flowline />
							</case>
							<case exp='&apos;0&apos;' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='0' usechipref='0' />
								</flowline>
							</case>
							<case exp='&apos;1&apos;' >
								<flowline >
									<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='1' usechipref='0' />
								</flowline>
							</case>
							<case exp='&apos;2&apos;' >
								<flowline >
									<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='8388608' exp='0' usechipref='0' />
								</flowline>
							</case>
							<case exp='&apos;3&apos;' >
								<flowline >
									<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='8388608' exp='1' usechipref='0' />
								</flowline>
							</case>
							<case exp='&apos;4&apos;' >
								<flowline >
									<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='2097152' exp='0' usechipref='0' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC_3MIN = 0' />
									</command>
								</flowline>
							</case>
							<case exp='&apos;5&apos;' >
								<flowline >
									<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='2097152' exp='1' usechipref='0' />
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC_3MIN = 1' />
									</command>
								</flowline>
							</case>
							<case exp='&apos;6&apos;' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC0_STATUS = 0' />
										<exp exp='TM_INTP1 = 0' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TM_INTP0 = 0' swap='0' >
										<flowline >
											<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR2' >
												<settings timer='1' prescale='-1' postscale='-1' rollover='1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='1' />
													<option value='1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
												</settings>
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='&apos;7&apos;' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC0_STATUS = 1' />
										<exp exp='TM_INTP1 = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TM_INTP0 = 0' swap='0' >
										<flowline >
											<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR2' call='STORE_ADC0' >
												<settings timer='1' prescale='-1' postscale='-1' rollover='60' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='60' />
													<option value='1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
												</settings>
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='&apos;8&apos;' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC1_STATUS = 0' />
										<exp exp='TM_INTP2 = 0' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TM_INTP0 = 0' swap='0' >
										<flowline >
											<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR3' >
												<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>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='&apos;9&apos;' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='ADC1_STATUS = 1' />
										<exp exp='TM_INTP2 = 1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TM_INTP0 = 0' swap='0' >
										<flowline >
											<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR3' call='STORE_ADC1' >
												<settings timer='1' prescale='-1' postscale='-1' rollover='60' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='60' />
													<option value='1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
												</settings>
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
						</command>
						<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='DATA_RX' >
							<case >
								<flowline />
							</case>
							<case exp='&apos;a&apos;' >
								<flowline >
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;A&apos;' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='ADC0_STATUS = 1 &amp;&amp; TEST_STATUS_ON = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC00' macro='GetVoltage' >
												<return exp='adc0_value' />
											</command>
										</flowline>
									</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='adc0_value' />
									</command>
								</flowline>
							</case>
							<case exp='&apos;b&apos;' >
								<flowline >
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;B&apos;' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='ADC1_STATUS = 1' swap='0' >
										<flowline >
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC01' macro='GetVoltage' >
												<return exp='adc1_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='SendFloat' >
												<argument exp='adc1_value' />
											</command>
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='&apos;c&apos;' >
								<flowline >
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;C&apos;' />
									</command>
									<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='A = 0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
												<exp exp='DATA_RX = 0' />
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveChar' >
												<return exp='DATA_RX' />
												<argument exp='50' />
											</command>
											<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' totalfolded='1' exp='DATA_RX' >
												<case >
													<flowline folded='1' totalfolded='1' />
												</case>
												<case exp='&apos;1&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='100' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='ReceiveNumber' >
															<return exp='TIM3' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;a&apos;' />
														</command>
													</flowline>
												</case>
												<case exp='&apos;2&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='100' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='ReceiveNumber' >
															<return exp='TIM4' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;b&apos;' />
														</command>
													</flowline>
												</case>
												<case exp='&apos;3&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='100' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='ReceiveNumber' >
															<return exp='TIM5' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;c&apos;' />
														</command>
													</flowline>
												</case>
											</command>
											<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' totalfolded='1' exp='DATA_RX' >
												<case >
													<flowline folded='1' totalfolded='1' />
												</case>
												<case exp='&apos;4&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='10' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendNumber' >
															<argument exp='TIM3' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='500' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;d&apos;' />
														</command>
													</flowline>
												</case>
												<case exp='&apos;5&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='10' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendNumber' >
															<argument exp='TIM4' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='500' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;e&apos;' />
														</command>
													</flowline>
												</case>
												<case exp='&apos;6&apos;' >
													<flowline folded='1' totalfolded='1' >
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='10' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendNumber' >
															<argument exp='TIM5' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' exp='500' type='1' />
														<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' component='UART1' macro='SendChar' >
															<argument exp='&apos;f&apos;' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' hiddenFromFold='1' >
															<exp exp='A = 1' />
														</command>
													</flowline>
												</case>
											</command>
										</flowline>
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
										<exp exp='DATA_RX = 0' />
										<exp exp='TIM3 = TIM3 * 60' />
										<exp exp='TIM4 = TIM4 * 60' />
										<exp exp='TIM5 = TIM5 * 60' />
										<exp exp='A = 0' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='&apos;m&apos;' >
								<flowline >
									<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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;M&apos;' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='TM_INTP1 = 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='ADC0_STATUS = 0' />
												<exp exp='TM_INTP0 = 0' />
											</command>
											<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR1' >
												<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
													<option value='1000' />
													<option value='0' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
													<option value='-1' />
												</settings>
											</command>
										</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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC0BUFF' macro='GetNumberValues' >
										<return exp='lutcntadc0' />
									</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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendNumber' >
										<argument exp='lutcntadc0' />
									</command>
									<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='200' type='1' />
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;F&apos;' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='ReceiveChar' >
										<return exp='DATA_RX' />
										<argument exp='255' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='DATA_RX = &apos;a&apos;' 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='SendChar' >
												<argument exp='&apos;J&apos;' />
											</command>
											<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='2' exp='lutcntadc0' >
												<flowline >
													<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='ADC0BUFF :: GetData ()' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
														<argument exp='&apos;J&apos;' />
													</command>
													<command class_type='delay' title='Delay' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='10' type='1' />
												</flowline>
											</command>
											<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC0BUFF' macro='FlushBuffer' />
										</flowline>
										<flowline />
									</command>
								</flowline>
							</case>
							<case exp='&apos;t&apos;' >
								<flowline >
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;T&apos;' />
									</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='TIM5' />
									</command>
								</flowline>
							</case>
							<case exp='&apos;o&apos;' >
								<flowline >
									<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
										<argument exp='&apos;O&apos;' />
									</command>
									<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='TEST_RUN' >
										<case >
											<flowline />
										</case>
										<case exp='0' >
											<flowline >
												<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR1' call='TIMERTEST' >
													<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
														<option value='1000' />
														<option value='0' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
													</settings>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='TIMER_ON = TIM3' />
													<exp exp='TIMER_OFF = TIM4' />
													<exp exp='TEST_STATUS_ON = 1' />
													<exp exp='TEST_RUN = 1' />
													<exp exp='TM_INTP0 = 1' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC00' macro='GetVoltage' >
													<return exp='adc0_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='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='ADC0BUFF' macro='PutData' >
													<argument exp='adc0_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' />
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='0' name='TMR1' >
													<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
														<option value='1000' />
														<option value='0' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
													</settings>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='TEST_RUN = 2' />
													<exp exp='TM_INTP0 = 0' />
													<exp exp='' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='interrupt' title='Interrupt' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' enable='1' name='TMR1' call='TIMERTEST' >
													<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
														<option value='1000' />
														<option value='0' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
														<option value='-1' />
													</settings>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='TEST_RUN = 1' />
													<exp exp='TM_INTP0 = 1' />
													<exp exp='' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='&apos;z&apos;' >
								<flowline >
									<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='BOARD_STATUS' >
										<case >
											<flowline />
										</case>
										<case exp='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='SendChar' >
													<argument exp='&apos;Z&apos;' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='BOARD_STATUS = 1' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Component Macro' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' component='UART1' macro='SendChar' >
													<argument exp='&apos;Q&apos;' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' >
													<exp exp='TEST_STATUS_ON = 0' />
													<exp exp='TIMER_OFF = 0' />
													<exp exp='TIMER_ON = 0' />
													<exp exp='TIM1 = 0' />
													<exp exp='TIM2 = 0' />
													<exp exp='TIM3 = 0' />
													<exp exp='TIM4 = 0' />
													<exp exp='TIM5 = 0' />
													<exp exp='TEST_RUN = 0' />
													<exp exp='ADC0_STATUS = 0' />
													<exp exp='ADC1_STATUS = 0' />
													<exp exp='A = 0' />
													<exp exp='BOARD_STATUS = 0' />
													<exp exp='' />
												</command>
												<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4194304' exp='0' usechipref='0' />
												<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='8388608' exp='0' usechipref='0' />
												<command class_type='output' title='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='2097152' exp='0' usechipref='0' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' x='-100' y='240' z='7.12122' 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='008' />
					<value target='cal_uart::BAUD' data='57600' />
					<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='$PORTA.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTA.3' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<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' />
					<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='ref' guid='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='ADC01' x='30' y='250' 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='7' />
					<value target='vrefvol' data='330' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='000' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<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='ADC00' x='60' y='250' 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='255' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='6' />
					<value target='vrefvol' data='330' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='000' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed491c82-9f85-4627-93ce-d2b588352539' vmin='5' vmaj='1' codename='ADC0BUFF' x='-90' y='340' 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='BufferSize' data='10100' />
					<value target='StorageType' data='001' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='0.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed491c82-9f85-4627-93ce-d2b588352539' vmin='5' vmaj='1' codename='ADC1BUFF' x='20' y='340' 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='BufferSize' data='2048' />
					<value target='StorageType' data='001' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='0.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='51' >
		<background rgb='0' img='' style='0' />
		<camera xe='-25.5607' ye='339.169' ze='2858.17' xt='-25.5607' yt='339.169' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='1914' dy='879' zoom='81.0287' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</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---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='65' scrollx='0' scrolly='342' flags='0' />
		<view type='0' name='TIMERTEST' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='75' scrollx='0' scrolly='590' flags='0' />
		<view type='0' name='STORE_ADC1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CMM_DECODE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='75' scrollx='0' scrolly='778' flags='0' />
		<view type='0' name='TEST' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='STORE_ADC0' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAAAUAAC0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
