<root>
<document scada='0' schema='102' license='1,viktor_aust,WUXBW2' title='' description='' fcversion='524800' target='PIC.16F.16F1937' >
	<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' 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='coin_state' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ReadState' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LoopCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimeOut' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Status' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Servo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PortbCaptureValue' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Timer2Enabled' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PortBCapturedValue1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PortA4Triggered' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Coin' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CaptureCount' 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='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OUT' type='u8' description='' isconst='0' isinit='1' usrinit='125' setinit='125' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Timer2Tick' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Coin_state' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='14' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Coin=&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Info' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='The summary is the Port B1 incoming signal is Logic 0 .
Step 1. With B1 is High Logic 1 (From a 10K resistor to VCC)
Step 2 Display text on the LCD
Step 3 ----- Trying to trigger B1
Step 4 -- Trigger on B1 from Logic 1 to Logic 0.
Step 5 - When B1 goes Low I would then run code to send a 120ms pulse to a Relay to control the Solenoid on Port B0

My question is how can I run the Solenoid code with out a trigger B1.
I can past a drawing if that helps.

The trigger from the outside hardware coming into B1 is only about 5ms on/off. This is what I could detect while The LCD is running text to Trigger and run the solenoid code.

My research indicates B1 is a IOC port possible to make a trigger just not sure how to detect ? Maybe fellow members of flowcode 6 have Ideas.
I tried the Intercept options but nothing worked. I did notice I can see the Port B1 change if I don&apos;t right to much text on the LCD.

Hello Martin it was nice to see your text about Flowcode 6 is not supported sad times. I would of thought Matrix would still offer help on all Flowcode not the top of the line Flowcode 10.
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Servo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment=' servo to go from 0-90degree.

' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Coin_detected' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Coin Detected' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' ccode='// Call Component Macro
// Call Component Macro: lcd_4x20::PrintString(&quot;25 cents to play&quot;)
FCD_0c241_lcd_4x20__PrintString(&quot;25 cents to play&quot;, 17);
' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Coin = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='6' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Thank you&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='4' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Coin Detected&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='5' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;45 Game Balls&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='6' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;On the way&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='comment' title='' comment='Ball 1' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='4' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;1 of 15 Balls&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='6' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Dispenced&quot;' />
						</command>
						<command class_type='comment' title='' comment='Ball Deposit' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='comment' title='' comment='Ball 2' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='4' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;2nd 15 balls &quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='6' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Dispenced&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='4' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;3rd 15 balls &quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='3' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Enjoy the Fun&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='2' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Coin = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PortBChangeDetected' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Here only if portB has been tiggered' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='1' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PortA4Triggered = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Status = 1' />
									<exp exp='LoopCount = 0' />
									<exp exp='Timer2Enabled = 1' />
									<exp exp='TimeOut = 0' />
									<exp exp='Seconds = 0' />
									<exp exp='CaptureCount = CaptureCount + 1' />
									<exp exp='PortA4Triggered = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='CaptureCount = 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Status = 2' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Init' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='RB0 is for servo' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0xf0;
