<root>
<document schema='101' license='1,Default Flowcode Name,EA6R55' title='' description='' target='PIC.16F.16F1938' >
	<config data='!0,fe4!10,1633%0,4%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='72b43bee-5ec9-4d91-807f-b6e9b9a8bbe7' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='TrainDetected' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Train' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Trip' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CommandFeedback' type='u8' description='Feedback Req = 1, Feedback not required = 0' isconst='0' isinit='1' usrinit='1' setinit='0x1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ChecksumHighByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VersionInfo' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='0xFF' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Checksum' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter1HighByte' type='u8' description='' isconst='0' isinit='1' usrinit='3710' setinit='0xe7e' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='STR1' type='T8' description='String =Value' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Commands' type='u8' description='Play/Pause etc' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimerTick' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NumberOfBytes' type='u8' description='' isconst='0' isinit='1' usrinit='6' setinit='0x06' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TripCount' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isinit='1' usrinit='1000' setinit='1000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ChecksumLowByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TrainHere' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter2LowByte' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='0xff' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='TrainDetected' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='decision' title='Decision' exp='TripCount &lt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TripCount = TripCount + 1' />
									<exp exp='Trip = Trip + 1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='TrainDetected = 0' />
								</command>
								<command class_type='delay' title='Delay' exp='2' type='1' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TripCount = 0' />
									<exp exp='Trip = 0' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='TrainHere = TrainHere + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Trip' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Waiting For&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Train Coming&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Still Waiting&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Trip = 0' />
									</command>
									<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
								</flowline>
							</case>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='TrainHere' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Has Arrived&quot;' />
									</command>
									<command class_type='comment' title='' comment='Segment 1' textarea='12,0,12,0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='$PortA = 0b01110110' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainHere = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainDetected = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='STR1 = &quot;Paddington&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;London&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='8' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Arrived&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='$PortA = 0b10110110' />
										<exp exp='' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainHere = 3' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainDetected = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='STR1 = &quot;Manchester&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Victoria&quot;' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='$PortA = 0b11010110' />
										<exp exp='' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainHere = 3' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainDetected = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='STR1 = &quot;Glasgow&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='STR1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Central&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='8' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;Arrived&quot;' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='$PortA = 0b11100110' />
										<exp exp='' />
										<exp exp='' />
										<exp exp='' />
										<exp exp='' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainHere = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='TrainDetected = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='STR1 = &quot;London Kings&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline />
							</case>
							<case exp='6' >
								<flowline />
							</case>
							<case exp='7' >
								<flowline />
							</case>
							<case exp='8' >
								<flowline />
							</case>
							<case exp='9' >
								<flowline />
							</case>
							<case exp='10' >
								<flowline />
							</case>
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
							<argument exp='1' />
						</command>
						<command class_type='label' title='Connection Point' labelid='0' labelname='A' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='$PortA = 0b11111111' />
						</command>
						<command class_type='output' title='Output' mode='1' port='1048578' mask='1' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Train' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;No Train &quot;' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' >
							<exp exp='Trip = TripCount - Trip + 1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Next Train= &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='11' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Trip' />
						</command>
						<command class_type='delay' title='Delay' exp='2' type='2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendBytes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Checksum = VersionInfo + NumberOfBytes + Commands + CommandFeedback + Parameter1HighByte + Parameter2LowByte' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Checksum = 0 - Checksum' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='ChecksumLowByte = Checksum &amp; 0xFF' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='ChecksumHighByte = (Checksum &amp; 0xFF00) &gt;&gt; 8' />
						</command>
						<command class_type='comment' title='' comment='Each Command feedback begins with 0x7E' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='0x7E' />
						</command>
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='Versioninfo' />
						</command>
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='NumberOfBytes' />
						</command>
						<command class_type='comment' title='' comment='Commands: Indicate the specific operation, such as play / pause' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='Commands' />
						</command>
						<command class_type='comment' title='' comment='Command Feedback: If need for feedback (1) feedback (0 = No Feed back)' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='CommandFeedback' />
						</command>
						<command class_type='comment' title='' comment='Parameter 1 = Query High data byte' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='Parameter1HighByte' />
						</command>
						<command class_type='comment' title='' comment='Parameter 2 = Query low data byte' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='Parameter2LowByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='Parameter1HighByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='ChecksumLowByte' />
						</command>
						<command class_type='comment' title='' comment='0XEF = End Byte' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='SendChar' >
							<argument exp='0xEF' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='INTOISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='TrainDetected = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Timer2ISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='TimerTick &lt; 125' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = TimerTick + 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = 0' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='Seconds &gt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Seconds = Seconds - 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0xf0;
