<root>
<document scada='0' schema='102' license='1,54349151,DMRM1A' title='App Developer Project' description='' fcversion='590336' target='ESP.ESP32.ESP32_WROOM_32' >
	<config data='' clkspd='240000000' simspd='0' usewdt='1' constif='0' commport='5' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='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='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='78088016-9624-43ca-a180-9f36e9aed91e' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='SendString' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Name' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lenth' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='connect' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='S1' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='convert' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Length' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='exit' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Value' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='250' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OldRawData' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='oldsetpoint' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cng' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RawData' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Control' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FeedB' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PV' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='on' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Serial' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Feedback' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Setpoint' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='send_temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='time' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ProcessPID' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='ReadFloat' >
							<return exp='Setpoint' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Debug' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Setpoint = 78' />
							<exp exp='Name = &quot;SetPoint - &quot;' />
							<exp exp='Value = ToString$ (Setpoint)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Setpoint = Setpoint * 4' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='cng = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Assign Feedback' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DSPInput1FeedBack' macro='AddByte' >
									<argument exp='Feedback' />
								</command>
								<command class_type='calculation' title='Debug' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Name = &quot;Feedback - &quot;' />
									<exp exp='Value = FloatToString$ (Feedback)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Assign Feedback' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DSPInput1FeedBack' macro='AddByte' >
									<argument exp='FeedB' />
								</command>
								<command class_type='calculation' title='Debug' disable='1' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Name = &quot;Feedback - &quot;' />
									<exp exp='Value = FloatToString$ (FeedB)' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
						<command class_type='call' title='Assign Setpoint' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DSPInput2SetPoint' macro='AddByte' >
							<argument exp='Setpoint' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DSPPIDControl1' macro='Process' />
						<command class_type='call' title='Read from DSP output buffer' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DSPOutput1' macro='GetByte' >
							<return exp='Control' />
						</command>
						<command class_type='calculation' title='Debug' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Name = &quot;DutyCycle - &quot;' />
							<exp exp='Value = ToString$ (Control)' />
						</command>
						<command class_type='call' title='Debug' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
						<command class_type='call' title='Assign to PWM duty' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='PWM1' macro='SetDutyCycle10Bit' >
							<argument exp='Control' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Coils_Inpuits' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='CheckForIncoming' >
							<return exp='in' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='in = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Check stat of coils to see if switch is on or off' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='ReadCoils' >
									<return exp='on' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='on = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='exit = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='exit = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Check to see whitch probe is selected' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='ReadCoils' >
									<return exp='S1' />
									<argument exp='1' />
									<argument exp='2' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='S1 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='cng = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='cng = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Check to see if the set value has changed if so store' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='ReadHoldingRegister' >
									<return exp='Setpoint' />
									<argument exp='0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Setpoint != oldsetpoint' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='WriteFloat' >
											<argument exp='0' />
											<argument exp='Setpoint' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='oldsetpoint = Setpoint' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Debuging ' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='display = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Name = &quot;ON/OFF (coil 0) - &quot;' />
											<exp exp='Value = ToString$ (on)' />
											<exp exp='' />
										</command>
										<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Name = &quot;Select Probe (coil 1) - &quot;' />
											<exp exp='Value = ToString$ (S1)' />
											<exp exp='cng = S1' />
										</command>
										<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
										<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
											<exp exp='Name = &quot;PV - &quot;' />
											<exp exp='Value = ToString$ (PV)' />
										</command>
										<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintScreen' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='eeprom1' macro='ReadFloat' >
							<return exp='Setpoint' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetBackgroundColour' >
							<argument exp='0' />
							<argument exp='50' />
							<argument exp='50' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetFontScaler' >
							<argument exp='2' />
							<argument exp='2' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='Setpoint &gt; 99' swap='0' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
									<argument exp='&quot;      &quot;' />
									<argument exp='55' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
									<argument exp='&quot;SV=     °C&quot;' />
									<argument exp='10' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
									<argument exp='&quot;    &quot;' />
									<argument exp='55' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
									<argument exp='&quot;SV=    °C&quot;' />
									<argument exp='10' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='PrintNumber' >
							<argument exp='Setpoint' />
							<argument exp='55' />
							<argument exp='10' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='RawData &gt; 99' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='cng = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;          &quot;' />
											<argument exp='55' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;PV=      °C&quot;' />
											<argument exp='10' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;        &quot;' />
											<argument exp='55' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;PV=     °C&quot;' />
											<argument exp='10' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='cng = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;         &quot;' />
											<argument exp='55' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;PV=      °C&quot;' />
											<argument exp='10' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;        &quot;' />
											<argument exp='55' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
											<argument exp='&quot;PV=    °C&quot;' />
											<argument exp='10' />
											<argument exp='33' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='RawData &gt; 39' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='RawData &gt; 69' swap='0' >
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetForegroundColour' >
											<argument exp='255' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetForegroundColour' >
											<argument exp='255' />
											<argument exp='0' />
											<argument exp='255' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetForegroundColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='255' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='send_temp' />
							<argument exp='55' />
							<argument exp='33' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetForegroundColour' >
							<argument exp='255' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Print' >
							<argument exp='&quot;Running&quot;' />
							<argument exp='10' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Name = &quot;SV1 - &quot;' />
							<exp exp='Value = ToString$ (Setpoint)' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Debug' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='SendString' >
							<argument exp='Name' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='SendString' >
							<argument exp='Value' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='SendString' >
							<argument exp='&quot;\r\n&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GetTemp' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='LSB' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='MSB' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='cng = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Read The DS18B20' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='Get Serial 48-bit Address of Device' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DS18B20' macro='GetSerialString' >
									<return exp='Serial' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DS18B20' macro='SampleAllDevices' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DS18B20' macro='AddressSpecificDevice' >
									<argument exp='Serial' />
								</command>
								<command class_type='call' title='Collect Temperature' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DS18B20' macro='GetTemperature' >
									<return exp='Feedback' />
								</command>
								<command class_type='call' title='Send 48-bit Serial ID' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='SendString' >
									<argument exp='Serial' />
								</command>
								<command class_type='call' title='Send New Line' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='SendString' >
									<argument exp='&quot;\r\n&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='convert = FloatToString$ (Feedback)' />
									<exp exp='RawData = StringToInt$ (convert)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send_temp = FloatToString$ (Feedback)' />
									<exp exp='length = Length$ (send_temp)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='Read Max6675 SPI' textarea='229,47,229,47' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='SPI_TempProbe' macro='Enable_CS' />
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='SPI_TempProbe' macro='GetChar' >
									<return exp='.MSB' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='SPI_TempProbe' macro='GetChar' >
									<return exp='.LSB' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='SPI_TempProbe' macro='Disable_CS' />
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='OldRawData = RawData' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='debug' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Name = &quot;OldRawData &quot;' />
									<exp exp='Value = ToString$ (OldRawData)' />
								</command>
								<command class_type='call' title='Debug' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='RawData = .LSB &gt;&gt; 3' />
									<exp exp='RawData = RawData | .MSB &lt;&lt; 5' />
									<exp exp='RawData = RawData - 16 // temp correction +- 3 deg out' />
									<exp exp='FeedB = RawData' />
									<exp exp='FeedB = FeedB * 0.25' />
								</command>
								<command class_type='calculation' title='debug' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='RawData = RawData * 0.25' />
									<exp exp='Name = &quot;RawData &quot;' />
									<exp exp='Value = ToString$ (RawData)' />
								</command>
								<command class_type='call' title='Debug' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send_temp = ToString$ (FeedB)' />
									<exp exp='length = Length$ (send_temp)' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='length &gt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='If temp is over 100 degrees' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send_temp = Left$ (send_temp,5)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='send_temp = Left$ (send_temp,4)' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='PrintScreen' />
					</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='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='cng = 1' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='DS18B20' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='One_Wire1' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='UART1' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='PWM1' macro='Enable' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='SPI_TempProbe' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='SetDisplayOrientation' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='gLCD_ST7789V1' macro='ClearDisplay' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='WLAN_ESP32' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='WLAN_ESP32' macro='ConnectToSSID' >
							<return exp='connect' />
							<argument exp='&quot;Network&quot;' />
							<argument exp='&quot;Password&quot;' />
							<argument exp='20' />
						</command>
						<command class_type='decision' title='Decision' disable='1' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='connect = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Name = &quot;Connected to ssid&quot;' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
									<exp exp='Name = &quot;Network Connection - &quot;' />
									<exp exp='Value = &quot;Fail&quot;' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Debug' />
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='NetworkComms1' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='Initialise' />
						<command class_type='calculation' title='' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
							<exp exp='Setpoint = 78' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='Bottom 3 call macros are disabled if i initialise 