//iocbp=0Xff;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Timer2Tick = 0' />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='8' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Timer2Tick = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Servo_Controller1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Servo_Controller1' macro='EnableServo' >
							<argument exp='Timer2Tick' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT0' call='Interrupt' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Start' />
					</flowline>
				</macro>
				<macro >
					<flowline name='GoldBall' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='interrupt' title='Interrupt is connected to B0' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='Interrupt' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='1' />
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Win a GOLD Ball&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='1' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;You receive $1.00&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadPushBtn' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='PortA  Trigger macro only to activate when the button presse
Btn -&gt; when pressed is to activate the macro ' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Coin_not_inserted' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='No Coin Deposit
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' ccode='// Call Component Macro
// Call Component Macro: lcd_4x20::PrintString(&quot;25 cents to play&quot;)
FCD_0c241_lcd_4x20__PrintString(&quot;25 cents to play&quot;, 17);
' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;25 cents to play&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='2' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;You will receive&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='4' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;45 Game Balls&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;*Deposit 25 cents*&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' ccode='// Call Component Macro
// Call Component Macro: lcd_4x20::PrintString(&quot;25 cents to play&quot;)
FCD_0c241_lcd_4x20__PrintString(&quot;25 cents to play&quot;, 17);
' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Win a GOLD Ball&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='1' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;You receive $1.00&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' ccode='// Call Component Macro
// Call Component Macro: lcd_4x20::PrintString(&quot;25 cents to play&quot;)
FCD_0c241_lcd_4x20__PrintString(&quot;25 cents to play&quot;, 17);
' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='Coin' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Interrupt' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='terrupt on INT0 enabled to call Macro PortA4Triggered, however you don&apos;t appear to have anything connected to that pin (Port B0). 
Perhaps reassign your button to Port B0, and you may want to rename the Macro from PortA4Triggered to PortB0Triggered?' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='native' title='C Code' textarea='56,29,56,29' ccode='tmro=255:' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seconds = 0' />
							<exp exp='PortA4Triggered = 1' />
							<exp exp='Timer2Tick = 155' />
							<exp exp='Coin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadSlot' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='when no coin detected: Coin=1.
 When the button is pressed Coin=0.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='CoinSlot' macro='ReadState' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='19' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='ReadState' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='ReadState &gt; 0' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Coin = 1' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='PortBChangeDetected' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='1' />
								<option value='0' />
								<option value='-1' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='64' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Init' />
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Version' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='RB1 = coin state indication
' textarea='36,21,36,21' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='call' title='Call Component Macro' textarea='52,21,52,21' cmdcolor='1879295' cmdcolor_sec='5751039' component='CoinSlot' macro='ReadState' >
									<return exp='coin_state' />
								</command>
								<command class_type='decision' title='active= high' textarea='52,21,52,21' cmdcolor='12615680' cmdcolor_sec='15376912' exp='coin_state = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='LedCoinState' macro='TurnOn' />
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Coin_detected' />
										<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='LedCoinState' macro='TurnOff' />
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Coin_not_inserted' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' disable='1' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='Coin = 1' >
							<flowline />
						</command>
						<command class_type='loop' title='Loop' disable='1' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='Coin = 0' >
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Timer2Int' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='8' exp='1' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Timer2Tick &lt; 30' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Timer2Tick = Timer2Tick + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Timer2Tick &gt; 20) &amp;&amp; (Status &lt;&gt; 2)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TimeOut = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Timer2Tick = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Seconds &lt; 255' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Seconds &gt; 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TimeOut = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Seconds = Seconds + 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='8' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Version' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Clear' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='Cursor' >
							<argument exp='5' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;Version 5B&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='SwPush' x='229.251' y='241.917' z='-584.946' xsz='6.38298' ysz='5.31915' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.4' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</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='-93.1479' y='431.772' z='-582.618' xsz='8.97436' ysz='8.97436' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.5' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<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='label1' x='-1.23964' y='-156.972' z='-578.766' xsz='8' ysz='8' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='-18.0123' y='-137.515' z='-578.764' xsz='8' ysz='8' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='-81.8498' y='155.839' z='-578.762' xsz='20.1408' ysz='30' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='125' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label4' x='-128.907' y='157.627' z='-578.76' xsz='20.1408' ysz='20' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='250' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a2b40602-5421-4e2f-ba82-96db1be51d69' vmin='1' vmaj='1' codename='lcd_4x20' x='100.874' y='-152.053' z='-576.11' xsz='5' ysz='5.23416' zsz='1.47064' 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='Pin_Data_0' data='$PORTC.7' />
					<value target='Pin_Data_1' data='$PORTB.2' />
					<value target='Pin_Data_2' data='$PORTB.3' />
					<value target='Pin_Data_3' data='$PORTB.4' />
					<value target='Pin_RS' data='$PORTB.5' />
					<value target='Pin_E' data='$PORTB.6' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='LedCoinState' x='97.8229' y='32.0756' z='-582.618' xsz='8.97436' ysz='8.97436' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.1' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<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='9202a62e-0a42-4780-adce-16b701e5ec53' vmin='0' vmaj='2' codename='Servo_Controller1' x='94.882' y='623.909' z='-569.681' xsz='4.08747' ysz='3.09233' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='Channel_Count' data='001' />
					<value target='pin0' data='$PORTD.0' />
					<value target='pin1' data='$PORTD.0' />
					<value target='pin2' data='$PORTD.0' />
					<value target='pin3' data='$PORTD.0' />
					<value target='pin4' data='$PORTD.0' />
					<value target='pin5' data='$PORTD.0' />
					<value target='pin6' data='$PORTD.0' />
					<value target='pin7' data='$PORTD.0' />
					<value target='Peripherals' data='PWM0 + PWM1 + Timer1' />
					<value target='TrimMode' data='001' />
					<value target='trim0' data='000' />
					<value target='trim1' data='0' />
					<value target='trim2' data='0' />
					<value target='trim3' data='0' />
					<value target='trim4' data='0' />
					<value target='trim5' data='0' />
					<value target='trim6' data='0' />
					<value target='trim7' data='0' />
					<value target='min_pulse_width' data='1280' />
					<value target='max_pulse_width' data='2500' />
					<value target='CCPLo' data='0' />
					<value target='CCPHi' data='48' />
					<value target='Servo_Clock_Count_25' data='122' />
					<value target='Servo_Clock_Count_1280' data='6291' />
					<value target='Servo_Clock_Count_2500' data='12288' />
					<value target='Servo_Period_Multiplier' data='23' />
					<value target='IntRange' data='0 - 5887' />
					<value target='Divider' data='0' />
					<value target='RoundUp' data='0' />
					<value target='IntScaler' data='0.091508' />
					<value target='sim0' data='standard_servo1' />
					<value target='sim1' data='' />
					<value target='sim2' data='' />
					<value target='sim3' data='' />
					<value target='sim4' data='' />
					<value target='sim5' data='' />
					<value target='sim6' data='' />
					<value target='sim7' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='cc031290-2255-4e8d-b382-1998c8dda95a' vmin='1' vmaj='1' codename='standard_servo1' x='196.218' y='407.292' z='-583.041' xsz='2.84951' ysz='3.68421' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='target_object' data='Servo_Controller1' />
					<value target='ReverseOutput' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip3' x='-102.012' y='230.955' z='-582.614' xsz='7.69231' ysz='7.69231' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.3' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<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='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip4' x='-94.5594' y='325.956' z='-582.614' xsz='7.69231' ysz='8.97436' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.6' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<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='7a287a58-cba5-42ad-b8a5-58694d7f678a' vmin='2' vmaj='1' codename='CoinSlot' x='201.684' y='38.6988' z='-577.013' xsz='12.069' ysz='7.40741' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.6' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='38.7413' y='794' z='0' xsz='3.90949' ysz='5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='AdobeKaitiStd-Regular' />
					<value target='Text' data='Pick16f1937 40pin' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='34.1292' y='754' z='0.25' xsz='3.90949' ysz='5' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='AdobeKaitiStd-Regular' />
					<value target='Text' data='John Leith' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='94.6385' y='99' z='0.25' xsz='2.837' ysz='3.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='AdobeKaitiStd-Regular' />
					<value target='Text' data='Coin state' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label4' x='63.4475' y='-281' z='0.25' xsz='2.837' ysz='3.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='AdobeKaitiStd-Regular' />
					<value target='Text' data='LED pins: B2-B6, C7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label5' x='43.4475' y='469' z='0.25' xsz='2.837' ysz='3.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='AdobeKaitiStd-Regular' />
					<value target='Text' data='B0 = interrupt pin' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label6' x='22.2565' y='509' z='0.25' xsz='2.837' ysz='3.75' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='8388608' />
					<value target='Background' data='-1' />
					<value target='Font' data='Times New Roman' />
					<value target='Text' data='D0= Servo controller' />
				</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='65.9342' ye='-27.9799' ze='469.52' xt='65.9342' yt='-27.9799' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='1' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7884836' img='' style='0' size='25' />
		<camera xe='-0.708839' ye='94.4004' ze='878.036' xt='-0.430467' yt='6.59519' zt='4.83712' xquat='0.0500886' yquat='7.93802e-05' zquat='-0.00158328' wquat='0.998744' />
		<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='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='78' scrolly='237' flags='0' />
		<view type='0' name='ReadSlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='212' flags='0' />
		<view type='0' name='ReadPushBtn' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Interrupt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GoldBall' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Coin_not_inserted' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='648' flags='0' />
		<view type='0' name='Coin_detected' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='2305' flags='0' />
		<view type='0' name='Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Coin_state' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Info' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Servo' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Version' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PortBChangeDetected' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Timer2Int' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACQMAADYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
