<root>
<document scada='0' schema='102' license='1,b.sgammato,96AV4J' title='' description='' fcversion='524802' target='PIC16.24H.24HJ128GP202' >
	<config data='!0,cf!10,cf!20,6!30,82!40,66!50,5f!60,f5!70,c3%0,1%1,7%6,3%10,1%11,7%16,3%20,0%21,3%30,2%37,1%40,2%42,1%45,1%46,1%50,f%54,1%56,1%57,0%60,5%64,1%65,7%70,3%75,0%76,1%77,1' clkspd='20000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Ana_0_STR' />
		<watch expr='Ana_1_STR' />
		<watch expr='STR_Tot' />
	</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='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<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='e3d5bf25-4d6e-4ddb-9e7f-f223decc9f53' 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='Num_RX_Byte' type='s16' description='Setting number bytes of rx' isconst='1' isinit='1' usrinit='7' setinit='7' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Analog_In' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</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='Retrasm' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='STR_Out' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='13' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='Codice C' disable='1' ccode='/*
  Set Frequenzy Micro 80Mhz
*/
PLLFBD = 0x28; //PLL FEEDBACK DIVISOR REGISTER
CLKDIVbits.PLLPOST = 0x00; // PLL VCO Output Divider' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='delay' title='Ritardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='10' type='1' />
						<command class_type='calculation' title='Calcolo' ccode='// Nome: Calcolo, Type: Calcolo:
// Retrasm = 2
FCV_RETRASM = 2;
' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Retrasm = 0' />
						</command>
						<command class_type='output' title='CSN' ccode='// Nome: CSN, Type: Uscita: 1 -&gt; B6
SET_PORT_PIN(B,6,(1));
' cmdcolor='12583167' cmdcolor_sec='13879979' mode='1' port='1048577' mask='64' exp='1' />
						<command class_type='output' title='CE' ccode='// Nome: CE, Type: Uscita: 0 -&gt; B5
SET_PORT_PIN(B,5,(0));' cmdcolor='12583167' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='0' />
						<command class_type='output' title='Retrasmit_Data' cmdcolor='12583167' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='0' />
						<command class_type='call' title='Chiamata Macro Componente' cmdcolor='1879295' cmdcolor_sec='5751039' component='nRF24L01A1' macro='Init_nRF24L01' >
							<argument exp='76' />
							<argument exp='0x07' />
						</command>
						<command class_type='call' title='Chiamata Macro Componente' cmdcolor='1879295' cmdcolor_sec='5751039' component='nRF24L01A1' macro='nRF24L01_TX_Mode' >
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Ciclo' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Analog_0' ccode='// Nome: Chiamata Macro Componente, Type: Chiamata Macro Componente: Analog_in0=TC_0::GetString()
FCD_03521_TC_0__GetString(FCV_ANALOG_IN0,5 );
' cmdcolor='1879295' cmdcolor_sec='5751039' component='TC_0' macro='GetString' >
									<return exp='Analog_In' />
								</command>
								<command class_type='calculation' title='Calcolo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='STR_Out = &quot;@0&quot; + Analog_in' />
								</command>
								<command class_type='call' title='Send Data TC0' cmdcolor='12583167' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' component='nRF24L01A1' macro='Data_TX' >
									<return exp='Retrasm' />
									<argument exp='Num_RX_Byte' />
									<argument exp='STR_Out' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Analog_1' cmdcolor='1879295' cmdcolor_sec='5751039' component='TC_1' macro='GetString' >
									<return exp='Analog_In' />
								</command>
								<command class_type='calculation' title='Calcolo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='STR_Out = &quot;@1&quot; + Analog_in' />
								</command>
								<command class_type='call' title='Send Data TC1' cmdcolor='5767040' cmdcolor_sec='12320740' cmdAuto_color='1' cmdcustom_color='1' component='nRF24L01A1' macro='Data_TX' >
									<argument exp='Num_RX_Byte' />
									<argument exp='STR_Out' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Analog_2' cmdcolor='1879295' cmdcolor_sec='5751039' component='TC_2' macro='GetString' >
									<return exp='Analog_In' />
								</command>
								<command class_type='calculation' title='Calcolo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='STR_Out = &quot;@2&quot; + Analog_in' />
								</command>
								<command class_type='call' title='Send Data TC2' cmdcolor='255' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='nRF24L01A1' macro='Data_TX' >
									<argument exp='Num_RX_Byte' />
									<argument exp='STR_Out' />
									<argument exp='0' />
								</command>
								<command class_type='decision' title='Decisione' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Retrasm &gt;= 3' swap='0' >
									<flowline >
										<command class_type='call' title='Chiamata Macro Componente' cmdcolor='1879295' cmdcolor_sec='5751039' component='Retrasmit_data' macro='TurnOn' />
									</flowline>
									<flowline >
										<command class_type='call' title='Chiamata Macro Componente' cmdcolor='1879295' cmdcolor_sec='5751039' component='Retrasmit_data' macro='TurnOff' />
									</flowline>
								</command>
								<command class_type='delay' title='Ritardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='10' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='TC_0' x='-4937.57' y='3732.43' z='542.453' xsz='1110' ysz='1110' zsz='1103.46' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='330' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='TC_1' x='-4917.57' y='2532.43' z='142.713' xsz='1130' ysz='1130' zsz='1124' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='1' />
					<value target='vrefvol' data='330' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='TC_2' x='-4948.17' y='1272.43' z='542.453' xsz='1110' ysz='1110' zsz='1103.46' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='2' />
					<value target='vrefvol' data='330' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='-4933.74' y='4261' z='0' xsz='30.316' ysz='28.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='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='TC_0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='-4926.62' y='3041' z='691.329' xsz='30.316' ysz='28.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='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='TC_1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='-4909.5' y='1771' z='1081.05' xsz='30.316' ysz='28.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='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='TC_2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d68e61bc-0e8c-4e3d-959b-39e2decfb680' vmin='1' vmaj='1' codename='Retrasmit_data' x='-3197' y='2552.56' z='110.719' xsz='23.0556' ysz='23.0556' zsz='23.0556' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.4' />
					<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='
