<root>
<document schema='101' license='1,Chris Mellors,9B30G6' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,cfe2!10,deff%0,2%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='9' />
			<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='2' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Batt_Ready' />
		<watch expr='CAN_I' />
		<watch expr='CAN_ID' />
		<watch expr='CanI1' />
		<watch expr='CanI2' />
		<watch expr='CanV1' />
		<watch expr='CanV2' />
		<watch expr='Can_V' />
		<watch expr='Count' />
		<watch expr='D0_ID1' />
		<watch expr='D1_ID2' />
		<watch expr='D1_ID3' />
		<watch expr='D2_ID2' />
		<watch expr='D3_ID2' />
		<watch expr='D4_ID2' />
		<watch expr='D6' />
		<watch expr='D7' />
		<watch expr='DATA1_GET' />
		<watch expr='DATA2_GET' />
		<watch expr='DATA3_GET' />
		<watch expr='Digital_IN' />
		<watch expr='Enable' />
		<watch expr='Flag' />
		<watch expr='FlagA' />
		<watch expr='FlagB' />
		<watch expr='Flash' />
		<watch expr='GO' />
		<watch expr='IMax_serial' />
		<watch expr='Iout_Max' />
		<watch expr='Measured_I' />
		<watch expr='Measured_V' />
		<watch expr='NumSTR' />
		<watch expr='Request_I' />
		<watch expr='Request_V' />
		<watch expr='SET_ID1' />
		<watch expr='SET_ID2' />
		<watch expr='SET_ID3' />
		<watch expr='Vmax_serial' />
		<watch expr='Vout_Max' />
		<watch expr='message' />
		<watch expr='ID_FLG1' />
		<watch expr='ID_FLG2' />
		<watch expr='ID_FLG3' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='dfc31ea5-ac7b-45aa-8cfb-0b1630714f35' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='D7' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D2_ID2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ID_FLG2' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Return232' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D6' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ID_FLG1' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CAN_ID' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CAN_I' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NumSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D3_ID2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Iout_Max' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Vout_Max' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Request_V' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;MEAS:VOLT?&quot;' setinit='&quot;MEAS:VOLT?&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D4_ID2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='FlagB' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagA' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Batt_Ready' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IMax_serial' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DATA1_GET' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Enable' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CAN_fLag' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CanV2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DATA2_GET' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CanV1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Request_I' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;MEAS:CURR?&quot;' setinit='&quot;MEAS:CURR?&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Measured_V' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DATA3_GET' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Can_V' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CanI2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GO' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Vmax_serial' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flash' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CanI1' type='u8' description='0' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D0_ID1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SET_ID3' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D1_ID3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digital_IN' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SET_ID2' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='D1_ID2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SET_ID1' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Measured_I' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</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='message' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ID_FLG3' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Request_INfo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='65535' cmdcolor_sec='6619135' enable='0' name='TMR0' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='SendString' >
							<argument exp='Request_V' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='ReceiveString' >
							<return exp='Measured_V' />
							<argument exp='2' />
							<argument exp='20' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='SendString' >
							<argument exp='Request_I' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='ReceiveString' >
							<return exp='Measured_I' />
							<argument exp='2' />
							<argument exp='20' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
							<exp exp='Can_V = (StringToInt$ (Measured_V)) * 10' />
							<exp exp='CAN_I = (StringToInt$ (Measured_I)) * 10' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
							<exp exp='CanV1 = Can_V' />
							<exp exp='CanV2 = Can_V / 256' />
							<exp exp='CanI1 = CAN_I' />
							<exp exp='CanI2 = CAN_I / 256' />
							<exp exp='Enable = Batt_Ready &amp;&amp; Digital_IN' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='SetTxData' >
							<argument exp='0' />
							<argument exp='8' />
							<argument exp='Enable' />
							<argument exp='0' />
							<argument exp='CanV1' />
							<argument exp='CanV2' />
							<argument exp='CanI1' />
							<argument exp='CanI2' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='SendBuffer' >
							<argument exp='0' />
						</command>
						<command class_type='interrupt' title='Interrupt' disable='1' cmdcolor='65535' cmdcolor_sec='6619135' enable='1' name='TMR0' call='can_Check' >
							<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='0' />
								<option value='7' />
								<option value='-1' />
							</settings>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='can_Check' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='CheckRx' >
							<return exp='message' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='message = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
									<exp exp='GO = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CAN_stuff' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='65535' cmdcolor_sec='6619135' enable='0' name='TMR0' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
							<exp exp='Count = Count + 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxIDSimple' >
							<return exp='CAN_ID' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='CAN_ID = SET_ID1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
									<exp exp='DATA1_GET = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='CAN_ID = SET_ID2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
									<exp exp='DATA2_GET = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='CAN_ID = SET_ID3' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
									<exp exp='DATA3_GET = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
							<exp exp='GO = 0' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='65535' cmdcolor_sec='6619135' enable='1' name='TMR0' call='can_Check' >
							<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='0' />
								<option value='7' />
								<option value='-1' />
							</settings>
						</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='Systems Set up' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='SetTxIDSimple' >
							<argument exp='0' />
							<argument exp='108' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='Initialise' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
							<exp exp='SET_ID1 = 274' />
							<exp exp='SET_ID2 = 280' />
							<exp exp='SET_ID3 = 282' />
							<exp exp='Return232 = 0x0d' />
						</command>
						<command class_type='comment' title='' comment='Set interupt timer and call CAN Check macro' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='interrupt' title='Interrupt' cmdcolor='65535' cmdcolor_sec='6619135' enable='1' name='TMR0' call='can_Check' >
									<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='1' />
										<option value='0' />
										<option value='7' />
										<option value='-1' />
									</settings>
								</command>
								<command class_type='comment' title='' comment='Keep checking but dont do anything until correct message from CAN has been received' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='GO = 1' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='ShowLEDs' >
											<argument exp='1' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='65535' cmdcolor_sec='6619135' macro='CAN_stuff' />
										<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='DIG_IN' macro='ReadState' >
											<return exp='Digital_IN' />
										</command>
										<command class_type='comment' title='' comment='Collecting data from CAN messages' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='DATA1_GET = 1' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='Get correct data, reset data flag and set RS232 send flag' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D0_ID1' />
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='DATA1_GET = 0' />
													<exp exp='ID_FLG1 = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='DATA2_GET = 1' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='Get correct data, reset data flag and set RS232 send flag' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D1_ID2' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D2_ID2' />
													<argument exp='0' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D3_ID2' />
													<argument exp='0' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D4_ID2' />
													<argument exp='0' />
													<argument exp='4' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='DATA2_GET = 0' />
													<exp exp='ID_FLG2 = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='DATA3_GET = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='can1' macro='GetRxData' >
													<return exp='D1_ID3' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='DATA3_GET = 0' />
													<exp exp='ID_FLG3 = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='Do the data manipulation' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='ID_FLG1 = 1 &amp; ID_FLG2 = 1 &amp; ID_FLG3 = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Vout_Max = (D1_ID2 + (D2_ID2 * 256)) / 10' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Iout_Max = ((D4_ID2 * 256) + D3_ID2) / 10' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Batt_Ready = D1_ID3 &amp;&amp; 2' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Vmax_serial = &quot;SOUR:VOLT &quot; + ToString$ (Vout_Max) + &quot;\r&quot;' />
													<exp exp='FlagA = 1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='IMax_serial = &quot;SOUR:CURR &quot; + ToString$ (Iout_Max) + &quot;\r&quot;' />
													<exp exp='FlagB = 1' />
													<exp exp='ID_FLG1 = 0' />
													<exp exp='ID_FLG2 = 0' />
													<exp exp='ID_FLG3 = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='Calculate and Transmit RS 232 message' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
										<command class_type='comment' title='' comment='Send RS232 if can data update' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='FlagA = 1 &amp; FlagB = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='SendString' >
													<argument exp='Vmax_serial' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='RS232' macro='SendString' >
													<argument exp='IMax_serial' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='65535' cmdcolor_sec='6619135' macro='Request_INfo' />
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='FlagA = 0' />
													<exp exp='FlagB = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='Flash led to let you know something is happening' textarea='12,0,12,0' cmdcolor='16777215' cmdcolor_sec='16777215' />
										<command class_type='decision' title='Decision' cmdcolor='65535' cmdcolor_sec='6619135' exp='Flash = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='DIG_OUT' macro='TurnOn' />
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Flash = !Flash' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='65535' cmdcolor_sec='6619135' component='DIG_OUT' macro='TurnOff' />
												<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' >
													<exp exp='Flash = !Flash' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='da332928-6342-4c2c-afc7-eaf33917d33e' vmin='0' vmaj='2' codename='can1' x='-12.9037' y='42.9533' z='0.755' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='0' />
					<value target='EXT_OSC' data='0' />
					<value target='BUS_RATE' data='002' />
					<value target='SAMPLE' data='001' />
					<value target='SJW' data='000' />
					<value target='EXID' data='000' />
					<value target='REF' data='0' />
					<value target='OSC' data='19660800' />
					<value target='BAUD1' data='1' />
					<value target='BAUD2' data='209' />
					<value target='BAUD3' data='3' />
					<value target='SPIChannel' data='1' />
					<value target='TXPin' data='' />
					<value target='RXPin' data='' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='SDO' data='$PORTC.5' />
					<value target='SDI' data='$PORTC.4' />
					<value target='SCK' data='$PORTC.3' />
					<value target='SPI_CS' data='$PORTC.0' />
					<value target='MosiRemap' data='' />
					<value target='MisoRemap' data='' />
					<value target='ClkRemap' data='' />
					<value target='TXB0ID' data='1' />
					<value target='TXB0LEN' data='1' />
					<value target='TXB0DB0' data='1' />
					<value target='TXB0DB1' data='0' />
					<value target='TXB0DB2' data='0' />
					<value target='TXB0DB3' data='0' />
					<value target='TXB0DB4' data='0' />
					<value target='TXB0DB5' data='0' />
					<value target='TXB0DB6' data='0' />
					<value target='TXB0DB7' data='0' />
					<value target='TXB1ID' data='2' />
					<value target='TXB1LEN' data='2' />
					<value target='TXB1DB0' data='2' />
					<value target='TXB1DB1' data='2' />
					<value target='TXB1DB2' data='0' />
					<value target='TXB1DB3' data='0' />
					<value target='TXB1DB4' data='0' />
					<value target='TXB1DB5' data='0' />
					<value target='TXB1DB6' data='0' />
					<value target='TXB1DB7' data='0' />
					<value target='TXB2ID' data='3' />
					<value target='TXB2LEN' data='3' />
					<value target='TXB2DB0' data='3' />
					<value target='TXB2DB1' data='3' />
					<value target='TXB2DB2' data='3' />
					<value target='TXB2DB3' data='0' />
					<value target='TXB2DB4' data='0' />
					<value target='TXB2DB5' data='0' />
					<value target='TXB2DB6' data='0' />
					<value target='TXB2DB7' data='0' />
					<value target='RXB0CFG' data='002' />
					<value target='RXM0' data='1807' />
					<value target='RXF0' data='697' />
					<value target='Filter0' data='0x0209
