<root>
<document schema='101' license='1,howard123,GT8CJE' title='' description='' target='PIC.18F.18F46K22' >
	<config data='!0,1800!10,e4eb!20,fd00!30,ba!40,ffff!50,ffff!60,ffff%8,8%c,1%d,0%e,0%f,0%10,1%11,1%13,1%18,0%1a,9%28,1%29,0%2a,1%2b,1%2c,1%2d,1%2f,1%30,0%32,0%36,0%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='16000000' simspd='2' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='value_return' />
		<watch expr='temperature_return' />
	</debug>
	<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='11' />
			<data name='CalculatedCommsDelay' value='11' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='3e9748da-4cbe-44f1-8353-6442c26d7413' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties >
				<property name='Stop Delay' target='I2C_Master1::StopDelay' typeid='7' hidden='0' locked='0' info='On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not 
a 10ms delay between an I2C stop event and the next I2C start event.

Most modern microcontrollers will not have a problem so this property can be disabled to speed up the 
I2C communications. ' />
			</properties>
			<values >
				<value target='I2C_Master1::StopDelay' data='0' />
			</values>
			<events >
				<event class='Compile' event='Start' target='Ev_Start' />
			</events>
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFourState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSevenPastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEightPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOptoApast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFourPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSix' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSixPastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagInvertAlarmSwitches' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickRelayCounters' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickOneMinutePulseCounters' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFourPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSixPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSixState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagAlarmOnePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickCommandStringDecode' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterAlarmBeep' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagLevelDeactivateRelay8' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringSMSreceived' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterRelay6' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagFloatSwitchMessages' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickCommandStringLatch' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagLevelDeactivateRelay7' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickUART2transmit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThree' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterRelay5' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOptoBpast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagAlarmTwoPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterPulse2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickTemperatureTransfer' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringTemperature' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFivePastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFiveState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSevenPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagAlarmTwo' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagMainsVoltageFailPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterPulse1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagLevelActivateRelay8' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringTestOne' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='16' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickTemperatureConversion' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagLevelActivateRelay7' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringCellNumberShort' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwoPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwoState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSixPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSevenPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ParameterTestTwo' type='u16' description='show second trace number on external UART device' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEightStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagInvertWaterSwitches1_4' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFive' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEightState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ParameterBatteryVoltage' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEight' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringDataReceived' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StateMasterTickDivide04' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOnePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOneStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEightPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StateMasterTickDivide03' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwoStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelEightPastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagMainsFailMessages' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StateMasterTickDivide02' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwoPastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagMessageSelectorSensor1_4' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagRelay8WaterControlled' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringCellNumber' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StateMasterTickDivide01' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterFloatSwitchBeep' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickSendGSMstring' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagInvertWaterSwitches5_8' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagRelaySource' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickBeepCounters' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwoPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThreePastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickAlarmSample' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickDebugTrace' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelTwo' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickWaterLevelSample' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThreePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThreePastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFivePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFivePastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSixStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOptoB' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThreeStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagAlarmOne' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOptoA' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSevenState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagRelayMessages' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOptoMessages' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickReceiveGSMstring' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ParameterTestOne' type='u16' description='number to be shown on monitor uart display' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StateTesterToggle' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFourStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ParamStartupIgnorePeriod' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFourPastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFour' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagRelay7WaterControlled' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSevenStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringTestTwo' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='16' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickRelayLevelControl' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterStartup' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOnePastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOneState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelThreeState' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelFiveStatePast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagAlarmMessages' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterOneMinute' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOne' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelOnePastPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagWaterLevelSeven' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickRelayDecode' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagNewSMSmessage' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickRelayDrive' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagMainsVoltageFail' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickTemperatureScratchpad' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickStartupCount' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterNewMessageBeep' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagNewData' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagOneWirePresent' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Debug' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='InputNumber' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='LoopCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Multiplier' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='NumberSegmented' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='5' />
						</local>
						<local name='OutputNumber' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickDebugTrace = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickDebugTrace = 0' />
								</command>
								<command class_type='comment' title='' comment='instructions for newhaven display NHD-0216K3Z-NSW-BBW' textarea='209,-94,209,-94' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='254' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='81' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='14390211' exp='2' type='1' />
								<command class_type='comment' title='' comment='print line 1' textarea='323,-232,323,-232' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.InputNumber = ParameterTestOne' />
									<exp exp='' />
								</command>
								<command class_type='comment' title='' comment='extract individual numbers' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.LoopCount = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.Temp = .InputNumber MOD 10' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.NumberSegmented[.LoopCount] = .Temp' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = .LoopCount + 1' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.InputNumber = .InputNumber / 10' />
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='reverse number order' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.LoopCount = 4' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.OutputNumber = 0' />
									<exp exp='.Multiplier = 10000' />
									<exp exp='' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.OutputNumber = .OutputNumber + (.NumberSegmented[.LoopCount] * .Multiplier)' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.Multiplier = .Multiplier / 10' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='56,-29,56,-29' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = .LoopCount - 1' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendString' >
									<argument exp='StringTestOne' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendNumber' >
									<argument exp='.OutputNumber' />
								</command>
								<command class_type='comment' title='' comment='line 2 ' textarea='410,-261,410,-261' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='254' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='69' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='64' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='14390211' exp='150' type='0' />
								<command class_type='comment' title='' comment='print line 2' textarea='323,-232,323,-232' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.InputNumber = ParameterTestTwo' />
									<exp exp='' />
								</command>
								<command class_type='comment' title='' comment='extract individual numbers' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.LoopCount = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.Temp = .InputNumber MOD 10' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.NumberSegmented[.LoopCount] = .Temp' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = .LoopCount + 1' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.InputNumber = .InputNumber / 10' />
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='reverse number order' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.LoopCount = 4' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.OutputNumber = 0' />
									<exp exp='.Multiplier = 10000' />
									<exp exp='' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.OutputNumber = .OutputNumber + (.NumberSegmented[.LoopCount] * .Multiplier)' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.Multiplier = .Multiplier / 10' />
										</command>
										<command class_type='calculation' title='Calculation' textarea='56,-29,56,-29' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = .LoopCount - 1' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendString' >
									<argument exp='StringTestTwo' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendNumber' >
									<argument exp='.OutputNumber' />
								</command>
								<command class_type='comment' title='' comment='CR LF for testing' textarea='205,-123,205,-123' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='10' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
									<argument exp='13' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PulseCounters' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='CounterTemp1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Countertemp2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneMinutePulseCounters = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneMinutePulseCounters = 0' />
								</command>
								<command class_type='comment' title='' comment='Read counters' textarea='93,-145,93,-145' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='native' title='C Code' ccode='FCL_COUNTERTEMP1=TMR0L;
