<root>
<document scada='0' schema='102' license='1,aderito,U4A53G' title='' description='' fcversion='524800' target='PIC.18F.18F4620' >
	<config data='!0,32ff!10,fef1!20,79ff!30,ffba!40,ffff!50,ffff!60,ffff%8,2%e,0%f,0%10,1%11,0%13,2%18,0%19,f%28,1%29,0%2a,0%2f,0%30,0%32,0%36,0%37,1%40,1%41,1%42,1%43,1%4f,1%4e,1%50,1%51,1%52,1%53,1%5f,1%5e,1%5d,1%60,1%61,1%62,1%63,1%6e,1' clkspd='40000000' 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='5' />
			<data name='CalculatedCommsDelay' value='5' />
			<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='1b87be50-262f-4dca-89d4-b2e301f7c0a3' 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='tamanho' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='unit' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humidade_control' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humid' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dispaly_histerese' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_lux' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='histerese_t' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humid_string' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_TP' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</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='menos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_temp' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_float' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temporario' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_lux' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='enter' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='str_temporario' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_string' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='histerese_h' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ciclos_ler_temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_int' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_histerese' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minutos_ventil_off' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humi_float' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dec' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='decimais' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_HP' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minutos_ventil_on' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_control' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='humidade_int' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_programa' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flash' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mais' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='unidades' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='dezenas' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='avanco' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='dez' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='control_saidas' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output 1' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='4' exp='byte_temp' />
						<command class_type='output' title='Output1' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='8' exp='byte_lux' />
					</flowline>
				</macro>
				<macro >
					<flowline name='eeprom_dados' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='unidades' />
							<argument exp='0x0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='decimais' />
							<argument exp='0x1' />
						</command>
						<command class_type='calculation' title='Cálculo devoluçao do valor int temperatura ( unidaes ,dezenas)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temp_int = decimais &lt;&lt; 8' />
							<exp exp='temp_int = temp_int | unidades' />
							<exp exp='//temp_int = unidades &lt;&lt; 8' />
							<exp exp='//temp_int = temp_int | decimais' />
							<exp exp='//cal_sens_fumo = var2 &lt;&lt; 8' />
							<exp exp='//cal_sens_fumo = cal_sens_fumo | var1' />
						</command>
						<command class_type='comment' title='' comment='leitura
