<root>
<document scada='0' schema='103' license='1,62275680,KMKCXB' title='' description='' fcversion='590593' target='PIC32.32MX.32MX575F512H' >
	<config data='!0,7!20,0!40,0!60,0!80,1!a0,5!c0,1!e0,0!100,1!120,3!140,0!160,0!180,1!1a0,0!1c0,0!1e0,0!200,0!220,0!240,3!260,0!280,ff!2a0,1!2c0,1%0,7%20,0%40,0%60,0%80,1%a0,5%c0,1%e0,0%100,1%120,3%140,0%160,0%180,1%1a0,0%1c0,0%1e0,0%200,0%220,0%240,3%260,0%280,ff%2a0,1%2c0,1' clkspd='80000000' simspd='0' 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='3' />
			<data name='CalculatedCommsDelay' value='3' />
			<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='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='b9240d67-f3ec-40f7-88b1-6ce0ee384104' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<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' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ms' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='m' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='delay' title='Ritardo' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' exp='.m' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Chiamata Macro Componente' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='PiezoSounder1' macro='BuzzerBeep' >
							<argument exp='100' />
							<argument exp='100' />
							<argument exp='1' />
							<argument exp='4000' />
						</command>
						<command class_type='comment' title='' comment='Example A mplab work' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
						<command class_type='native' title='Codice C' disable='1' ccode='C1CONbits.REQOP = 4;
    while(C1CONbits.OPMOD != 4);
    
    
    C1CFGbits.BRP = 15;
    C1CFGbits.PRSEG = 0;
    C1CFGbits.SAM = 0;
    C1CFGbits.SEG1PH = 3;
    C1CFGbits.SEG2PH = 0;
    C1CFGbits.SEG2PHTS = 0;
    C1CFGbits.SJW = 0;
    C1CFGbits.WAKFIL = 0;
    
    C1CONbits.ON = 1;
    
    C1CONbits.REQOP = 0;
    while(C1CONbits.OPMOD != 0);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
						<command class_type='comment' title='' comment='Example B mplab work' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
						<command class_type='native' title='Codice C' disable='1' ccode='unsigned int CanFifoMessageBuffers[40];



//Set in config mod
    C1CONbits.REQOP = 4;
    //Read status can
    while(C1CONbits.OPMOD != 4);
    
    
    C1CFG = 0x0000180F;
    
/* Configure FIFO0 */
C1FIFOCON0bits.FSIZE = 1;
C1FIFOCON0SET = 0x80;
/* Set the TXEN bit *//* Configure FIFO1 */
C1FIFOCON1bits.FSIZE = 1;
C1FIFOCON1SET = 0x80;
/* Set the TXEN bit *//* Configure FIFO2 */
C1FIFOCON2bits.FSIZE = 2;
C1FIFOCON2CLR = 0x80;
/* Clear the TXEN bit *//* Configure FIFO3 */
C1FIFOCON3bits.FSIZE = 2;
C1FIFOCON3CLR = 0x80;
/* Clear the TXEN bit */
/* The CAN module can now be placed into normal mode if no further */
/* configuration is required. */





    
    C1CONbits.ON = 1;
    
    C1CONbits.REQOP = 0;
    while(C1CONbits.OPMOD != 0);' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' language='C' />
						<command class_type='call' title='Chiamata Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' macro='ms' >
							<argument exp='500' />
						</command>
						<command class_type='comment' title='' comment='Not work the microchip is block' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' />
						<command class_type='call' title='Chiamata Macro Componente' disable='1' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='can1' macro='Initialise' />
						<command class_type='call' title='Chiamata Macro Componente' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='PiezoSounder1' macro='BuzzerBeep' >
							<argument exp='100' />
							<argument exp='100' />
							<argument exp='1' />
							<argument exp='4000' />
						</command>
						<command class_type='loop' title='Ciclo' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='0' cmdgradient='4' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Chiamata Macro Componente' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='led_5mm1' macro='TurnOn' />
								<command class_type='call' title='Chiamata Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' macro='ms' >
									<argument exp='100' />
								</command>
								<command class_type='call' title='Chiamata Macro Componente' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' component='led_5mm1' macro='TurnOff' />
								<command class_type='call' title='Chiamata Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='1' macro='ms' >
									<argument exp='100' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='70ec3aee-f273-4b0e-8ee6-e2b3a8b693af' vmin='0' vmaj='1' codename='PiezoSounder1' x='-20' y='-10' z='0' xsz='25' ysz='25' zsz='25' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTD.4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d92e8259-f3a8-4176-a8c4-fe7ca42b2c3f' vmin='1' vmaj='1' codename='led_5mm1' x='-96.3625' y='-14.7635' z='0' xsz='6.00459' ysz='6.00459' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.15' />
					<value target='polarity' data='001' />
					<value target='on_color' data='10551200' />
					<value target='length' data='4.000000' />
					<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='da332928-6342-4c2c-afc7-eaf33917d33e' vmin='10' vmaj='2' codename='can1' x='40' y='-10' z='0' xsz='25' ysz='25' zsz='25' 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' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL_CAN' data='001' />
					<value target='EXT_OSC' data='0' />
					<value target='BUS_RATE' data='003' />
					<value target='SJW' data='000' />
					<value target='SAMPLE' data='001' />
					<value target='cal_can::CCFG' data='0' />
					<value target='EXID' data='000' />
					<value target='OSM' data='000' />
					<value target='REF' data='0' />
					<value target='OSC' data='80000000' />
					<value target='BAUD1' data='0' />
					<value target='BAUD2' data='209' />
					<value target='BAUD3' data='3' />
					<value target='cal_spi::CHANNEL' data='000' />
					<value target='cal_spi::MOSI' data='$PORTE.5' />
					<value target='cal_spi::MOSIPins' data='000' />
					<value target='cal_spi::MISO' data='$PORTE.6' />
					<value target='cal_spi::MISOPins' data='086' />
					<value target='cal_spi::CLK' data='$PORTE.7' />
					<value target='cal_spi::CLKPins' data='001' />
					<value target='cal_spi::SS' data='$PORTC.2' />
					<value target='cal_spi::PR_SCALE' data='016' />
					<value target='cal_spi::SMP' data='001' />
					<value target='CONFIG_DELAY' data='000' />
					<value target='TXPin' data='$PORTF.1' />
					<value target='TXRemap' data='001' />
					<value target='RXPin' data='$PORTF.0' />
					<value target='RXRemap' data='001' />
					<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='SimComms' data='0' />
					<value target='cal_spi::ScopeTraces' data='1' />
					<value target='cal_spi::ConsoleData' data='1' />
					<value target='cal_spi::Injector' data='000' />
					<value target='cal_spi1::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='0' ye='0' ze='2105.86' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='1595' dy='275' zoom='91.6467' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='781.66' 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---------------------wUAAAAYAAAApQQAAAsCAAA' zoom='75' scrollx='0' scrolly='432' flags='0' />
	</layout>
</document>
</root>