FCL_COUNTERTEMP2=TMR0H;
//FCV_COUNTERPULSE1=FCL_COUNTERTEMP1 +(256*FCL_COUNTERTEMP2);
FCV_COUNTERPULSE1=FCL_COUNTERTEMP1;// 16 bit does not work

FCL_COUNTERTEMP1=TMR5L;
FCL_COUNTERTEMP2=TMR5H;
FCV_COUNTERPULSE2=FCL_COUNTERTEMP1 +(256*FCL_COUNTERTEMP2);' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
								<command class_type='comment' title='' comment='Zero counters' textarea='93,-145,93,-145' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='native' title='C Code' ccode='TMR0H=0;
TMR0L=0;
TMR5H=0;
TMR5L=0;' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
								<command class_type='native' title='C Code' disable='1' ccode='TMR0L=0;
TMR0H=0;
TMR5H=0;
TMR5L=0;' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterTestOne = CounterPulse1' />
									<exp exp='ParameterTestTwo = CounterPulse2' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SystemTiming' description='system timing' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='TenHzCall' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='runs at 61Hz
' textarea='332,169,332,169' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='CounterOneMinute = (CounterOneMinute + 1) MOD 3660' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterOneMinute = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneMinutePulseCounters = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='6 * 10Hz slot generators   MASTER' textarea='208,-158,208,-158' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='switch' title='Switch' textarea='36,94,36,94' cmdcolor='14050076' cmdcolor_sec='15910009' exp='StateMasterTickDivide01' >
							<case >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 1' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 2' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 1' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='TickBeepCounters = 1' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 3' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 2' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 4' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 3' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 5' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 4' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 6' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 5' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='StateMasterTickDivide01 = 1' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
										<exp exp='.TenHzCall = 6' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='comment' title='' comment='10 * 1Hz slot generators' textarea='208,-158,208,-158' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.TenHzCall = 1' swap='0' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='51,98,51,98' cmdcolor='14050076' cmdcolor_sec='15910009' exp='StateMasterTickDivide02' >
									<case >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 1' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 2' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickWaterLevelSample = 1' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 3' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickAlarmSample = 1' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 4' />
											</command>
											<command class_type='calculation' title='' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickRelayDrive = 1' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 5' />
											</command>
											<command class_type='calculation' title='' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickRelayDecode = 1' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 6' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickSendGSMstring = 1' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 7' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickReceiveGSMstring = 1' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 8' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickStartupCount = 1' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 9' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickDebugTrace = 1' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 10' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickRelayCounters = 1' />
											</command>
										</flowline>
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide02 = 1' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickRelayLevelControl = 1' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='10 * 1Hz slot generators' textarea='208,-158,208,-158' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.TenHzCall = 2' swap='0' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='51,98,51,98' cmdcolor='14050076' cmdcolor_sec='15910009' exp='StateMasterTickDivide03' >
									<case >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 1' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 2' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 3' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 4' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickCommandStringDecode = 1' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 5' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickCommandStringLatch = 1' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 6' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickTemperatureConversion = 1' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 7' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickTemperatureScratchpad = 1' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 8' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='TickTemperatureTransfer = 1' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 9' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 10' />
											</command>
										</flowline>
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide03 = 1' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='10 * 1Hz slot generators' textarea='208,-158,208,-158' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.TenHzCall = 3' swap='0' >
							<flowline >
								<command class_type='switch' title='Switch' textarea='51,98,51,98' cmdcolor='14050076' cmdcolor_sec='15910009' exp='StateMasterTickDivide04' >
									<case >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 1' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 2' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 3' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 4' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 5' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 6' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 7' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 8' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 9' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 10' />
											</command>
										</flowline>
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
												<exp exp='StateMasterTickDivide04 = 1' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='StatusTwo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='StatusOne' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempNumber' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='C Code' textarea='229,50,229,50' ccode='OSCCON=0b11110110; //16 meg internal RC
