<root>
<document scada='0' schema='103' license='1,MartinW,EJZTNW' title='' description='' fcversion='655364' target='ARD.ATMEGA.Arduino Uno R3 PDIP' >
	<config data='' clkspd='16000000' simspd='0' usewdt='0' constif='0' commport='8' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Alarm' />
		<watch expr='Current' />
		<watch expr='Energy' />
		<watch expr='Frequency' />
		<watch expr='Power' />
		<watch expr='PowerFactor' />
		<watch expr='Voltage' />
		<watch expr='EnergyOffset' />
		<watch expr='WriteEEPROM.EnergyInt0' />
		<watch expr='WriteEEPROM.EnergyInt1' />
		<watch expr='ReadEEPROM.EnergyInt0' />
		<watch expr='ReadEEPROM.EnergyInt1' />
		<watch expr='TempUnIt0' />
		<watch expr='TempUnIt1' />
		<watch expr='TempUnIt2' />
		<watch expr='TempUnIt3' />
		<watch expr='Temp' />
		<watch expr='SendUARTString' />
		<watch expr='RxString' />
		<watch expr='ReceiveStart' />
		<watch expr='CostPerKWh' />
		<watch expr='ReadEEPROM.TempFloat' />
		<watch expr='ReadEEPROM.TempString' />
		<watch expr='Main.OptionString' />
		<watch expr='Main.Option' />
		<watch expr='CheckForValidData.OptionString' />
		<watch expr='CheckForValidData.Option' />
		<watch expr='CheckForValidData.RXStringLength' />
		<watch expr='CheckForValidData.StringRX' />
		<watch expr='CheckForValidData.data' />
	</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='3' />
			<data name='ClockPin' value='1' />
			<data name='DataPort' value='3' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='11' />
			<data name='CalculatedCommsDelay' value='11' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='44996872-3874-4fc2-b63c-5e89dd415aa7' 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='panel' 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 >
				<property name='LCD Address' target='lcd_I2C1::Address' typeid='21' hidden='0' locked='0' info='' />
				<property name='Alarm Threshold Level (W)' target='AlarmThresholdLevel' typeid='21' hidden='0' locked='0' info='Sets the threshold level of the alarm in Watts
When the threshold leve level is exceed,
the alarm value read from the PZEM-004T changes from 0 to 65535' />
			</properties>
			<values >
				<value target='lcd_I2C1::Address' data='63' />
				<value target='AlarmThresholdLevel' data='25000' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='SwitchStatus' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DisplayString' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PZEM004TInitRtrnValue' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='255' setinit='255' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ReadReadPZEM004Uint' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ReadPZEM004Float' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ReadSwitches' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='ReadSwitch' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='DisplayString = &quot;Sw = &quot;' />
						</command>
						<command class_type='call' title='Check reset energy switch on io0' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Switch_Push_Button1' macro='ReadState' >
							<return exp='.ReadSwitch' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='.ReadSwitch' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='GPIO0' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='call' title='Reset energy reading to zero' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ResetEnergy' />
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='DisplayString = DisplayString + &quot;Rst En&quot;' />
									<exp exp='SwitchStatus = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Check set alarm threshold switch on io35' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Switch_Push_Button2' macro='ReadState' >
							<return exp='.ReadSwitch' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='.ReadSwitch' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='GPIO35' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='call' title='Set alarm threshold  to value within properties' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='SetPowerThresholdLevel' >
									<argument exp='AlarmThresholdLevel' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.ReadSwitch = Length$(DisplayString)' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='.ReadSwitch &gt; 5' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='DisplayString = DisplayString + &quot; &amp; &quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='DisplayString = DisplayString + &quot;St thr&quot;' />
									<exp exp='SwitchStatus = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='Example program that uses a PZEM-004T energy monitor to monitor mains voltage, current, frequency, power factor, energy, and over specified power alarm.
