<root>
<document scada='0' projtype='1' schema='103' license='1,82702381,95CJQR' title='' description='' fcversion='720897' target='PIC16.33E.E-Blocks2 16-bit dsPIC Programmer' >
	<config data='' clkspd='140000000' simspd='0' 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='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='0' center='0' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='ee11c499-8a22-4987-ba57-c7d5d2224a39' vstate='40' vmin='0' vmaj='1' srcleaf='External_ADC24Bit_ADS1220.fcfx' visiblename='ADC 24bit ADS1220' description='A Precision Low power 24Bit SPI ADC 4 channel device with Programmable Gain Amplifier (PGA) and Data Rates up to 2 kSPS
' category='Analog Input' category2='' category3='' bIs2dOnly='1' bIs3dOnly='0' bIsWysiwyg='0' catenable='1' author='Matrix TSL' manuname='' manucode='' sysinfo='1061643' keywords='ADS1220' dynamic='1' scadaCompatible='1' embeddedCompatible='1' showmacros='1' iconpath='..\..\icons\components\ADC.png' />
		<component class_type='root' codename='ADS1220' panelId='-1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='Connections' folder='cal_spi1::property_2' hidden='0' >
					<property name='Channel' target='cal_spi1::CHANNEL' typeid='16' hidden='0' locked='0' info='SPI Channel selector' filter='000Software
001Channel 1
002Channel 2
003Channel 3
004Channel 4
' />
					<property name='Prescale' target='cal_spi1::PR_SCALE' typeid='16' hidden='0' locked='0' info='Prescale option selector' filter='002Fosc/2
004Fosc/4
006Fosc/6
008Fosc/8
012Fosc/12
016Fosc/16
020Fosc/20
024Fosc/24
028Fosc/28
032Fosc/32
048Fosc/48
064Fosc/64
128Fosc/128
192Fosc/192
256Fosc/256
512Fosc/512' />
					<property name='MOSI' target='cal_spi1::MOSI' typeid='5' hidden='0' locked='1' info='SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.' />
					<property name='MOSI Remap Pin' target='cal_spi1::MOSIPins' typeid='16' hidden='0' locked='0' info='Select which the target pin to assign the MOSI hardware pin functionality.' filter='000$PORTE.5
001$PORTE.7
002$PORTG.6
003$PORTG.8
004$PORTF.4
005$PORTF.5
006$PORTF.3
007$PORTD.0
008$PORTD.1
009$PORTD.2
010$PORTD.3
011$PORTD.4
012$PORTD.5
013$PORTD.6
014$PORTD.7
015$PORTF.0
016$PORTF.1
017$PORTE.0
018$PORTE.2
019$PORTE.4' />
					<property name='MISO' target='cal_spi1::MISO' typeid='5' hidden='0' locked='1' info='SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode.' />
					<property name='MISO Remap Pin' target='cal_spi1::MISOPins' typeid='16' hidden='0' locked='0' info='Select which the target pin to assign the MISO hardware pin functionality.' filter='085$PORTE.5
086$PORTE.6
087$PORTE.7
118$PORTG.6
119$PORTG.7
120$PORTG.8
121$PORTG.9
037$PORTB.5
036$PORTB.4
035$PORTB.3
034$PORTB.2
033$PORTB.1
032$PORTB.0
038$PORTB.6
039$PORTB.7
040$PORTB.8
041$PORTB.9
042$PORTB.10
043$PORTB.11
044$PORTB.12
045$PORTB.13
046$PORTB.14
047$PORTB.15
100$PORTF.4
101$PORTF.5
099$PORTF.3
072$PORTD.8
073$PORTD.9
074$PORTD.10
075$PORTD.11
064$PORTD.0
061$PORTC.13
062$PORTC.14
065$PORTD.1
066$PORTD.2
067$PORTD.3
068$PORTD.4
069$PORTD.5
070$PORTD.6
071$PORTD.7
096$PORTF.0
097$PORTF.1
080$PORTE.0
081$PORTE.1
082$PORTE.2
083$PORTE.3
084$PORTE.4' />
					<property name='CLK' target='cal_spi1::CLK' typeid='5' hidden='0' locked='1' info='SPI Clock Pin CLK - The Clock signal is driven by the SPI master.' />
					<property name='CLK Remap Pin' target='cal_spi1::CLKPins' typeid='16' hidden='0' locked='0' info='Select which the target pin to assign the CLK hardware pin functionality.' filter='000$PORTE.5
001$PORTE.7
002$PORTG.6
003$PORTG.8
004$PORTF.4
005$PORTF.5
006$PORTF.3
007$PORTD.0
008$PORTD.1
009$PORTD.2
010$PORTD.3
011$PORTD.4
012$PORTD.5
013$PORTD.6
014$PORTD.7
015$PORTF.0
016$PORTF.1
017$PORTE.0
018$PORTE.2
019$PORTE.4' />
					<property name='CS / SS' target='cal_spi1::SS' typeid='5' hidden='0' locked='0' info='Chip Select / Slave Select Pin 