SLRCON=0b00011111;//all ports slow slew
ADCON1=0b00001000;// fixed voltage ref to AD ref
VREFCON0=0b11100000;// select 2.048V for AD ref' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
						<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='14390211' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='Initialise' />
						<command class_type='interrupt' title='SystemTimingFast' cmdcolor='16760919' cmdcolor_sec='6740479' enable='1' name='TMR6' call='SystemTiming' >
							<settings timer='1' prescale='16' postscale='16' rollover='256' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='15' />
								<option value='256' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='comment' title='' comment='Counter setup' textarea='199,-144,199,-144' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='native' title='C Code' ccode='T0CON=0b10101000;//can not get T0  16 bit to work
TMR0L=0;
TMR0H=0;

T5CON=0b10000001;
T5GCON=0b00000000;
TMR5L=0;
TMR5H=0;' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
						<command class_type='loop' title='main' textarea='126,134,126,134' cmdcolor='16777215' cmdcolor_sec='15910009' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='PulseCounters' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='Debug' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART2' x='0' y='0' z='2.265' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='002' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='001' />
					<value target='ToutVal' data='512' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='cal_uart::TX' data='$PORTD.6' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::RX' data='$PORTD.7' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='label' data='UART' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7884836' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='PulseCounters' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAANAcAAJ4DAAA' zoom='75' scrollx='0' scrolly='32' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAANAcAAJ4DAAA' zoom='75' scrollx='0' scrolly='30' flags='0' />
		<view type='0' name='Debug' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAANAcAAJ4DAAA' zoom='75' scrollx='0' scrolly='2706' flags='0' />
		<view type='0' name='SystemTiming' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAANAcAAJ4DAAA' zoom='38' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
