<root>
<document scada='1' panel2DSCADA='0' panel3DSCADA='6' panelPropsSCADA='0' panelConsoleSCADA='0' panelDataRecorderSCADA='0' playbackSCADA='0' ShouldAutoStartSCADA='0' ShouldLockCameraSCADA='0' ShouldBundleSCADA='1' SCADAProgramTitle='' schema='102' license='1,54417475,B56TB8' title='App Developer Project' description='' fcversion='590080' target='SCADA.SCADA.GENERIC' >
	<config data='' clkspd='100000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Read_Registers.Return' />
		<watch expr='L1_Volts' />
	</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='4095' />
			<data name='ClockPin' value='0' />
			<data name='DataPort' value='4095' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='2' />
			<data name='CalculatedCommsDelay' value='2' />
			<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='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='9c289ea2-318b-4815-a28c-ca9b99fd05f9' 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='1' 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 >
				<property name='COM Port' target='ModbusMasterSCADA1::scada_uart1::com_port' typeid='16' hidden='0' locked='0' info='Lists all the current available COM port hardware on your PC.' filter='008COM8 USB Serial Port' />
			</properties>
			<values >
				<value target='ModbusMasterSCADA1::scada_uart1::com_port' data='008' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='L1_Volts' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
				</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='Meter_Address' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='2' setinit='2' />
				</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='Read_Registers' description='Read Registers' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Long' type='u32' description='Long Number' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Return' type='u8' description='Return Number' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Value' type='u16' description='Read Registers Value' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Val' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Comment:

Read Register 0006 &amp; 0007 

L1 Volts - Float ' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' />
						<command class_type='call' title='Component Macro' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' component='ModbusMasterSCADA1' macro='GetResponseInt' >
							<return exp='.Return' />
							<argument exp='Meter_Address' />
						</command>
						<command class_type='comment' title='' comment='Comment:

Returns 0 for success, 1 for CRC fail and 255 for no reply.' textarea='79,-1,79,-1' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' />
						<command class_type='decision' title='Is Device Readable ?' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' exp='.Return = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Get 16-bit register value' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' component='ModbusMasterSCADA1' macro='ReadHoldingRegister' >
									<return exp='.Long' />
									<argument exp='Meter_Address' />
									<argument exp='0005' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Get 16-bit register value' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' component='ModbusMasterSCADA1' macro='ReadHoldingRegister' >
									<return exp='.Val' />
									<argument exp='Meter_Address' />
									<argument exp='0006' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Combine 16-bit vals' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' >
									<exp exp='.Long = .Long | (.Val &lt;&lt; 16)' />
								</command>
								<command class_type='calculation' title='Convert to Voltage' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' >
									<exp exp='L1_Volts = FLOAT .Long / 0.001' />
								</command>
							</flowline>
							<flowline />
						</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='Ashridge_Address' type='u8' description='Ashridge Modbus Address' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='COM_Port' type='u8' description='COM Port Number' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Top_Oil_Temp' type='f32' description='Top Oil Temp' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='CT1_Amps' type='f32' description='CT1 Amps' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Winding1_Temp' type='f32' description='Winding 1  Temperature' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Alarm_ON' type='f32' description='Alarm ON temperature' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Alarm_OFF_temperature' type='f32' description='Alarm OFF temperature' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Trip_ON_temperature' type='f32' description='Trip ON temperature' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' component='ModbusMasterSCADA1' macro='Initialise' />
						<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' macro='Read_Registers' />
								<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='10197915' cmdcolor_txt='0' cmdgradient='2' cmdopacity='1' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='97647329-1e06-46dc-ba11-9d721038294d' vmin='1' vmaj='2' codename='ModbusMasterSCADA1' x='220' y='-30' z='8.2' xsz='64' ysz='32' zsz='4' 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='FrameType' data='000' />
					<value target='ReceiveBufferSize' data='20' />
					<value target='AddressBytes' data='2' />
					<value target='SilentInterval' data='60' />
					<value target='RXTOUT' data='220' />
					<value target='TOUTCNT' data='3' />
					<value target='label' data='Modbus' />
					<value target='scada_uart1::ConsoleData' data='' />
					<value target='scada_uart1::ConsoleColumns' data='64' />
					<value target='scada_uart1::DataSource' data='001' />
					<value target='scada_uart1::com_port' data='008' />
					<value target='scada_uart1::RefreshPorts' data='0' />
					<value target='scada_uart1::baud' data='9600' />
					<value target='scada_uart1::Injector' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='64f3c8ad-21a4-4e15-b9aa-c32a2edca893' vmin='0' vmaj='1' codename='Num7Seg1' x='0' y='-50' 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='ShowTitle' data='1' />
					<value target='Title' data='Numeric Title' />
					<value target='TitleScale' data='1.200000' />
					<value target='TitleColour' data='16777215' />
					<value target='TitleOffset' data='15.000000' />
					<value target='NumDigits' data='004' />
					<value target='Range' data='000' />
					<value target='FgCol' data='33023' />
					<value target='BgCol' data='1973790' />
					<value target='MinVal1' data='0.000000' />
					<value target='MaxVal1' data='1000.000000' />
					<value target='FgCol1' data='15335423' />
					<value target='BgCol1' data='1973790' />
					<value target='MinVal2' data='1000.000000' />
					<value target='MaxVal2' data='1500.000000' />
					<value target='FgCol2' data='10551295' />
					<value target='BgCol2' data='7895160' />
					<value target='MinVal3' data='1500.000000' />
					<value target='MaxVal3' data='2000.000000' />
					<value target='FgCol3' data='5767167' />
					<value target='BgCol3' data='11842740' />
					<value target='MinVal4' data='2000.000000' />
					<value target='MaxVal4' data='3000.000000' />
					<value target='FgCol4' data='17151' />
					<value target='BgCol4' data='13816530' />
					<value target='MinVal5' data='3000.000000' />
					<value target='MaxVal5' data='10000.000000' />
					<value target='FgCol5' data='255' />
					<value target='BgCol5' data='65535' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='38.4319' ye='-65.0774' ze='402.453' xt='38.4319' yt='-65.0774' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='1196' dy='696' zoom='359.585' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='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='300' 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---------------------wUAAAAYAAAAQAYAAIMCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Registers' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAQAYAAIMCAAA' zoom='70' scrollx='0' scrolly='126' flags='0' />
	</layout>
</document>
</root>
