<root>
<document schema='101' license='1,evosystem,8GCWZE' title='CONTROLLO MISCELA GPL GASOLIO' description='LA SCHEDA CONTROLLA IL PROCESSO DI MISCELAZIONE 
TRA GPL E DIESEL PER AUTOMOTIVE E CAMION BY MIGAS' target='PIC.18F.18F67K22' >
	<config data='!0,a218!10,7c78!20,8901!30,91!40,c0ff!50,e0ff!60,40ff%0,0%3,3%6,0%8,2%c,0%d,1%e,0%f,1%10,0%11,0%13,3%15,3%18,0%1a,1f%20,1%28,1%2b,1%2f,1%30,1%34,1%37,1%40,1%41,1%42,1%43,1%44,1%45,1%46,1%47,1%4e,1%4f,1%50,1%51,1%52,1%53,1%54,1%55,1%56,1%57,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%64,1%65,1%66,1%67,1%6e,1' clkspd='25000000' simspd='2' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<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='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<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 />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' 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='PWM_MOTORE_P1_UP_DOWN' type='u16' description='USATA PER AUMENTARE O DIMINUIRE IL PWM MOTORE P1 MISCELA' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CH4_P1_MISCELA' type='b1' description='PULSANTE TELECOMANDO 4 CANALE ON OFF DIMMER STRIP LED' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='MOTORE_P1_MISCELA_ON' description='ON MOTORE MISCELA P1 CON RAMPA PWM
E CONTROLLO AMPEROMETRICA DI MAX.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='comment' title='' comment='RAMPA PWM UP' textarea='178,6,653,306' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='SE PWM = 100 %' textarea='192,-13,192,-13' cmdcolor='3568629' cmdcolor_sec='3568629' exp='PWM_MOTORE_P1_UP_DOWN = 1023' swap='0' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='AUMENTO IL PWM DA 0 % AL 100% CON RAMPA' textarea='139,-13,139,-13' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='PWM_MOTORE_P1_UP_DOWN = PWM_MOTORE_P1_UP_DOWN + 1' />
								</command>
								<command class_type='call' title='SETTO % PWM P1 MISCELA' textarea='239,-15,239,-15' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM_P1_MISCELA' macro='SetDutyCycle10Bit' >
									<argument exp='PWM_MOTORE_P1_UP_DOWN' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='MOTORE_P1_MISCELA_OFF' description='OFF MOTORE MISCELA P1 CON RAMPA PWM
E CONTROLLO AMPEROMETRICA DI MAX' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='comment' title='' comment='RAMPA PWM DOWN' textarea='115,0,590,300' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='decision' title='SE PWM = 0 ' textarea='213,-13,213,-13' cmdcolor='3568629' cmdcolor_sec='3568629' exp='PWM_MOTORE_P1_UP_DOWN = 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='DIMINUISCO IL PWM DA 100 % AL 0% CON RAMPA' textarea='139,-13,139,-13' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='PWM_MOTORE_P1_UP_DOWN = PWM_MOTORE_P1_UP_DOWN - 1' />
								</command>
								<command class_type='call' title='SETTO % PWM P1 MISCELA' textarea='239,-15,239,-15' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM_P1_MISCELA' macro='SetDutyCycle10Bit' >
									<argument exp='PWM_MOTORE_P1_UP_DOWN' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='PROGRAMMA PRINCIPALE CONTROLLO
ON OFF MOTORE POMPA P1 MISCELA' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='ATTIVO IL MODULO PWM CANALE 8' textarea='238,-13,238,-13' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM_P1_MISCELA' macro='Enable' />
						<command class_type='calculation' title='AZZERO IL PWM P1 MISELA' textarea='139,-13,139,-13' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PWM_MOTORE_P1_UP_DOWN = 0' />
						</command>
						<command class_type='call' title='SETTO % PWM P1 MISCELA' textarea='239,-15,239,-15' cmdcolor='1975743' cmdcolor_sec='1975743' component='PWM_P1_MISCELA' macro='SetDutyCycle10Bit' >
							<argument exp='PWM_MOTORE_P1_UP_DOWN' />
						</command>
						<command class_type='loop' title='PROGRAMMA PRINCIPALE' textarea='739,-17,1214,283' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='input' title='CH4_ON_OFF_P1' textarea='272,-19,272,-19' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048579' mask='16' exp='CH4_P1_MISCELA' />
								<command class_type='decision' title='SE PULANTE PREMUTO LED ON ETC.' textarea='216,-13,691,287' cmdcolor='3568629' cmdcolor_sec='3568629' exp='CH4_P1_MISCELA = 0' swap='0' >
									<flowline >
										<command class_type='call' title='CALL MACRO MOTORE P1 ON' textarea='160,-20,160,-20' cmdcolor='1975743' cmdcolor_sec='1975743' macro='MOTORE_P1_MISCELA_ON' />
									</flowline>
									<flowline >
										<command class_type='call' title='CALL MACRO MOTORE P1 OFF' textarea='160,-20,160,-20' cmdcolor='1975743' cmdcolor_sec='1975743' macro='MOTORE_P1_MISCELA_OFF' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='6' vmaj='1' codename='PWM_P1_MISCELA' x='-10' y='50' z='0.8825' 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='channel' data='008' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTE.4' />
					<value target='RemapPin' data='000' />
					<value target='timer' data='2' />
					<value target='period' data='255' />
					<value target='prescale' data='002' />
					<value target='period_calc' data='163.839996' />
					<value target='frequency_calc' data='6.103516' />
					<value target='pwm_prescale' data='4' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='PULS_ON_OFF_P1' x='-10' 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' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTD.4' />
					<value target='polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='102' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='-11.3695' ye='33.8352' ze='200.152' xt='-11.3695' yt='33.8352' 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='3.5504' ye='-13.659' ze='761.906' xt='3.5504' yt='-13.659' 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---------------------wUAAAAYAAAAUwcAAJ0DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='MOTORE_P1_MISCELA_ON' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwcAAJ0DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='MOTORE_P1_MISCELA_OFF' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwcAAJ0DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