Master Mode: General purpose output pin used to select the remote SPI device.
Slave Mode: Hardware chip select pin input used to select the SPI device.
' />
					<property name='Use Ready Pin' target='UseReady' typeid='7' hidden='0' locked='0' info='Use DRDY pin to detect when conversion is complete. If disabled, polling will be used.' />
					<property name='DRDY Pin' target='DRDYPin' typeid='5' hidden='0' locked='0' info='Data Ready pin - goes low when conversion is complete' />
				</property>
				<property name='Configuration' hidden='0' >
					<property name='Data Rate' target='DataRate' typeid='16' hidden='0' locked='0' info='Programmable Data Rate (SPS)' filter='00020
00145
00290
003180
004360
005720
0061000
0072000' />
					<property name='Operating Mode' target='OperatingMode' typeid='16' hidden='0' locked='0' info='' filter='000Normal
001Duty Cycle 0.25x Sample Rate
002Turbo 2x Sample Rate ' />
					<property name='Conversion Mode' target='ConversionMode' typeid='16' hidden='0' locked='0' info='' filter='000Single Shot
001Continuous' />
					<property name='PGA Gain' target='PGAGain' typeid='16' hidden='0' locked='0' info='Programmable Gain Amplifier (PGA) gain setting' filter='0001
0012
0024
0038
00416
00532
00664
007128' />
					<property name='Voltage Reference' target='VRef' typeid='16' hidden='0' locked='0' info='Voltage reference source' filter='000Internal 2.048V
001External REFP0/REFN0
002External REFP1/REFN1
003Analog Supply AVDD/AVSS' />
					<property name='Reference Voltage' target='ReferenceVoltage' typeid='15' hidden='0' locked='0' info='' />
					<property name='FIR Filter' target='FIRFilter' typeid='16' hidden='0' locked='0' info='' filter='000No 50/60Hz Rejection
00150 &amp; 60Hz Rejection
00250Hz Only
00360Hz Only' />
					<property name='IDAC Current (uA)' target='IDACCurrent' typeid='16' hidden='0' locked='0' info='IDAC excitation current in microamperes. Typical values: 100, 250, 500, 750, 1000. Default: 250uA' filter='0000uA Off
00110uA
00250uA
003100uA
004250uA
005500uA
0061mA
0071.5mA' />
					<property name='I1MUX' target='I1MUX' typeid='16' hidden='0' locked='0' info='' filter='000Disabled
001AIN0
002AIN1
003AIN2
004AIN3
005REFP0
006REFN0' />
					<property name='I2MUX' target='I2MUX' typeid='16' hidden='0' locked='0' info='' filter='000Disabled
001AIN0
002AIN1
003AIN2
004AIN3
005REFP0
006REFN0' />
				</property>
				<property name='RTD Configuration' hidden='0' >
					<property name='RTD Type' target='RTDType' typeid='16' hidden='0' locked='0' info='RTD sensor type - determines base resistance at 0°C' filter='000PT100 (100Ω at 0°C)
001PT1000 (1000Ω at 0°C)' />
					<property name='RTD Configuration' target='RTDConfig' typeid='16' hidden='0' locked='0' info='' filter='0002 Wire RTD
