<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='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='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='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='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='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>
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='PC_UART' macro='Initialise' />
						<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='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G00\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' 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' 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='INSPECTRA_UART' macro='SendString' >
							<argument exp='&quot;G00\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' 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' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='200' type='1' />
						<command class_type='decision' title='Get Model' cmdcolor='16777119' cmdcolor_sec='16494651' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='.buffer[0] == &apos;H&apos; &amp;&amp; .buffer[1] == &apos;0&apos; &amp;&amp; .buffer[1] == &apos;0&apos;' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' 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='//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='PC_UART' macro='SendNumber' >
									<argument exp='inspectra_model_number' />
								</command>
								<command class_type='call' title='modelNumber_modbus_100' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' macro='SetHoldingRegister' >
									<argument exp='100' />
									<argument exp='inspectra_model_number' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='PC_UART' macro='SendString' >
									<argument exp='&quot;NOT WORKING&quot;' />
								</command>
							</flowline>
						</command>
						<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;G51\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' 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' 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' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
								<command class_type='calculation' title='Calculation' 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' 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' 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' 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' 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' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' macro='SetHoldingRegister' >
									<argument exp='101' />
									<argument exp='reg101' />
								</command>
								<command class_type='call' title='register_modbus_102' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' 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='PC_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='PC_UART' macro='SendNumber' >
									<argument exp='reg102' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='PC_UART' macro='SendString' >
									<argument exp='&quot;NADA&quot;' />
								</command>
							</flowline>
						</command>
						<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;G11\r&quot;' />
						</command>
						<command class_type='call' title='Component Macro' 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' 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' cmdcolor='11370621' cmdcolor_sec='11370621' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' />
								<command class_type='calculation' title='Calculation' 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' 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' 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' 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' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' macro='SetHoldingRegister' >
									<argument exp='103' />
									<argument exp='reg103' />
								</command>
								<command class_type='call' title='register_modbus_104' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='Inspectra_ModbusSlave' 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='PC_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='PC_UART' macro='SendNumber' >
									<argument exp='reg104' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' component='PC_UART' macro='SendString' >
									<argument exp='&quot;NOpe&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='sendToPC' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='INSPECTRA' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Inspectra_module' 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' />
					</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>
						<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='User Macro' cmdcolor='15443959' cmdcolor_sec='8864659' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' macro='Inspectra_macro' />
								<command class_type='delay' title='Delay' cmdcolor='14697803' cmdcolor_sec='16755119' cmdcolor_txt='8355711' cmdgradient='1' cmdopacity='1' exp='2' type='2' />
							</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='129' y='-241' 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='PC_UART' panelId='0' x='266' y='-62' 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='002' />
					<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='$PORTD.3' />
					<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='$PORTD.2' />
					<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='PC_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='Inspectra_ModbusSlave' panelId='0' x='290' y='-245' 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='200' />
					<value target='AddressBytes' data='2' />
					<value target='SlaveAddress' data='2' />
					<value target='ReplyDelay' data='200' />
					<value target='BaudByteDelay' data='1040' />
					<value target='Stats' data='1' />
					<value target='label' data='Inspectra_ModbusSlave' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='0' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='002' />
					<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='' />
					<value target='StartAdrCoil' data='0' />
					<value target='NumAdrCoil' data='8' />
					<value target='StartAdrDI' data='0' />
					<value target='NumAdrDI' data='8' />
					<value target='StartAdrAI' data='0' />
					<value target='NumAdrAI' data='1' />
					<value target='StartAdrReg' data='0' />
					<value target='NumAdrReg' 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='2578.1' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='604' dy='667' zoom='28.348' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='11,148,1173,846' RectRecentDocked='15,175,619,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='1000,121,1439,571' RectRecentDocked='1004,148,1435,567' 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---------------------wUAAAAYAAAAugQAAKsBAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Inspectra_macro' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAugQAAKsBAAA' zoom='100' scrollx='0' scrolly='2938' flags='0' />
		<view type='0' name='HexStrToInt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAugQAAKsBAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