//cal_sens_fumo = var2 &lt;&lt; 8
//cal_sens_fumo = cal_sens_fumo | var1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='escrita
//var1 = cal_sens_fumo &amp; 0xff
//var2 = cal_sens_fumo &gt;&gt; 8
' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &gt; 500' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_int = 100' />
								</command>
								<command class_type='calculation' title='Cálculo colocar valor int em 2 loc eeprom (byte)' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='unidades = temp_int &amp; 0xff' />
									<exp exp='decimais = temp_int &gt;&gt; 8' />
									<exp exp='//decimais = temp_int &amp; 0xff' />
									<exp exp='//unidades = temp_int &gt;&gt; 8' />
									<exp exp='//var1 = cal_sens_fumo &amp; 0xff' />
									<exp exp='//var2 = cal_sens_fumo &gt;&gt; 8' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x0' />
									<argument exp='unidades' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x1' />
									<argument exp='decimais' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &lt; 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_int = 500' />
								</command>
								<command class_type='calculation' title='Cálculo colocar valor int em 2 loc eeprom (byte)' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='unidades = temp_int &amp; 0xff' />
									<exp exp='decimais = temp_int &gt;&gt; 8' />
									<exp exp='//decimais = temp_int &amp; 0xff' />
									<exp exp='//unidades = temp_int &gt;&gt; 8' />
									<exp exp='//var1 = cal_sens_fumo &amp; 0xff' />
									<exp exp='//var2 = cal_sens_fumo &gt;&gt; 8' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x0' />
									<argument exp='unidades' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x1' />
									<argument exp='decimais' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &gt; 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='display_TP = ToString$ (temp_int)' />
									<exp exp='unit = Left$ (display_TP,2)' />
									<exp exp='dec = Right$ (display_TP,1)' />
									<exp exp='display_TP = unit' />
									<exp exp='display_TP = display_TP + &quot;.&quot;' />
									<exp exp='display_TP = display_TP + dec' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='display_TP = ToString$ (temp_int)' />
									<exp exp='unit = Left$ (display_TP,1)' />
									<exp exp='dec = Right$ (display_TP,1)' />
									<exp exp='display_TP = unit' />
									<exp exp='display_TP = display_TP + &quot;.&quot;' />
									<exp exp='display_TP = display_TP + dec' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='ventilaçao ON/OFF' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='ventil' />
							<argument exp='0x2' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ventil &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='ventil = 0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x2' />
									<argument exp='ventil' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='tempos ventilação' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='minutos_ventil_on' />
							<argument exp='0x3' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_on &gt; 59' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_on = 1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x3' />
									<argument exp='minutos_ventil_on' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='minutos_ventil_off' />
							<argument exp='0x5' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_off &gt; 59' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_off = 1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x5' />
									<argument exp='minutos_ventil_off' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='histerese t' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='histerese_t' />
							<argument exp='0x4' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_t &gt; 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='histerese_t = 10' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x4' />
									<argument exp='histerese_t' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_t &lt; 10' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='histerese_t = 100' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x4' />
									<argument exp='histerese_t' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_tempo_off' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='mais = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_off = minutos_ventil_off + 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_off &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minutos_ventil_off = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='menos = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_off = minutos_ventil_off - 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_off &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minutos_ventil_off = 59' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='flash' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_temperatura' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_control &lt; temp_int - histerese_t' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_chama' />
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='byte_temp = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_control &gt;= temp_int' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='byte_temp = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_ventilacao' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='mais = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='ventil = ventil + 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ventil &gt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='ventil = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='menos = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='ventil = ventil - 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &lt;= 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='ventil = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='flash' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_geral' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;TP=&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='3' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='display_TP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='8' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;T=&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='10' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='temp_string' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='15' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintAscii' >
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='chamar display linha 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_linha2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_linha2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='humidade' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;H&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='humid_string' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='5' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;%&quot;' />
						</command>
						<command class_type='comment' title='' comment='ventilador ligado/desligado' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='6' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ventil = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot; ON&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot;OFF&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='10' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;Y&quot;' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_on &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='minutos_ventil_on' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='13' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;N&quot;' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_off &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='minutos_ventil_off' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_erro' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='retval &lt;&gt; 0' start='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='SampleSensor' >
									<return exp='retval' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='retval' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
												<argument exp='&quot;sensor ok!&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
												<argument exp='&quot;FALHA SENSOR!!&quot;' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
												<argument exp='0' />
												<argument exp='1' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
												<argument exp='&quot;  comunicacao&quot;' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
												<argument exp='&quot;erro checksum !!&quot;' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_temp' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='mais = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_int = temp_int + 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &gt; 500' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='temp_int = 100' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='menos = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_int = temp_int - 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &lt; 100' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='temp_int = 500' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_int &gt; 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='display_TP = ToString$ (temp_int)' />
									<exp exp='unit = Left$ (display_TP,2)' />
									<exp exp='dec = Right$ (display_TP,1)' />
									<exp exp='display_TP = unit' />
									<exp exp='display_TP = display_TP + &quot;.&quot;' />
									<exp exp='display_TP = display_TP + dec' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='display_TP = ToString$ (temp_int)' />
									<exp exp='unit = Left$ (display_TP,1)' />
									<exp exp='dec = Right$ (display_TP,1)' />
									<exp exp='display_TP = unit' />
									<exp exp='display_TP = display_TP + &quot;.&quot;' />
									<exp exp='display_TP = display_TP + dec' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='flash' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_histerese' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_t &lt; 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = ToString$ (histerese_t)' />
									<exp exp='string_histerese = &quot; &quot;' />
									<exp exp='string_histerese = string_histerese + temporario' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = ToString$ (histerese_t)' />
									<exp exp='string_histerese = temporario' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;hist.T&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='6' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='string_histerese' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='8' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;T=&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='10' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='temp_string' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='15' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintAscii' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_linha2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='ler_DHT22' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='ciclos_ler_temp = ciclos_ler_temp + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ciclos_ler_temp = 1' swap='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ciclos_ler_temp &gt;= 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='ciclos_ler_temp = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='SampleSensor' >
									<return exp='retval' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='retval &lt;&gt; 0' swap='0' >
									<flowline >
										<command class_type='output' title='Output 1' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='4' exp='0' />
										<command class_type='output' title='Output 1' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='8' exp='0' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_erro' />
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='GetTempFloat' >
									<return exp='temp_float' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_string = FloatToString$ (temp_float)' />
									<exp exp='temp_string = FloatToString$ (temp_float)' />
									<exp exp='tamanho = Length$ (temp_string)' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho &gt; 9' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='temp_string = Mid$ (temp_string,0,5)' />
											<exp exp='unit = Left$ (temp_string,3)' />
											<exp exp='dec = Right$ (temp_string,1)' />
											<exp exp='temp = unit' />
											<exp exp='temp = temp + dec' />
											<exp exp='temp_control = StringToInt$ (temp)' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho &lt; 9' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='tamanho &lt; 9' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='temp_string = Mid$ (temp_string,0,3)' />
													<exp exp='unit = Left$ (temp_string,1)' />
													<exp exp='dec = mid$ (temp_string,2,2)' />
													<exp exp='temp = unit' />
													<exp exp='temp = temp + dec' />
													<exp exp='temp_control = StringToInt$ (temp)' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline >
												<command class_type='comment' title='' comment='tamanho =9' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='temp_string = Mid$ (temp_string,0,4)' />
													<exp exp='unit = Left$ (temp_string,2)' />
													<exp exp='dec = right$ (temp_string,1)' />
													<exp exp='temp = unit' />
													<exp exp='temp = temp + dec' />
													<exp exp='temp_control = StringToInt$ (temp)' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='GetHumidityFloat' >
									<return exp='humi_float' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='humid_string = FloatToString$ (humi_float)' />
									<exp exp='tamanho = Length$ (humid_string)' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho &gt; 9' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='humid_string = Mid$ (humid_string,0,5)' />
											<exp exp='unit = Left$ (humid_string,3)' />
											<exp exp='dec = Right$ (humid_string,1)' />
											<exp exp='humid = unit' />
											<exp exp='humid = humid + dec' />
											<exp exp='humidade_control = StringToInt$ (humid)' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho &lt; 9' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='humid_string = Mid$ (humid_string,0,3)' />
													<exp exp='unit = Left$ (humid_string,1)' />
													<exp exp='dec = mid$ (humid_string,2,2)' />
													<exp exp='humid = unit' />
													<exp exp='humid = humid + dec' />
													<exp exp='humidade_control = StringToInt$ (humid)' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='humid_string = Mid$ (humid_string,0,4)' />
													<exp exp='unit = Left$ (humid_string,2)' />
													<exp exp='dec = Right$ (humid_string,1)' />
													<exp exp='humid = unit' />
													<exp exp='humid = humid + dec' />
													<exp exp='humidade_control = StringToInt$ (humid)' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_chama' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='LUX' macro='GetInt' >
							<return exp='adc_lux' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='adc_lux = adc_lux / 10.23' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_lux &lt; 50' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='byte_lux = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='byte_lux = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='flash' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='flash = flash + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='flash &gt; 10' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='flash &gt; 80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='flash = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_programa' >
											<case >
												<flowline >
													<command class_type='comment' title='' comment='prog temp' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
														<argument exp='3' />
														<argument exp='0' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
														<argument exp='&quot;     &quot;' />
													</command>
												</flowline>
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='comment' title='' comment='prog histerese temp' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
														<argument exp='6' />
														<argument exp='0' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
														<argument exp='&quot;  &quot;' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='comment' title='' comment='ventil on/off' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
														<argument exp='6' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
														<argument exp='&quot;   &quot;' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='comment' title='' comment='minutos on' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
														<argument exp='11' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
														<argument exp='&quot;  &quot;' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='comment' title='' comment='minutos off' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
														<argument exp='14' />
														<argument exp='1' />
													</command>
													<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
														<argument exp='&quot;  &quot;' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_programa = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='display histerese' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_histerese' />
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_geral' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_tempo_on' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='mais = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_on = minutos_ventil_on + 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_on &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minutos_ventil_on = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='menos = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minutos_ventil_on = minutos_ventil_on - 1' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minutos_ventil_on &lt; 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minutos_ventil_on = 59' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='150' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='flash' />
					</flowline>
				</macro>
				<macro >
					<flowline name='ler_botoes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048579' mask='64' exp='mais' />
						<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048579' mask='32' exp='menos' />
						<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048579' mask='128' exp='enter' />
						<command class_type='input' title='avanço' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048579' mask='16' exp='avanco' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='iniciar variaveis' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='flash = 0' />
							<exp exp='enter = 0' />
							<exp exp='mais = 0' />
							<exp exp='menos = 0' />
							<exp exp='ciclos_ler_temp = 0' />
							<exp exp='contador = 0' />
							<exp exp='retval = 0' />
							<exp exp='avanco = 0' />
							<exp exp='byte_programa = 0' />
							<exp exp='temp_int = 0' />
							<exp exp='temp_float = 0' />
							<exp exp='temp_string = &quot;&quot;' />
							<exp exp='humid_string = &quot;&quot;' />
							<exp exp='humidade_int = 0' />
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temp_string = &quot;&quot;' />
							<exp exp='humid_string = &quot;&quot;' />
							<exp exp='display_TP = &quot;&quot;' />
							<exp exp='temp = &quot;&quot;' />
							<exp exp='humid = &quot;&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Start' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='PrintString' >
							<argument exp='&quot;TURBOMACAMBUZIO V1.0&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='20' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='ScrollDisplay' >
									<argument exp='1' />
									<argument exp='0' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='345' type='1' />
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='0' />
							<argument exp='6' />
							<argument exp='9' />
							<argument exp='9' />
							<argument exp='6' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_erro' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
						<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='eeprom_dados' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='enter &lt;&gt; 0' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter &lt;&gt; 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter = 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_temp' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='contador = contador + 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 5000' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
											<exp exp='byte_programa = 1' />
										</command>
										<command class_type='calculation' title='Cálculo colocar valor int em 2 loc eeprom (byte)' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='unidades = temp_int &amp; 0xff' />
											<exp exp='decimais = temp_int &gt;&gt; 8' />
											<exp exp='//decimais = temp_int &amp; 0xff' />
											<exp exp='//unidades = temp_int &gt;&gt; 8' />
											<exp exp='//var1 = cal_sens_fumo &amp; 0xff' />
											<exp exp='//var2 = cal_sens_fumo &gt;&gt; 8' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x0' />
											<argument exp='unidades' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x1' />
											<argument exp='decimais' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter &lt;&gt; 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter = 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_histerese_T' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='contador = contador + 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 5000' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x4' />
											<argument exp='histerese_t' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
											<exp exp='byte_programa = 2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter &lt;&gt; 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter = 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_ventilacao' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='contador = contador + 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 5000' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x02' />
											<argument exp='ventil' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
											<exp exp='byte_programa = 3' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter &lt;&gt; 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter = 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_tempo_on' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='contador = contador + 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 5000' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x03' />
											<argument exp='minutos_ventil_on' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
											<exp exp='byte_programa = 4' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='lcd_16x2' macro='Clear' />
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter &lt;&gt; 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='enter = 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_botoes' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_tempo_off' />
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='contador = contador + 1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 5000' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
											<argument exp='0x05' />
											<argument exp='minutos_ventil_off' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
											<exp exp='byte_programa = 0' />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
										<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ler_DHT22' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_temperatura' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_geral' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_histerese_T' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='mais = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='histerese_t = histerese_t + 10' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_t &gt; 100' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='histerese_t = 10' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='250' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='menos = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='histerese_t = histerese_t - 10' />
									<exp exp='flash = 0' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_t &lt; 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='histerese_t = 100' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='250' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='flash' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='f8c9b53d-0bf2-469f-8f0a-34caa93749ba' vmin='1' vmaj='1' codename='lcd_16x2' x='329.48' y='375.195' z='-1.7875' xsz='21.875' ysz='23.6915' zsz='2.38419e-07' 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_0' data='$PORTB.0' />
					<value target='Pin_Data_1' data='$PORTB.1' />
					<value target='Pin_Data_2' data='$PORTB.2' />
					<value target='Pin_Data_3' data='$PORTB.3' />
					<value target='Pin_RS' data='$PORTB.4' />
					<value target='Pin_E' data='$PORTB.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='-130' y='-340' z='6.175' xsz='340' ysz='360' zsz='20' 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='EESize' data='1024 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='' />
					<value target='InitValsParsed' data='' />
					<value target='ResetValues' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='95a1525b-7e03-4836-8c09-59bf174f603b' vmin='2' vmaj='1' codename='DHT22' x='464.007' y='-405.262' z='1.32067' xsz='10.2723' ysz='13.4156' zsz='6.15385' 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='dpin' data='$PORTC.4' />
					<value target='csum' data='1' />
					<value target='ClockAdjust' data='000' />
					<value target='Nop30us' data='280.000000' />
					<value target='DeviceFamily' data='PIC' />
					<value target='InstPerMicro' data='10.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='OK_SAIR' x='-229.4' y='-949.4' z='0' xsz='11.7021' ysz='11.7021' 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='$PORTD.7' />
					<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='DES' x='-73.3612' y='-1139.4' z='1.75' xsz='11.7021' ysz='11.7021' 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='$PORTD.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='ENT' x='82.6777' y='-949.4' z='0' xsz='11.7021' ysz='11.7021' 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='$PORTD.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='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='SUB' x='-73.3612' y='-769.4' z='1.75' xsz='11.7021' ysz='11.7021' 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='$PORTD.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='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='LUX' x='1047.43' y='-392.571' z='204.392' xsz='420' ysz='420' zsz='413.509' 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='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</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='484.385' ye='-406.72' ze='2566.67' xt='484.385' yt='-406.72' 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='0' />
		<camera xe='-109.876' ye='-218.997' ze='6666.67' xt='-109.876' yt='-218.997' zt='4.53281e-23' 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='control_saidas' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='70' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='control_chama' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='control_temperatura' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='126' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='1912' flags='0' />
		<view type='0' name='prog_temp' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='90' flags='0' />
	</layout>
</document>
</root>