Retrasmit_Data' />
					<value target='Font' data='Arial' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e3d5bf25-4d6e-4ddb-9e7f-f223decc9f53' vmin='2' vmaj='1' codename='nRF24L01A1' x='-3254.29' y='3783.79' z='0' xsz='42.7273' ysz='40.7895' 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' >
				<resources />
				<properties />
				<values >
					<value target='SPI_Master1::cal_spi::CHANNEL' data='001' />
					<value target='SPI_Master1::cal_spi::MOSI' data='$PORTB.7' />
					<value target='SPI_Master1::cal_spi::MOSIPins' data='007' />
					<value target='SPI_Master1::cal_spi::MISO' data='$PORTB.8' />
					<value target='SPI_Master1::cal_spi::MISOPins' data='008' />
					<value target='SPI_Master1::cal_spi::CLK' data='$PORTB.9' />
					<value target='SPI_Master1::cal_spi::CLKPins' data='009' />
					<value target='SPI_Master1::cal_spi::SS' data='$PORTB.6' />
					<value target='CE::pin' data='$PORTB.5' />
					<value target='SPI_Master1::cal_spi::PR_SCALE' data='004' />
					<value target='SPI_Master1::label' data='nRF24L01A' />
					<value target='SPI_Master1::cal_spi::ScopeTraces' data='1' />
					<value target='SPI_Master1::cal_spi::ConsoleData' data='1' />
					<value target='SPI_Master1::cal_spi::Injector' data='000' />
					<value target='shape_rounded_rectangle1::Color' data='16771583' />
					<value target='shape_rounded_rectangle1::Outline' data='0' />
					<value target='shape_rounded_rectangle1::Thickness' data='0' />
					<value target='shape_rounded_rectangle1::Image' data='..\..\..\..\..\..\ProgramData\MatrixTSL\FlowcodeV8\Components\catimgs\nRF24L01.jpg' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='128' >
		<background rgb='8421376' img='' style='0' />
		<camera xe='-3522.14' ye='2316.08' ze='6666.67' xt='-3522.14' yt='2316.08' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<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---------------------wUAAAAYAAAAoQYAAH4DAAA' zoom='75' scrollx='0' scrolly='826' flags='0' />
	</layout>
</document>
</root>