The alarm threshold is set within properties.
UART is set at 19200 on pin D2' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='SimulationOnly' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Initialise' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='PrintString' >
							<argument exp='&quot;Display Test&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='2' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Clear' />
						<command class_type='call' title='Check if running embedded or sim' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='IsSim1' macro='Check' >
							<return exp='.SimulationOnly' />
						</command>
						<command class_type='loop' title='!PZEM004TInitRtrnValue' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' type='0' exp='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='.SimulationOnly' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='PZEM004TInitRtrnValue = 0 //Simulate comms is working' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='PZEM004TInitRtrnValue' swap='0' >
									<flowline >
										<command class_type='call' title='return the result of being initialised. 0= OK, 255 = Comms error' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='Initialise' >
											<return exp='PZEM004TInitRtrnValue' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='PZEM004TInitRtrnValue' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='Here is Comms error' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
												<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Clear' />
												<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='PrintString' >
													<argument exp='&quot;PZEM-004T Comms Err&quot;' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UartSoftwareTimer1' macro='SendString' >
													<argument exp='&quot;\n\rComms Error!&quot;' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='50' type='1' />
												<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UartSoftwareTimer1' macro='SendString' >
													<argument exp='&quot;\n\rCheck hardware&quot;' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='2' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='idx' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T voltage value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadVoltage' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Voltage=&quot; + FloatToString$(ReadPZEM004Float,2) + &quot;V &quot;' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Clear' />
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T current value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadCurrent' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Current=&quot; + FloatToString$(ReadPZEM004Float,3) + &quot;A &quot;' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T power value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadPower' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Power=&quot; + FloatToString$(ReadPZEM004Float,1) + &quot;W &quot;' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='2' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T power factor value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadPowerFactor' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;PF=&quot; + FloatToString$(ReadPZEM004Float,2) + &quot; &quot;' />
														<exp exp='' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='3' />
													</command>
												</flowline>
											</case>
											<case exp='5' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T frequency value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadFrequency' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Freq=&quot; + FloatToString$(ReadPZEM004Float,1) + &quot;Hz &quot;' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Clear' />
												</flowline>
											</case>
											<case exp='6' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T energy value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadEnergy' >
														<return exp='ReadPZEM004Float' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Energy=&quot; + FloatToString$(ReadPZEM004Float,1) + &quot;W &quot;' />
														<exp exp='' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='7' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T power alarm threshold value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadPowerAlarmThreshold' >
														<return exp='ReadReadPZEM004Uint' />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
														<exp exp='DisplayString = &quot;Alarm Thresh=&quot; + ToString$(ReadReadPZEM004Uint) + &quot;W &quot;' />
														<exp exp='' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='2' />
													</command>
												</flowline>
											</case>
											<case exp='8' >
												<flowline >
													<command class_type='call' title='Read PZEM-004T alarm status value. 0=alarm off, 65535=alarm trig' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='PZEM004T1' macro='ReadAlarmStatus' >
														<return exp='ReadReadPZEM004Uint' />
													</command>
													<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Cursor' >
														<argument exp='0' />
														<argument exp='3' />
													</command>
													<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='ReadReadPZEM004Uint' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																<exp exp='DisplayString = &quot;Power = OVERPOWER!&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																<exp exp='DisplayString = &quot;Power = OK&quot;' />
															</command>
														</flowline>
													</command>
												</flowline>
											</case>
											<case exp='9' >
												<flowline >
													<command class_type='call' title='Read switches state' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='ReadSwitches' />
												</flowline>
											</case>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='SwitchStatus' swap='0' >
											<flowline >
												<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Clear' />
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='PrintString' >
											<argument exp='DisplayString' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='DisplayString = &quot;\n\r&quot; + DisplayString' />
										</command>
										<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UartSoftwareTimer1' macro='SendString' >
											<argument exp='DisplayString' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='(idx = 4) || (idx = 8) || SwitchStatus' swap='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='3' type='2' />
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='SwitchStatus = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='idx = idx + 1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='0.64' exp='idx = 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='idx = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TimerInterrupt' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UartSoftwareTimer1' macro='UART_Timer_Process' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='Initialise the display and the PZEM-004T' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Enable weak pullup pt1. Set as O/P' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='1048579' mask='8' exp='1' usechipref='0' />
						<command class_type='input' title='Enable weak pullup pt2. Set as I/P' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='1048579' mask='8' exp='idx' usechipref='0' />
						<command class_type='output' title='Enable weak pullup pt1. Set as O/P' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='1048579' mask='16' exp='1' usechipref='0' />
						<command class_type='input' title='Enable weak pullup pt2 Set as I/P' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' mode='1' port='1048579' mask='8' exp='idx' usechipref='0' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='lcd_I2C1' macro='Start' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='2' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='UartSoftwareTimer1' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='1' type='2' />
						<command class_type='call' title='Interrupt that sends UART data' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='TimedInterval1' macro='StartTimerInterval' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='ef2427ea-7767-43be-a0c5-6f705e3c2668' vmin='0' vmaj='1' codename='PZEM004T1' panelId='0' x='104' y='-124.671' 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::TX' data='$PORTD.1' />
					<value target='cal_uart::OutputPins' data='006' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::RX' data='$PORTD.0' />
					<value target='cal_uart::InputPins' data='018' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='UARTidx' data='001' />
					<value target='BaudByteDelay' data='1040' />
					<value target='BusType' data='000' />
					<value target='DDRP' data='$PORTA.0' />
					<value target='ReadDDRState' data='000' />
					<value target='ReceiveBufferSize' data='20' />
					<value target='AddressBytes' data='1' />
					<value target='SilentInterval' data='60' />
					<value target='RXTOUT' data='220' />
					<value target='TOUTCNT' data='2' />
					<value target='label' data='Modbus' />
					<value target='cal_uart::ScopeTraces' data='1' />
					<value target='cal_uart::ConsoleData' data='1' />
					<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='5f7b77e5-e979-4010-93f1-e6d98f83bd71' vmin='0' vmaj='1' codename='IsSim1' panelId='0' x='241' y='-126' z='1' 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='Sim' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='1' codename='Switch_Push_Button1' panelId='0' x='115.131' y='-530' z='2' 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='AppDevDetected' data='0' />
					<value target='Pin' data='$D3' />
					<value target='Polarity' data='001' />
					<value target='debounce' data='0' />
					<value target='Latching' data='1' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='Energy Reset' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='0' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119072336297' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e2698f3e-1168-4f25-9c50-24a74ea7e34a' vmin='0' vmaj='1' codename='Switch_Push_Button2' panelId='0' x='233.131' y='-530' z='3' 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='AppDevDetected' data='0' />
					<value target='Pin' data='$D4' />
					<value target='Polarity' data='001' />
					<value target='debounce' data='0' />
					<value target='Latching' data='1' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText2::sText' data='Set energy