//iocbp=0Xff;' language='C' />
						<command class_type='interrupt' title='Interrupt' enable='1' name='IOC0' call='INTOISR' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='AAEAAAD-------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='AAAAAAD-------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='TMR2' call='Timer2ISR' >
							<settings timer='1' prescale='16' postscale='16' rollover='250' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='15' />
								<option value='250' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='RS232' macro='Initialise' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='comment' title='' comment='Commands = 0x47 - Query the total number of TF card files' textarea='12,0,12,0' />
						<command class_type='calculation' title='Reset Module' >
							<exp exp='Commands = 0x47' />
							<exp exp='CommandFeedback = 0x00' />
							<exp exp='Parameter1HighByte = 0x00' />
							<exp exp='Parameter2LowByte = 0x00' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendBytes' />
						<command class_type='delay' title='Delay' exp='300' type='1' />
						<command class_type='comment' title='' comment='Commands = 0x48 = Query the total number of U-disk files' textarea='12,0,12,0' />
						<command class_type='calculation' title='Reset Module' >
							<exp exp='Commands = 0x48' />
							<exp exp='CommandFeedback = 0x00' />
							<exp exp='Parameter1HighByte = 0x00' />
							<exp exp='Parameter2LowByte = 0x00' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendBytes' />
						<command class_type='delay' title='Delay' exp='300' type='1' />
						<command class_type='comment' title='' comment='Commands = 0x49 - Query the number of flash files' textarea='12,0,12,0' />
						<command class_type='calculation' title='Reset Module' >
							<exp exp='Commands = 0x49' />
							<exp exp='CommandFeedback = 0x00' />
							<exp exp='Parameter1HighByte = 0x00' />
							<exp exp='Parameter2LowByte = 0x00' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendBytes' />
						<command class_type='delay' title='Delay' exp='300' type='1' />
						<command class_type='comment' title='' comment='Commands = 0x06  - ??? Not sure of this command
