<root>
<document scada='0' schema='103' license='1,12097602,69XV2A' title='' description='' fcversion='655361' target='AVR.ATMEGA.ATMEGA2560' >
	<config data='!0,f7!8,ff!10,ff%0,37%6,1%7,1' clkspd='14745600' simspd='2' usewdt='0' constif='0' 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='12' />
			<data name='CalculatedCommsDelay' value='12' />
			<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='09bba4c6-b3a2-4bc9-8399-93838e580964' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' bIs3dOnly='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' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='inspectra_model_number' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byteBuffer' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='works_dummy' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1224' setinit='1224' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ch4_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;NULL&quot;' setinit='&quot;NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg103_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;reg103NULL&quot;' setinit='&quot;reg103NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='inspectra_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;FFF&quot;' setinit='&quot;FFF&quot;' >
						<array size='20' />
					</def>
				</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='reg101_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;reg101NULL&quot;' setinit='&quot;reg101NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='inspectra_serial_number' type='s32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='getModel' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;NULL&quot;' setinit='&quot;NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg104_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;reg104NULL&quot;' setinit='&quot;reg104NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ackTimeoutCNT' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg102_temp' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;reg102NULL&quot;' setinit='&quot;reg102NULL&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg104' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg103' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='notWorking_dummy' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='65530' setinit='65530' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg102' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg101' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='init_hardware' 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='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' textarea='36,-10,36,-10' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='FlushBuffer' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' enable='1' name='RXINT1' call='uart_rx' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' 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='Inspectra_macro' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='buffer' type='T8' description='string to hold receiving data from inspectra' isconst='0' isHidden='0' isinit='1' usrinit='&quot;NULL&quot;' setinit='&quot;NULL&quot;' >
							<array size='20' />
						</local>
						<local name='notWorking' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;model not working&quot;' setinit='&quot;model not working&quot;' >
							<array size='20' />
						</local>
						<local name='rxCheck1' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='delay' title='Delay' disable='1' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G00\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='ReceiveString' >
							<return exp='.buffer' />
							<argument exp='100' />
							<argument exp='8' />
						</command>
						<command class_type='delay' title='Delay' disable='1' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G00\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='ReceiveString' >
							<return exp='.buffer' />
							<argument exp='100' />
							<argument exp='8' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='CheckForIncoming' >
							<return exp='.rxCheck1' />
						</command>
						<command class_type='delay' title='Delay' disable='1' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='comment' title='' comment='.buffer[0] == &apos;G&apos; &amp;&amp; .buffer[1] == &apos;0&apos; &amp;&amp; .buffer[2] == &apos;0&apos; ' textarea='12,0,12,0' disable='1' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
						<command class_type='decision' title='Get Model' disable='1' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.buffer[0] == &apos;G&apos; &amp;&amp; .buffer[1] == &apos;0&apos; &amp;&amp; .buffer[2] == &apos;0&apos;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='// Remove the first 3 characters from the string' />
									<exp exp='.buffer = Mid$ (.buffer,3, Length$ (.buffer) - 3)' />
									<exp exp='' />
									<exp exp='// Remove the last character' />
									<exp exp='.buffer = LEFT$ (.buffer,4)' />
									<exp exp='' />
									<exp exp='//convert from string to unsigned int' />
									<exp exp='inspectra_model_number = StringToInt$ (.buffer)' />
								</command>
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
									<argument exp='inspectra_model_number' />
								</command>
								<command class_type='call' title='modelNumber_modbus_100' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='100' />
									<argument exp='works_dummy' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='.notWorking' />
								</command>
								<command class_type='call' title='notWorking' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='105' />
									<argument exp='notWorking_dummy' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G51\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='ReceiveString' >
							<return exp='.buffer' />
							<argument exp='100' />
							<argument exp='12' />
						</command>
						<command class_type='decision' title='Get Serial' textarea='166,11,166,11' disable='1' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.buffer[0] == &apos;H&apos; &amp;&amp; .buffer[1] == &apos;5&apos; &amp;&amp; .buffer[2] == &apos;1&apos;' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Take raw data from command &quot;G51\r&quot; and 