threshold value' />
					<value target='ComponentLabelPosition' data='000' />
					<value target='ComponentLabelXPostion' data='0' />
					<value target='ComponentLabelYPostion' data='0.800000' />
					<value target='LabelColour' data='0' />
					<value target='ShowConnectionLabel' data='1' />
					<value target='ShowPinValue' data='0' />
					<value target='PinLabelPosition' data='001' />
					<value target='PinLabelXPostion' data='0' />
					<value target='PinLabelYPostion' data='-1.000000' />
					<value target='Style' data='000' />
					<value target='GdiSwitch1::nType' data='  2' />
					<value target='GdiSwitch1::sLabelOn' data='On' />
					<value target='GdiSwitch1::sLabelOff' data='Off' />
					<value target='FontType' data='Calibri' />
					<value target='GdiSwitch1::dScale' data='0.65' />
					<value target='GdiText2::dScale' data='0.65' />
					<value target='GdiText1::dScale' data='0.65' />
					<value target='GdiSwitch1::brOutline' data='71776119073454778' />
					<value target='GdiSwitch1::brOuterFillOn' data='251262225375821824' />
					<value target='GdiSwitch1::brFill' data='251262225375821824' />
					<value target='GdiSwitch1::brOutlineThumb' data='71917408452870144' />
					<value target='GdiSwitch1::brFillThumb' data='288090190566653952' />
					<value target='GdiSwitch1::brFillOn' data='648292728253186048' />
					<value target='GdiSwitch1::brLabelOn' data='0' />
					<value target='GdiSwitch1::brFillOff' data='648237171995574272' />
					<value target='GdiSwitch1::brLabelOff' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d7633558-54a4-47ff-8c00-95170632c57e' vmin='1' vmaj='1' codename='TimedInterval1' panelId='0' x='104' y='-273' z='4' 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='TimeUnit' data='005' />
					<value target='TimePeriod' data='42' />
					<value target='EstBestPeriod' data='42.000000' />
					<value target='MaxTimeMeasurement' data='17592186044416.000000' />
					<value target='CallbackMacro' data='TimerInterrupt' />
					<value target='Timer' data='001' />
					<value target='BitDepth' data='16' />
					<value target='PrescalerFilter' data='000' />
					<value target='Prescaler' data='1' />
					<value target='PostscalerFilter' data='000' />
					<value target='PostScaler' data='1' />
					<value target='InstructionRate' data='16000000' />
					<value target='InstructionTime' data='0.000063' />
					<value target='RolloverFreq' data='244.140625' />
					<value target='RolloverTime' data='0.004096' />
					<value target='RegHighUsed' data='1' />
					<value target='WholePeriods' data='0' />
					<value target='UseSubPeriod' data='1' />
					<value target='SubInstCount' data='672' />
					<value target='SubPeriodOverflow' data='64864' />
					<value target='Instance' data='1' />
					<value target='DeviceBits' data='8' />
					<value target='CountRegLow' data='TCNT1L' />
					<value target='CountRegHigh' data='TCNT1H' />
					<value target='EnableCode' data='sei(); TIMSK1 |= (1 &lt;&lt; TOIE1);  TCCR1B &amp;= 0xf8; TCCR1B |= 0x01; ' />
					<value target='DisableCode' data='TIMSK1 &amp;= ~(1 &lt;&lt; TOIE1); ' />
					<value target='HandlerCodeStart' data='ISR(TIMER1_OVF_vect) {  ' />
					<value target='HandlerCodeEnd' data=' }' />
					<value target='Family' data='ARD' />
					<value target='TimerDelay' data='50' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='743ea495-34e7-47ee-bd79-3bfdc067b01c' vmin='0' vmaj='1' codename='UartSoftwareTimer1' panelId='0' x='247' y='-277.16' z='5' 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='DataBits' data='008' />
					<value target='StopBits' data='001' />
					<value target='MaxStates' data='10' />
					<value target='UseTx' data='1' />
					<value target='UseRx' data='0' />
					<value target='TXPin' data='$D2' />
					<value target='TXBufferSize' data='50' />
					<value target='RXPin' data='$PORTA.1' />
					<value target='RXBufferSize' data='50' />
					<value target='Injector' data='' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='APIUseDDR' data='0' />
					<value target='APIDDRPin' data='0' />
					<value target='APIUseFC' data='' />
					<value target='APICTSPin' data='0' />
					<value target='APIRTSPin' data='' />
					<value target='APIDDRRXState' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='bcd6a955-12c6-4ed4-a22f-f16eb62e0762' vmin='2' vmaj='2' codename='lcd_I2C1' panelId='0' x='190' y='-409' z='6' 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='Address' data='63' />
					<value target='cal_i2c1::CHANNEL' data='001' />
					<value target='cal_i2c1::BAUD_LIST' data='002' />
					<value target='cal_i2c1::BAUD' data='400000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::SDA' data='$PORTC.4' />
					<value target='cal_i2c1::SDAPins' data='000' />
					<value target='cal_i2c1::SCL' data='$PORTC.5' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='Rows' data='004' />
					<value target='Columns' data='020' />
					<value target='UseBL' data='0' />
					<value target='LCD::ctrl_lcd::Base_GLCD1::ComponentLabel' data='000' />
					<value target='LCD::ctrl_lcd::Base_GLCD1::GdiText1::sText' data='lcd_I2C1' />
					<value target='LCD::ctrl_lcd::Base_GLCD1::GdiText1::dScale' data='1.4' />
					<value target='LCD::ctrl_lcd::Base_GLCD1::foreground_colour' data='0' />
					<value target='LCD::ctrl_lcd::TextBg' data='14803425' />
					<value target='LCD::ctrl_lcd::DisplayBg' data='16777215' />
					<value target='SimComms' data='0' />
					<value target='cal_i2c1::ScopeTraces' data='1' />
					<value target='cal_i2c1::ConsoleData' data='1' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='GdiText' codename='Text1' panelId='0' x='190' y='-659.5' z='7' xsz='98.75' ysz='111.875' zsz='0' 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='8' comp2dType='46' >
				<resources />
				<properties />
				<values >
					<value target='sText' data='Multifunction AC Power Monitor