CommandFeedback = 0x01 - Need Feedback
Parameter1HighByte = 0x00 - No settings
Parameter2LowByte = 3 //Volume Level' textarea='12,0,12,0' />
						<command class_type='calculation' title='Set Volume' >
							<exp exp='Commands = 0x06' />
							<exp exp='CommandFeedback = 0x01' />
							<exp exp='Parameter1HighByte = 0x00' />
							<exp exp='Parameter2LowByte = 3 //Volume Level' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendBytes' />
						<command class_type='delay' title='Delay' exp='100' type='1' />
						<command class_type='calculation' title='Play Track' >
							<exp exp='Commands = 0x12 // Not sure code' />
							<exp exp='CommandFeedback = 0x00' />
							<exp exp='Parameter1HighByte = 0x00 //Track number HB' />
							<exp exp='//Parameter2LowByte = Count //Track number LB' />
						</command>
						<command class_type='call' title='Call Macro' macro='SendBytes' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Version&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Christmas 2018&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='3' type='2' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='TrainDetected = 0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='STR1 = &quot;London Kings&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
							<argument exp='1' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='Orig 600 seconds = 10min' textarea='12,0,12,0' />
								<command class_type='decision' title='Decision' exp='TrainDetected = 1' swap='0' >
									<flowline >
										<command class_type='output' title='Train Detected' mode='1' port='1048578' mask='1' exp='0' />
										<command class_type='delay' title='Delay' exp='1' type='2' />
										<command class_type='call' title='Call Macro' macro='TrainDetected' />
										<command class_type='delay' title='Delay' exp='1' type='2' />
										<command class_type='output' title='Train Detected' mode='1' port='1048578' mask='1' exp='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='Trip = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Scheduled Train&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' textarea='36,-20,36,-20' component='lcd_eb005' macro='PrintString' >
											<argument exp='STR1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='300 seconds = 5min' textarea='12,0,12,0' />
								<command class_type='comment' title='' comment='Original 10ms' textarea='12,0,12,0' />
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-8.03552' y='15.7841' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTB.3' />
					<value target='Pin_Data_1' data='$PORTB.2' />
					<value target='Pin_Data_2' data='$PORTB.1' />
					<value target='Pin_Data_3' data='$PORTC.5' />
					<value target='Pin_RS' data='$PORTB.5' />
					<value target='Pin_E' data='$PORTB.4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip2' x='-60.2666' y='25.685' z='0' xsz='2.25096' ysz='1.5519' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.0' />
					<value target='polarity' data='000' />
					<value target='on_color' data='255' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl1' x='-9.18349' y='46.7784' z='7.4' xsz='1.06383' ysz='1.06383' zsz='1.97125' xang='-18.6367' yang='17.4' zang='1.22866' xquat='-0.161648' yquat='0.14754' zquat='0.0349494' wquat='0.975131' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' x='62.5625' y='65.1454' z='0' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='ADKEY1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='91.8349' y='64.8584' z='0' xsz='8.77244' ysz='6.2781' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A0 - A7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='73.7549' y='-15.7841' z='0' xsz='8' ysz='5.70413' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A0 - Play Mode' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label4' x='70.2667' y='-7.6051' z='0' xsz='8' ysz='4.84318' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A1 - Loop All' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label5' x='68.7873' y='0.573929' z='0' xsz='8' ysz='5.70413' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A2 - Pre/Vol' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label6' x='73.666' y='8.75297' z='0' xsz='8' ysz='6.56508' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A3 - New/Vol +' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label7' x='73.9086' y='17.219' z='0' xsz='8' ysz='5.70413' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A4 - Segment 4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label8' x='74.1956' y='25.398' z='0' xsz='8' ysz='5.99111' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A5 - Segment 3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label9' x='73.9086' y='34.0076' z='0' xsz='8' ysz='5.99111' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A6 - Segment 2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label10' x='73.9086' y='42.6171' z='0' xsz='8' ysz='5.41714' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777120' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A7 - Segment 1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='63177601-e8e2-4330-89d3-a4c5a7e228f5' vmin='1' vmaj='1' codename='led_array_pcb1' x='42.7606' y='13.3685' z='6.81464' xsz='1.18883' ysz='1.18883' zsz='1.18883' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='count' data='8' />
					<value target='polarity' data='000' />
					<value target='port' data='000' />
					<value target='pin0' data='$PORTA.0' />
					<value target='pin1' data='$PORTA.1' />
					<value target='pin2' data='$PORTA.2' />
					<value target='pin3' data='$PORTA.3' />
					<value target='pin4' data='$PORTA.4' />
					<value target='pin5' data='$PORTA.5' />
					<value target='pin6' data='$PORTA.6' />
					<value target='pin7' data='$PORTA.7' />
					<value target='full_port' data='$PORTA' />
					<value target='align' data='001' />
					<value target='spacing' data='7.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='000' />
					<value target='color_led0' data='65280' />
					<value target='label_color' data='16777215' />
					<value target='bitmask' data='255' />
					<value target='inv_bitmask' data='-256' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip1' x='-58.3704' y='8.6095' z='0' xsz='2.25096' ysz='1.73586' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.1' />
					<value target='polarity' data='001' />
					<value target='on_color' data='2408448' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label11' x='-93.5568' y='25.6851' z='0' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Train Detected' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='3' vmaj='1' codename='RS232' x='-1.14794' y='-24.9676' z='4.33' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='TX' data='$PORTC.6' />
					<value target='RX' data='$PORTC.7' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='RS232' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='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='0' >
		<background rgb='11842740' img='' style='0' />
		<table rgb='9868950' img='' style='0' size='28' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='1331' flags='0' />
		<view type='0' name='SendBytes' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TrainDetected' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Timer2ISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='INTOISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Train' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