remove the unnecessary characters. ' textarea='12,0,12,0' disable='1' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='// Remove the first 3 characters from the string' />
									<exp exp='inspectra_temp = Mid$ (.buffer,3, Length$ (.buffer) - 3)' />
									<exp exp='' />
									<exp exp='//remove the 0 character at the end' />
									<exp exp='inspectra_temp = LEFT$ (inspectra_temp,8)' />
								</command>
								<command class_type='comment' title='' comment='Take trimed HEX string and convert to decimal' textarea='12,0,12,0' disable='1' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
								<command class_type='call' title='Inspectra Serial Number' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='HexStrToInt' >
									<return exp='inspectra_serial_number' />
									<argument exp='inspectra_temp' />
								</command>
								<command class_type='calculation' title='Split string in half' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='//split HEX string in half and store each' />
									<exp exp='//half into a temp var' />
									<exp exp='reg101_temp = Left$ (inspectra_temp,4)' />
									<exp exp='reg102_temp = Right$ (inspectra_temp,4)' />
								</command>
								<command class_type='call' title='Hex to long and save in reg101' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='HexStrToInt' >
									<return exp='reg101' />
									<argument exp='reg101_temp' />
								</command>
								<command class_type='call' title='Hex to long and save in reg102' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='HexStrToInt' >
									<return exp='reg102' />
									<argument exp='reg102_temp' />
								</command>
								<command class_type='call' title='register_modbus_101' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='101' />
									<argument exp='reg101' />
								</command>
								<command class_type='call' title='register_modbus_102' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='102' />
									<argument exp='reg102' />
								</command>
								<command class_type='call' title='send reg 101' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
									<argument exp='reg101' />
								</command>
								<command class_type='call' title='send reg 102' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
									<argument exp='reg102' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;NADA&quot;' />
								</command>
								<command class_type='call' title='notWorking2' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='106' />
									<argument exp='91' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G11\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='ReceiveString' >
							<return exp='.buffer' />
							<argument exp='100' />
							<argument exp='12' />
						</command>
						<command class_type='decision' title='Get Methane' disable='1' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.buffer[0] == &apos;H&apos; &amp;&amp; .buffer[1] == &apos;1&apos; &amp;&amp; .buffer[2] == &apos;1&apos;' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Take raw data from command &quot;G11\r&quot; &amp;