0013 Wire RTD
0024 Wire RTD' />
					<property name='Reference Resistor' target='RefResistor' typeid='15' hidden='0' locked='0' info='High precision reference resistor value in ohms. Typically 400Ω for PT100 or 4000Ω for PT1000' />
					<property name='Temperature Coefficient' target='TempCoefficient' typeid='15' hidden='0' locked='1' info='' />
				</property>
				<property name='Simulation' folder='cal_spi1::property_1' hidden='0' >
					<property name='Simulate Comms' target='SimComms' typeid='7' hidden='0' locked='0' info='Allows the communications to be simulated overriding the value on the panel slider controls.' />
					<property name='IsSim' target='IsSim' typeid='7' hidden='1' locked='0' info='' />
					<property name='Communications' folder='property_1' hidden='1' >
						<property name='Scope Traces' target='cal_spi1::ScopeTraces' typeid='7' hidden='0' locked='0' info='Selects if the component pin connections are automatically generated on the data recorder window or not.
Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion.
No: Do not show the pin signals on the data recorder window.' />
						<property name='Console Data' target='cal_spi1::ConsoleData' typeid='7' hidden='0' locked='0' info='Selects if the console data is automatically generated or not' />
						<property name='API' target='cal_spi1::Injector' typeid='16' hidden='0' locked='0' info='Specifies the injector component on the panel to interact with to provide comms simulation.' filter='000' />
					</property>
				</property>
			</properties>
			<values >
				<value target='cal_spi1::CHANNEL' data='001' />
				<value target='cal_spi1::PR_SCALE' data='064' />
				<value target='cal_spi1::MOSI' data='$PORTD.5' />
				<value target='cal_spi1::MOSIPins' data='012' />
				<value target='cal_spi1::MISO' data='$PORTD.6' />
				<value target='cal_spi1::MISOPins' data='070' />
				<value target='cal_spi1::CLK' data='$PORTD.7' />
				<value target='cal_spi1::CLKPins' data='014' />
				<value target='cal_spi1::SS' data='$PORTC.2' />
				<value target='UseReady' data='1' />
				<value target='DRDYPin' data='$PORTD.8' />
				<value target='DataRate' data='000' />
				<value target='OperatingMode' data='000' />
				<value target='ConversionMode' data='001' />
				<value target='PGAGain' data='000' />
				<value target='VRef' data='001' />
				<value target='ReferenceVoltage' data='2.048' />
				<value target='FIRFilter' data='001' />
				<value target='IDACCurrent' data='001' />
				<value target='I1MUX' data='003' />
				<value target='I2MUX' data='004' />
				<value target='RTDType' data='001' />
				<value target='RTDConfig' data='001' />
				<value target='RefResistor' data='4700' />
				<value target='TempCoefficient' data='0.00385055' />
				<value target='SimComms' data='0' />
				<value target='IsSim' data='0' />
				<value target='cal_spi1::ScopeTraces' data='1' />
				<value target='cal_spi1::ConsoleData' data='1' />
				<value target='cal_spi1::Injector' data='000' />
			</values>
			<events >
				<event class='Components' event='Property' target='Ev_Property' />
				<event class='Simulation' event='Start' target='Ev_SimStart' />
				<event class='System' event='Timer' target='Ev_Timer' />
				<event class='Compile' event='Start' target='Ev_CompileStart' />
				<event class='Components' event='Initialise' target='Ev_Initialise' />
				<event class='Components' event='Renamed' target='Ev_Renamed' />
			</events>
			<apis >
				<api name='SampleDiffVolts' alt='SampleDiffVolts' type='1' proto='1' />
				<api name='ReadRTDResistance' alt='ReadRTDResistance' type='1' proto='1' />
				<api name='SampleSglRaw' alt='SampleSglRaw' type='1' proto='1' />
				<api name='ReadRTDTemperature' alt='ReadRTDTemperature' type='1' proto='1' />
				<api name='SampleSglVolts' alt='SampleSglVolts' type='1' proto='1' />
				<api name='SampleDiffRAW' alt='SampleDiffRAW' type='1' proto='1' />
				<api name='Initialise' alt='Initialise' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='spi_buffer' type='u8' description='SPI communication buffer' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ConfigReg3' type='u8' description='Configuration Register 3' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ConfigReg2' type='u8' description='Configuration Register 2' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ConfigReg1' type='u8' description='Configuration Register 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ConfigReg0' type='u8' description='Configuration Register 0' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Ev_Timer' description='Called back on the panel command System.TimerStart' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='TimerID' type='u32' description='The identifier passed to the System.TimerStart panel command' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Handle' type='h32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Comms Flashers' macro='Component.Property.SetValue' >
							<argument exp='SensorLibrary' />
							<argument exp='&quot;ShowComms&quot;' />
							<argument exp='SimComms' />
						</command>
						<command class_type='decision' title='Decision' exp='SimComms' swap='0' >
							<flowline >
								<command class_type='sim' title='SPI Icon' macro='Component.Property.SetValue' >
									<argument exp='SensorLibrary' />
									<argument exp='&quot;OutputIcon::CommsType&quot;' />
									<argument exp='5' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;property_1&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Component Macro' component='cal_spi1' macro='GetConsoleHandle' >
									<return exp='.Handle' />
								</command>
								<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='SetConsoleHandle' >
									<argument exp='.Handle' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='No Icon' macro='Component.Property.SetValue' >
									<argument exp='SensorLibrary' />
									<argument exp='&quot;OutputIcon::CommsType&quot;' />
									<argument exp='255' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;property_1&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='SetConsoleHandle' >
									<argument exp='0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='WriteConfigRegisters' description='Write configuration registers to ADS1220' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Write all 4 control registers starting from 0' >
							<exp exp='spi_buffer[0] = 0x43' />
							<exp exp='spi_buffer[1] = ConfigReg0' />
							<exp exp='spi_buffer[2] = ConfigReg1' />
							<exp exp='spi_buffer[3] = ConfigReg2' />
							<exp exp='spi_buffer[4] = ConfigReg3' />
						</command>
						<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
						<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
							<argument exp='spi_buffer' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Initialise' description='Initialize the ADS1220 ADC' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Initialize SPI Master' component='cal_spi1' macro='Master_Init' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='ConfigReg0 = 0' />
							<exp exp='ConfigReg1 = 0' />
							<exp exp='ConfigReg2 = 0' />
							<exp exp='ConfigReg3 = 0' />
						</command>
						<command class_type='call' title='Write Configuration' macro='WriteConfigRegisters' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='cal_spi1' />
							<argument exp='&quot;CKE&quot;' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SampleDiffVolts' description='Performs a differential ADC sample and returns voltage in volts' statediag='0' >
						<return name='Return' type='f32' description='Differential voltage in volts' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='ChannelA' type='u8' description='Positive channel: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ChannelB' type='u8' description='Negative channel: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Gain' type='u8' description='PGA Gain: 0=1x, 1=2x, 2=4x, 3=8x, 4=16x, 5=32x, 6=64x, 7=128x' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='RawValue' type='s32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='GainValue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='1' setinit='' />
						<command class_type='call' title='Read Raw Value' macro='SampleDiffRAW' >
							<return exp='.RawValue' />
							<argument exp='.ChannelA' />
							<argument exp='.ChannelB' />
							<argument exp='.Gain' />
						</command>
						<command class_type='switch' title='Switch' exp='.Gain &amp; 0x07' >
							<case >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 1' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 2' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 4' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 8' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 16' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 32' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 64' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 128' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Convert to voltage' >
							<exp exp='.Return = (FLOAT .RawValue / FLOAT 8388608.0) * ReferenceVoltage / FLOAT .GainValue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadSample' description='' statediag='0' >
						<return name='Return' type='s32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='TOUT' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='10000' setinit='10000' />
						<local name='S1' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<local name='S2' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<command class_type='decision' title='Decision' exp='IsSim &amp;&amp; (SimComms = 0)' swap='0' >
							<flowline >
								<command class_type='decision' title='Single Ended Conversion?' exp='ConfigReg0 &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
											<return exp='.S1' />
											<argument exp='(ConfigReg0 &amp; 0x70) &gt;&gt; 4' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.S1 = .S1 * 8388607.0' />
											<exp exp='.Return = .S1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='(ConfigReg0 &amp; 0x70) &gt;&gt; 4' >
											<case >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='0' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='0' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='2' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='0' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='3' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='1' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='2' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='1' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='3' />
													</command>
												</flowline>
											</case>
											<case exp='5' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='2' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='3' />
													</command>
												</flowline>
											</case>
											<case exp='6' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='1' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='0' />
													</command>
												</flowline>
											</case>
											<case exp='7' >
												<flowline >
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S1' />
														<argument exp='3' />
													</command>
													<command class_type='sim' title='Component Macro' component='SensorLibrary' macro='GetValue' >
														<return exp='.S2' />
														<argument exp='2' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.S1 = .S1 - .S2' />
											<exp exp='.S1 = .S1 * 8388607.0' />
											<exp exp='.Return = .S1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
								<command class_type='decision' title='Continuous Mode?' exp='ConfigReg1 &amp; 0x04' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Send START/SYNC command' >
											<exp exp='spi_buffer[0] = 0x08' />
										</command>
										<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
											<argument exp='spi_buffer' />
											<argument exp='1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Wait for DRDY' exp='UseReady' swap='0' >
									<flowline >
										<command class_type='loop' title='Wait for up to 0.1s' type='0' exp='DRDYPin = 1' >
											<flowline >
												<command class_type='delay' title='Delay' exp='10' type='0' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='.TOUT = .TOUT - 1' />
												</command>
												<command class_type='decision' title='Decision' exp='.TOUT = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.Return = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Send READ DATA command' >
											<exp exp='spi_buffer[0] = 0' />
											<exp exp='spi_buffer[1] = 0' />
											<exp exp='spi_buffer[2] = 0' />
										</command>
										<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
											<argument exp='spi_buffer' />
											<argument exp='3' />
										</command>
										<command class_type='call' title='Combine 24-bit value' component='TypeConversions1' macro='SetBytes' >
											<argument exp='spi_buffer[2]' />
											<argument exp='spi_buffer[1]' />
											<argument exp='spi_buffer[0]' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Send READ DATA command' >
											<exp exp='spi_buffer[0] = 0x10' />
											<exp exp='spi_buffer[1] = 0' />
											<exp exp='spi_buffer[2] = 0' />
											<exp exp='spi_buffer[3] = 0' />
										</command>
										<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
											<argument exp='spi_buffer' />
											<argument exp='4' />
										</command>
										<command class_type='call' title='Combine 24-bit value' component='TypeConversions1' macro='SetBytes' >
											<argument exp='spi_buffer[3]' />
											<argument exp='spi_buffer[2]' />
											<argument exp='spi_buffer[1]' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Continuous Mode?' disable='1' exp='ConfigReg1 &amp; 0x04' swap='0' >
											<flowline >
												<command class_type='calculation' title='Send READ DATA command' >
													<exp exp='spi_buffer[0] = 0' />
													<exp exp='spi_buffer[1] = 0' />
													<exp exp='spi_buffer[2] = 0' />
												</command>
												<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
													<argument exp='spi_buffer' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='Combine 24-bit value' component='TypeConversions1' macro='SetBytes' >
													<argument exp='spi_buffer[2]' />
													<argument exp='spi_buffer[1]' />
													<argument exp='spi_buffer[0]' />
													<argument exp='0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
								<command class_type='call' title='Component Macro' component='TypeConversions1' macro='GetLong' >
									<return exp='.Return' />
								</command>
								<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
								<command class_type='decision' title='Check if negative' exp='.Return &gt; 8388607' swap='0' >
									<flowline >
										<command class_type='calculation' title='Sign extend for 24-bit signed' >
											<exp exp='.Return = .Return - 16777216' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Property' description='Sent when a property has been changed by the User' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='VRef = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;ReferenceVoltage&quot;' />
									<argument exp='&quot;2.048&quot;' />
								</command>
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;ReferenceVoltage&quot;' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;ReferenceVoltage&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;TempCoefficient&quot;' />
							<argument exp='&quot;0.00385055&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Renamed' description='' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Name' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='' macro='Tree.GetName' >
							<return exp='.Name' />
							<argument exp='this' />
						</command>
						<command class_type='sim' title='' macro='Component.Property.SetValue' >
							<argument exp='SensorLibrary' />
							<argument exp='&quot;Name&quot;' />
							<argument exp='.Name' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadRTDResistance' description='Reads the RTD sensor and returns resistance in ohms' statediag='0' >
						<return name='Return' type='f32' description='RTD resistance in ohms' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='RawValue' type='s32' description='24-bit ADC raw value' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='GainValue' type='f32' description='PGA gain value (1.0, 2.0, 4.0, etc.)' isconst='0' isHidden='0' isinit='0' usrinit='1.0' setinit='1.0' />
						<local name='GainReg' type='u8' description='Gain setting from ConfigReg0' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Temp' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<command class_type='call' title='User Macro' macro='ReadSample' >
							<return exp='.RawValue' />
						</command>
						<command class_type='calculation' title='Extract PGA gain from ConfigReg0 (bits 4-6)' >
							<exp exp='.GainReg = (ConfigReg0 &gt;&gt; 1) &amp; 0x07' />
						</command>
						<command class_type='switch' title='Convert gain register to gain value' exp='.GainReg' >
							<case >
								<flowline >
									<command class_type='calculation' title='Gain 1x' >
										<exp exp='.GainValue = 1.0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Gain 2x' >
										<exp exp='.GainValue = 2.0' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Gain 4x' >
										<exp exp='.GainValue = 4.0' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Gain 8x' >
										<exp exp='.GainValue = 8.0' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Gain 16x' >
										<exp exp='.GainValue = 16.0' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Gain 32x' >
										<exp exp='.GainValue = 32.0' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='Gain 64x' >
										<exp exp='.GainValue = 64.0' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='calculation' title='Gain 128x' >
										<exp exp='.GainValue = 128.0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='decision' title='2 Wire RTD' exp='RTDConfig = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculate RTD resistance 2 Wire' >
									<exp exp='.Return = FLOAT RefResistor * .RawValue / (8388608.0 * .GainValue)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='3 Wire RTD - Low side ref' exp='RTDConfig = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculate RTD resistance using 3W low-side reference' >
									<exp exp='.Return = FLOAT RefResistor * .RawValue / (4194304.0 * .GainValue)' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='4 Wire RTD' exp='RTDConfig = 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculate RTD resistance 2 Wire' >
									<exp exp='.Return = FLOAT RefResistor * .RawValue / (8388608.0 * .GainValue)' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_SimStart' description='Broadcast to all components that simulation is starting' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;IsSim&quot;' />
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SampleSglRaw' description='Performs a single-ended ADC sample on the selected channel and returns 24-bit raw value' statediag='0' >
						<return name='Return' type='s32' description='24-bit ADC reading' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Channel' type='u8' description='Range: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Gain' type='u8' description='PGA Gain: 0=1x, 1=2x, 2=4x, 3=8x, 4=16x, 5=32x, 6=64x, 7=128x' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='.Channel &lt; 4' swap='0' >
							<flowline >
								<command class_type='calculation' title='Work out channel' >
									<exp exp='.temp = 0x80 | ((.Channel &amp; 0x03) &lt;&lt; 4)' />
									<exp exp='.temp = .temp | ((.Gain &amp; 0x07) &lt;&lt; 1)' />
								</command>
								<command class_type='decision' title='Is the channel already set correctly?' exp='ConfigReg0 = .temp' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='ConfigReg0 = .temp' />
										</command>
										<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
										<command class_type='calculation' title='Build Write Command' >
											<exp exp='spi_buffer[0] = 0x40' />
											<exp exp='spi_buffer[1] = ConfigReg0' />
										</command>
										<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
											<argument exp='spi_buffer' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
										<command class_type='decision' title='Continuouse Conversion needs kick starting' exp='ConversionMode' swap='0' >
											<flowline >
												<command class_type='calculation' title='Send START/SYNC command' >
													<exp exp='spi_buffer[0] = 0x08' />
												</command>
												<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
												<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
													<argument exp='spi_buffer' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='User Macro' macro='ReadSample' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Invalid channel' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadRTDTemperature' description='Reads the RTD sensor and returns temperature in degrees Celsius using linear approximation - matches GitHub library get_temperature_from_rtd_ohms_with_linear_approx' statediag='0' >
						<return name='Return' type='f32' description='Temperature in degrees Celsius' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Rt' type='f32' description='RTD resistance' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='R0' type='f32' description='Base resistance at 0°C' isconst='0' isHidden='0' isinit='0' usrinit='100.0' setinit='100.0' />
						<local name='Temp' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0' />
						<command class_type='call' title='Read RTD Resistance' macro='ReadRTDResistance' >
							<return exp='.Rt' />
						</command>
						<command class_type='decision' title='Select R0 based on RTD type' exp='RTDType = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='PT100' >
									<exp exp='.R0 = 100.0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='PT1000' >
									<exp exp='.R0 = 1000.0' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculate temperature using linear approximation: T = (R - R0) / (R0 × α)' >
							<exp exp='.Temp = (.R0 * TempCoefficient)' />
							<exp exp='.Return = (.Rt - .R0)' />
							<exp exp='.Return = .Return / .Temp' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SampleSglVolts' description='Performs a single-ended ADC sample and returns voltage in volts' statediag='0' >
						<return name='Return' type='f32' description='Voltage in volts' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='Channel' type='u8' description='Range: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Gain' type='u8' description='PGA Gain: 0=1x, 1=2x, 2=4x, 3=8x, 4=16x, 5=32x, 6=64x, 7=128x' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='RawValue' type='s32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='GainValue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='1' setinit='' />
						<command class_type='call' title='Read Raw Value' macro='SampleSglRaw' >
							<return exp='.RawValue' />
							<argument exp='.Channel' />
							<argument exp='.Gain' />
						</command>
						<command class_type='switch' title='Switch' exp='.Gain' >
							<case >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 1' />
									</command>
								</flowline>
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 1' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 2' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 4' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 8' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 16' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 32' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 64' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.GainValue = 128' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Convert to voltage' >
							<exp exp='.Return = (FLOAT .RawValue / FLOAT 8388608.0) * ReferenceVoltage / FLOAT .GainValue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_CompileStart' description='Broadcast to all components that compilation is starting' statediag='0' >
						<return name='Return' type='u32' description='Non-zero to prevent compilation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;IsSim&quot;' />
							<argument exp='0' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='cal_spi1' />
							<argument exp='&quot;CKE&quot;' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SampleDiffRAW' description='Performs a differential ADC sample between two channels and returns 24-bit raw value.
