<root>
<document scada='0' schema='102' license='1,Roy Johnston,XDUJRQ' title='' description='' fcversion='524802' target='PIC.18F.18F4550' >
	<config data='!0,4ee4!10,18fe!20,5ff!30,9b!40,f0!50,e0ff!60,40ff%5,1%3,0%0,4%8,e%e,1%f,0%15,1%10,0%11,3%13,3%18,0%19,c%28,1%29,0%2a,1%2f,0%30,1%32,0%35,0%36,0%37,1%40,0%41,0%42,0%43,0%4f,0%4e,0%50,1%51,1%52,1%53,1%5f,1%5e,1%5d,1%60,1%61,1%62,1%63,1%6e,1' clkspd='19660800' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='9' />
			<data name='CalculatedCommsDelay' value='9' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='out17to24' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d7' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Read_Buffer' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d6' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in9to16m' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d5' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port1total' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d4' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='test' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in1to8m' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d19' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='speed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d18' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d17' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pv3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y26temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d16' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pv2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port3raw' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pwval' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d15' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pv1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d14' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d29' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d13' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d28' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d12' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d27' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Send_Buffer' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='7' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d11' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d26' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cycles' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d10' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d25' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='firstscan' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out25to32' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d24' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in17to24m' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d23' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='scanprobes' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d22' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt7' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port1raw' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d21' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port2total' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='intlatch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='42' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d20' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RE3' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='previoustv3' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port1diff' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='previoustv2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pwm' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='previoustv1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in9to16' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Run_Simulator' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='s' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='25' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port2diff' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out1to8' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y40off' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in1to8' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fault' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port3diff' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port2raw' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out9to16' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in25to29m' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt51' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d9' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt50' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d8' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='scancnt' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='port3total' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cnt100' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Reset_Outputs' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='cnt0 = 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' exp='39' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[cnt0] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='cnt0 = cnt0 + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='y[41] = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='cnt0 = 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' exp='26' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='x[cnt0] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='cnt0 = cnt0 + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Start expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Stop expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='1' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='2' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='scan_expander' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Read Inputs' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='I2C Start' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send dev addr' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='I2C Restart' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send read adress' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x41' />
						</command>
						<command class_type='call' title='Read data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='ReceiveByte' >
							<return exp='in1to8' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='I2C Stop' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='comment' title='' comment='Read the inputs from port b' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='I2C Start' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send dev addr' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='I2C Restart' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send read adress' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x41' />
						</command>
						<command class_type='call' title='Read data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='ReceiveByte' >
							<return exp='in9to16' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='I2C Stop' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='calculation' title='Bit extraction' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='x[5] = (in9to16 AND 1) / 1' />
							<exp exp='x[6] = (in9to16 AND 2) / 2' />
							<exp exp='x[7] = (in9to16 AND 4) / 4' />
							<exp exp='x[8] = (in9to16 AND 8) / 8' />
							<exp exp='x[4] = (in9to16 AND 16) / 16' />
							<exp exp='x[3] = (in9to16 AND 32) / 32' />
							<exp exp='x[2] = (in9to16 AND 64) / 64' />
							<exp exp='x[1] = (in9to16 AND 128) / 128' />
							<exp exp='x[14] = (in1to8 AND 1) / 1' />
							<exp exp='x[15] = (in1to8 AND 2) / 2' />
							<exp exp='x[16] = (in1to8 AND 4) / 4' />
							<exp exp='x[13] = (in1to8 AND 8) / 8' />
							<exp exp='x[12] = (in1to8 AND 16) / 16' />
							<exp exp='x[11] = (in1to8 AND 32) / 32' />
							<exp exp='x[10] = (in1to8 AND 64) / 64' />
							<exp exp='x[9] = (in1to8 AND 128) / 128' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='4' exp='X[17]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='8' exp='X[18]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='64' exp='X[19]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='128' exp='X[20]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='16' exp='X[21]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='32' exp='X[22]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='64' exp='X[23]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='128' exp='X[24]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048580' mask='4' exp='X[25]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='1' exp='X[26]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='2' exp='X[27]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='1' exp='X[28]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='2' exp='X[29]' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='cnt0 = 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' exp='26' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='X[cnt0] = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='X[cnt0] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='X[cnt0] = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='cnt0 = cnt0 + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='in1to8m = 0' />
							<exp exp='in1to8m = in1to8m | (x[1] &lt;&lt; 0)' />
							<exp exp='in1to8m = in1to8m | (x[2] &lt;&lt; 1)' />
							<exp exp='in1to8m = in1to8m | (x[3] &lt;&lt; 2)' />
							<exp exp='in1to8m = in1to8m | (x[4] &lt;&lt; 3)' />
							<exp exp='in1to8m = in1to8m | (x[5] &lt;&lt; 4)' />
							<exp exp='in1to8m = in1to8m | (x[6] &lt;&lt; 5)' />
							<exp exp='in1to8m = in1to8m | (x[7] &lt;&lt; 6)' />
							<exp exp='in1to8m = in1to8m | (x[8] &lt;&lt; 7)' />
							<exp exp='in9to16m = 0' />
							<exp exp='in9to16m = in9to16m | (x[9] &lt;&lt; 0)' />
							<exp exp='in9to16m = in9to16m | (x[10] &lt;&lt; 1)' />
							<exp exp='in9to16m = in9to16m | (x[11] &lt;&lt; 2)' />
							<exp exp='in9to16m = in9to16m | (x[12] &lt;&lt; 3)' />
							<exp exp='in9to16m = in9to16m | (x[13] &lt;&lt; 4)' />
							<exp exp='in9to16m = in9to16m | (x[14] &lt;&lt; 5)' />
							<exp exp='in9to16m = in9to16m | (x[15] &lt;&lt; 6)' />
							<exp exp='in9to16m = in9to16m | (x[16] &lt;&lt; 7)' />
							<exp exp='in17to24m = 0' />
							<exp exp='in17to24m = in17to24m | (x[17] &lt;&lt; 0)' />
							<exp exp='in17to24m = in17to24m | (x[18] &lt;&lt; 1)' />
							<exp exp='in17to24m = in17to24m | (x[19] &lt;&lt; 2)' />
							<exp exp='in17to24m = in17to24m | (x[20] &lt;&lt; 3)' />
							<exp exp='in17to24m = in17to24m | (x[21] &lt;&lt; 4)' />
							<exp exp='in17to24m = in17to24m | (x[22] &lt;&lt; 5)' />
							<exp exp='in17to24m = in17to24m | (x[23] &lt;&lt; 6)' />
							<exp exp='in17to24m = in17to24m | (x[24] &lt;&lt; 7)' />
						</command>
						<command class_type='comment' title='' comment='Write to outputs' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out1to8 = 0' />
							<exp exp='out1to8 = out1to8 | (y[7] &lt;&lt; 0)' />
							<exp exp='out1to8 = out1to8 | (y[8] &lt;&lt; 1)' />
							<exp exp='out1to8 = out1to8 | (y[6] &lt;&lt; 2)' />
							<exp exp='out1to8 = out1to8 | (y[5] &lt;&lt; 3)' />
							<exp exp='out1to8 = out1to8 | (y[4] &lt;&lt; 4)' />
							<exp exp='out1to8 = out1to8 | (y[3] &lt;&lt; 5)' />
							<exp exp='out1to8 = out1to8 | (y[2] &lt;&lt; 6)' />
							<exp exp='out1to8 = out1to8 | (y[1] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='' />
							<exp exp='out9to16 = 0' />
							<exp exp='out9to16 = out9to16 | (y[10] &lt;&lt; 0)' />
							<exp exp='out9to16 = out9to16 | (y[11] &lt;&lt; 1)' />
							<exp exp='out9to16 = out9to16 | (y[9] &lt;&lt; 2)' />
							<exp exp='out9to16 = out9to16 | (y[15] &lt;&lt; 3)' />
							<exp exp='out9to16 = out9to16 | (y[12] &lt;&lt; 4)' />
							<exp exp='out9to16 = out9to16 | (y[13] &lt;&lt; 5)' />
							<exp exp='out9to16 = out9to16 | (y[16] &lt;&lt; 6)' />
							<exp exp='out9to16 = out9to16 | (y[14] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out17to24 = 0' />
							<exp exp='out17to24 = out17to24 | (y[24] &lt;&lt; 0)' />
							<exp exp='out17to24 = out17to24 | (y[23] &lt;&lt; 1)' />
							<exp exp='out17to24 = out17to24 | (y[22] &lt;&lt; 2)' />
							<exp exp='out17to24 = out17to24 | (y[21] &lt;&lt; 3)' />
							<exp exp='out17to24 = out17to24 | (y[20] &lt;&lt; 4)' />
							<exp exp='out17to24 = out17to24 | (y[19] &lt;&lt; 5)' />
							<exp exp='out17to24 = out17to24 | (y[18] &lt;&lt; 6)' />
							<exp exp='out17to24 = out17to24 | (y[17] &lt;&lt; 7)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out25to32 = 0' />
							<exp exp='out25to32 = out25to32 | (y[26] &lt;&lt; 0)' />
							<exp exp='out25to32 = out25to32 | (y[27] &lt;&lt; 1)' />
							<exp exp='out25to32 = out25to32 | (y[25] &lt;&lt; 2)' />
							<exp exp='out25to32 = out25to32 | (y[31] &lt;&lt; 3)' />
							<exp exp='out25to32 = out25to32 | (y[28] &lt;&lt; 4)' />
							<exp exp='out25to32 = out25to32 | (y[29] &lt;&lt; 5)' />
							<exp exp='out25to32 = out25to32 | (y[32] &lt;&lt; 6)' />
							<exp exp='out25to32 = out25to32 | (y[30] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Start expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out1to8' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out9to16' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out17to24' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out25to32' />
						</command>
						<command class_type='call' title='Stop expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='Y[34]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='Y[35]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='1' exp='Y[36]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='2' exp='Y[37]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='Y[38]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='16' exp='Y[39]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='4' exp='Y[41]' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe1' macro='GetAverageByte' >
							<return exp='ad1' />
							<argument exp='4' />
							<argument exp='10' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe2' macro='GetAverageByte' >
							<return exp='ad2' />
							<argument exp='4' />
							<argument exp='10' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe3' macro='GetAverageByte' >
							<return exp='ad3' />
							<argument exp='4' />
							<argument exp='10' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Execution' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Has re1 switch been pushed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Run_Simulator = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='outputs_simulator' />
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Probes' />
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='y[18] = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='reset led after 2 second' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt7 &gt; 66' swap='1' >
											<flowline >
												<command class_type='calculation' title='Increment Interrupt Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='cnt7 = cnt7 + 1' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Reset Interrupt Count' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[18] = 0' />
													<exp exp='cnt7 = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Scan inputs' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Read_inputs_and_set_outputs' />
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Outputs' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_inputs_and_set_outputs' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Bit extraction from usb' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='s[6] = Read_Buffer[0]' />
							<exp exp='s[1] = Read_Buffer[1]' />
							<exp exp='s[2] = (Read_Buffer[2] AND 2) / 2' />
							<exp exp='s[3] = (Read_Buffer[2] AND 4) / 4' />
							<exp exp='s[4] = (Read_Buffer[2] AND 8) / 8' />
							<exp exp='s[0] = (Read_Buffer[2] AND 16) / 16' />
							<exp exp='s[7] = (Read_Buffer[2] AND 32) / 32' />
							<exp exp='s[8] = (Read_Buffer[2] AND 64) / 64' />
							<exp exp='s[9] = (Read_Buffer[2] AND 128) / 128' />
							<exp exp='s[10] = (Read_Buffer[3] AND 2) / 2' />
							<exp exp='s[11] = (Read_Buffer[3] AND 4) / 4' />
							<exp exp='s[12] = (Read_Buffer[3] AND 8) / 8' />
							<exp exp='s[13] = (Read_Buffer[3] AND 16) / 16' />
							<exp exp='s[14] = (Read_Buffer[3] AND 32) / 32' />
							<exp exp='s[15] = (Read_Buffer[3] AND 64) / 64' />
							<exp exp='s[16] = (Read_Buffer[3] AND 128) / 128' />
							<exp exp='s[17] = (Read_Buffer[4] AND 2) / 2' />
							<exp exp='s[18] = (Read_Buffer[4] AND 4) / 4' />
							<exp exp='s[19] = (Read_Buffer[4] AND 8) / 8' />
							<exp exp='s[20] = (Read_Buffer[4] AND 16) / 16' />
							<exp exp='s[21] = (Read_Buffer[4] AND 32) / 32' />
							<exp exp='s[23] = (Read_Buffer[4] AND 64) / 64' />
							<exp exp='s[24] = (Read_Buffer[4] AND 128) / 128' />
							<exp exp='y[31] = (Read_Buffer[5] AND 1) / 1' />
							<exp exp='y[32] = (Read_Buffer[5] AND 2) / 2' />
							<exp exp='y[30] = (Read_Buffer[5] AND 4) / 4' />
							<exp exp='y26temp = (Read_Buffer[5] AND 8) / 8' />
							<exp exp='y[27] = (Read_Buffer[5] AND 16) / 16' />
							<exp exp='y[29] = (Read_Buffer[5] AND 32) / 32' />
							<exp exp='y[28] = (Read_Buffer[5] AND 64) / 64' />
							<exp exp='y[21] = (Read_Buffer[5] AND 128) / 128' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Read Inputs' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='I2C Start' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send dev addr' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='I2C Restart' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send read adress' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x41' />
						</command>
						<command class_type='call' title='Read data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='ReceiveByte' >
							<return exp='in1to8' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='I2C Stop' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='comment' title='' comment='Read the inputs from port b' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='I2C Start' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send dev addr' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='I2C Restart' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send read adress' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x41' />
						</command>
						<command class_type='call' title='Read data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='ReceiveByte' >
							<return exp='in9to16' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='I2C Stop' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='calculation' title='Bit extraction' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='x[5] = (in9to16 AND 1) / 1' />
							<exp exp='x[6] = (in9to16 AND 2) / 2' />
							<exp exp='x[7] = (in9to16 AND 4) / 4' />
							<exp exp='x[8] = (in9to16 AND 8) / 8' />
							<exp exp='x[4] = (in9to16 AND 16) / 16' />
							<exp exp='x[3] = (in9to16 AND 32) / 32' />
							<exp exp='x[2] = (in9to16 AND 64) / 64' />
							<exp exp='x[1] = (in9to16 AND 128) / 128' />
							<exp exp='x[14] = (in1to8 AND 1) / 1' />
							<exp exp='x[15] = (in1to8 AND 2) / 2' />
							<exp exp='x[16] = (in1to8 AND 4) / 4' />
							<exp exp='x[13] = (in1to8 AND 8) / 8' />
							<exp exp='x[12] = (in1to8 AND 16) / 16' />
							<exp exp='x[11] = (in1to8 AND 32) / 32' />
							<exp exp='x[10] = (in1to8 AND 64) / 64' />
							<exp exp='x[9] = (in1to8 AND 128) / 128' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='4' exp='X[17]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='8' exp='X[18]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='64' exp='X[19]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='128' exp='X[20]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='16' exp='X[21]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='32' exp='X[22]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='64' exp='X[23]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='128' exp='X[24]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048580' mask='4' exp='X[25]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='1' exp='X[26]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048578' mask='2' exp='X[27]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='1' exp='X[28]' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048579' mask='2' exp='X[29]' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='cnt0 = 1' />
						</command>
						<command class_type='comment' title='' comment='Invert inputs' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' exp='29' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='X[cnt0] = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='X[cnt0] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='X[cnt0] = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='cnt0 = cnt0 + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[1] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d1 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[1] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d1 = d1 + 1' />
											<exp exp='x[1] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d1 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[2] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d2 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[2] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d2 = d2 + 1' />
											<exp exp='x[2] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d2 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[3] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d3 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[3] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d3 = d3 + 1' />
											<exp exp='x[3] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d3 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[4] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 90 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d4 &gt; 3000' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[4] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d4 = d4 + 1' />
											<exp exp='x[4] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d4 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[5] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d5 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[5] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d5 = d5 + 1' />
											<exp exp='x[5] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d5 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[6] = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 6 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d6 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[6] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d6 = d6 + 1' />
											<exp exp='x[6] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d6 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[7] = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 6 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d7 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[7] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d7 = d7 + 1' />
											<exp exp='x[7] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d7 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[8] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d8 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[8] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d8 = d8 + 1' />
											<exp exp='x[8] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d8 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[9] = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 6 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d9 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[9] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d9 = d9 + 1' />
											<exp exp='x[9] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d9 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[10] = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 6 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d10 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[10] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d10 = d10 + 1' />
											<exp exp='x[10] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d10 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[11] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 6 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d11 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[11] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d11 = d11 + 1' />
											<exp exp='x[11] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d11 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[12] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d12 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[12] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d12 = d12 + 1' />
											<exp exp='x[12] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d12 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[13] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 90 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d13 &gt; 3000' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[13] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d13 = d13 + 1' />
											<exp exp='x[13] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d13 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[14] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d14 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[14] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d14 = d14 + 1' />
											<exp exp='x[14] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d14 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[15] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d15 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[15] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d15 = d15 + 1' />
											<exp exp='x[15] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d15 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[16] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d16 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[16] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d16 = d16 + 1' />
											<exp exp='x[16] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d16 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[17] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d17 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[17] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d17 = d17 + 1' />
											<exp exp='x[17] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d17 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[18] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d18 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[18] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d18 = d18 + 1' />
											<exp exp='x[18] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d18 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[19] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d19 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[19] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d19 = d19 + 1' />
											<exp exp='x[19] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d19 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[20] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d20 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[20] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d20 = d20 + 1' />
											<exp exp='x[20] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d20 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[21] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d21 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[21] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d21 = d21 + 1' />
											<exp exp='x[21] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d21 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[22] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d22 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[22] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d22 = d22 + 1' />
											<exp exp='x[22] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d22 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[23] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d23 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[23] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d23 = d23 + 1' />
											<exp exp='x[23] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d23 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[24] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d24 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[24] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d24 = d24 + 1' />
											<exp exp='x[24] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d24 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[25] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d25 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[25] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d25 = d25 + 1' />
											<exp exp='x[25] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d25 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[26] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d26 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[26] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d26 = d26 + 1' />
											<exp exp='x[26] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d26 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[27] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d27 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[27] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d27 = d27 + 1' />
											<exp exp='x[27] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d27 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[28] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 7 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d28 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[28] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d28 = d28 + 1' />
											<exp exp='x[28] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d28 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Delay input' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[29] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Has 19 seconds passed' cmdcolor='12615680' cmdcolor_sec='15376912' exp='d29 &gt; 253' swap='0' >
									<flowline >
										<command class_type='calculation' title='send fault' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='x[29] = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='d29 = d29 + 1' />
											<exp exp='x[29] = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Force fault down' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='d29 = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='in1to8m = 0' />
							<exp exp='in1to8m = in1to8m | (x[1] &lt;&lt; 0)' />
							<exp exp='in1to8m = in1to8m | (x[2] &lt;&lt; 1)' />
							<exp exp='in1to8m = in1to8m | (x[3] &lt;&lt; 2)' />
							<exp exp='in1to8m = in1to8m | (x[4] &lt;&lt; 3)' />
							<exp exp='in1to8m = in1to8m | (x[5] &lt;&lt; 4)' />
							<exp exp='in1to8m = in1to8m | (x[6] &lt;&lt; 5)' />
							<exp exp='in1to8m = in1to8m | (x[7] &lt;&lt; 6)' />
							<exp exp='in1to8m = in1to8m | (x[8] &lt;&lt; 7)' />
							<exp exp='in9to16m = 0' />
							<exp exp='in9to16m = in9to16m | (x[9] &lt;&lt; 0)' />
							<exp exp='in9to16m = in9to16m | (x[10] &lt;&lt; 1)' />
							<exp exp='in9to16m = in9to16m | (x[11] &lt;&lt; 2)' />
							<exp exp='in9to16m = in9to16m | (x[12] &lt;&lt; 3)' />
							<exp exp='in9to16m = in9to16m | (x[13] &lt;&lt; 4)' />
							<exp exp='in9to16m = in9to16m | (x[14] &lt;&lt; 5)' />
							<exp exp='in9to16m = in9to16m | (x[15] &lt;&lt; 6)' />
							<exp exp='in9to16m = in9to16m | (x[16] &lt;&lt; 7)' />
							<exp exp='in17to24m = 0' />
							<exp exp='in17to24m = in17to24m | (x[17] &lt;&lt; 0)' />
							<exp exp='in17to24m = in17to24m | (x[18] &lt;&lt; 1)' />
							<exp exp='in17to24m = in17to24m | (x[19] &lt;&lt; 2)' />
							<exp exp='in17to24m = in17to24m | (x[20] &lt;&lt; 3)' />
							<exp exp='in17to24m = in17to24m | (x[21] &lt;&lt; 4)' />
							<exp exp='in17to24m = in17to24m | (x[22] &lt;&lt; 5)' />
							<exp exp='in17to24m = in17to24m | (x[23] &lt;&lt; 6)' />
							<exp exp='in17to24m = in17to24m | (x[24] &lt;&lt; 7)' />
							<exp exp='in25to29m = 0' />
							<exp exp='in25to29m = in25to29m | (1 &lt;&lt; 0)' />
							<exp exp='in25to29m = in25to29m | (x[27] &lt;&lt; 1)' />
							<exp exp='in25to29m = in25to29m | (x[28] &lt;&lt; 2)' />
							<exp exp='in25to29m = in25to29m | (x[29] &lt;&lt; 3)' />
							<exp exp='in25to29m = in25to29m | (1 &lt;&lt; 4)' />
							<exp exp='in25to29m = in25to29m | (1 &lt;&lt; 5)' />
							<exp exp='in25to29m = in25to29m | (1 &lt;&lt; 6)' />
							<exp exp='in25to29m = in25to29m | (1 &lt;&lt; 7)' />
						</command>
						<command class_type='comment' title='' comment='Write to outputs' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out1to8 = 0' />
							<exp exp='out1to8 = out1to8 | (y[7] &lt;&lt; 0)' />
							<exp exp='out1to8 = out1to8 | (y[8] &lt;&lt; 1)' />
							<exp exp='out1to8 = out1to8 | (y[6] &lt;&lt; 2)' />
							<exp exp='out1to8 = out1to8 | (y[5] &lt;&lt; 3)' />
							<exp exp='out1to8 = out1to8 | (y[4] &lt;&lt; 4)' />
							<exp exp='out1to8 = out1to8 | (y[3] &lt;&lt; 5)' />
							<exp exp='out1to8 = out1to8 | (y[2] &lt;&lt; 6)' />
							<exp exp='out1to8 = out1to8 | (y[1] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='' />
							<exp exp='out9to16 = 0' />
							<exp exp='out9to16 = out9to16 | (y[10] &lt;&lt; 0)' />
							<exp exp='out9to16 = out9to16 | (y[11] &lt;&lt; 1)' />
							<exp exp='out9to16 = out9to16 | (y[9] &lt;&lt; 2)' />
							<exp exp='out9to16 = out9to16 | (y[15] &lt;&lt; 3)' />
							<exp exp='out9to16 = out9to16 | (y[12] &lt;&lt; 4)' />
							<exp exp='out9to16 = out9to16 | (y[13] &lt;&lt; 5)' />
							<exp exp='out9to16 = out9to16 | (y[16] &lt;&lt; 6)' />
							<exp exp='out9to16 = out9to16 | (y[14] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out17to24 = 0' />
							<exp exp='out17to24 = out17to24 | (y[24] &lt;&lt; 0)' />
							<exp exp='out17to24 = out17to24 | (y[23] &lt;&lt; 1)' />
							<exp exp='out17to24 = out17to24 | (y[22] &lt;&lt; 2)' />
							<exp exp='out17to24 = out17to24 | (y[21] &lt;&lt; 3)' />
							<exp exp='out17to24 = out17to24 | (y[20] &lt;&lt; 4)' />
							<exp exp='out17to24 = out17to24 | (y[19] &lt;&lt; 5)' />
							<exp exp='out17to24 = out17to24 | (y[18] &lt;&lt; 6)' />
							<exp exp='out17to24 = out17to24 | (y[17] &lt;&lt; 7)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='out25to32 = 0' />
							<exp exp='out25to32 = out25to32 | (y[26] &lt;&lt; 0)' />
							<exp exp='out25to32 = out25to32 | (y[27] &lt;&lt; 1)' />
							<exp exp='out25to32 = out25to32 | (y[25] &lt;&lt; 2)' />
							<exp exp='out25to32 = out25to32 | (y[31] &lt;&lt; 3)' />
							<exp exp='out25to32 = out25to32 | (y[28] &lt;&lt; 4)' />
							<exp exp='out25to32 = out25to32 | (y[29] &lt;&lt; 5)' />
							<exp exp='out25to32 = out25to32 | (y[32] &lt;&lt; 6)' />
							<exp exp='out25to32 = out25to32 | (y[30] &lt;&lt; 7)' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Start expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out1to8' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out9to16' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out17to24' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='out25to32' />
						</command>
						<command class_type='call' title='Stop expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='y40off &gt; 2100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[40] = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y40off = y40off + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='y[16] = s[15]' />
							<exp exp='y[36] = s[15]' />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='Y[34]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='Y[35]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='1' exp='Y[36]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048580' mask='2' exp='Y[37]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='Y[38]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='16' exp='Y[39]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='Y[40]' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='4' exp='Y[41]' />
					</flowline>
				</macro>
				<macro >
					<flowline name='outputs_simulator' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='fault = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt1 &gt; 75' swap='0' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='cnt1 = 0' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 = 0' swap='0' >
											<flowline >
												<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='1' />
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[1] &gt; 5' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='test[1] = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='y[1] = 0' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad1 &lt; 140' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[2] = 1' />
																	<exp exp='test[1] = 1' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='fault = 1' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[1] = 1' />
													<exp exp='count[1] = count[1] + 1' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[2] &gt; 5' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='test[2] = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='y[2] = 0' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad2 &lt; 140' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[3] = 1' />
																	<exp exp='test[2] = 1' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='fault = 2' />
																	<exp exp='' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[2] = 1' />
													<exp exp='count[2] = count[2] + 1' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[3] &gt; 5' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='test[3] = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='y[3] = 0' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad3 &lt; 140' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[4] = 1' />
																	<exp exp='test[3] = 1' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='fault = 3' />
																	<exp exp='' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[3] = 1' />
													<exp exp='count[3] = count[3] + 1' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='cnt100 = 4' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 27' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[cnt100 - 1] = 1' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[cnt100 + 1] = 1' />
																	<exp exp='y[cnt100] = 0' />
																	<exp exp='cnt100 = cnt100 + 1' />
																	<exp exp='count[4] = 0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='fault = cnt100' />
																	<exp exp='' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='y[cnt100] = 1' />
															<exp exp='count[4] = count[4] + 1' />
														</command>
														<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
														<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 28' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 32' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[cnt100 - 25] = 1' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[cnt100 + 1] = 1' />
																			<exp exp='y[cnt100] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[cnt100] = 1' />
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 33' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 38' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[cnt100 - 25] = 1' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[cnt100 + 2] = 1' />
																			<exp exp='y[cnt100 + 1] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[cnt100 + 1] = 1' />
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 39' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 39' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[15] = 1' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[41] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[41] = 1' />
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 40' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 40' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[24] = 1' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[20] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[20] = 1' />
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 41' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 41' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[2] = 1' swap='0' >
																	<flowline >
																		<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
																			<argument exp='0' />
																		</command>
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
																	<argument exp='255' />
																</command>
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 42' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 42' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[1] = 1' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 43' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 43' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[27] = 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='y[16] = 0' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[16] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 44' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 44' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[28] = 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='cnt100 = cnt100 + 1' />
																			<exp exp='y[17] = 0' />
																			<exp exp='count[4] = 0' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[17] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 45' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 45' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[29] = 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[18] = 0' />
																			<exp exp='count[4] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[18] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 46' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 46' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad1 = 255' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[19] = 0' />
																			<exp exp='count[4] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[19] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 47' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 47' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad2 = 255' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[20] = 0' />
																			<exp exp='count[4] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[20] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &lt; 48' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 &gt; 48' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ad3 = 255' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[21] = 0' />
																			<exp exp='count[4] = 0' />
																			<exp exp='cnt100 = cnt100 + 1' />
																		</command>
																		<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='count[4] = count[4] + 1' />
																	<exp exp='y[21] = 1' />
																</command>
																<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt100 = 49' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='count[4] &gt; 3' swap='0' >
													<flowline >
														<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='0' />
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[1] = 0' swap='0' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[2] = 0' swap='0' >
																	<flowline >
																		<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[3] = 0' swap='0' >
																			<flowline >
																				<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[4] = 0' swap='0' >
																					<flowline >
																						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[5] = 0' swap='0' >
																							<flowline >
																								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[6] = 0' swap='0' >
																									<flowline >
																										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[7] = 0' swap='0' >
																											<flowline >
																												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[8] = 0' swap='0' >
																													<flowline >
																														<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='0' />
																														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[9] = 0' swap='0' >
																															<flowline >
																																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[10] = 0' swap='0' >
																																	<flowline >
																																		<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[11] = 0' swap='0' >
																																			<flowline >
																																				<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[12] = 0' swap='0' >
																																					<flowline >
																																						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[13] = 0' swap='0' >
																																							<flowline >
																																								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[14] = 0' swap='0' >
																																									<flowline >
																																										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[15] = 0' swap='0' >
																																											<flowline >
																																												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[16] = 0' swap='0' >
																																													<flowline >
																																														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[17] = 0' swap='0' >
																																															<flowline >
																																																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[18] = 0' swap='0' >
																																																	<flowline >
																																																		<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='0' />
																																																		<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[19] = 1' swap='0' >
																																																			<flowline >
																																																				<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[20] = 0' swap='0' >
																																																					<flowline >
																																																						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[21] = 0' swap='0' >
																																																							<flowline >
																																																								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[22] = 0' swap='0' >
																																																									<flowline >
																																																										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[23] = 0' swap='0' >
																																																											<flowline >
																																																												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[24] = 0' swap='0' >
																																																													<flowline >
																																																														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[25] = 0' swap='0' >
																																																															<flowline >
																																																																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[26] = 0' swap='0' >
																																																																	<flowline >
																																																																		<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='0' />
																																																																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																																			<exp exp='cnt100 = 0' />
																																																																			<exp exp='count[1] = 0' />
																																																																			<exp exp='count[2] = 0' />
																																																																			<exp exp='count[3] = 0' />
																																																																			<exp exp='count[4] = 0' />
																																																																			<exp exp='cycles = cycles + 1' />
																																																																		</command>
																																																																	</flowline>
																																																																	<flowline >
																																																																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																																			<exp exp='fault = cnt100' />
																																																																			<exp exp='' />
																																																																		</command>
																																																																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																																	</flowline>
																																																																</command>
																																																															</flowline>
																																																															<flowline >
																																																																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																																	<exp exp='fault = cnt100' />
																																																																	<exp exp='' />
																																																																</command>
																																																																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																															</flowline>
																																																														</command>
																																																													</flowline>
																																																													<flowline >
																																																														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																															<exp exp='fault = cnt100' />
																																																															<exp exp='' />
																																																														</command>
																																																														<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																													</flowline>
																																																												</command>
																																																											</flowline>
																																																											<flowline >
																																																												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																													<exp exp='fault = cnt100' />
																																																													<exp exp='' />
																																																												</command>
																																																												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																											</flowline>
																																																										</command>
																																																									</flowline>
																																																									<flowline >
																																																										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																											<exp exp='fault = cnt100' />
																																																											<exp exp='' />
																																																										</command>
																																																										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																									</flowline>
																																																								</command>
																																																							</flowline>
																																																							<flowline >
																																																								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																									<exp exp='fault = cnt100' />
																																																									<exp exp='' />
																																																								</command>
																																																								<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																							</flowline>
																																																						</command>
																																																					</flowline>
																																																					<flowline >
																																																						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																							<exp exp='fault = cnt100' />
																																																							<exp exp='' />
																																																						</command>
																																																						<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																					</flowline>
																																																				</command>
																																																			</flowline>
																																																			<flowline >
																																																				<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																					<exp exp='fault = cnt100' />
																																																					<exp exp='' />
																																																				</command>
																																																				<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																			</flowline>
																																																		</command>
																																																	</flowline>
																																																	<flowline >
																																																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																			<exp exp='fault = cnt100' />
																																																			<exp exp='' />
																																																		</command>
																																																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																																	</flowline>
																																																</command>
																																															</flowline>
																																															<flowline >
																																																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																																	<exp exp='fault = cnt100' />
																																																	<exp exp='' />
																																																</command>
																																																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																															</flowline>
																																														</command>
																																													</flowline>
																																													<flowline >
																																														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																															<exp exp='fault = cnt100' />
																																															<exp exp='' />
																																														</command>
																																														<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																													</flowline>
																																												</command>
																																											</flowline>
																																											<flowline >
																																												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																													<exp exp='fault = cnt100' />
																																													<exp exp='' />
																																												</command>
																																												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																											</flowline>
																																										</command>
																																									</flowline>
																																									<flowline >
																																										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																											<exp exp='fault = cnt100' />
																																											<exp exp='' />
																																										</command>
																																										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																									</flowline>
																																								</command>
																																							</flowline>
																																							<flowline >
																																								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																									<exp exp='fault = cnt100' />
																																									<exp exp='' />
																																								</command>
																																								<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																							</flowline>
																																						</command>
																																					</flowline>
																																					<flowline >
																																						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																							<exp exp='fault = cnt100' />
																																							<exp exp='' />
																																						</command>
																																						<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																					</flowline>
																																				</command>
																																			</flowline>
																																			<flowline >
																																				<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																					<exp exp='fault = cnt100' />
																																					<exp exp='' />
																																				</command>
																																				<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																			</flowline>
																																		</command>
																																	</flowline>
																																	<flowline >
																																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																			<exp exp='fault = cnt100' />
																																			<exp exp='' />
																																		</command>
																																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																																	</flowline>
																																</command>
																															</flowline>
																															<flowline >
																																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																																	<exp exp='fault = cnt100' />
																																	<exp exp='' />
																																</command>
																																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																															</flowline>
																														</command>
																													</flowline>
																													<flowline >
																														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																															<exp exp='fault = cnt100' />
																															<exp exp='' />
																														</command>
																														<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																													</flowline>
																												</command>
																											</flowline>
																											<flowline >
																												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																													<exp exp='fault = cnt100' />
																													<exp exp='' />
																												</command>
																												<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																											</flowline>
																										</command>
																									</flowline>
																									<flowline >
																										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																											<exp exp='fault = cnt100' />
																											<exp exp='' />
																										</command>
																										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																									</flowline>
																								</command>
																							</flowline>
																							<flowline >
																								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																									<exp exp='fault = cnt100' />
																									<exp exp='' />
																								</command>
																								<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																							</flowline>
																						</command>
																					</flowline>
																					<flowline >
																						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																							<exp exp='fault = cnt100' />
																							<exp exp='' />
																						</command>
																						<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																					</flowline>
																				</command>
																			</flowline>
																			<flowline >
																				<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																					<exp exp='fault = cnt100' />
																					<exp exp='' />
																				</command>
																				<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																			</flowline>
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='fault = cnt100' />
																			<exp exp='' />
																		</command>
																		<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='fault = cnt100' />
																	<exp exp='' />
																</command>
																<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='count[4] = count[4] + 1' />
															<exp exp='' />
														</command>
														<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='8' exp='0' />
														<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='scan_expander' />
														<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='cnt1 = cnt1 + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='service' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='a' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</param>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Run_Simulator = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Send_Buffer[0] = fault' />
									<exp exp='Send_Buffer[1] = cycles' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='USB' macro='SendString' >
									<argument exp='Send_Buffer' />
									<argument exp='2' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Read_Buffer[0] = service.a[0]' />
									<exp exp='Read_Buffer[1] = service.a[1]' />
									<exp exp='Read_Buffer[2] = service.a[2]' />
									<exp exp='Read_Buffer[3] = service.a[3]' />
									<exp exp='Read_Buffer[4] = service.a[4]' />
									<exp exp='Read_Buffer[5] = service.a[5]' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[26] = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe1' macro='GetByte' >
											<return exp='ad1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe2' macro='GetByte' >
											<return exp='ad2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe3' macro='GetByte' >
											<return exp='ad3' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='scanprobes = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='scanprobes = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Send_Buffer[0] = in25to29m' />
									<exp exp='Send_Buffer[1] = in1to8m' />
									<exp exp='Send_Buffer[2] = in9to16m' />
									<exp exp='Send_Buffer[3] = in17to24m' />
									<exp exp='Send_Buffer[4] = ad1' />
									<exp exp='Send_Buffer[5] = ad2' />
									<exp exp='Send_Buffer[6] = ad3' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='USB' macro='SendString' >
									<argument exp='Send_Buffer' />
									<argument exp='7' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[0] = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[18] = 1' />
											<exp exp='y[40] = 1' />
											<exp exp='y40off = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='intlatch = 1' swap='0' >
									<flowline >
										<command class_type='native' title='reset watchdog timer' ccode='MX_CLEAR_WATCHDOG;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
									</flowline>
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='Execution' >
											<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='1' />
												<option value='8' />
												<option value='-1' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='intlatch = 1' />
											<exp exp='' />
										</command>
										<command class_type='native' title='Force/start watchdog timer' ccode='WDTCON = 0x01;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Outputs' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x[11] = 1' swap='1' >
							<flowline >
								<command class_type='calculation' title='set pwm value' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='pwm = 0' />
									<exp exp='y[35] = 0' />
									<exp exp='y[20] = 0' />
									<exp exp='' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[1] &lt; 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='set pwm value' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='pwval = 0' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[35] = 0' />
											<exp exp='y[20] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='set pwm value' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='pwval = s[1]' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[35] = 1' />
											<exp exp='y[20] = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[6] &gt; 1' swap='1' >
									<flowline >
										<command class_type='calculation' title='set pwm value' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='pwm = 0' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='set pwm value' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='pwm = pwval * 2.55' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[7] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[34] = 1' />
									<exp exp='y[39] = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[34] = 0' />
									<exp exp='y[39] = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[19] = 1' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[19] = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[3] = 1' swap='1' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[24] = 0' />
											<exp exp='y[22] = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[24] = 1' />
											<exp exp='y[22] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[24] = 1' />
									<exp exp='y[19] = 1' />
									<exp exp='y[22] = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[6] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='speed = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='speed = s[6]' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed = 0' swap='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 15' swap='1' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 29' swap='1' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 43' swap='1' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 57' swap='1' >
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 71' swap='1' >
																	<flowline >
																		<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='speed &lt; 85' swap='1' >
																			<flowline >
																				<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																					<exp exp='y[5] = 1' />
																					<exp exp='y[4] = 1' />
																					<exp exp='y[1] = 1' />
																					<exp exp='y[41] = 1' />
																					<exp exp='y[3] = 1' />
																				</command>
																			</flowline>
																			<flowline >
																				<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																					<exp exp='y[5] = 0' />
																					<exp exp='y[4] = 1' />
																					<exp exp='y[1] = 1' />
																					<exp exp='y[41] = 1' />
																					<exp exp='y[3] = 1' />
																				</command>
																			</flowline>
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='y[5] = 1' />
																			<exp exp='y[4] = 0' />
																			<exp exp='y[1] = 1' />
																			<exp exp='y[41] = 1' />
																			<exp exp='y[3] = 1' />
																		</command>
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='y[5] = 0' />
																	<exp exp='y[4] = 0' />
																	<exp exp='y[1] = 1' />
																	<exp exp='y[41] = 1' />
																	<exp exp='y[3] = 1' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='y[5] = 1' />
															<exp exp='y[4] = 1' />
															<exp exp='y[1] = 0' />
															<exp exp='y[41] = 1' />
															<exp exp='y[3] = 1' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[5] = 0' />
													<exp exp='y[4] = 1' />
													<exp exp='y[1] = 0' />
													<exp exp='y[41] = 1' />
													<exp exp='y[3] = 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[5] = 1' />
											<exp exp='y[4] = 0' />
											<exp exp='y[1] = 0' />
											<exp exp='y[41] = 1' />
											<exp exp='y[3] = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[5] = 0' />
									<exp exp='y[4] = 0' />
									<exp exp='y[1] = 0' />
									<exp exp='y[41] = 0' />
									<exp exp='y[3] = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[7] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[2] = 1' />
									<exp exp='y[7] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[2] = 0' />
									<exp exp='y[7] = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[9] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[39] = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[11] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[25] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[25] = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Fault output' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[21] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[6] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[6] = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[14] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[37] = 1' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[23] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[37] = 0' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[20] = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[23] = 1' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[23] = 0' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[13] = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt50 &gt; 20' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[38] = 1' />
											<exp exp='' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='cnt51 &gt; 20' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[26] = 1' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='y[26] = 0' />
													<exp exp='' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='cnt51 = cnt51 + 1' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='cnt50 = cnt50 + 1' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[26] = 0' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[38] = 0' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='cnt50 = 0' />
									<exp exp='cnt51 = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='y26temp = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[26] = 1' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='y[26] = 0' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[17] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[34] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='s[19] = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[19] = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='y[19] = 0' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
							<argument exp='pwm' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Probes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='scanprobes = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe1' macro='GetByte' >
									<return exp='port1raw' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe2' macro='GetByte' >
									<return exp='port2raw' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='probe3' macro='GetByte' >
									<return exp='port3raw' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='scancnt = 90' swap='0' >
									<flowline >
										<command class_type='calculation' title='Average raw data' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='ad1 = port1total / 90' />
											<exp exp='ad2 = port2total / 90' />
											<exp exp='ad3 = port3total / 90' />
										</command>
										<command class_type='calculation' title='reset scan counter to nil and unflag scan' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='scanprobes = 0' />
											<exp exp='scancnt = 0' />
											<exp exp='port1total = 0' />
											<exp exp='port2total = 0' />
											<exp exp='port3total = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='increase sample count' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='scancnt = scancnt + 1' />
										</command>
										<command class_type='calculation' title='increase samples' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='port1total = port1raw + port1total' />
											<exp exp='port2total = port2raw + port2total' />
											<exp exp='port3total = port3raw + port3total' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='fault = 0' />
							<exp exp='cnt100 = 0' />
							<exp exp='cnt1 = 0' />
							<exp exp='cycles = 0' />
							<exp exp='cnt0 = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='cnt100 = 0' />
							<exp exp='count[1] = 0' />
							<exp exp='count[2] = 0' />
							<exp exp='count[3] = 0' />
							<exp exp='count[4] = 0' />
						</command>
						<command class_type='calculation' title='reset scan counter to nil and unflag scan' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='scanprobes = 0' />
							<exp exp='scancnt = 0' />
							<exp exp='port1total = 0' />
							<exp exp='port2total = 0' />
							<exp exp='port3total = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='intlatch = 0' />
							<exp exp='y40off = 0' />
							<exp exp='cnt7 = 0' />
							<exp exp='Run_Simulator = 0' />
						</command>
						<command class_type='calculation' title='Set outputs off' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='s[0] = 0' />
							<exp exp='s[1] = 0' />
							<exp exp='s[2] = 0' />
							<exp exp='s[3] = 0' />
							<exp exp='s[4] = 0' />
							<exp exp='s[5] = 0' />
							<exp exp='s[6] = 0' />
							<exp exp='s[7] = 0' />
							<exp exp='s[8] = 0' />
							<exp exp='s[9] = 0' />
							<exp exp='s[10] = 0' />
							<exp exp='s[11] = 0' />
							<exp exp='s[12] = 0' />
							<exp exp='s[13] = 0' />
							<exp exp='s[14] = 0' />
							<exp exp='s[15] = 0' />
							<exp exp='s[16] = 0' />
							<exp exp='s[17] = 0' />
							<exp exp='s[18] = 0' />
							<exp exp='s[19] = 0' />
							<exp exp='s[20] = 0' />
							<exp exp='s[21] = 0' />
							<exp exp='s[22] = 0' />
							<exp exp='pwm = 0' />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048578' mask='4' exp='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Set up expander 0x22 to outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Access Remote Tris' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='IODIR0 all Outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='IODIR0 all Outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Restart' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x42' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Set up expander 0x22 to outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Access Remote Tris' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='IODIR0 all Outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='IODIR1 all Outputs' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Start' />
						<command class_type='call' title='Send device address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x44' />
						</command>
						<command class_type='call' title='Send register address' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='Send data' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='TransmitByte' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Stop expander comms' cmdcolor='1879295' cmdcolor_sec='5751039' component='Expander' macro='Stop' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='Enable' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Reset_Outputs' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='call' title='Initialise usb services' cmdcolor='1879295' cmdcolor_sec='5751039' component='USB' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048580' mask='8' exp='RE3' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='RE3 = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Run_Simulator = 1' />
								</command>
								<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='Execution' >
									<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='1' />
										<option value='1' />
										<option value='8' />
										<option value='-1' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
										<option value='0' />
									</settings>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Run usb services' cmdcolor='1879295' cmdcolor_sec='5751039' component='USB' macro='RunSlaveService' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='4' vmaj='1' codename='Expander' x='-56' y='32' z='0.57143' xsz='72.5714' ysz='82.5714' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_i2c::CHANNEL' data='001' />
					<value target='cal_i2c::BAUD_LIST' data='001' />
					<value target='cal_i2c::BAUD' data='100000' />
					<value target='cal_i2c::StopDel' data='1' />
					<value target='cal_i2c::SRC' data='000' />
					<value target='cal_i2c::SMB' data='000' />
					<value target='cal_i2c::ClockStretching' data='1' />
					<value target='cal_i2c::SDA' data='$PORTB.0' />
					<value target='cal_i2c::SDAPins' data='002' />
					<value target='cal_i2c::SCL' data='$PORTB.1' />
					<value target='cal_i2c::SCLPins' data='010' />
					<value target='label' data='I2C Master' />
					<value target='cal_i2c::ScopeTraces' data='0' />
					<value target='cal_i2c::ConsoleData' data='' />
					<value target='cal_i2c::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='probe1' x='-88' y='-88' z='9' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='158' />
					<value target='vrefop' data='1' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='probe2' x='-56' y='-88' z='9' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='1' />
					<value target='vrefvol' data='158' />
					<value target='vrefop' data='1' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='probe3' x='-16' y='-88' z='9' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='2' />
					<value target='vrefvol' data='158' />
					<value target='vrefop' data='1' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='26cbc2df-5ef0-47db-ab2f-c2425b14462f' vmin='3' vmaj='1' codename='USB' x='56' y='48' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='vendor_ID' data='4799' />
					<value target='product_ID' data='65285' />
					<value target='dev_name' data='Turbo Smoker Room 1' />
					<value target='dev_manufacturer' data='Roy Johnston' />
					<value target='major_version' data='1' />
					<value target='minor_version' data='0' />
					<value target='enumeration_tout' data='0' />
					<value target='timeout' data='10' />
					<value target='country_code' data='000' />
					<value target='max_current' data='500' />
					<value target='usb_type' data='1' />
					<value target='slave_macro' data='service' />
					<value target='slave_params' data='011' />
					<value target='driver_directory' data='$(srcdir)' />
					<value target='driver_filename' data='mm_mchpusb' />
					<value target='gen_driver' data='0' />
					<value target='Instance' data='000' />
					<value target='SimTimeout' data='0' />
					<value target='vid_pid_str' data='vid_12bf&amp;pid_ff05' />
					<value target='label' data='USB Slave' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM1' x='56' y='-24' z='0.88' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTC.2' />
					<value target='RemapPin' data='' />
					<value target='timer' data='2' />
					<value target='period' data='255' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='52.083332' />
					<value target='frequency_calc2' data='19200.000000' />
					<value target='frequency_calc' data='19.200001' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='9737364' 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='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' 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='Outputs' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Execution' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='outputs_simulator' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='service' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_inputs_and_set_outputs' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='scan_expander' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Probes' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Reset_Outputs' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdQcAAHICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