remove the unnecessary characters. ' textarea='12,0,12,0' disable='1' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='// Remove the first 3 characters from the string' />
									<exp exp='ch4_temp = Mid$ (.buffer,3, Length$ (.buffer) - 3)' />
									<exp exp='' />
									<exp exp='//remove the 0 character at the end' />
									<exp exp='ch4_temp = LEFT$ (ch4_temp,8)' />
								</command>
								<command class_type='calculation' title='Split string in half' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='//split HEX string in half and store each' />
									<exp exp='//half into a temp var' />
									<exp exp='reg103_temp = Left$ (ch4_temp,4)' />
									<exp exp='reg104_temp = Right$ (ch4_temp,4)' />
								</command>
								<command class_type='call' title='Hex to long and save in reg103' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='HexStrToInt' >
									<return exp='reg103' />
									<argument exp='reg103_temp' />
								</command>
								<command class_type='call' title='Hex to long and save in reg104' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='HexStrToInt' >
									<return exp='reg104' />
									<argument exp='reg104_temp' />
								</command>
								<command class_type='call' title='register_modbus_103' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='103' />
									<argument exp='reg103' />
								</command>
								<command class_type='call' title='register_modbus_104' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='104' />
									<argument exp='reg104' />
								</command>
								<command class_type='call' title='send reg 103' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
									<argument exp='reg103' />
								</command>
								<command class_type='call' title='send reg 104' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
									<argument exp='reg104' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;NOpe&quot;' />
								</command>
								<command class_type='call' title='notWorking3' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
									<argument exp='107' />
									<argument exp='92' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='uart_rx' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='rxReceived' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='ReceiveChar' >
							<return exp='.rxReceived' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='PutByte' >
							<argument exp='.rxReceived' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='weatherTest' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='testBuffer' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;testWeather&quot;' setinit='&quot;testWeather&quot;' >
							<array size='20' />
						</local>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='200' type='1' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='SendString' >
							<argument exp='&quot;TEST\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='ReceiveString' >
							<return exp='.testBuffer' />
							<argument exp='100' />
							<argument exp='8' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='200' type='1' />
						<command class_type='decision' title='Test if we can communicate with Vantage Pro 2' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.testBuffer[0] == &apos;\n&apos; &amp;&amp; .testBuffer[1] == &apos;\r&apos; &amp;&amp; .testBuffer[2] == &apos;T&apos; &amp;&amp; .testBuffer[3] == &apos;E&apos; &amp;&amp; .testBuffer[4] == &apos;S&apos; &amp;&amp; .testBuffer[5] == &apos;T&apos;' swap='0' >
							<flowline >
								<command class_type='call' title='Successfully Connected ' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;The Weather is great&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Not connecting' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;The weathter is not fine&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='inspectra_new' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='weather_macro' description='communicate with weather station and return data via modbus ' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='weatherBuffer' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;NULL&quot;' setinit='&quot;NULL&quot;' >
							<array size='20' />
						</local>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='call' title='test weatherstation' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='SendString' >
							<argument exp='&quot;LOOP 1\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='ReceiveString' >
							<return exp='.weatherBuffer' />
							<argument exp='100' />
							<argument exp='100' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='call' title='test weatherstation' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='SendString' >
							<argument exp='&quot;LOOP 1\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='ReceiveString' >
							<return exp='.weatherBuffer' />
							<argument exp='100' />
							<argument exp='100' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='250' type='1' />
						<command class_type='decision' title='Lost communication' disable='1' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.weatherBuffer[0] == 256' swap='0' >
							<flowline >
								<command class_type='calculation' title='ackTimeoutCNT' disable='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='ackTimeoutCNT = ackTimeoutCNT + 1' />
								</command>
								<command class_type='call' title='Successfully Connected ' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;The Weather is great&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.weatherBuffer[0] == 6' swap='0' >
							<flowline >
								<command class_type='call' title='Successfully Connected ' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='.weatherBuffer' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Successfully Connected ' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
									<argument exp='&quot;NO NO NO&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='HexStrToInt' description='' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='str' type='T8*' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='len' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='x' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
							<exp exp='.len = Length$ (.str)' />
							<exp exp='.x = 0' />
							<exp exp='.i = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' type='0' exp='.i &lt; .len' >
							<flowline >
								<command class_type='calculation' title='Make way for the next digit' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='.x = .x * 16' />
									<exp exp='.c = .str[.i]' />
								</command>
								<command class_type='decision' title='Is it a digit' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='(.c &gt;= &apos;0&apos;) &amp;&amp; (.c &lt;= &apos;9&apos;)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
											<exp exp='.x = .x + (.c - &apos;0&apos;)' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Hex digit' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='(.c &gt;= &apos;A&apos;) &amp;&amp; (.c &lt;= &apos;F&apos;)' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
													<exp exp='.x = .x + (.c - &apos;A&apos; + 10)' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='End of valid number so lets bail out of the loop' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
													<exp exp='.i = .len' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
									<exp exp='.i = .i + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' break='1' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
							<exp exp='.Return = .x' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='strng' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='numBytes' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='WEATHER_UART' macro='Initialise' />
						<command class_type='call' title='Component Macro' textarea='36,-10,36,-10' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='FlushBuffer' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' enable='1' name='RXINT0' call='uart_rx' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' 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' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='INSPECTRA_UART' macro='SendString' >
									<argument exp='&quot;G00\r&quot;' />
								</command>
								<command class_type='call' title='Collect data byte from the buffer' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='GetByte' >
									<return exp='byteBuffer' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='100' type='1' />
								<command class_type='call' title='Get the number of bytes in the buffer' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='GetNumberBytes' >
									<return exp='.numBytes' />
								</command>
								<command class_type='decision' title='Is there data in the buffer?' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.numBytes &gt; 0' swap='0' >
									<flowline >
										<command class_type='call' title='Read a string of 8 characters from the circular buffer' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='CircularBuffer_8bit' macro='GetString' >
											<return exp='inspectra_temp' />
											<argument exp='8' />
										</command>
										<command class_type='calculation' title='Trim the string' cmdcolor='8124159' cmdcolor_sec='1544914' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' >
											<exp exp='// Remove the first 3 characters from the string' />
											<exp exp='inspectra_temp = Mid$ (inspectra_temp,3, Length$ (inspectra_temp) - 3)' />
											<exp exp='' />
											<exp exp='//remove the 0 character at the end' />
											<exp exp='inspectra_temp = LEFT$ (inspectra_temp,8)' />
											<exp exp='' />
											<exp exp='//convert from string to unsigned int' />
											<exp exp='inspectra_model_number = StringToInt$ (inspectra_temp)' />
										</command>
										<command class_type='call' title='Output the model number via UART' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendNumber' >
											<argument exp='inspectra_model_number' />
										</command>
										<command class_type='call' title='put the model number into holding register 102' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
											<argument exp='102' />
											<argument exp='inspectra_model_number' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Component Macro' disable='1' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='OUT_UART' macro='SendString' >
											<argument exp='&quot;Nothing&quot;' />
										</command>
										<command class_type='call' title='send value 91 if not working to reg 106' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='MODBUS_SLAVE' macro='SetHoldingRegister' >
											<argument exp='106' />
											<argument exp='91' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='INSPECTRA_UART' panelId='0' x='124' y='-393' 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='2' poslock='1' 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='$PORTE.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTE.0' />
					<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='INSPECTRA_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='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='OUT_UART' panelId='0' x='132' y='-85' 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='2' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='004' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTJ.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTJ.0' />
					<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='OUT_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='687f8ad4-59f2-4079-bb84-7713dcb57a13' vmin='0' vmaj='2' codename='MODBUS_SLAVE' panelId='0' x='442' y='-402.5' 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='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='002' />
					<value target='cal_uart::TX' data='$PORTD.3' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::RX' data='$PORTD.2' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='BusType' data='000' />
					<value target='DDRP' data='$PORTC.1' />
					<value target='ReadDDRState' data='000' />
					<value target='Timeout' data='100' />
					<value target='UARTidx' data='002' />
					<value target='FrameType' data='000' />
					<value target='ReceiveBufferSize' data='5' />
					<value target='AddressBytes' data='1' />
					<value target='SlaveAddress' data='2' />
					<value target='ReplyDelay' data='200' />
					<value target='BaudByteDelay' data='1040' />
					<value target='Stats' data='1' />
					<value target='label' data='MODBUS_SLAVE' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='0' />
					<value target='cal_uart::ConsoleColumns' data='3' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='005' />
					<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='' />
					<value target='StartAdrCoil' data='0' />
					<value target='NumAdrCoil' data='0' />
					<value target='StartAdrDI' data='0' />
					<value target='NumAdrDI' data='0' />
					<value target='StartAdrAI' data='0' />
					<value target='NumAdrAI' data='0' />
					<value target='StartAdrReg' data='100' />
					<value target='NumAdrReg' data='10' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='WEATHER_UART' panelId='0' x='451' y='-100' 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='2' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='003' />
					<value target='cal_uart::BAUD_LIST' data='005' />
					<value target='cal_uart::BAUD' data='19200' />
					<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='$PORTH.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTH.0' />
					<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='WEATHER_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='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBuffer_8bit' panelId='0' x='272' y='-243' 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='2' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='1' brightness='0' >
		<background rgb='2105930' img='' style='0' />
		<camera xe='0' ye='0' ze='544.327' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='607' dy='667' zoom='134.932' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='11,148,1173,846' RectRecentDocked='15,175,622,842' 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='-841,323,-187,900' RectRecentDocked='-837,350,-233,896' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='1' >
		<panel2d_0 id='0' name='UARTs' >
			<winpos ID='1171' RectRecentFloat='1023,136,1582,743' RectRecentDocked='993,141,1600,841' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
			<background fill='288230376151053813' showgrid='1' gridstyle='1' gridsize='10' gridbrush='71776119075691740' snaptogrid='0' />
		</panel2d_0>
	</panels2d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAugQAALcCAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='uart_rx' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAugQAALcCAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Inspectra_macro' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAugQAALcCAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