0x0219
0x0229
0x0239
0x0249
0x0259
0x0269
0x0279
0x0289
0x0299
0x02a9
0x02b9
0x02c9
0x02d9
0x02e9
0x02f9
' />
					<value target='RXF1' data='697' />
					<value target='Filter1' data='0x0209
0x0219
0x0229
0x0239
0x0249
0x0259
0x0269
0x0279
0x0289
0x0299
0x02a9
0x02b9
0x02c9
0x02d9
0x02e9
0x02f9
' />
					<value target='RXB1CFG' data='000' />
					<value target='RXM1' data='1807' />
					<value target='RXF2' data='697' />
					<value target='Filter2' data='0x0209
0x0219
0x0229
0x0239
0x0249
0x0259
0x0269
0x0279
0x0289
0x0299
0x02a9
0x02b9
0x02c9
0x02d9
0x02e9
0x02f9
' />
					<value target='RXF3' data='0' />
					<value target='Filter3' data='0x00
0x10
0x20
0x30
0x40
0x50
0x60
0x70
0x80
0x90
0xa0
0xb0
0xc0
0xd0
0xe0
0xf0
' />
					<value target='RXF4' data='0' />
					<value target='Filter4' data='0x00
0x10
0x20
0x30
0x40
0x50
0x60
0x70
0x80
0x90
0xa0
0xb0
0xc0
0xd0
0xe0
0xf0
' />
					<value target='RXF5' data='0' />
					<value target='Filter5' data='0x00
