<root>
<document scada='0' schema='102' license='1,astro123,JBXPDZ' title='' description='' fcversion='524800' target='PIC.18F.18F26K22' >
	<config data='!0,f200!10,ffff!20,ff00!30,bf!40,ffff!50,ffff!60,ffff%8,2%c,1%d,1%e,1%f,1%10,1%11,3%13,3%18,3%1a,f%28,1%29,1%2a,1%2b,1%2c,1%2d,1%2f,1%30,1%32,1%36,0%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='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='9328aa3e-3c18-4340-833c-d665120c13a1' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' 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='Direction_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Selection' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Delay_03' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Delay_02' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Delay_01' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Direction_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Stepper_01' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='STEPPER 2 PINS
RB2-RB3' textarea='76,-5,76,-5' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='switch' title='STEPPER 2' textshow='0' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Selection' >
							<case >
								<flowline />
							</case>
							<case exp='32' >
								<flowline >
									<command class_type='call' title='INC' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema81' macro='IncrementStep' />
									<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='Delay_03' type='1' />
								</flowline>
							</case>
							<case exp='64' >
								<flowline >
									<command class_type='call' title='DEC' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema81' macro='DecrementStep' />
									<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='Delay_03' type='1' />
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment=' Switch Settings
 Driver MSD880
 Driver MA860H
 11101110' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='comment' title='' comment='SWITCHES
PINS 5-7' textarea='36,-6,36,-6' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='ENA STP1' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema8' macro='EnableMotor' />
						<command class_type='call' title='ENA STP2' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema81' macro='EnableMotor' />
						<command class_type='calculation' title='Temp delays for this skecth' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Delay_01 = 20' />
							<exp exp='Delay_02 = 10' />
							<exp exp='Delay_03 = 5' />
							<exp exp='' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='2' port='1048577' mask='112' exp='Selection' />
								<command class_type='switch' title='' textshow='0' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Selection' >
									<case >
										<flowline >
											<command class_type='call' title='TRACK' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema8' macro='DecrementStep' />
											<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='Delay_01' type='1' />
										</flowline>
									</case>
									<case exp='16' >
										<flowline >
											<command class_type='call' title='REV' textshow='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='stepper_nema8' macro='IncrementStep' />
											<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='Delay_02' type='1' />
										</flowline>
									</case>
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Stepper_01' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='23f522d8-3986-4482-a2dd-eac5e407c0d6' vmin='0' vmaj='2' codename='stepper_nema8' x='10.3442' y='3.8429' z='22.5' xsz='1.88679' ysz='1.66667' 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='stepper_base::Driver' data='001' />
					<value target='stepper_base::StepPin' data='$PORTB.0' />
					<value target='stepper_base::DirectionPin' data='$PORTB.1' />
					<value target='stepper_base::EnablePin' data='$PORTA.2' />
					<value target='stepper_base::EnableState' data='000' />
					<value target='stepper_base::Coil_1' data='$PORTB.0' />
					<value target='stepper_base::Coil_2' data='$PORTB.0' />
					<value target='stepper_base::Coil_3' data='$PORTB.1' />
					<value target='stepper_base::Coil_4' data='$PORTB.1' />
					<value target='stepper_base::Winding_Type' data='000' />
					<value target='stepper_base::Step_Type' data='000' />
					<value target='stepper_base::Steps_Per_Rev' data='200' />
					<value target='stepper_base::Waveforms' data='1' />
					<value target='stepper_base::coils_enable' data='0' />
					<value target='arrow_enable' data='1' />
					<value target='target_object' data='0' />
					<value target='stepper_base::gear_ratio' data='1.000000' />
					<value target='stepper_base::x_pitch' data='0.000000' />
					<value target='stepper_base::y_pitch' data='0.000000' />
					<value target='stepper_base::z_pitch' data='0.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl2' x='-33.2804' y='-76.08' z='-6.175' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.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='23f522d8-3986-4482-a2dd-eac5e407c0d6' vmin='0' vmaj='2' codename='stepper_nema81' x='10.0328' y='-81.9137' z='22.5' xsz='1.88679' ysz='1.66667' 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='stepper_base::Driver' data='001' />
					<value target='stepper_base::StepPin' data='$PORTB.2' />
					<value target='stepper_base::DirectionPin' data='$PORTB.3' />
					<value target='stepper_base::EnablePin' data='$PORTA.2' />
					<value target='stepper_base::EnableState' data='000' />
					<value target='stepper_base::Coil_1' data='$PORTB.2' />
					<value target='stepper_base::Coil_2' data='$PORTB.2' />
					<value target='stepper_base::Coil_3' data='$PORTB.3' />
					<value target='stepper_base::Coil_4' data='$PORTB.3' />
					<value target='stepper_base::Winding_Type' data='000' />
					<value target='stepper_base::Step_Type' data='000' />
					<value target='stepper_base::Steps_Per_Rev' data='200' />
					<value target='stepper_base::Waveforms' data='1' />
					<value target='stepper_base::coils_enable' data='0' />
					<value target='arrow_enable' data='1' />
					<value target='target_object' data='0' />
					<value target='stepper_base::gear_ratio' data='1.000000' />
					<value target='stepper_base::x_pitch' data='0.000000' />
					<value target='stepper_base::y_pitch' data='0.000000' />
					<value target='stepper_base::z_pitch' data='0.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl3' x='60.8998' y='-76.8099' z='-6.175' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.5' />
					<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='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl4' x='-34.3565' y='0' z='-6.175' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.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='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='-33.0098' y='-55.4841' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='For' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='-34.5685' y='23.86' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Rev' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label4' x='60.7689' y='-58.4807' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Rev' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label6' x='-34.2228' y='35.5731' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PIN 5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label7' x='-34.0187' y='-41.2871' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PIN 7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label8' x='60.7535' y='-43.9244' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PIN 6' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label9' x='11.6797' y='42.5745' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PIN 1 PIN 2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label10' x='10.7535' y='-48.226' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PIN 3 PIN 4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='16744448' img='' style='0' />
		<camera xe='25.3908' ye='-31.2989' ze='265.601' xt='25.3908' yt='-31.2989' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='204' perspective='1' >
		<background rgb='8388608' img='' style='0' />
		<table rgb='15793151' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAbAQAAFgDAAA' zoom='75' scrollx='0' scrolly='268' flags='0' />
		<view type='0' name='Stepper_01' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAbAQAAFgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
