<root>
<document scada='0' projtype='1' schema='103' license='1,53265383,RRGK0B' title='' description='' fcversion='720896' target='ESP.ESP32.M5Stack_M5Dial' >
	<config data='' clkspd='240000000' simspd='0' usewdt='0' constif='0' commport='3' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='OldEncoderNumber' />
		<watch expr='Encodernumber' />
		<watch expr='BezelSwitch' />
		<watch expr='Pulsewidth' />
		<watch expr='Flag_NC' />
		<watch expr='Voltage' />
		<watch expr='MicroSeconds' />
		<watch expr='NewScreen' />
		<watch expr='Seconds' />
		<watch expr='Minutes' />
		<watch expr='tempMINS' />
		<watch expr='tempSECS' />
		<watch expr='PulseCount' />
	</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='1' />
			<data name='CalculatedCommsDelay' value='1' />
			<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='25' fixedy='25' fixedz='25' headcode='0' />
		<definition guid='754c0164-07c2-41f3-9309-d9b3302c1db6' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' bIs3dOnly='0' bIsWysiwyg='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='' />
		<component class_type='root' codename='ComponentRoot' panelId='-1' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='Show Password' target='ShowPassword' typeid='7' hidden='0' locked='0' info='' />
				<property name='Password' target='Password' typeid='10' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='ShowPassword' data='1' />
				<value target='Password' data='5678' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='ORANGER' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DIGITF' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Voltage' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WHITEB' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pulsewidth' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MinCount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LoopCount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LIGHTPURPLER' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='85' setinit='85' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Encodernumber' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_TimerP' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_NC' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GraphCount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PULSESCREEN201' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_Trig' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Oldpulsewidth' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tempSECS' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PURPLER' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='30' setinit='30' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BezelSwitch' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ORANGEG' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='102' setinit='102' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimeStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LIGHTPURPLEG' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='47' setinit='47' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ORANGEB' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CURRENTMEAS' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SUBHEADINGF' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_SECS' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='COMBOF' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OldEncoderNumber' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PulseCount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LIGHTPURPLEB' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='108' setinit='108' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PURPLEG' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='23' setinit='23' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='INSTRUCTIONSF' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temperature' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PULSEMENU' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WHITER' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Oldscreen' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PURPLEB' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='54' setinit='54' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PULSEMENU401' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MicroSeconds' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OldPulseCount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NewScreen' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TESTSCREEN' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tempMINS' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='STARTSCREEN' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Output_Polarity' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SETUPSCREEN' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag_PulseW' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Humidity' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PULSESCREEN401' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='5' setinit='5' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PULSE' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='5' setinit='5' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sinusoid' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WHITEG' type='u8' description='' isconst='1' isHidden='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Voltage' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='Potentiometer1' macro='GetVoltage' >
							<return exp='Voltage' />
						</command>
						<command class_type='decision' title='Decision' exp='Voltage &lt; 4' swap='0' >
							<flowline >
								<command class_type='call' title='User Macro' macro='LoBat' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LoBat' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='70' />
							<argument exp='110' />
							<argument exp='80' />
							<argument exp='130' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='85' />
							<argument exp='100' />
							<argument exp='105' />
							<argument exp='140' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='110' />
							<argument exp='100' />
							<argument exp='130' />
							<argument exp='140' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='135' />
							<argument exp='100' />
							<argument exp='155' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='135' />
							<argument exp='100' />
							<argument exp='155' />
							<argument exp='140' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
									<argument exp='255' />
									<argument exp='255' />
									<argument exp='255' />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
									<argument exp='135' />
									<argument exp='100' />
									<argument exp='155' />
									<argument exp='140' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='delay' title='Delay' exp='1500' type='1' />
								<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
									<argument exp='255' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
									<argument exp='135' />
									<argument exp='100' />
									<argument exp='155' />
									<argument exp='140' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='delay' title='Delay' exp='1500' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Draw_graph' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='Initialise' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='GraphCount = 0' />
						</command>
						<command class_type='decision' title='Decision' exp='Flag_NC' swap='0' >
							<flowline >
								<command class_type='loop' title='Loop' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 50' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' type='2' exp='10' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 10' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 50' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='loop' title='Loop' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 10' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' type='2' exp='10' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 50' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='GraphCount = GraphCount + 1' />
											<exp exp='sinusoid = 10' />
										</command>
										<command class_type='delay' title='Delay' exp='50' type='1' />
										<command class_type='call' title='Component Macro' component='XYGraphCreator1' macro='AddPoint' >
											<argument exp='GraphCount' />
											<argument exp='sinusoid' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Delay' disable='1' exp='2' type='2' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='GraphCount = 0' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='XYGraphCreator1' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Pulse_Output' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='Flag_NC = 1' swap='0' >
							<flowline >
								<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='0' usechipref='0' />
								<command class_type='loop' title='Loop' type='1' exp='MicroSeconds = Pulsewidth * 100' start='0' >
									<flowline />
								</command>
								<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='1' usechipref='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='1' usechipref='0' />
								<command class_type='loop' title='Loop' type='1' exp='MicroSeconds = Pulsewidth * 100' start='0' >
									<flowline />
								</command>
								<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='0' usechipref='0' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Encoderint' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='CheckForChanges' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Tick' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='MicroSeconds = MicroSeconds + 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PulseMenu' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='60' />
							<argument exp='60' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='35' />
							<argument exp='100' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='40' />
							<argument exp='150' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='200' />
							<argument exp='150' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='205' />
							<argument exp='100' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='60' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;SETUP&quot;' />
							<argument exp='80' />
							<argument exp='70' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Press bezel&quot;' />
							<argument exp='85' />
							<argument exp='170' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;to select&quot;' />
							<argument exp='90' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='Set default option' textarea='313,-30,313,-30' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='60' />
							<argument exp='60' />
							<argument exp='8' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='35' />
							<argument exp='100' />
							<argument exp='8' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='40' />
							<argument exp='150' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='200' />
							<argument exp='150' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='205' />
							<argument exp='100' />
							<argument exp='8' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='60' />
							<argument exp='8' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;401&quot;' />
							<argument exp='75' />
							<argument exp='100' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Pulsewidth = 401' />
							<exp exp='Count = 4' />
							<exp exp='NewScreen = PULSE' />
						</command>
						<command class_type='comment' title='' comment='Read encoder' textarea='356,-48,356,-48' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ResetCounter' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
							<return exp='Encodernumber' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='OldEncoderNumber = Encodernumber' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' macro='Voltage' />
								<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Encodernumber' />
								</command>
								<command class_type='decision' title='Decision' exp='Oldencodernumber &lt;&gt; Encodernumber' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='WHITER' />
											<argument exp='WHITEG' />
											<argument exp='WHITEB' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Encodernumber' />
											<argument exp='100' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &gt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count = Count + 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &lt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count = Count - 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Count &gt; 8' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count = 8' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Count &lt; 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Count' />
											<argument exp='120' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Count' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='35' />
														<argument exp='100' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='40' />
														<argument exp='150' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='60' />
														<argument exp='60' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;BACK&quot;' />
														<argument exp='82' />
														<argument exp='110' />
														<argument exp='1' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='NewScreen = SETUPSCREEN' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='60' />
														<argument exp='60' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='40' />
														<argument exp='150' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='35' />
														<argument exp='100' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;100&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 100' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='64' />
														<argument exp='190' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='35' />
														<argument exp='100' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='40' />
														<argument exp='150' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;201&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 201' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='call' title='foreground grey' disable='1' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='WHITER' />
														<argument exp='WHITEG' />
														<argument exp='WHITEB' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='40' />
														<argument exp='150' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='175' />
														<argument exp='190' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='64' />
														<argument exp='190' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;401&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 401' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='5' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='64' />
														<argument exp='190' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='200' />
														<argument exp='150' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='175' />
														<argument exp='190' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;500&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 500' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='6' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='175' />
														<argument exp='190' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='205' />
														<argument exp='100' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='200' />
														<argument exp='150' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;600&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 600' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='7' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='200' />
														<argument exp='150' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='175' />
														<argument exp='60' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='205' />
														<argument exp='100' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;700&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 700' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
											<case exp='8' >
												<flowline >
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='PURPLER' />
														<argument exp='PURPLEG' />
														<argument exp='PURPLEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='160' />
														<argument exp='150' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='205' />
														<argument exp='100' />
														<argument exp='9' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
														<argument exp='ORANGER' />
														<argument exp='ORANGEG' />
														<argument exp='ORANGEB' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
														<argument exp='175' />
														<argument exp='60' />
														<argument exp='8' />
														<argument exp='0' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
														<argument exp='&quot;800&quot;' />
														<argument exp='75' />
														<argument exp='100' />
														<argument exp='2' />
														<argument exp='1' />
													</command>
													<command class_type='calculation' title='Calculation' >
														<exp exp='Pulsewidth = 800' />
														<exp exp='NewScreen = PULSE' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='OldEncoderNumber = Encodernumber' />
								</command>
								<command class_type='comment' title='' comment='Read bezel switch' textarea='383,-7,383,-7' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = NewScreen' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Current_Meas' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;BACK&quot;' />
							<argument exp='110' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='255' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Current&quot;' />
							<argument exp='75' />
							<argument exp='105' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Press bezel&quot;' />
							<argument exp='85' />
							<argument exp='170' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;to select&quot;' />
							<argument exp='90' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Minutes&quot;' />
							<argument exp='45' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Test&quot;' />
							<argument exp='30' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Pulse&quot;' />
							<argument exp='160' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Meas&quot;' />
							<argument exp='183' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='User Macro' macro='Voltage' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='MicroSeconds = 0' />
							<exp exp='Seconds = 0' />
							<exp exp='Minutes = 0' />
							<exp exp='tempMINS = &quot;00&quot;' />
							<exp exp='tempSECS = &quot;00&quot;' />
							<exp exp='Flag_SECS = 0' />
							<exp exp='MinCount = 1' />
							<exp exp='PulseCount = 0' />
							<exp exp='OldPulseCount = 0' />
							<exp exp='LoopCount = 2' />
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='TMR0' call='Tick' >
							<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' 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='loop' title='Loop' type='1' exp='LoopCount = 0' start='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='MicroSeconds &gt; 100000' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
											<argument exp='TimeStr' />
											<argument exp='50' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='0' />
											<argument exp='175' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='OldPulseCount' />
											<argument exp='175' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='Seconds = Seconds + 1' />
											<exp exp='MicroSeconds = 0' />
										</command>
										<command class_type='decision' title='Decision' exp='Seconds = 60' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Seconds = 0' />
													<exp exp='Flag_SECS = 1' />
													<exp exp='LoopCount = LoopCount - 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Seconds = 0 &amp; Flag_SECS = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Minutes = Minutes + 1' />
													<exp exp='MinCount = MinCount - 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Seconds &lt; 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='tempSECS = ToString$(Seconds)' />
													<exp exp='tempSECS = &quot;0&quot; + tempSECS' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='tempSECS = ToString$(Seconds)' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' exp='Minutes &lt; 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='tempMINS = ToString$(Minutes)' />
													<exp exp='tempMINS = &quot;0&quot; + tempMINS' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='tempMINS = ToString$(Minutes)' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='TimeStr = tempMINS + &quot;:&quot; + tempSECS' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='255' />
											<argument exp='255' />
											<argument exp='255' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
											<argument exp='TimeStr' />
											<argument exp='50' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='PulseCount' />
											<argument exp='175' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='OldPulseCount = PulseCount' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='MinCount = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Pulsewidth = 401' />
										</command>
										<command class_type='call' title='Component Macro' component='PiezoSounder1' macro='BuzzerOnDelay' >
											<argument exp='1000' />
											<argument exp='2500' />
										</command>
										<command class_type='delay' title='Delay' exp='100' type='1' />
										<command class_type='call' title='User Macro' macro='Pulse_Output' />
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='OldPulseCount' />
											<argument exp='175' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='MinCount = 1' />
											<exp exp='PulseCount = PulseCount + 1' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='255' />
											<argument exp='255' />
											<argument exp='255' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='PulseCount' />
											<argument exp='175' />
											<argument exp='160' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='User Macro' macro='Draw_graph' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Read bezel switch' textarea='383,-7,383,-7' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = SETUPSCREEN' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='0' name='TMR0' >
							<settings timer='1' prescale='-1' postscale='-1' rollover='0' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' 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='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = SETUPSCREEN' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
									<argument exp='255' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
									<argument exp='&quot;STOPPED&quot;' />
									<argument exp='65' />
									<argument exp='55' />
									<argument exp='1' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
						<command class_type='interrupt' title='Interrupt' enable='0' name='TMR0' >
							<settings timer='1' prescale='-1' postscale='-1' rollover='0' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' 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>
				</macro>
				<macro >
					<flowline name='TestScreen' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;TESTS&quot;' />
							<argument exp='85' />
							<argument exp='70' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Press bezel&quot;' />
							<argument exp='85' />
							<argument exp='170' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;to select&quot;' />
							<argument exp='90' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Pulse&quot;' />
							<argument exp='45' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Test&quot;' />
							<argument exp='45' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Current&quot;' />
							<argument exp='155' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Meas&quot;' />
							<argument exp='165' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='Set default option' textarea='313,-30,313,-30' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='decision' title='Decision' exp='Flag_NC = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
									<argument exp='65' />
									<argument exp='190' />
									<argument exp='8' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='NewScreen = PULSEMENU' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
									<argument exp='175' />
									<argument exp='190' />
									<argument exp='8' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='NewScreen = CURRENTMEAS' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Read encoder' textarea='356,-48,356,-48' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ResetCounter' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
							<return exp='Encodernumber' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='OldEncoderNumber = Encodernumber' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' macro='Voltage' />
								<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Encodernumber' />
								</command>
								<command class_type='decision' title='Decision' exp='Oldencodernumber &lt;&gt; Encodernumber' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='WHITER' />
											<argument exp='WHITEG' />
											<argument exp='WHITEB' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Encodernumber' />
											<argument exp='80' />
											<argument exp='20' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &lt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='PURPLER' />
													<argument exp='PURPLEG' />
													<argument exp='PURPLEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='175' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='ORANGER' />
													<argument exp='ORANGEG' />
													<argument exp='ORANGEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='65' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='Flag_NC = 0' />
													<exp exp='' />
												</command>
												<command class_type='output' title='Output' disable='1' mode='1' port='4194304' mask='4' exp='0' usechipref='0' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='NewScreen = PULSEMENU' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &gt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='PURPLER' />
													<argument exp='PURPLEG' />
													<argument exp='PURPLEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='65' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='ORANGER' />
													<argument exp='ORANGEG' />
													<argument exp='ORANGEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='175' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='Flag_NC = 1' />
												</command>
												<command class_type='output' title='Output' disable='1' mode='1' port='4194304' mask='4' exp='1' usechipref='0' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='NewScreen = CURRENTMEAS' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='OldEncoderNumber = Encodernumber' />
								</command>
								<command class_type='comment' title='' comment='Read bezel switch' textarea='383,-7,383,-7' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = NewScreen' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='StartScreen' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='0' />
							<argument exp='40' />
							<argument exp='30' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Press Bezel&quot;' />
							<argument exp='85' />
							<argument exp='170' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;To Start&quot;' />
							<argument exp='90' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='NewScreen = STARTSCREEN' >
							<flowline >
								<command class_type='call' title='User Macro' macro='Voltage' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = SETUPSCREEN' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Switch debounce' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetupScreen' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;SETUP&quot;' />
							<argument exp='80' />
							<argument exp='70' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Press bezel&quot;' />
							<argument exp='85' />
							<argument exp='170' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;to select&quot;' />
							<argument exp='90' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Normally&quot;' />
							<argument exp='25' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Open&quot;' />
							<argument exp='30' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Normally&quot;' />
							<argument exp='170' />
							<argument exp='140' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;Closed&quot;' />
							<argument exp='173' />
							<argument exp='155' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='Set default option' textarea='313,-30,313,-30' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='8' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='decision' title='Decision' exp='Flag_NC = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
									<argument exp='175' />
									<argument exp='190' />
									<argument exp='8' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
									<argument exp='65' />
									<argument exp='190' />
									<argument exp='8' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Read encoder' textarea='356,-48,356,-48' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ResetCounter' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
							<return exp='Encodernumber' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='OldEncoderNumber = Encodernumber' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' macro='Voltage' />
								<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Encodernumber' />
								</command>
								<command class_type='decision' title='Decision' exp='Oldencodernumber &lt;&gt; Encodernumber' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='WHITER' />
											<argument exp='WHITEG' />
											<argument exp='WHITEB' />
										</command>
										<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Encodernumber' />
											<argument exp='80' />
											<argument exp='20' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &lt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='PURPLER' />
													<argument exp='PURPLEG' />
													<argument exp='PURPLEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='175' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='ORANGER' />
													<argument exp='ORANGEG' />
													<argument exp='ORANGEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='65' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='Flag_NC = 0' />
													<exp exp='' />
												</command>
												<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='0' usechipref='0' />
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &gt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='PURPLER' />
													<argument exp='PURPLEG' />
													<argument exp='PURPLEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='65' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
													<argument exp='ORANGER' />
													<argument exp='ORANGEG' />
													<argument exp='ORANGEB' />
												</command>
												<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
													<argument exp='175' />
													<argument exp='190' />
													<argument exp='8' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='Flag_NC = 1' />
												</command>
												<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='1' usechipref='0' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='OldEncoderNumber = Encodernumber' />
								</command>
								<command class_type='comment' title='' comment='Read bezel switch' textarea='383,-7,383,-7' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = TESTSCREEN' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Pulse' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='PURPLER' />
							<argument exp='PURPLEG' />
							<argument exp='PURPLEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawRectangle' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='ORANGER' />
							<argument exp='ORANGEG' />
							<argument exp='ORANGEB' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='120' />
							<argument exp='120' />
							<argument exp='115' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='65' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='175' />
							<argument exp='190' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='200' />
							<argument exp='150' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' component='gLCD_GC9A01A_SPI1' macro='DrawCircle' >
							<argument exp='40' />
							<argument exp='150' />
							<argument exp='12' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Print' >
							<argument exp='&quot;BACK&quot;' />
							<argument exp='110' />
							<argument exp='185' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' component='BitmapDrawer1' macro='Display_BMP' >
							<argument exp='1' />
							<argument exp='110' />
							<argument exp='200' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='GPIO12' call='Trigger' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' ppsport='-1' ppspin='-1' 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='comment' title='' comment='Read encoder' textarea='356,-48,356,-48' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ResetCounter' />
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
							<return exp='Encodernumber' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='OldEncoderNumber = Encodernumber' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' macro='Voltage' />
								<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Encodernumber' />
								</command>
								<command class_type='decision' title='Decision' exp='Oldencodernumber &lt;&gt; Encodernumber' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='ORANGER' />
											<argument exp='ORANGEG' />
											<argument exp='ORANGEB' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Encodernumber' />
											<argument exp='120' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &gt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Pulsewidth = Pulsewidth + 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Encodernumber &lt; OldEncoderNumber' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Pulsewidth = Pulsewidth - 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='Pulsewidth &lt; 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Pulsewidth = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='foreground grey' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
											<argument exp='PURPLER' />
											<argument exp='PURPLEG' />
											<argument exp='PURPLEB' />
										</command>
										<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
											<argument exp='Oldpulsewidth' />
											<argument exp='75' />
											<argument exp='100' />
											<argument exp='2' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='SetForegroundColour' >
									<argument exp='WHITER' />
									<argument exp='WHITEG' />
									<argument exp='WHITEB' />
								</command>
								<command class_type='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='PrintNumber' >
									<argument exp='Pulsewidth' />
									<argument exp='75' />
									<argument exp='100' />
									<argument exp='2' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='Oldpulsewidth = Pulsewidth' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='OldEncoderNumber = Encodernumber' />
								</command>
								<command class_type='decision' title='Decision' exp='Flag_Trig = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' component='PiezoSounder1' macro='BuzzerOnDelay' >
											<argument exp='1000' />
											<argument exp='2500' />
										</command>
										<command class_type='delay' title='Delay' exp='100' type='1' />
										<command class_type='interrupt' title='Interrupt' enable='1' name='TMR0' call='Tick' >
											<settings timer='1' prescale='-1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' 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='User Macro' macro='Pulse_Output' />
										<command class_type='interrupt' title='Interrupt' enable='0' name='TMR0' >
											<settings timer='1' prescale='-1' postscale='-1' rollover='0' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' 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='calculation' title='Calculation' >
											<exp exp='MicroSeconds = 0' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='Flag_Trig = 0' />
										</command>
										<command class_type='call' title='User Macro' macro='Draw_graph' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Read bezel switch' textarea='383,-7,383,-7' />
								<command class_type='call' title='Component Macro' component='switch' macro='ReadState' >
									<return exp='BezelSwitch' />
								</command>
								<command class_type='decision' title='Decision' exp='BezelSwitch = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='NewScreen = PULSEMENU' />
										</command>
										<command class_type='interrupt' title='Interrupt' enable='0' name='GPIO12' >
											<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' ppsport='-1' ppspin='-1' 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='goto' title='Goto Connection Point' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Trigger' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Flag_Trig = 1' />
						</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='call' title='Component Macro' component='gLCD_GC9A01A_SPI1' macro='Initialise' />
						<command class_type='call' title='Component Macro' component='Backlight' macro='Enable' />
						<command class_type='call' title='Component Macro' component='Backlight' macro='SetDutyCycle10Bit' >
							<argument exp='30' />
						</command>
						<command class_type='call' title='Component Macro' component='QuadEncoder1' macro='Enable' />
						<command class_type='call' title='User Macro' macro='Voltage' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Flag_NC = 1' />
							<exp exp='' />
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='GPIO40' call='Encoderint' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='GPIO41' call='Encoderint' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='output' title='Output' mode='1' port='4194304' mask='4' exp='1' usechipref='1' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='loop' title='main program loop' type='0' exp='1' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Newscreen' >
									<case >
										<flowline >
											<command class_type='call' title='User Macro' disable='1' macro='LoBat' />
											<command class_type='call' title='User Macro' macro='StartScreen' />
										</flowline>
									</case>
									<case exp='SETUPSCREEN' >
										<flowline >
											<command class_type='call' title='User Macro' macro='SetupScreen' />
										</flowline>
									</case>
									<case exp='TESTSCREEN' >
										<flowline >
											<command class_type='call' title='User Macro' macro='TestScreen' />
										</flowline>
									</case>
									<case exp='CURRENTMEAS' >
										<flowline >
											<command class_type='call' title='User Macro' macro='Current_Meas' />
										</flowline>
									</case>
									<case exp='PULSEMENU' >
										<flowline >
											<command class_type='call' title='User Macro' macro='PulseMenu' />
										</flowline>
									</case>
									<case exp='PULSE' >
										<flowline >
											<command class_type='call' title='User Macro' macro='Pulse' />
										</flowline>
									</case>
								</command>
								<command class_type='comment' title='' comment='This structure makes sure that the stack does not overflow' textarea='12,0,12,0' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='3167b57a-5a41-4a91-bd6c-e0a8cc23cf56' vmin='0' vmaj='8' codename='gLCD_GC9A01A_SPI1' panelId='0' x='335' y='-169' z='0' xsz='38.7449' ysz='39.0625' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_width' data='240' />
					<value target='pixel_height' data='240' />
					<value target='FlipX' data='0' />
					<value target='FlipY' data='0' />
					<value target='Base_GLCD::RoundMask' data='1' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='6234950' />
					<value target='background_colour' data='0' />
					<value target='BGCOL' data='0' />
					<value target='FGCOL' data='16651' />
					<value target='InvertColour' data='0' />
					<value target='QueueFastPixels' data='1' />
					<value target='PixelQueueSize' data='256' />
					<value target='PixelQueueTotal' data='512' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='MOSI_Pin' data='$PORTA.5' />
					<value target='SCK_Pin' data='$PORTA.6' />
					<value target='cal_spi1::CHANNEL' data='001' />
					<value target='cal_spi1::PR_SCALE' data='200' />
					<value target='cal_spi1::MOSI' data='$PORTA.5' />
					<value target='cal_spi1::MOSIPins' data='004' />
					<value target='cal_spi1::MISO' data='$PORTA.1' />
					<value target='cal_spi1::MISOPins' data='001' />
					<value target='cal_spi1::CLK' data='$PORTA.6' />
					<value target='cal_spi1::CLKPins' data='005' />
					<value target='UseCS' data='1' />
					<value target='ToggleCS' data='1' />
					<value target='chip_sel_pin' data='$PORTA.7' />
					<value target='UseDC' data='1' />
					<value target='dc_pin' data='$PORTA.4' />
					<value target='UseReset' data='1' />
					<value target='reset_pin' data='$PORTA.8' />
					<value target='UseBacklight' data='0' />
					<value target='led_pin' data='$PORTA.5' />
					<value target='Base_GLCD::FontCount' data='003' />
					<value target='Base_GLCD::gLCD_Font1::Font' data='001' />
					<value target='Base_GLCD::gLCD_Font1::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font1::BytesRequired' data='1193' />
					<value target='Base_GLCD::gLCD_Font1::FontSpace' data='002' />
					<value target='Base_GLCD::gLCD_Font1::SpaceWidth' data='5' />
					<value target='Base_GLCD::gLCD_Font2::Font' data='049' />
					<value target='Base_GLCD::gLCD_Font2::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font2::BytesRequired' data='3258' />
					<value target='Base_GLCD::gLCD_Font2::FontSpace' data='003' />
					<value target='Base_GLCD::gLCD_Font2::SpaceWidth' data='008' />
					<value target='Base_GLCD::gLCD_Font3::Font' data='052' />
					<value target='Base_GLCD::gLCD_Font3::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font3::BytesRequired' data='21304' />
					<value target='Base_GLCD::gLCD_Font3::FontSpace' data='1' />
					<value target='Base_GLCD::gLCD_Font3::SpaceWidth' data='4' />
					<value target='Base_GLCD::gLCD_Font4::Font' data='052' />
					<value target='Base_GLCD::gLCD_Font4::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font4::BytesRequired' data='21304' />
					<value target='Base_GLCD::gLCD_Font4::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font4::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font5::Font' data='023' />
					<value target='Base_GLCD::gLCD_Font5::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font5::BytesRequired' data='40128' />
					<value target='Base_GLCD::gLCD_Font5::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font5::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font6::Font' data='010' />
					<value target='Base_GLCD::gLCD_Font6::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font6::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font6::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font6::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font7::Font' data='021' />
					<value target='Base_GLCD::gLCD_Font7::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font7::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font7::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font7::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font8::Font' data='003' />
					<value target='Base_GLCD::gLCD_Font8::CustomFontFile' data='' />
					<value target='Base_GLCD::gLCD_Font8::BytesRequired' data='' />
					<value target='Base_GLCD::gLCD_Font8::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font8::SpaceWidth' data='004' />
					<value target='DisplayMethod' data='000' />
					<value target='Base_GLCD::ComponentLabel' data='001' />
					<value target='Base_GLCD::GdiText1::sText' data='gLCD_GC9A01A_SPI' />
					<value target='Base_GLCD::GdiText1::dScale' data='1.000000' />
					<value target='Base_GLCD::PhysicalOrientation' data='000' />
					<value target='SimComms' data='0' />
					<value target='cal_spi1::ConsoleData' data='1' />
					<value target='cal_spi1::ScopeTraces' data='1' />
					<value target='cal_spi1::Injector' data='000' />
					<value target='cal_spi1::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='0' vmaj='12' codename='Backlight' panelId='0' x='556' y='-166' z='1' xsz='24.9572' ysz='25.059' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTA.9' />
					<value target='RemapPin' data='008' />
					<value target='timer' data='000' />
					<value target='period' data='100' />
					<value target='prescale' data='0' />
					<value target='period_calc' data='936.228577' />
					<value target='frequency_calc2' data='1068.115234' />
					<value target='frequency_calc' data='1.068115' />
					<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='ClockSpeed' data='240000000' />
					<value target='SimRep' data='000' />
					<value target='Family' data='ESP' />
					<value target='ModifiedConnection' data='A.9' />
					<value target='IsESP' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52dd90bd-fec9-4ee5-934c-e4b2297168a5' vmin='0' vmaj='3' codename='BitmapDrawer1' panelId='0' x='92' y='-91.5' z='2' xsz='25.3521' ysz='25.5568' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='glcd_obj' data='0' />
					<value target='LibraryComponent1::OutputIcon::LinkTo' data='001' />
					<value target='Colour_Display' data='1' />
					<value target='ROMusage' data='2378' />
					<value target='NumBitmaps' data='002' />
					<value target='ReloadBitmaps' data='0' />
					<value target='bitmap_file0' data='..\Graphics\Bitmaps\Start image 2.bmp' />
					<value target='ColourDepth0' data='0' />
					<value target='FileWidth0' data='0' />
					<value target='FileHeight0' data='0' />
					<value target='file_Len0' data='0' />
					<value target='PalletSize0' data='0' />
					<value target='Filename0' data='Start image 2.bmp' />
					<value target='bitmap_file1' data='..\..\Graphics\Bitmaps\Green_Arrow.bmp' />
					<value target='ColourDepth1' data='24' />
					<value target='FileWidth1' data='23' />
					<value target='FileHeight1' data='33' />
					<value target='file_Len1' data='2378' />
					<value target='PalletSize1' data='0' />
					<value target='Filename1' data='Green_Arrow.bmp' />
					<value target='bitmap_file2' data='Select a file -&gt;' />
					<value target='ColourDepth2' data='' />
					<value target='FileWidth2' data='' />
					<value target='FileHeight2' data='' />
					<value target='file_Len2' data='0' />
					<value target='PalletSize2' data='' />
					<value target='Filename2' data='' />
					<value target='bitmap_file3' data='Select a file -&gt;' />
					<value target='ColourDepth3' data='' />
					<value target='FileWidth3' data='' />
					<value target='FileHeight3' data='' />
					<value target='file_Len3' data='0' />
					<value target='PalletSize3' data='' />
					<value target='Filename3' data='' />
					<value target='bitmap_file4' data='Select a file -&gt;' />
					<value target='ColourDepth4' data='' />
					<value target='FileWidth4' data='' />
					<value target='FileHeight4' data='' />
					<value target='file_Len4' data='0' />
					<value target='PalletSize4' data='' />
					<value target='Filename4' data='' />
					<value target='bitmap_file5' data='Select a file -&gt;' />
					<value target='ColourDepth5' data='' />
					<value target='FileWidth5' data='' />
					<value target='FileHeight5' data='' />
					<value target='file_Len5' data='0' />
					<value target='PalletSize5' data='' />
					<value target='Filename5' data='' />
					<value target='bitmap_file6' data='Select a file -&gt;' />
					<value target='ColourDepth6' data='' />
					<value target='FileWidth6' data='' />
					<value target='FileHeight6' data='' />
					<value target='file_Len6' data='0' />
					<value target='PalletSize6' data='' />
					<value target='Filename6' data='' />
					<value target='bitmap_file7' data='Select a file -&gt;' />
					<value target='ColourDepth7' data='' />
					<value target='FileWidth7' data='' />
					<value target='FileHeight7' data='' />
					<value target='file_Len7' data='0' />
					<value target='PalletSize7' data='' />
					<value target='Filename7' data='' />
					<value target='bitmap_file8' data='Select a file -&gt;' />
					<value target='ColourDepth8' data='' />
					<value target='FileWidth8' data='' />
					<value target='FileHeight8' data='' />
					<value target='file_Len8' data='0' />
					<value target='PalletSize8' data='' />
					<value target='Filename8' data='' />
					<value target='bitmap_file9' data='Select a file -&gt;' />
					<value target='ColourDepth9' data='' />
					<value target='FileWidth9' data='' />
					<value target='FileHeight9' data='' />
					<value target='file_Len9' data='0' />
					<value target='PalletSize9' data='' />
					<value target='Filename9' data='' />
					<value target='MIAC' data='0' />
					<value target='WSLED' data='0' />
					<value target='HT16K33' data='0' />
					<value target='DMTYPE' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='50d58a97-3208-4ff3-bcd4-0d2b1c22dc1c' vmin='4' vmaj='7' codename='QuadEncoder1' panelId='0' x='86.1379' y='-465.5' z='3' xsz='25.18' ysz='25.2232' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='VarType' data='000' />
					<value target='InvertCount' data='0' />
					<value target='LimitValue' data='0' />
					<value target='MinVal' data='0' />
					<value target='MaxVal' data='9' />
					<value target='Divider' data='001' />
					<value target='EdgesPerRev' data='1440' />
					<value target='Resolution' data='0.250000' />
					<value target='pin_a' data='$PORTB.9' />
					<value target='pin_b' data='$PORTB.8' />
					<value target='reprate' data='150' />
					<value target='KnobColour' data='001' />
					<value target='PointerStyle' data='001' />
					<value target='ScopeTraces' data='0' />
					<value target='CircularKnob::Base2dGauge::brFill' data='288201676737716127' />
					<value target='CircularKnob::Base2dGauge::colFrameOutline' data='-1' />
					<value target='CircularKnob::Base2dGauge::brFrameFill' data='251262225375821824' />
					<value target='CircularKnob::Base2dGauge::colPointerOutline' data='9868950' />
					<value target='CircularKnob::Base2dGauge::brPointerFill' data='272157603065208735' />
					<value target='CircularKnob::Base2dGauge::colTickMarkOutline' data='10855845' />
					<value target='CircularKnob::Base2dGauge::brTickMarkFill' data='288090190566653952' />
					<value target='CircularKnob::Base2dGauge::colCapOutline' data='-1' />
					<value target='CircularKnob::Base2dGauge::brCapFill' data='288201676737716127' />
					<value target='CircularKnob::Base2dGauge::sMainImage' data='' />
					<value target='CircularKnob::Base2dGauge::sCapImage' data='' />
					<value target='IsActuator' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='20' codename='switch' panelId='0' x='298.5' y='-362.767' z='4' xsz='24.8718' ysz='24.8899' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$PORTB.10' />
					<value target='Polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='Latching' data='0' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='Bezel switch' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='7895160' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='1' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119061217280' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='44f82374-a417-40d5-bd42-23a177a390d2' vmin='0' vmaj='19' codename='LEDMono1' panelId='0' x='385' y='-354.896' z='5' xsz='33.8054' ysz='31.9866' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$PORTA.1' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='Relay output 1' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.833333' />
					<value target='LabelColour' data='7895160' />
					<value target='Polarity' data='001' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.041667' />
					<value target='Shape' data='000' />
					<value target='Colour' data='000' />
					<value target='Style' data='001' />
					<value target='AutoOffColour' data='1' />
					<value target='OnColour' data='65280' />
					<value target='OffColour' data='10752' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='44f82374-a417-40d5-bd42-23a177a390d2' vmin='0' vmaj='19' codename='LEDMono2' panelId='0' x='455' y='-354.893' z='6' xsz='33.8054' ysz='31.9866' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$PORTA.2' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='Relay output 2' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.833333' />
					<value target='LabelColour' data='7895160' />
					<value target='Polarity' data='001' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.041667' />
					<value target='Shape' data='000' />
					<value target='Colour' data='000' />
					<value target='Style' data='001' />
					<value target='AutoOffColour' data='1' />
					<value target='OnColour' data='65280' />
					<value target='OffColour' data='10752' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='20' codename='switch1' panelId='0' x='199' y='-363.7' z='7' xsz='25.1282' ysz='25.3304' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='AppDevDetected' data='0' />
					<value target='SimulationOnly' data='0' />
					<value target='Pin' data='$PORTA.12' />
					<value target='Polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='Latching' data='0' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='PULSE switch' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='7895160' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='1' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='003' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119061217280' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='70ec3aee-f273-4b0e-8ee6-e2b3a8b693af' vmin='0' vmaj='1' codename='PiezoSounder1' panelId='0' x='556.5' y='-386' z='8' xsz='25.18' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7b198227-81d6-404c-a2d4-ce1e59ef84f8' vmin='2' vmaj='1' codename='XYGraphCreator1' panelId='0' x='83' y='-245.5' z='9' xsz='25.1778' ysz='25.2232' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='glcd_obj' data='0' />
					<value target='LibraryComponent1::OutputIcon::LinkTo' data='001' />
					<value target='Colour_Display' data='1' />
					<value target='XC' data='70' />
					<value target='YC' data='30' />
					<value target='WP' data='100' />
					<value target='HP' data='60' />
					<value target='WR' data='100' />
					<value target='HR' data='60' />
					<value target='XR' data='70' />
					<value target='YR' data='30' />
					<value target='XSCale' data='4.761905' />
					<value target='YScale' data='0.845070' />
					<value target='YB' data='89' />
					<value target='XShift' data='0' />
					<value target='YShift' data='0' />
					<value target='WSLED' data='0' />
					<value target='MIAC' data='0' />
					<value target='NumPlots' data='001' />
					<value target='NumPoints' data='20' />
					<value target='GraphStyle' data='001' />
					<value target='MinXVal' data='0' />
					<value target='MaxXVal' data='20' />
					<value target='DiffXVal' data='21' />
					<value target='MinYVal' data='0' />
					<value target='MaxYVal' data='70' />
					<value target='DiffYVal' data='71' />
					<value target='ShowBorder' data='0' />
					<value target='ShowGrid' data='003' />
					<value target='GridXSubDivisions' data='15' />
					<value target='GridYSubDivisions' data='10' />
					<value target='GridXSpacing' data='1.400000' />
					<value target='GridYSpacing' data='7.100000' />
					<value target='BgCol' data='16777215' />
					<value target='BorderColour' data='0' />
					<value target='GridCol' data='14803425' />
					<value target='P1Col' data='255' />
					<value target='P2Col' data='65280' />
					<value target='P3Col' data='16711680' />
					<value target='P4Col' data='49407' />
					<value target='P5Col' data='12648192' />
					<value target='P6Col' data='16711872' />
					<value target='P7Col' data='65472' />
					<value target='P8Col' data='16760832' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='11ca2f38-de81-4812-9338-4b5a7a89a658' vmin='0' vmaj='1' codename='Potentiometer1' panelId='0' x='417' y='-526.5' z='10' xsz='25' ysz='25.036' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='2' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='adc_base1::channel' data='4' />
					<value target='adc_base1::vrefvol' data='500' />
					<value target='adc_base1::vrefop' data='000' />
					<value target='adc_base1::convspd' data='049' />
					<value target='adc_base1::actime' data='40' />
					<value target='adc_base1::bits' data='12' />
					<value target='VrefForCalculations' data='' />
					<value target='BitDepth' data='12' />
					<value target='SetValue' data='5.000050' />
					<value target='RetainValue' data='1' />
					<value target='ModifiedConnection' data='An 4' />
					<value target='ComponentLabel' data='000' />
					<value target='LabelColour' data='9868950' />
					<value target='GdiText2::sText' data='Potentiometer1' />
					<value target='ConnectionLabels' data='1' />
					<value target='ShowPinValue' data='1' />
					<value target='Style' data='0' />
					<value target='Gauge1::brFill' data='288230376147764163' />
					<value target='Gauge1::colFrameOutline' data='9868950' />
					<value target='Gauge1::brFrameFill' data='261490253360251843' />
					<value target='Gauge1::colPointerOutline' data='9868950' />
					<value target='Gauge1::brPointerFill' data='261490253360251843' />
					<value target='Gauge1::colText' data='9868950' />
					<value target='Gauge1::colTickMarkOutline' data='9868950' />
					<value target='Gauge1::brTickMarkFill' data='12829635' />
					<value target='Gauge1::colCapOutline' data='12829635' />
					<value target='Gauge1::brCapFill' data='261490253360251843' />
					<value target='Gauge1::sMainImage' data='' />
					<value target='Gauge1::sCapImage' data='' />
					<value target='GdiGauge1::nPointerKnob' data='  2' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='UpperBoundValue' data='5.000050' />
					<value target='adc_base1::ScopeTraces' data='0' />
					<value target='StoredColourStyle' data='0' />
					<value target='FlowcodeType' data='0' />
					<value target='Enabled' data='1' />
					<value target='Product' data='ESP' />
				</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='0' ye='0' ze='1123.57' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='650' dy='1765' zoom='70' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='523,287,1173,737' RectRecentDocked='0,0,650,1803' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='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' />
		<winpos ID='7004' RectRecentFloat='555,303,1205,753' RectRecentDocked='0,0,650,450' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='1' >
		<panel2d_0 id='0' name='2D Panel' type='0' >
			<winpos ID='1171' RectRecentFloat='2620,316,3289,1080' RectRecentDocked='1746,253,2388,1188' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
			<background fill='288230376149408988' showgrid='1' gridstyle='1' gridsize='10' gridbrush='71776119075691740' snaptogrid='1' fitcomp='0' disp_x='300' disp_y='400' scale='100' disp_col='16777215' />
		</panel2d_0>
	</panels2d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='90' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='StartScreen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetupScreen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='892' flags='0' />
		<view type='0' name='PulseMenu' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='2277' scrolly='3638' flags='0' />
		<view type='0' name='Pulse' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Encoderint' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LoBat' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Trigger' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Pulse_Output' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Draw_graph' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='179' flags='0' />
		<view type='0' name='Voltage' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Tick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TestScreen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='2858' flags='0' />
		<view type='0' name='Current_Meas' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAnAAAAVgsAANQFAAA' zoom='100' scrollx='0' scrolly='2342' flags='0' />
	</layout>
</document>
</root>