0x10
0x20
0x30
0x40
0x50
0x60
0x70
0x80
0x90
0xa0
0xb0
0xc0
0xd0
0xe0
0xf0
' />
					<value target='MIAC' data='0' />
					<value target='label' data='CAN Bus' />
					<value target='Injector' data='' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='RS232' x='52.3217' y='42.7765' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='005' />
					<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 class_type='ref' guid='c6c91999-1fe0-414e-b6aa-0a7ddc9a6417' vmin='1' vmaj='1' codename='DIG_IN' x='-97.3962' y='9.72194' z='11.4105' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d68e61bc-0e8c-4e3d-959b-39e2decfb680' vmin='1' vmaj='1' codename='DIG_OUT' x='-90.6792' y='-17.3227' z='0.02' 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='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.1' />
					<value target='polarity' data='001' />
					<value target='on_color' data='65280' />
					<value target='off_color' data='255' />
					<value target='bezel_color' data='1973790' />
					<value target='label_color' data='12632256' />
					<value target='Text' data='Dig. Out' />
					<value target='Font' data='Arial' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='-77.9305' y='10.1768' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Dig. IN' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='15793151' img='' style='0' />
		<camera xe='14.1592' ye='-1.69138' ze='418.466' xt='14.1592' yt='-1.69138' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfAUAAH4DAAA' zoom='75' scrollx='0' scrolly='2439' flags='0' />
		<view type='0' name='Request_INfo' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfAUAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CAN_stuff' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfAUAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='can_Check' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfAUAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