the WLAN, NetworkComs &amp; TCPSlave. In this configuration the 
DS18B20 reads all the time but if I initialise everything stops working ' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='GetTemp' />
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='ProcessPID' />
								<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='PrintScreen' />
								<command class_type='comment' title='' comment='Enable if WLAN, NetworkComs &amp; TCPSlave are enabled' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='User Macro' disable='1' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Coils_Inpuits' />
								<command class_type='decision' title='Decision' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='on = 1' swap='0' >
									<flowline >
										<command class_type='output' title='Output' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' mode='1' port='4194304' mask='4' exp='in' usechipref='0' />
										<command class_type='loop' title='Loop' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' type='0' exp='exit = 1' >
											<flowline >
												<command class_type='decision' title='' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' exp='time = 35' swap='0' >
													<flowline >
														<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='GetTemp' />
														<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='ProcessPID' />
														<command class_type='call' title='User Macro' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='PrintScreen' />
														<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
															<exp exp='time = 0' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='comment' title='' comment='Enable if WLAN, NetworkComs &amp; TCPSlave are enabled' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
												<command class_type='call' title='User Macro' disable='1' cmdcolor='2263842' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' macro='Coils_Inpuits' />
												<command class_type='calculation' title='Calculation' cmdcolor='16711680' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' >
													<exp exp='time = time + 1' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='36095' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' exp='500' type='1' />
								<command class_type='comment' title='' comment='Enable if WLAN, NetworkComs &amp; TCPSlave are enabled' textarea='12,0,12,0' cmdcolor='5767111' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='1' cmdopacity='0.01' />
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='128' cmdcolor_sec='5767111' cmdcolor_txt='2105376' cmdgradient='0' cmdopacity='1' component='ModbusTCPSlave1' macro='SetAnalogInput' >
									<argument exp='2' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4e30b15e-2507-4583-995d-b2056e04a286' vmin='6' vmaj='1' codename='gLCD_ST7789V1' x='50' y='80' z='0' xsz='3.56868' ysz='3.56868' zsz='3.56868' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_width' data='128' />
					<value target='pixel_height' data='160' />
					<value target='XOffset' data='0' />
					<value target='YOffset' data='0' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='16760992' />
					<value target='InvColours' data='0' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='FGCOL' data='65503' />
					<value target='BGCOL' data='42527' />
					<value target='data_pin' data='$PORTA.19' />
					<value target='clock_pin' data='$PORTA.18' />
					<value target='UseCS' data='1' />
					<value target='ToggleCS' data='1' />
					<value target='chip_sel_pin' data='$PORTB.0' />
					<value target='UseReset' data='1' />
					<value target='ResetPin' data='$PORTB.1' />
					<value target='UseBacklight' data='1' />
					<value target='BacklightPin' data='$PORTA.27' />
					<value target='UseDC' data='1' />
					<value target='DCPin' data='$PORTA.15' />
					<value target='Base_GLCD::FontCount' data='001' />
					<value target='Base_GLCD::gLCD_Font1::Font' data='000' />
					<value target='Base_GLCD::gLCD_Font1::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font1::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font2::Font' data='005' />
					<value target='Base_GLCD::gLCD_Font2::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font2::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font3::Font' data='002' />
					<value target='Base_GLCD::gLCD_Font3::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font3::SpaceWidth' data='004' />
					<value target='Base_GLCD::gLCD_Font4::Font' data='015' />
					<value target='Base_GLCD::gLCD_Font4::FontSpace' data='001' />
					<value target='Base_GLCD::gLCD_Font4::SpaceWidth' data='004' />
					<value target='DisplayMethod' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='783b7689-0c71-44fb-9dde-673e4b7455ba' vmin='0' vmaj='1' codename='DS18B20' x='-160' y='30' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='OneWireComp' data='001' />
					<value target='OneWireHandle' data='6609' />
					<value target='AlarmHigh' data='75' />
					<value target='AlarmLow' data='70' />
					<value target='ConversionBits' data='003' />
					<value target='MaxConvTime' data='750' />
					<value target='TempRes' data='0.062500' />
					<value target='SimComms' data='0' />
					<value target='NumSensors' data='001' />
					<value target='Serial0' data='000000000000' />
					<value target='Serial1' data='000000000001' />
					<value target='Serial2' data='000000000002' />
					<value target='Serial3' data='000000000003' />
					<value target='Serial4' data='000000000004' />
					<value target='Serial5' data='000000000005' />
					<value target='Serial6' data='000000000006' />
					<value target='Serial7' data='000000000007' />
					<value target='Serial8' data='000000000008' />
					<value target='Serial9' data='000000000009' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='64b26b13-68cf-4a92-8616-e882b7c71023' vmin='4' vmaj='1' codename='One_Wire1' x='-40' y='-20' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='oo_pin' data='$PORTA.0' />
					<value target='Timing' data='000' />
					<value target='BufferSize' data='2' />
					<value target='OneWire' data='1' />
					<value target='NopTiming' data='0' />
					<value target='Nops6us' data='66' />
					<value target='Nops9us' data='18' />
					<value target='Nops10us' data='114' />
					<value target='NopFiddle' data='6' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='96862c4d-debc-45fa-9433-74711a4b9a3b' vmin='1' vmaj='2' codename='SPI_TempProbe' x='-40' y='60' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi::CHANNEL' data='001' />
					<value target='cal_spi::MOSI' data='$PORTA.23' />
					<value target='cal_spi::MOSIPins' data='031' />
					<value target='cal_spi::MISO' data='$PORTA.12' />
					<value target='cal_spi::MISOPins' data='010' />
					<value target='cal_spi::CLK' data='$PORTA.14' />
					<value target='cal_spi::CLKPins' data='009' />
					<value target='cal_spi::UseAutoCS' data='1' />
					<value target='cal_spi::SS' data='$PORTA.4' />
					<value target='cal_spi::PR_SCALE' data='004' />
					<value target='cal_spi::CKE' data='000' />
					<value target='cal_spi::CKP' data='000' />
					<value target='cal_spi::SMP' data='000' />
					<value target='label' data='SPI  Master' />
					<value target='cal_spi::ScopeTraces' data='1' />
					<value target='cal_spi::ConsoleData' data='1' />
					<value target='cal_spi::Injector' data='000' />
					<value target='cal_spi::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' x='-40' y='140' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='009' />
					<value target='cal_uart::BAUD' data='115200' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTA.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='0' />
					<value target='cal_uart::RX' data='$PORTA.3' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='2' vmaj='1' codename='eeprom1' x='-130' y='140' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='128 byte' />
					<value target='EEbitdepth' data='16 bit' />
					<value target='InitialValues' data='' />
					<value target='InitValsParsed' data='' />
					<value target='ResetValues' data='0' />
					<value target='BitDepth' data='16' />
					<value target='Sim' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e6dd1315-4acf-4fb5-abd9-5743d3715cbe' vmin='2' vmaj='1' codename='DSPPIDControl1' x='90' y='-30' z='0' xsz='61' ysz='32' zsz='5.965' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Ref2::LinkTo' data='001' />
					<value target='Ref1::LinkTo' data='002' />
					<value target='BuffSizeIn' data='1' />
					<value target='BuffTypeIn' data='000' />
					<value target='BuffSize' data='1' />
					<value target='BuffType' data='000' />
					<value target='method' data='003' />
					<value target='proportional' data='1.000000' />
					<value target='integral' data='0.100000' />
					<value target='derivative' data='0.100000' />
					<value target='InvertError' data='0' />
					<value target='SampleTime' data='0.001000' />
					<value target='IntegralClamping' data='1' />
					<value target='ClampMax' data='65535' />
					<value target='ClampMin' data='0' />
					<value target='MonitorSetpoint' data='1' />
					<value target='DerFiltering' data='1' />
					<value target='FilterCoefficient' data='10' />
					<value target='BuffSizeIn2' data='1' />
					<value target='BuffTypeIn2' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73d493a-b6a0-4dbe-b4b5-79648f67d11e' vmin='2' vmaj='1' codename='DSPInput2SetPoint' x='30' y='-10' z='0' xsz='46.5' ysz='32' zsz='6.26796' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BuffSize' data='1' />
					<value target='BuffType' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73d493a-b6a0-4dbe-b4b5-79648f67d11e' vmin='2' vmaj='1' codename='DSPInput1FeedBack' x='30' y='-50' z='0' xsz='46.5' ysz='32' zsz='6.26796' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BuffSize' data='1' />
					<value target='BuffType' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1392d5c3-35ba-4c7f-a539-7f30a09758e4' vmin='2' vmaj='1' codename='DSPOutput1' x='160' y='-30' z='0' xsz='46.5' ysz='32' zsz='5.965' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Ref1::LinkTo' data='001' />
					<value target='AutoScale' data='0' />
					<value target='BuffSizeIn' data='1' />
					<value target='BuffTypeIn' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1' vmaj='2' codename='PWM1' x='170' y='90' z='0' xsz='1.48148' ysz='1.48148' zsz='1.48148' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTA.26' />
					<value target='RemapPin' data='007' />
					<value target='timer' data='000' />
					<value target='period' data='35' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='142.857132' />
					<value target='frequency_calc2' data='7000.000000' />
					<value target='frequency_calc' data='7.000000' />
					<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='001' />
					<value target='Family' data='ESP' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f0f54e46-0848-4930-9bb6-eff9a34ed229' vmin='4' vmaj='2' codename='WLAN_ESP32' x='150' y='180' z='0' xsz='25' 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='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Verbose' data='0' />
					<value target='RemapIndex' data='22' />
					<value target='TCP_Base1::interface' data='0' />
					<value target='TCP_Base1::ConsoleData' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91049bf5-2436-42dc-947a-c30c86463d98' vmin='5' vmaj='1' codename='NetworkComms1' x='90' y='180' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Component' data='WLAN_ESP32' />
					<value target='RemapIndex' data='22' />
					<value target='Status' data='Supported' />
					<value target='Sim' data='0' />
					<value target='SimControl' data='000' />
					<value target='NetworkInterface' data='000' />
					<value target='IPAddress' data='192.168.8.100' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1ecb9b0a-53e7-45c9-ab6f-7a0d4a0c47e1' vmin='1' vmaj='2' codename='ModbusTCPSlave1' x='10' y='190' z='0' xsz='25' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Component' data='NetworkComms1' />
					<value target='Status' data='Supported' />
					<value target='Port' data='502' />
					<value target='ReceiveBufferSize' data='20' />
					<value target='ReceiveTimeout' data='100' />
					<value target='SlaveAddress' data='0' />
					<value target='Stats' data='1' />
					<value target='CloseSocket' data='1' />
					<value target='label' data='Modbus TCP Slave' />
					<value target='StartAdrCoil' data='0' />
					<value target='NumAdrCoil' data='8' />
					<value target='StartAdrDI' data='0' />
					<value target='NumAdrDI' data='0' />
					<value target='StartAdrAI' data='0' />
					<value target='NumAdrAI' data='8' />
					<value target='StartAdrReg' data='0' />
					<value target='NumAdrReg' data='2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='51.4552' ye='134.213' ze='321.913' xt='51.4552' yt='134.213' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='569' dy='394' zoom='213.875' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='15793151' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='781.66' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='1298' flags='0' />
		<view type='0' name='GetTemp' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PrintScreen' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Debug' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ProcessPID' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='467' flags='0' />
		<view type='0' name='Coils_Inpuits' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAQQAAPACAAA' zoom='75' scrollx='0' scrolly='108' flags='0' />
	</layout>
</document>
</root>