Measures Voltage, Current, Frequency, Power, 
Power Factor &amp; Energy used (Resetable).
The power level threshold can be set to give 
OVERPOWER warning.
Before programming, check LCD address and 
Power Level Threshold are 
correct within the 2D Panel Properties

' />
					<value target='bWordWrap' data='0' />
					<value target='nHorizontalAlignment' data='  0' />
					<value target='nVerticalAlignment' data='  0' />
					<value target='nAngle' data='0' />
					<value target='fntFamily' data='Calibri' />
					<value target='dScale' data='1.00000' />
					<value target='bScaleWidth' data='0' />
					<value target='bBold' data='0' />
					<value target='bItalic' data='0' />
					<value target='bUnderline' data='0' />
					<value target='bStrikethrough' data='0' />
					<value target='colTextColour' data='16777215' />
					<value target='colTextGradient' data='9868950' />
					<value target='nGradient' data='0' />
					<value target='colBackgroundColour' data='0' />
					<value target='colBackgroundGradient' data='-1' />
					<value target='nBackgroundGradient' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='1710618' img='' style='0' />
		<camera xe='361.481' ye='-0.175965' ze='388.935' xt='361.481' yt='-0.175965' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='205' dy='828' zoom='63.7768' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
		<winpos ID='7005' RectRecentFloat='792,445,1396,911' RectRecentDocked='0,0,205,851' 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='9.8684' ye='-34.6603' ze='249.26' xt='9.8684' yt='-34.6603' 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='662,211,1144,1025' RectRecentDocked='0,0,336,851' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='2' >
		<panel2d_0 id='0' name='Power Monitor' >
			<winpos ID='1171' RectRecentFloat='1235,237,1670,1090' RectRecentDocked='950,141,1286,992' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
			<background fill='72057594034572492' showgrid='0' gridstyle='0' gridsize='10' gridbrush='71776119075691740' snaptogrid='1' />
		</panel2d_0>
		<panel2d_1 id='1' name='NewPanel' >
			<winpos ID='1172' RectRecentFloat='491,271,1141,721' RectRecentDocked='950,141,1286,992' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
			<background fill='288230376151711743' showgrid='1' gridstyle='1' gridsize='10' gridbrush='71776119075691740' snaptogrid='1' />
		</panel2d_1>
	</panels2d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAmwIAAE4DAAA' zoom='75' scrollx='0' scrolly='108' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAmwIAAE4DAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadSwitches' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAmwIAAE4DAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TimerInterrupt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAmwIAAE4DAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