Not all channel combinations are possible, see datasheet p40 section MUX.
Returns 0 if the channel selection is invalid.' statediag='0' >
						<return name='Return' type='s32' description='24-bit differential ADC reading' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ChannelA' type='u8' description='Positive channel: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ChannelB' type='u8' description='Negative channel: 0-3 (AN0-AN3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Gain' type='u8' description='PGA Gain: 0=1x, 1=2x, 2=4x, 3=8x, 4=16x, 5=32x, 6=64x, 7=128x' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='(.ChannelA &lt; 4) &amp;&amp; (.ChannelB &lt; 4) &amp;&amp; (.ChannelA != .ChannelB)' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='.ChannelA = 0' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.ChannelB' >
											<case >
												<flowline >
													<command class_type='calculation' title='Invalid channel' >
														<exp exp='.Return = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
												</flowline>
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x00' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x10' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x20' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.ChannelA = 1' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.ChannelB' >
											<case >
												<flowline >
													<command class_type='calculation' title='Invalid channel' >
														<exp exp='.Return = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x30' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x40' />
													</command>
												</flowline>
											</case>
											<case exp='0' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x60' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.ChannelA = 2' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.ChannelB' >
											<case >
												<flowline >
													<command class_type='calculation' title='Invalid channel' >
														<exp exp='.Return = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x50' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.ChannelA = 3' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.ChannelB' >
											<case >
												<flowline >
													<command class_type='calculation' title='Invalid channel' >
														<exp exp='.Return = 0' />
													</command>
													<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='calculation' title='Work out channel' >
														<exp exp='.temp = 0x70' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.temp = .temp | ((.Gain &amp; 0x07) &lt;&lt; 1)' />
								</command>
								<command class_type='decision' title='Is the channel already set correctly?' exp='ConfigReg0 = .temp' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='ConfigReg0 = .temp' />
										</command>
										<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
										<command class_type='calculation' title='Build Write Command' >
											<exp exp='spi_buffer[0] = 0x40' />
											<exp exp='spi_buffer[1] = ConfigReg0' />
										</command>
										<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
											<argument exp='spi_buffer' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
										<command class_type='decision' title='Continuouse Conversion needs kick starting' exp='ConversionMode' swap='0' >
											<flowline >
												<command class_type='calculation' title='Send START/SYNC command' >
													<exp exp='spi_buffer[0] = 0x08' />
												</command>
												<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
												<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
													<argument exp='spi_buffer' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='User Macro' macro='ReadSample' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Invalid channel' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Declare Connection Point' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='Main program entry point - demonstrates component usage' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Initialize ADC' macro='Initialise' />
						<command class_type='call' title='Sample Single Channel Raw' macro='SampleSglRaw' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Sample Single Channel Volts' macro='SampleSglVolts' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Sample Differential Raw' macro='SampleDiffRAW' >
							<argument exp='0' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Sample Differential Volts' macro='SampleDiffVolts' >
							<argument exp='0' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Read RTD Temperature' macro='ReadRTDTemperature' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='Initialize the ADS1220 ADC with default settings' statediag='0' >
						<return name='Return' type='u8' description='0 = Success' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Initialize SPI Master' component='cal_spi1' macro='Master_Init' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='calculation' title='Send RESET command' >
							<exp exp='spi_buffer[0] = 0x06' />
						</command>
						<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
						<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
							<argument exp='spi_buffer' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='calculation' title='Configure Register 0' >
							<exp exp='ConfigReg0 = 0' />
							<exp exp='ConfigReg0 = ConfigReg0 | (PGAGain &lt;&lt; 1)' />
						</command>
						<command class_type='calculation' title='Configure Register 1' >
							<exp exp='ConfigReg1 = 0' />
							<exp exp='ConfigReg1 = ConfigReg1 | (DataRate &lt;&lt; 5)' />
							<exp exp='ConfigReg1 = ConfigReg1 | (OperatingMode &lt;&lt; 3)' />
							<exp exp='ConfigReg1 = ConfigReg1 | (ConversionMode &lt;&lt; 2)' />
						</command>
						<command class_type='calculation' title='Configure Register 2' >
							<exp exp='ConfigReg2 = 0' />
							<exp exp='ConfigReg2 = ConfigReg2 | (VRef &lt;&lt; 6)' />
							<exp exp='ConfigReg2 = ConfigReg2 | (FIRFilter &lt;&lt; 4)' />
							<exp exp='ConfigReg2 = ConfigReg2 | (IDACCurrent)' />
						</command>
						<command class_type='calculation' title='Configure Register 3' >
							<exp exp='ConfigReg3 = 0' />
							<exp exp='ConfigReg3 = ConfigReg3 | (I1MUX &lt;&lt; 5)' />
							<exp exp='ConfigReg3 = ConfigReg3 | (I2MUX &lt;&lt; 2)' />
							<exp exp='ConfigReg3 = ConfigReg3 | ((1 - UseReady) &lt;&lt; 1)' />
						</command>
						<command class_type='call' title='Write Configuration' macro='WriteConfigRegisters' />
						<command class_type='decision' title='Continuouse Conversion needs kick starting' exp='ConversionMode' swap='0' >
							<flowline >
								<command class_type='calculation' title='Send START/SYNC command' >
									<exp exp='spi_buffer[0] = 0x08' />
								</command>
								<command class_type='call' title='CS Pin Low' component='cal_spi1' macro='Master_Enable_CS' />
								<command class_type='call' title='SPI Transaction' component='cal_spi1' macro='Master_Transaction' >
									<argument exp='spi_buffer' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='CS Pin High' component='cal_spi1' macro='Master_Disable_CS' />
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='21' vmaj='21' codename='cal_spi1' panelId='-1' x='-1' y='1' z='0.25' xsz='0.1' ysz='0.1' zsz='0.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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='MOSI' data='$PORTD.5' />
					<value target='MOSIPins' data='012' />
					<value target='MISO' data='$PORTD.6' />
					<value target='MISOPins' data='070' />
					<value target='CLK' data='$PORTD.7' />
					<value target='CLKPins' data='014' />
					<value target='UseAutoCS' data='1' />
					<value target='UseCS' data='0' />
					<value target='SS' data='$PORTC.2' />
					<value target='CSPolarity' data='000' />
					<value target='SSPins' data='000' />
					<value target='AltSSPin' data='0' />
					<value target='Mode' data='000' />
					<value target='PR_SCALE' data='064' />
					<value target='CKE' data='000' />
					<value target='CKP' data='000' />
					<value target='SMP' data='000' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='Injector' data='000' />
					<value target='InjectorCS' data='0' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='Loading' data='1' />
					<value target='BMODE' data='0' />
					<value target='MOSI_PORT' data='$PORTC.5' />
					<value target='MOSI_TRIS' data='$PORTC.5' />
					<value target='MOSI_PIN' data='5' />
					<value target='MISO_PORT' data='$PORTC.4' />
					<value target='MISO_TRIS' data='$PORTC.4' />
					<value target='MISO_PIN' data='4' />
					<value target='SCK_PORT' data='$PORTC.3' />
					<value target='SCK_TRIS' data='$PORTC.3' />
					<value target='SCK_PIN' data='3' />
					<value target='SS_PORT' data='$PORTC.2' />
					<value target='SS_TRIS' data='$PORTC.2' />
					<value target='SS_PIN' data='2' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='012' />
					<value target='CLKREG' data='014' />
					<value target='MOSIRPNUM' data='5' />
					<value target='MOSIBank' data='' />
					<value target='MOSIBank2' data='' />
					<value target='CLKRPNUM' data='6' />
					<value target='CLKBank' data='' />
					<value target='MISORPREG' data='RPINR20bits.SDI1R' />
					<value target='MISOBank' data='' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='' />
					<value target='CLKBank2' data='' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='0' />
					<value target='ClockSpeed' data='140000000' />
					<value target='MasterDivider' data='2' />
					<value target='Sim' data='1' />
					<value target='CLKRPREG' data='' />
					<value target='SSRPREG' data='RPINR21bits.SS1R' />
					<value target='SSBank' data='' />
					<value target='SSBank2' data='' />
					<value target='AltSSReg' data='' />
					<value target='AltSSMask' data='0' />
					<value target='Sorted' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='960e433c-1295-4aeb-ac84-04d75422119e' vmin='0' vmaj='1' codename='SensorLibrary' panelId='-1' x='0' y='0' z='0.2592' xsz='100' ysz='100' zsz='100' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Text::sText' data='ADS1220' />
					<value target='Name' data='ADS1220' />
					<value target='Peripheral::sText' data='(SPI CH1)' />
					<value target='ShowComms' data='0' />
					<value target='InputIcon::CommsType' data='255' />
					<value target='OutputIcon::CommsType' data='255' />
					<value target='OutputIcon::LinkTo' data='0' />
					<value target='ConsoleHandle' data='0' />
					<value target='NumDP' data='0' />
					<value target='ValueCount' data='004' />
					<value target='Label0::sText' data='Val 0' />
					<value target='Max0' data='1' />
					<value target='Min0' data='0.000000' />
					<value target='MajTick0' data='5' />
					<value target='MinTick0' data='0.02' />
					<value target='Label1::sText' data='Val 1' />
					<value target='Max1' data='1' />
					<value target='Min1' data='0.000000' />
					<value target='MajTick1' data='5' />
					<value target='MinTick1' data='0.02' />
					<value target='Label2::sText' data='Val 2' />
					<value target='Max2' data='1' />
					<value target='Min2' data='0' />
					<value target='MajTick2' data='5' />
					<value target='MinTick2' data='0.02' />
					<value target='Label3::sText' data='Val 3' />
					<value target='Max3' data='1' />
					<value target='Min3' data='0' />
					<value target='MajTick3' data='5' />
					<value target='MinTick3' data='0.02' />
					<value target='Label4::sText' data='Val 4' />
					<value target='Max4' data='100.000000' />
					<value target='Min4' data='0.000000' />
					<value target='MajTick4' data='10' />
					<value target='MinTick4' data='2.000000' />
					<value target='Label5::sText' data='Val 5' />
					<value target='Max5' data='100.000000' />
					<value target='Min5' data='0.000000' />
					<value target='MajTick5' data='10' />
					<value target='MinTick5' data='2.000000' />
					<value target='Label6::sText' data='Val 6' />
					<value target='Max6' data='100.000000' />
					<value target='Min6' data='0.000000' />
					<value target='MajTick6' data='10' />
					<value target='MinTick6' data='2.000000' />
					<value target='Label7::sText' data='Val 7' />
					<value target='Max7' data='100.000000' />
					<value target='Min7' data='0.000000' />
					<value target='MajTick7' data='10' />
					<value target='MinTick7' data='2.000000' />
					<value target='Label8::sText' data='Val 8' />
					<value target='Max8' data='100.000000' />
					<value target='Min8' data='0.000000' />
					<value target='MajTick8' data='10' />
					<value target='MinTick8' data='2.000000' />
					<value target='Label9::sText' data='Val 9' />
					<value target='Max9' data='100.000000' />
					<value target='Min9' data='0.000000' />
					<value target='MajTick9' data='10' />
					<value target='MinTick9' data='2.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='6508c7be-063a-4f9f-bae5-4a41cf977a86' vmin='0' vmaj='1' codename='TypeConversions1' panelId='-1' x='80' y='20' z='0' xsz='4.46429' ysz='4.46429' zsz='1.55666' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='0' scadavisible='1' interactive='0' solid='0' layer='1' poslock='0' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='GenCode' data='1' />
				</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='103.355' ye='36.1584' ze='749.109' xt='103.355' yt='36.1584' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='563' dy='776' zoom='90.9387' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
		<winpos ID='7005' RectRecentFloat='1134,71,1725,945' RectRecentDocked='0,0,515,843' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
	</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='15.6165' ye='-9.3387' ze='599.339' xt='15.6165' yt='-9.3387' zt='0.078534' 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='1270,373,1920,823' RectRecentDocked='0,0,392,565' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='0' />
	<layout >
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='234' flags='0' />
		<view type='0' name='SampleSglRaw' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='92' flags='0' />
		<view type='0' name='SampleSglVolts' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SampleDiffRAW' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='1433' flags='0' />
		<view type='0' name='SampleDiffVolts' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Timer' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Renamed' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='WriteConfigRegisters' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadRTDResistance' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadRTDTemperature' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Property' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadSample' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='100' scrollx='0' scrolly='494' flags='0' />
		<view type='0' name='Ev_SimStart' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_CompileStart' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAAgQAAIsDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
