<root>
<document scada='0' schema='102' license='1,aderito,U4A53G' title='' description='' fcversion='524800' target='PIC16.30F.30F6012' >
	<config data='!0,8712!10,3f!20,87b3!30,7!40,c003%0,2%8,3%e,2%10,f%14,3%1f,0%20,3%24,3%27,1%2f,1%30,1%31,1%40,3%4e,1%4f,1' clkspd='12000000' 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='14' />
			<data name='CalculatedCommsDelay' value='14' />
			<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='86e49dd4-661b-4451-99e2-945f3236d044' 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='alarme_temp2max' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='C2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventila0' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sms_habilitar' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_onboard_stat' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reset' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='C1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='220' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='clock_modem' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='32' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_result' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='aviso_alarme' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cont_led_alarm' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cal_sens_fumo' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_baixo_c2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flash_temp_fumo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_habilitar' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cont_sens_fail_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_habilitar' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='11' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_baixo_c1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_falha_luz' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cont_sens_fail_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_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='power_C2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='numero_compara' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_nubliza1_on' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ciclo_switch' type='u8' 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='tempo_on_nubliza2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='power_C1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='timeout' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_excesso_c2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_alarmes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pulso_nublizacao2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_caldeira_2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='caldeira2_on_off' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='numero_modulo' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tempo_on_nubliza1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_excesso_c1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_c2min' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s8' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_caldeira_1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_C2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pulso_nublizacao1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='icon_alarmes_min' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='habilitar' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s7' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_T2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_C1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_T2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='char_enter_count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='char' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tempo_off_nubliza2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s6' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_de_alarme' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_reset' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_T1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_T1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tempo_off_nubliza1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cclk' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='T2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s5' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_geral' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='100' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temporario' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='50' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='climatiza_ventil2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_alarmes_min' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_aviario2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tamanho_str_humid' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_climatizar' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='comando' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_climatiza2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='T1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s4' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='climatiza_ventil1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_num' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minuto_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_aviario1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='var2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_climatiza1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s3' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_8' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_temp2min' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='desabilitar' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_nubliza1_off' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SALDO' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temporario_byte' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='percentual' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='var1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_7' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_modulos_rf' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_csq' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='numero' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='13' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_6' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_excesso_temp2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado_s1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='caldeira1_on_off' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_excesso_temp1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_5' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='min_temp_ajuste' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_falha_energia' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='13' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ciclo_macros' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minuto' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_sms' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_falha_ok' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_falha_sensor_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_nubliza2_off' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_sms_in' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sino' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='estado' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_c1max' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_falha_sensor_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='csq_decimal' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hum_2' type='u16' 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='atualiza_adcs' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_sms' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cont_f_sen_geral' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='segundo3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='falha_luz' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pwm2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hum_1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count_spaces' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='out_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='segundo2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='segundo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_senfumo' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_nubliza2_on' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sensor_fumo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pwm1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='segundo1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_fumo' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='13' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VIRGULAS_NUM' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pos_mem_telefone' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='result_ok' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pulso' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_temp1max' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_temporizador_c2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_H2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='clock_rede' 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_hum2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_H2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_c2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='med_hum2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_temporizador_c1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_pass_alarmes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_timer2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_H1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_hum1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_H1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='nome' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_c1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_fumo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='med_hum1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_timer1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_char' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_temp_2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='exponencial2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_espaco' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minuto3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc_temp_1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='nublizacao2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data_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='exponencial1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minuto2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='nublizacao1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='minuto1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_display_adcs' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='timer3_ativo' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_c1min' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pulso2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_reset' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_gravar_numeros' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='flash_arranque' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rs232_result' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='200' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temporario_rem_string' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_dados_rem' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='16' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_c2max' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_sms_reset' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='registo_simcard' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_de_alarme' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='14' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tamanho_str_temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_temp_min2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_erro' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='habilitar_alarmes_minimos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_temp_min1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='30' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_estado_caldeira2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='texto_csq_verbal' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='11' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='byte_t2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='icon_estado_caldeira1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='numero_pagina' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reset_nubliza_icones' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_C2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_C2' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp_negativa' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='factor_timer' 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='byte_t1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='alarme_temp1min' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventila1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='contador_alarmes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='prog_C1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_C1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='segundo_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='2' />
					</def>
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='control_saidas' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_luz' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='falha_luz = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='falha_luz &gt;= 1' swap='0' >
							<flowline >
								<command class_type='decision' title='falha de luz' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_falha_luz = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = texto_falha_energia' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_falha_luz = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = texto_falha_energia' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_falha_energia' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H1 &quot;' />
													<exp exp='texto = texto + string_H1' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H2 &quot;' />
													<exp exp='texto = texto + string_H2' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ciclos_macros_toke' 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='2' exp='1000' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
								<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='30' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='sms_habilitar' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='sms_habilitar = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='sms_habilitar = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x0 sms_habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x0' />
							<argument exp='sms_habilitar' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='botoes_menu' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset_ contador' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador = 0' />
							<exp exp='string_num = &quot;&quot;' />
							<exp exp='char = 0' />
						</command>
						<command class_type='loop' title='Ciclo ate char &gt;= 255 OR contador &gt; 5' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char &gt;= 255 OR contador &gt; 5' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='30' />
								</command>
								<command class_type='calculation' title='incremento contador' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador = contador + 1' />
								</command>
								<command class_type='switch' title='Switch contador' textmode='1' textarea='263,185,738,485' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline />
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='switch' title='char//na pagina  MENU corresponde aos botoes' textmode='1' textarea='210,299,685,599' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char //na pagina MENU corresponde aos botoes' >
												<case >
													<flowline />
												</case>
												<case exp='0x0F' >
													<flowline >
														<command class_type='comment' title='' comment='pagina geral' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 0' />
														</command>
													</flowline>
												</case>
												<case exp='0x2' >
													<flowline />
												</case>
												<case exp='0x3' >
													<flowline >
														<command class_type='comment' title='' comment='pagina C1 set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 2' />
														</command>
													</flowline>
												</case>
												<case exp='0x4' >
													<flowline >
														<command class_type='comment' title='' comment='pagina c2 set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 3' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 3' />
														</command>
													</flowline>
												</case>
												<case exp='0x5' >
													<flowline >
														<command class_type='comment' title='' comment='pagina t1 set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 4' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 4' />
														</command>
													</flowline>
												</case>
												<case exp='0x6' >
													<flowline >
														<command class_type='comment' title='' comment='pagina t2 set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 5' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 5' />
														</command>
													</flowline>
												</case>
												<case exp='0x7' >
													<flowline >
														<command class_type='comment' title='' comment='pagina em construcao
 ou fora de serviço' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 6' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 6' />
														</command>
													</flowline>
												</case>
												<case exp='0x8' >
													<flowline >
														<command class_type='comment' title='' comment='pagina ventilaçao set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 7' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 7' />
														</command>
													</flowline>
												</case>
												<case exp='0x9' >
													<flowline >
														<command class_type='comment' title='' comment='pagina alarmes sms set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 8' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 8' />
														</command>
													</flowline>
												</case>
												<case exp='0xa' >
													<flowline >
														<command class_type='comment' title='' comment='pagina sens fumo set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina = 9' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 9' />
														</command>
													</flowline>
												</case>
											</command>
											<command class_type='switch' title='char //na pagina MENU  corresponde aos botoes' textmode='1' textarea='220,251,695,551' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char //na pagina MENU corresponde aos botoes' >
												<case >
													<flowline />
												</case>
												<case exp='0x10' >
													<flowline >
														<command class_type='comment' title='' comment='pagina tel numeros set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina =10' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 10' />
														</command>
													</flowline>
												</case>
												<case exp='0xc' >
													<flowline >
														<command class_type='comment' title='' comment='pagina nublizaçao set' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina =11' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 11' />
														</command>
													</flowline>
												</case>
												<case exp='0xd' >
													<flowline >
														<command class_type='comment' title='' comment='pagina reset alarmes saldo' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='numero_pagina =12' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='numero_pagina = 12' />
														</command>
													</flowline>
												</case>
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_T2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print adc_temp_2' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;t2.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//temporario = ToString$ (adc_temp_2)' />
							<exp exp='' />
							<exp exp='comando = &quot;t2.val=&quot;' />
							<exp exp='' />
							<exp exp='//comando = comando + temporario' />
							<exp exp='' />
							<exp exp='comando = comando + temp_aviario2' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='numeros_e_nomes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset numero e nome tam.string' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero = &quot;&quot;' />
							<exp exp='nome = &quot;&quot;' />
							<exp exp='tamanho_str_humid = 0' />
							<exp exp='char = 0' />
							<exp exp='count = 0' />
						</command>
						<command class_type='loop' title='Ciclo ate char = 35 // #' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char = 35 // #' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='char &lt; 32' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 32' swap='1' >
									<flowline >
										<command class_type='decision' title='char &gt;= 127' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt;= 127' swap='0' >
											<flowline />
											<flowline >
												<command class_type='decision' title='count &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='count &lt; 9' swap='1' >
													<flowline >
														<command class_type='decision' title='char = 35 // #' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 35 // #' swap='0' >
															<flowline />
															<flowline >
																<command class_type='calculation' title='nome' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='string_char[0] = char' />
																	<exp exp='nome = nome + string_char' />
																	<exp exp='count = count + 1' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='char &lt;=57  (decimal 9)' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt;= 57' swap='1' >
															<flowline >
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='count = count + 1' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='charl &gt;=48  (decimal 0)' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt;= 48' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='string_char[0] = char' />
																			<exp exp='numero = numero + string_char' />
																			<exp exp='count = count + 1' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='count = count + 1' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tamanho_str_humid = Length$ (numero)' />
						</command>
						<command class_type='call' title='Chamar modem gravar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_gravar' />
					</flowline>
				</macro>
				<macro >
					<flowline name='registo_sim_rede' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='char = 43 // &quot; + &quot;' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='100' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='char = 43' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 43' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='loop' title='Ciclo ate char_enter_count = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char_enter_count = 1' start='0' >
							<flowline >
								<command class_type='comment' title='' comment='chamar control rs232' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='decision' title='se char = 10  (LF)' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='char_enter_count = char_enter_count + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='cha &lt; 32' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 32' swap='1' >
									<flowline >
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 122' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='string_char[0] = char' />
													<exp exp='rs232_result = rs232_result + string_char' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_t2min' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='habilitar_alarmes_minimos = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos = 1' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='na condiçao de primeiro arranque 
nao faz alarme de baixas temperaturas se for pedido ao sistema' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
							<flowline >
								<command class_type='decision' title='caldeira2_on_off = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='decision' title='adc_temp_2 &lt; prog_T2 - histerese_T - 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt; prog_T2 - histerese_T - 2' swap='0' >
											<flowline >
												<command class_type='decision' title='alarme_temp2min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_temp2min = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA T2!&quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='alarme_temp2min = 1' />
															<exp exp='estado_de_alarme = 1' />
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA T2!&quot;' />
															<exp exp='aviso_alarme = 0' />
														</command>
														<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
														<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
														<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='texto = texto_temp_min2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;C2 &quot;' />
																	<exp exp='texto = texto + string_C2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;T2 &quot;' />
																	<exp exp='texto = texto + string_T2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s3' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s4' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s5' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s6' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + saldo' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + clock_modem' />
																</command>
																<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 1 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 2 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_t1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando = &quot;t1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//temporario = ToString$ (adc_temp_1)' />
							<exp exp='' />
							<exp exp='comando = &quot;t1.val=&quot; // se no display o mostrador for decimal utilizar esta versao' />
							<exp exp='//comando = &quot;t1.txt=&quot;' />
							<exp exp='//comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temp_aviario1' />
							<exp exp='//comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='switch_74HC4052' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title=' &quot;desactiva o modem&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048582' mask='4' exp='255' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='1' />
						<command class_type='call' title='Chamar leitura modulos' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_modulos' />
						<command class_type='output' title=' &quot;activa o modem&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048582' mask='4' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='estado_caldeiras' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch caldeira1_on_off' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='power_C1 = 6' />
										<exp exp='estado_C1 = &quot;C1 OFF&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='power_C1 = 7' />
										<exp exp='estado_C1 = &quot;C1 ON&quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch caldeira2_on_off' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='power_C2 = 6' />
										<exp exp='estado_C2 = &quot;C2 OFF&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='power_C2 = 7' />
										<exp exp='estado_C2 = &quot;C2 ON&quot;' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='modem_ler' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='count = 0' />
							<exp exp='char = 0' />
							<exp exp='nome = &quot;&quot;' />
							<exp exp='numero = &quot;&quot;' />
							<exp exp='timeout = 0' />
							<exp exp='tamanho_str_humid = 0' />
							<exp exp='' />
						</command>
						<command class_type='switch' title='' textmode='1' textarea='63,92,538,392' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_gravar_numeros' >
							<case >
								<flowline >
									<command class_type='calculation' title='temporario = ToString$ (pos_mem_telefone)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='temporario = ToString$ (pos_mem_telefone)' />
									</command>
									<command class_type='calculation' title='&quot;AT+CPBR=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;AT+CPBR=&quot;' />
										<exp exp='comando = comando + temporario // temporario substitui pos_mem_telefone' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='pos_mem_telefone = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='pos_mem_telefone = StringToInt$ (temporario)' />
									</command>
									<command class_type='calculation' title='&quot;AT+CPBR=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;AT+CPBR=&quot;' />
										<exp exp='comando = comando + temporario // temporario substitui pos_mem_telefone' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='timeout &lt; 8' start='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='30' />
								</command>
								<command class_type='decision' title='' textmode='1' textarea='66,117,541,417' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 32' swap='1' >
									<flowline >
										<command class_type='decision' title='' textmode='1' textarea='80,100,555,400' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 122' swap='0' >
											<flowline >
												<command class_type='calculation' title='incremento timeout' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='timeout = timeout + 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='char = 34 &quot;' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='count = count + 1' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='switch' title='' textmode='1' textarea='69,102,544,402' cmdcolor='16734039' cmdcolor_sec='16734039' exp='count' >
													<case >
														<flowline />
													</case>
													<case exp='1' >
														<flowline >
															<command class_type='decision' title='char = 34  &quot;' textmode='1' textarea='103,124,578,424' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='calculation' title='extrair numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='string_char[0] = char' />
																		<exp exp='numero = numero + string_char' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</case>
													<case exp='3' >
														<flowline >
															<command class_type='decision' title='char = 34  &quot;' textmode='1' textarea='126,110,601,410' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='calculation' title='extrair nome' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='string_char[0] = char' />
																		<exp exp='nome = nome + string_char' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</case>
													<case exp='4' >
														<flowline >
															<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
														</flowline>
													</case>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='incremento timeout' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='timeout = timeout + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='calculation' title='length_str = Length$ (numero)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tamanho_str_humid = Length$ (numero)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculos_saldo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando=comando + &quot;a pedir saldo.... &quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;a pedir saldo.... &quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='call' title='Chamar pedir saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='pedir_saldo' />
						<command class_type='call' title='Chamar display saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saldo' />
						<command class_type='calculation' title='reset contador' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='conversao_humidades' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' />
					</flowline>
				</macro>
				<macro >
					<flowline name='leitura_analogica' 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='pot_ptr_black1' macro='GetInt' >
							<return exp='adc_caldeira_1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='adc_caldeira_1 = adc_caldeira_1 / 2.05' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_color_cap1' macro='GetInt' >
							<return exp='adc_caldeira_2' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='adc_caldeira_2 = adc_caldeira_2 / 2.05' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='monitor' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='estado_de_alarme = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='estado_de_alarme = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Chamar display  avarias' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_avarias' />
								<command class_type='calculation' title='aviso_alarme = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='aviso_alarme = 1' />
								</command>
								<command class_type='decision' title='aviso_alarme = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='aviso_alarme = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='vai ignorar o aviso para nao estar a repetir' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='escreve tipo de alarme
texto_de_alarme' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Chamar estado sms habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_sms_habilitar' />
						<command class_type='call' title='Chamar estado ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_ventiladores' />
						<command class_type='call' title='Chamar display estado caldeiras' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_estado_caldeiras' />
						<command class_type='call' title='Chamar display adcs' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_adcs' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_off_nubliza' 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='climatiza_ventil1 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='nublizacao1 = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='nublizacao2 = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='erro_dados_temp' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Chamar display dados guardados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_dados_guardados' />
						<command class_type='comment' title='' comment='chamar aqui enviar sms' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_nublizacao2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x19  nublizacao2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x19' />
							<argument exp='nublizacao2' />
						</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='var1 = tempo_on_nubliza2 &amp; 0xff' />
							<exp exp='var2 = tempo_on_nubliza2 &gt;&gt; 8' />
							<exp exp='' />
						</command>
						<command class_type='call' title='0x1a var 1 /tempo on nubliza 2' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1a' />
							<argument exp='var1' />
						</command>
						<command class_type='call' title='0x1b var2 / tempo on nubliza 2' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1b' />
							<argument exp='var2' />
						</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='var1 = tempo_off_nubliza2 &amp; 0xff' />
							<exp exp='var2 = tempo_off_nubliza2 &gt;&gt; 8' />
							<exp exp='' />
						</command>
						<command class_type='call' title='0x1c var 1 /tempo off nubliza 2' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1c' />
							<argument exp='var1' />
						</command>
						<command class_type='call' title='0x1d var2 / tempo off nubliza 2' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1d' />
							<argument exp='var2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_sensor2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='cont_sens_fail_2 &gt; 10' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_sens_fail_2 &gt; 10' swap='0' >
							<flowline >
								<command class_type='decision' title='falha de sensor' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_falha_sensor_2 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;falha sensor 2&quot;' />
											<exp exp='//texto_de_alarme = texto_de_alarme + numero_modulo' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_falha_sensor_2 = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;falha sensor 2&quot;' />
											<exp exp='//texto_de_alarme = texto_de_alarme + numero_modulo' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_de_alarme' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H1 &quot;' />
													<exp exp='texto = texto + string_H1' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H2 &quot;' />
													<exp exp='texto = texto + string_H2' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_nublizacao1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x14  nublizacao1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x14' />
							<argument exp='nublizacao1' />
						</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='var1 = tempo_on_nubliza1 &amp; 0xff' />
							<exp exp='var2 = tempo_on_nubliza1 &gt;&gt; 8' />
							<exp exp='' />
						</command>
						<command class_type='call' title='0x15 var 1 /tempo on nubliza 1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x15' />
							<argument exp='var1' />
						</command>
						<command class_type='call' title='0x16 var2 / tempo on nubliza 1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x16' />
							<argument exp='var2' />
						</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='var1 = tempo_off_nubliza1 &amp; 0xff' />
							<exp exp='var2 = tempo_off_nubliza1 &gt;&gt; 8' />
							<exp exp='' />
						</command>
						<command class_type='call' title='0x17 var 1 /tempo off nubliza 1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x17' />
							<argument exp='var1' />
						</command>
						<command class_type='call' title='0x18 var2 / tempo off nubliza 1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x18' />
							<argument exp='var2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_c2min' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='caldeira2_on_off = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off = 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='climatiza_ventiladores = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='na condiçao de climatizar com ventiladores 
nao faz alarme de baixas temperaturas nas caldeiras' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
									</flowline>
									<flowline >
										<command class_type='decision' title='adc_caldeira_2 &lt;= 30' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &lt;= 30' swap='0' >
											<flowline >
												<command class_type='decision' title='alarme_c2min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c2min = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA C2!&quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='comment' title='' comment='interrupçao habilitar
TMR0
macro :interrupt' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='alarme_c2min = 1' />
															<exp exp='estado_de_alarme = 1' />
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA C2!&quot;' />
															<exp exp='aviso_alarme = 0' />
														</command>
														<command class_type='comment' title='' comment='teste 01/04/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
														<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
														<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='texto = texto_baixo_c2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;C2 &quot;' />
																	<exp exp='texto = texto + string_C2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;T2 &quot;' />
																	<exp exp='texto = texto + string_T2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s3' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s4' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s5' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s6' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + saldo' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + clock_modem' />
																</command>
																<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='habilitar_alarmes_minimos = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos = 1' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='na condiçao de primeiro arranque 
nao faz alarme de baixas temperaturas se for pedido ao sistema' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 1 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 2 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_sensor1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='cont_sens_fail_1 &gt; 10' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_sens_fail_1 &gt; 10' swap='0' >
							<flowline >
								<command class_type='decision' title='falha de sensor' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_falha_sensor_1 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;falha sensor 1&quot;' />
											<exp exp='//texto_de_alarme = texto_de_alarme + numero_modulo' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_falha_sensor_1 = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;falha sensor 1&quot;' />
											<exp exp='//texto_de_alarme = texto_de_alarme + numero_modulo' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_de_alarme' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H1 &quot;' />
													<exp exp='texto = texto + string_H1' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H2 &quot;' />
													<exp exp='texto = texto + string_H2' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_adcs' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch contador_display_adcs' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_display_adcs' >
							<case >
								<flowline />
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Chamar  display T1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_t1' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='Chamar  display C1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C1' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='call' title='Chamar display T2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_T2' />
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='call' title='display  C2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C2' />
								</flowline>
							</case>
							<case exp='10' >
								<flowline >
									<command class_type='call' title='Chamar conversao humidades' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_humidades' />
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='call' title='Chamar  display H1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_H1' />
								</flowline>
							</case>
							<case exp='14' >
								<flowline >
									<command class_type='call' title='Chamar  display H2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_H2' />
									<command class_type='calculation' title='reset contador_display_adcs' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='contador_display_adcs = 0' />
									</command>
								</flowline>
							</case>
							<case exp='16' >
								<flowline >
									<command class_type='comment' title='' comment='no arranque e na saida de menu vai mostrar de imediato o valor de todas as adcs' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
									<command class_type='call' title='Chamar  display C1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C1' />
									<command class_type='call' title='display  C2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C2' />
									<command class_type='call' title='Chamar  display T1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C1' />
									<command class_type='call' title='Chamar display T2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_T2' />
									<command class_type='call' title='Chamar conversao humidades' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_humidades' />
									<command class_type='call' title='Chamar  display H1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_H1' />
									<command class_type='call' title='Chamar  display H2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_H2' />
									<command class_type='calculation' title='reset contador_display_adcs' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='contador_display_adcs = 0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador_display_adcs = contador_display_adcs + 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='contadores_falhas_sensores' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_sens_fail_1 &gt; 100' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='cont_sens_fail_1 = 0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='cont_sens_fail_1 = cont_sens_fail_1 + 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='cont_sens_fail_1 = cont_sens_fail_1 + 1' />
												<exp exp='comando = &quot;T&quot; //mudando a letra é possivel usar outro icon para cor de fundo no HMI' />
												<exp exp='comando = comando + numero_modulo' />
												<exp exp='comando = comando + &quot;.bco=63488&quot; // mudar a cor da respetiva janela de fundo para vermelho' />
												<exp exp='temporario = ToString$ (cont_sens_fail_1)' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='decision' title='cont_sens_fail_2 &gt; 100' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_sens_fail_2 &gt; 100' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='cont_sens_fail_2 = 0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='cont_sens_fail_2 = cont_sens_fail_2 + 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='cont_sens_fail_2 = cont_sens_fail_2 + 1' />
												<exp exp='comando = &quot;T&quot; //mudando a letra é possivel usar outro icon para cor de fundo no HMI' />
												<exp exp='comando = comando + numero_modulo' />
												<exp exp='comando = comando + &quot;.bco=63488&quot; // mudar a cor da respetiva janela de fundo para vermelho' />
												<exp exp='temporario = ToString$ (cont_sens_fail_2)' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_sino' 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='numero_pagina &lt;&gt; 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='led_alarmes = 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sino = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;vis sino,1&quot;' />
													<exp exp='sino = 1' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina &lt;&gt; 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='led_alarmes = 0' swap='1' >
									<flowline />
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sino = 0' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;vis sino,0&quot;' />
													<exp exp='sino = 0' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='estado_sms_habilitar' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='sms_habilitar' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 0' swap='0' >
										<flowline >
											<command class_type='decision' title='icon_habilitar= 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_habilitar = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title=' comando = &quot;p0.pic=1&quot;//smsoff' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;p0.pic=1&quot; //smsoff' />
														<exp exp='icon_habilitar = 1' />
													</command>
													<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='icon_habilitar= 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_habilitar = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title='comando = &quot;SMS.pic=30&quot; //sms off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;SMS.pic=30&quot; //sms off' />
														<exp exp='icon_habilitar = 1' />
													</command>
													<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 0' swap='0' >
										<flowline >
											<command class_type='decision' title='Decisão icon_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_habilitar = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title=' comando = &quot;p0.pic=0&quot;//sms on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;p0.pic=0&quot; //sms on' />
														<exp exp='icon_habilitar = 1' />
													</command>
													<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão icon_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_habilitar = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title='comando = &quot;SMS.pic=31&quot; //sms on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;SMS.pic=31&quot; //sms on' />
														<exp exp='icon_habilitar = 1' />
													</command>
													<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='obter_sinal' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='count = 0' />
							<exp exp='string_csq = &quot;&quot;' />
							<exp exp='string_char = &quot;&quot;' />
							<exp exp='byte_result = 0' />
						</command>
						<command class_type='calculation' title='ver sinal' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CSQ&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar cr lf' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='loop' title='char = 43 // &quot; + &quot; ou 100 ciclos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='100' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='Decisão char = 43 // +' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 43 // +' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='goto' title='VaiPara Ponto de ligação C' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='' />
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='byte_result &lt;&gt; 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='byte_result' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='byte_resultl &lt; 32' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result &lt; 32' swap='1' >
									<flowline >
										<command class_type='decision' title='byte_result &gt; 126' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result &gt; 126' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='incremento de count' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='count = count + 1' />
												</command>
												<command class_type='decision' title='count &gt;= 6' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='count &gt;= 6' swap='0' >
													<flowline >
														<command class_type='decision' title='count &gt;=9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='count &gt;= 9' swap='0' >
															<flowline />
															<flowline >
																<command class_type='decision' title='byte_result = 44 //+' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result = 44' swap='0' >
																	<flowline />
																	<flowline >
																		<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='string_char[0] = byte_result' />
																			<exp exp='string_csq = string_csq + string_char' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação C' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='C' />
						<command class_type='call' title='Chamar calculo csq verbal' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_csq' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_caldeira1_on_off' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='caldeira1_on_off = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='caldeira1_on_off = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x6 caldeira1_on_off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x6' />
							<argument exp='caldeira1_on_off' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='out_1 = 0' />
									<exp exp='out_2 = 0' />
									<exp exp='estado_s1 = &quot;s1 off&quot;' />
									<exp exp='estado_s2 = &quot;s2 off&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='numeros_envio_sms' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='pos_mem_telefone = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pos_mem_telefone = 1' />
						</command>
						<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
						<command class_type='calculation' title='1º numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero_compara = Length$ (numero)' />
						</command>
						<command class_type='decision' title='numero_compara = &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara &lt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset numero compara' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar texto sem numero' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_sem_numero' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;chamada...&quot;' />
									<exp exp='comando = comando + numero' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								<command class_type='call' title='Chamar toke confirmaçao' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='toke_confirmacao' />
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_sms' />
							</flowline>
						</command>
						<command class_type='calculation' title='pos_mem_telefone = 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pos_mem_telefone = 2' />
						</command>
						<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
						<command class_type='calculation' title='numero_compara = Length$ (numero)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero_compara = Length$ (numero)' />
						</command>
						<command class_type='decision' title='numero_compara &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara &lt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset numero compara' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar texto sem numero' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_sem_numero' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_sms' />
							</flowline>
						</command>
						<command class_type='calculation' title='pos_mem_telefone = 3' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pos_mem_telefone = 3' />
						</command>
						<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
						<command class_type='calculation' title='numero_compara = Length$ (numero)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='numero_compara = Length$ (numero)' />
						</command>
						<command class_type='decision' title='numero_compara  &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara &lt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset numero compara' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar texto sem numero' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_sem_numero' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_sms' />
							</flowline>
						</command>
						<command class_type='calculation' title='pos_mem_telefone = 4' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pos_mem_telefone = 4' />
						</command>
						<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
						<command class_type='calculation' title='numero_compara = Length$ (numero)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero_compara = Length$ (numero)' />
						</command>
						<command class_type='decision' title='numero_compara  &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara &lt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset numero compara' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar texto sem numero' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_sem_numero' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_sms' />
							</flowline>
						</command>
						<command class_type='calculation' title='pos_mem_telefone = 5' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pos_mem_telefone = 5' />
						</command>
						<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
						<command class_type='calculation' title='numero_compara = Length$ (numero)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero_compara = Length$ (numero)' />
						</command>
						<command class_type='decision' title='numero_compara &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara &lt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset numero compara' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar texto sem numero' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_sem_numero' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='numero_compara = 1' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_sms' />
							</flowline>
						</command>
						<command class_type='comment' title='' comment='aqui chamava &quot;pedir saldo&quot;' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='pedir_saldo' />
						<command class_type='calculation' title='reset variavel texto' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='texto = &quot;&quot;' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_histerese_H' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0xb histerese H' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0xb' />
							<argument exp='histerese_H' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_flash_alarme' 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='estado_de_alarme = 1' swap='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='timer3_ativo = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='0' name='TMR3' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='led_alarmes = 0' />
											<exp exp='timer3_ativo = 0' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;vis sino,0&quot;' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='timer3_ativo = 1' swap='0' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='1' name='TMR3' call='flash_led_alarm' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='timer3_ativo = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='estado_alarmes_min' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='habilitar_alarmes_minimos' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 0' swap='0' >
										<flowline >
											<command class_type='decision' title='icon_alarmes_min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_alarmes_min = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title=' comando = &quot;p3.pic=35&quot;//alarmes min off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;p3.pic=35&quot; //alarmes min off' />
														<exp exp='icon_alarmes_min = 1' />
													</command>
													<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='icon_alarmes_min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_alarmes_min = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title='comando = &quot;MIN.pic=32&quot; //ALARMES MIN off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;MIN.pic=32&quot; //ALARMES MIN OFF' />
														<exp exp='icon_alarmes_min = 1' />
													</command>
													<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 0' swap='0' >
										<flowline >
											<command class_type='decision' title='icon_alarmes_min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_alarmes_min = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title=' comando = &quot;p3.pic=34&quot;//alarmes min on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;p3.pic=34&quot; //alarmes min on' />
														<exp exp='icon_alarmes_min = 1' />
													</command>
													<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='icon_alarmes_min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_alarmes_min = 1' swap='0' >
												<flowline />
												<flowline >
													<command class_type='calculation' title='comando = &quot;MIN.pic=33&quot; //ALARMES MIN oN' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;MIN.pic=33&quot; //ALARMES MIN ON' />
														<exp exp='icon_alarmes_min = 1' />
													</command>
													<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_temp2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='prog_T2 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_T2 = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x9 prog T2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x9' />
							<argument exp='prog_T2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_ventila' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x11 climatiza_ventil_1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x11' />
							<argument exp='climatiza_ventil1' />
						</command>
						<command class_type='call' title='eeprom 0x12 climatiza_ventil_2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x12' />
							<argument exp='climatiza_ventil2' />
						</command>
						<command class_type='call' title='eeprom 0x13  percentual' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x13' />
							<argument exp='percentual' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='remoto_c2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_rem_string = Right$ (temporario_rem_string,2)' />
							<exp exp='prog_c2 = StringToInt$ (temporario_rem_string)' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_c2 &lt; 40' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;numero tem que ser &gt;= 40  &lt;= 100&quot;' />
									<exp exp='texto_dados_rem = &quot;limite&gt;=40&lt;=100&quot;' />
								</command>
								<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_c2 &gt; 100' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto = &quot;numero tem que ser &gt;= 40  &lt;= 100&quot;' />
											<exp exp='texto_dados_rem = &quot;limite&gt;=40&lt;=100&quot;' />
										</command>
										<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_dados_rem = &quot;dados alterados&quot;' />
										</command>
										<command class_type='call' title='Chamar display dados guardados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_dados_guardados' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_C2' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
					</flowline>
				</macro>
				<macro >
					<flowline name='nova_sms_rec' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando = &quot;AT+CMGL=\&quot;REC UNREAD\&quot;&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CMGL=\&quot;REC UNREAD\&quot;&quot;' />
							<exp exp='string2 = &quot;&quot;' />
							<exp exp='string3 = &quot;&quot;' />
							<exp exp='VIRGULAS_NUM = 0' />
							<exp exp='tamanho_str_humid = 0' />
							<exp exp='clock_rede = &quot;&quot;' />
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
							<exp exp='contador = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='loop' title='1 ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char = 43 // +' start='0' >
							<flowline >
								<command class_type='comment' title='' comment='dia 11/02/2020
alterado o valor de timeout para 20 Ms (estava 50)' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='comment' title='' comment='dia 11/02/2020
alterado contador para &gt; 2 (estava &gt;6)' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='decision' title='contador &gt;= 6' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 6' swap='0' >
									<flowline >
										<command class_type='calculation' title='reset contador' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador = 0' />
										</command>
										<command class_type='goto' title='VaiPara Ponto de ligação C' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador = contador + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='reset contador' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador = 0' />
						</command>
						<command class_type='loop' title='char &lt;&gt; 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='char &lt;&gt; 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='char &gt; 32' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 32' swap='0' >
									<flowline >
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='CHAR &lt; 127' swap='1' >
											<flowline />
											<flowline >
												<command class_type='switch' title='Switch VIRGULAS_NUM' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='VIRGULAS_NUM' >
													<case >
														<flowline />
													</case>
													<case exp='3' >
														<flowline >
															<command class_type='comment' title='' comment='aqui tira o numero' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
															<command class_type='switch' title='Switch' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char' >
																<case >
																	<flowline >
																		<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='string_char[0] = char' />
																			<exp exp='STRING2 = STRING2 + string_char' />
																			<exp exp='' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</case>
																<case exp='34 //&quot;' >
																	<flowline />
																</case>
																<case exp='44 //,' >
																	<flowline />
																</case>
																<case exp='43 //+' >
																	<flowline />
																</case>
															</command>
														</flowline>
													</case>
													<case exp='8' >
														<flowline >
															<command class_type='comment' title='' comment='aqui tira o tipo de comando a ser processado' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
															<command class_type='switch' title='Switch' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char' >
																<case >
																	<flowline >
																		<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='string_char[0] = char' />
																			<exp exp='string3 = string3 + string_char' />
																			<exp exp='' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</case>
																<case exp='34 //&quot;' >
																	<flowline />
																</case>
																<case exp='43 //+' >
																	<flowline />
																</case>
																<case exp='44 //,' >
																	<flowline />
																</case>
															</command>
														</flowline>
													</case>
													<case exp='7' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='// +CMGL: 1,&quot;REC UNREAD&quot;,&quot;+351918155032&quot;,&quot;&quot;,&quot;16/12/27,19:11:21+00&quot;acertar&quot;relogio&quot;' />
															</command>
															<command class_type='decision' title='char = 34' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='calculation' title='obter relogio da rede' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='string_char[0] = char' />
																		<exp exp='clock_rede = clock_rede + string_char' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</case>
												</command>
												<command class_type='decision' title='char = 34' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='VIRGULAS_NUM = VIRGULAS_NUM + 1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='char = 10 quer dizer avanço de linha 
deve ser igual a 3 avanços para completar a mensagem recebida' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='decision' title='contador &gt;= 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador &gt;= 2' swap='0' >
											<flowline >
												<command class_type='decision' title='char = 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 10' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='meter aqui : contador = 0' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='contador = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='char = 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 10' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo contador = contador + 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = contador + 1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='calculation' title='descodificaçao numero (tel.) e sms' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='numero = Left$ (STRING2,13)' />
							<exp exp='numero = Right$ (numero,9) //retira o numero sem indicativo' />
							<exp exp='tamanho_str_humid = Length$ (string3)' />
							<exp exp='string_geral = Right$ (string3,tamanho_str_humid) // colocar aqui : text_recebido = Right$ (rs232_result,length_str)' />
							<exp exp='byte_result = 1' />
							<exp exp='//length_str = 0 // colocar aqui: length_str = 0' />
							<exp exp='contador = 0 // colocar aqui : contador = 0' />
							<exp exp='VIRGULAS_NUM = 0' />
						</command>
						<command class_type='call' title='Chamar control processamaento' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_processamento' />
						<command class_type='label' title='Ponto de ligação C' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_temp1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='prog_T1 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_T1 = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x8 prog T1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x8' />
							<argument exp='prog_T1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='remoto_c1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_rem_string = Right$ (temporario_rem_string,2)' />
							<exp exp='prog_c1 = StringToInt$ (temporario_rem_string)' />
						</command>
						<command class_type='decision' title='prog_c1 &lt; 40' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_c1 &lt; 40' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;numero tem que ser &gt;= 40  &lt;= 100&quot;' />
									<exp exp='texto_dados_rem = &quot;limite&gt;=40&lt;=100&quot;' />
								</command>
								<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_c1 &gt; 100' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto = &quot;numero tem que ser &gt;= 40  &lt;= 100&quot;' />
											<exp exp='texto_dados_rem = &quot;limite&gt;=40&lt;=100&quot;' />
										</command>
										<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_dados_rem = &quot;dados alterados&quot;' />
										</command>
										<command class_type='call' title='Chamar display dados guardados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_dados_guardados' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_C1' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
					</flowline>
				</macro>
				<macro >
					<flowline name='switch_contador' 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='contador = contador + 1' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador' >
							<case >
								<flowline />
							</case>
							<case exp='84' >
								<flowline >
									<command class_type='call' title='Chamar entradas IO' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='entradas_IO' />
								</flowline>
							</case>
							<case exp='168' >
								<flowline >
									<command class_type='call' title='Chamar control adcs IO alarmes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_alarmes' />
								</flowline>
							</case>
							<case exp='252' >
								<flowline >
									<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
									<command class_type='calculation' title='reset contador' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='contador = 0' />
										<exp exp='ciclo_switch = ciclo_switch + 1' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ciclo_macros_geral' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='' textmode='1' textarea='58,132,533,432' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ciclo_macros' >
							<case >
								<flowline >
									<command class_type='call' title='Chamar entradas IO' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='entradas_IO' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
									<command class_type='call' title='leitura analogica' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_analogica' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='call' title='chamar nova sms rec' cmdcolor='16711808' cmdcolor_sec='16711808' macro='nova_sms_rec' />
								</flowline>
							</case>
							<case exp='9' >
								<flowline >
									<command class_type='call' title='Chamar clock gsm' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='clock_gsm' />
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;gsm.val=&quot;' />
										<exp exp='//comando = comando + &quot;\&quot;&quot;' />
										<exp exp='comando = comando + string_csq' />
										<exp exp='//comando = comando + &quot;\&quot;&quot;' />
									</command>
									<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
									<command class_type='call' title='leitura analogica' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_analogica' />
								</flowline>
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='call' title='chamar display pwm1 val percent' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_pwm_val_percent' />
								</flowline>
							</case>
							<case exp='18' >
								<flowline >
									<command class_type='call' title='Chamar obter sinal' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='obter_sinal' />
								</flowline>
							</case>
							<case exp='21' >
								<flowline >
									<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
									<command class_type='call' title='leitura analogica' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_analogica' />
								</flowline>
							</case>
							<case exp='24' >
								<flowline >
									<command class_type='call' title='Chamar estado caldeiras' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_caldeiras' />
								</flowline>
							</case>
							<case exp='27' >
								<flowline >
									<command class_type='call' title='Chamar estado alarmes min sms habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_alarmes_min' />
								</flowline>
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saidas' />
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='ciclo_macros = 0' />
										<exp exp='icon_habilitar = 0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='incremento de variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='ciclo_macros = ciclo_macros + 1' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='modem_gravar' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//length_str = Length$ (temporario)' />
							<exp exp='tamanho_str_humid = Length$ (numero)' />
						</command>
						<command class_type='decision' title='length_str &lt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_humid &lt; 9' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='aqui e onde apaga o contacto' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='&quot;AT+CPBW=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = ToString$ (pos_mem_telefone)' />
									<exp exp='comando = &quot;AT+CPBW=&quot;' />
									<exp exp='comando = comando + temporario' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
									<argument exp='comando' />
								</command>
								<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='numero = temporario' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='//numero = temporario' />
									<exp exp='temporario = ToString$ (pos_mem_telefone)' />
								</command>
								<command class_type='calculation' title='&quot;AT+CPBW=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;AT+CPBW=&quot;' />
									<exp exp='comando = comando + temporario // pos_mem_telefone (variavel convertida)' />
									<exp exp='comando = comando + &quot;,&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + numero' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;,&quot;' />
									<exp exp='comando = comando + &quot;129&quot;' />
									<exp exp='comando = comando + &quot;,&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + nome' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
									<argument exp='comando' />
								</command>
								<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_processamento' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='length_str = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_humid = 0' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='aqui tinha chamar numeros telemovel' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='print &quot;sms recebido&quot;' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;sms recebido:&quot;' />
									<exp exp='comando = comando + numero' />
									<exp exp='comando = comando + &quot; &quot;' />
									<exp exp='comando = comando + string_geral' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								<command class_type='calculation' title='contador_sms_in = contador_sms_in + 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_sms_in = contador_sms_in + 1' />
								</command>
								<command class_type='call' title='eeprom write contador_sms 0x1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x1' />
									<argument exp='contador_sms_in' />
								</command>
								<command class_type='call' title='eeprom estado contador sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
									<return exp='contador_sms_in' />
									<argument exp='0x1' />
								</command>
								<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_sms_in &gt; 5' swap='0' >
									<flowline >
										<command class_type='calculation' title='reset contador sms in' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_sms_in = 0' />
											<exp exp='temporario = &quot;a apagar sms box&quot;' />
										</command>
										<command class_type='calculation' title='comando = comando + temporario' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='comando = &quot;t0.txt=&quot;' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
											<exp exp='comando = comando + temporario' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
										<command class_type='call' title='Chamar apagar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='apagar_sms' />
										<command class_type='comment' title='' comment='print temporario' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='calculation' title='reset temporario' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='temporario = &quot;&quot;' />
										</command>
										<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='5' type='2' />
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='//numero_compara = Compare$ (tel_1,numero,1)' />
									<exp exp='contador_sms_in = contador_sms_in + 1' />
								</command>
								<command class_type='call' title='eeprom guardar contagem sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x1' />
									<argument exp='contador_sms_in' />
								</command>
								<command class_type='comment' title='' comment='print numero recebido' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
								<command class_type='comment' title='' comment='chamar a macro conferir numero recebido
se opçao segurança de numero for chamada' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='numero_compara = Compare$ (c2,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario_rem_string = left$ (string_geral,6)' />
									<exp exp='string_geral = left$ (string_geral,4)' />
									<exp exp='numero_compara = Compare$ (c2,string_geral,1)' />
								</command>
								<command class_type='decision' title='remoto c 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Chamar remoto c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_c2' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='numero_compara = Compare$(ventila1,string_geral,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='string_geral = left$ (string_geral,4)' />
											<exp exp='numero_compara = Compare$ (ventila1,string_geral,1)' />
										</command>
										<command class_type='decision' title='remoto ventila on' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='climatiza_ventil1 = 1' />
													<exp exp='climatiza_ventil2 = 1' />
												</command>
												<command class_type='call' title='Chamar remoto ventila' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_ventila' />
											</flowline>
											<flowline >
												<command class_type='calculation' title='numero_compara = Compare$(ventila0,string_geral,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='string_geral = left$ (string_geral,4)' />
													<exp exp='numero_compara = Compare$ (ventila0,string_geral,1)' />
												</command>
												<command class_type='decision' title='remoto ventila off' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='climatiza_ventil1 = 0' />
															<exp exp='climatiza_ventil2 = 0' />
														</command>
														<command class_type='call' title='Chamar remoto ventila' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_ventila' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='numero_compara = Compare$ (reset,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='' />
															<exp exp='string_geral = left$ (string_geral,4)' />
															<exp exp='numero_compara = Compare$ (c1,string_geral,1)' />
														</command>
														<command class_type='decision' title='remoto c 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
															<flowline >
																<command class_type='call' title='Chamar remoto c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_c1' />
															</flowline>
															<flowline >
																<command class_type='calculation' title='numero_compara = Compare$ (reset,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='' />
																	<exp exp='string_geral = left$ (string_geral,4)' />
																	<exp exp='numero_compara = Compare$ (T2,string_geral,1)' />
																</command>
																<command class_type='decision' title='remoto t 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
																	<flowline >
																		<command class_type='call' title='Chamar remoto t2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_t2' />
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='numero_compara = Compare$ (reset,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='' />
																			<exp exp='string_geral = left$ (string_geral,4)' />
																			<exp exp='numero_compara = Compare$ (T1,string_geral,1)' />
																		</command>
																		<command class_type='decision' title='remoto t 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
																			<flowline >
																				<command class_type='call' title='Chamar remoto t1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='remoto_t1' />
																			</flowline>
																			<flowline >
																				<command class_type='calculation' title='numero_compara = Compare$ (reset,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																					<exp exp='string_geral = left$ (string_geral,4)' />
																					<exp exp='numero_compara = Compare$ (reset,string_geral,1)' />
																				</command>
																				<command class_type='decision' title='reset remoto' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
																					<flowline >
																						<command class_type='call' title='Chamar reset remoto' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='reset_remoto' />
																					</flowline>
																					<flowline >
																						<command class_type='calculation' title='numero_compara = Compare$ (estado,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																							<exp exp='string_geral = left$ (string_geral,4)' />
																							<exp exp='numero_compara = Compare$ (estado,string_geral,1)' />
																						</command>
																						<command class_type='decision' title='pedir estado' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
																							<flowline >
																								<command class_type='call' title='Chamar pedido de estado' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='pedido_estado' />
																							</flowline>
																							<flowline >
																								<command class_type='calculation' title='numero_compara = Compare$ (cclk,string,1)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																									<exp exp='numero_compara = Compare$ (cclk,string_geral,1)' />
																								</command>
																								<command class_type='decision' title='acertar relogio' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_compara = 0' swap='0' >
																									<flowline >
																										<command class_type='comment' title='' comment='03/02/18
aqui estava chamar acertar relogio' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																										<command class_type='call' title='Chamar clock set' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='clock_set' />
																										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result &lt;&gt; 0' swap='0' >
																											<flowline >
																												<command class_type='comment' title='' comment='temporario' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																												<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																													<exp exp='' />
																													<exp exp='comando = &quot;t0.txt=&quot;' />
																													<exp exp='comando = comando + &quot;\&quot;&quot;' />
																													<exp exp='comando = comando + &quot;erro ao acertar relogio&quot;' />
																													<exp exp='comando = comando + &quot;\&quot;&quot;' />
																													<exp exp='' />
																												</command>
																											</flowline>
																											<flowline >
																												<command class_type='comment' title='' comment='temporario' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																												<command class_type='comment' title='' comment='&quot;clock set ok&quot;' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																												<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																													<exp exp='' />
																													<exp exp='comando = &quot;t0.txt=&quot;' />
																													<exp exp='comando = comando + &quot;\&quot;&quot;' />
																													<exp exp='comando = comando + &quot;acerto relogio ok&quot;' />
																													<exp exp='comando = comando + &quot;\&quot;&quot;' />
																													<exp exp='' />
																												</command>
																											</flowline>
																										</command>
																										<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
																										<command class_type='delay' title='Atraso 5 s' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='5' type='2' />
																									</flowline>
																									<flowline >
																										<command class_type='call' title='Chamar habilitar_desabilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='sms_habilitar' />
																									</flowline>
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																				</command>
																			</flowline>
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
								<command class_type='comment' title='' comment='se optar por modulo segurança de numeros
deve usar o ponto de ligaçao A aqui' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='comando = string' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = string_geral' />
									<exp exp='comando = right$ (comando,4)' />
								</command>
								<command class_type='call' title='Chamar DADOS EEPROM' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
								<command class_type='comment' title='' comment='ao fazer reset a aviso_alarme vai fazer com que 
se houver estado de alarme o texto &quot;t0&quot; vai informar esse evento' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='//flash_led = 0' />
									<exp exp='icon_sms = 0' />
									<exp exp='icon_climatiza1 = 0' />
									<exp exp='icon_climatiza2 = 0' />
									<exp exp='icon_estado_caldeira1 = 0' />
									<exp exp='icon_estado_caldeira2 = 0' />
									<exp exp='aviso_alarme = 0' />
									<exp exp='contador_display_adcs = 121 //para fazer mostrar todas as adcs' />
									<exp exp='icon_habilitar = 0 //reset variavel' />
									<exp exp='icon_alarmes_min = 0 // reset variavel' />
								</command>
								<command class_type='call' title='Chamar sem ocurrencias txt' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='sem_ocurrencias_txt' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_avarias' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + texto_de_alarme' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_H2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print display_hum2' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;h1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (hum_2)' />
							<exp exp='comando = &quot;h2.val=&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temporario' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_prog_sens_fumo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print &quot;sensor  fumo&quot;' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='print numero adc_senfumo' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;fumo.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (adc_senfumo)' />
							<exp exp='comando = &quot;fumo.val=&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temporario' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PWM_on_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='climatiza_ventil1 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM1' macro='Enable' />
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM1' macro='Disable' />
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM2' macro='Enable' />
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM2' macro='Disable' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='reset_remoto' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='byte_sms_reset = byte_sms_reset + 1' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_sms_reset &gt; 3' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='escreve &quot;max reset remot&quot;' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;maximo reset remoto verifique equipamento!&quot;' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;numero maximo reset remoto&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='escreve &quot;reset alarmes&quot;' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='numero resetes
byte_sms_reset' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='alarme_fumo = 0' />
									<exp exp='alarme_falha_luz = 0' />
									<exp exp='byte_onboard_stat = 1' />
									<exp exp='led_alarmes = 0' />
									<exp exp='alarme_temp1max = 0' />
									<exp exp='alarme_temp2max = 0' />
									<exp exp='alarme_c1max = 0' />
									<exp exp='alarme_c2max = 0' />
									<exp exp='alarme_temp1min = 0' />
									<exp exp='alarme_temp2min = 0' />
									<exp exp='alarme_c2min = 0' />
									<exp exp='alarme_c1min = 0' />
									<exp exp='estado_de_alarme = 0' />
									<exp exp='cont_sens_fail_1 = 0 // usada em leitura analogica' />
									<exp exp='alarme_falha_sensor_1 = 0' />
								</command>
								<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
								<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = ToString$ (byte_sms_reset)' />
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;reset remoto ok  Nº&quot;' />
									<exp exp='comando = comando + temporario' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								<command class_type='comment' title='' comment='chamar ou desligar uma interrupçao
TMR0 (exemplo)' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Atraso 3 s' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='3' type='2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='rotina_pagina_1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando = &quot;page 1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='numero_pagina = 1' />
							<exp exp='' />
							<exp exp='comando = &quot;page 1&quot;' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3x255' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_display_temporiza2' 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='minuto_str = ToString$ (minuto3)' />
							<exp exp='segundo_str = ToString$ (segundo3)' />
							<exp exp='temporario_byte = Length$ (minuto_str)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = &quot;0&quot;' />
									<exp exp='temporario = temporario + minuto_str' />
									<exp exp='temporario = temporario + &quot;:&quot;' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = minuto_str' />
									<exp exp='temporario = temporario + &quot;:&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_byte = Length$ (segundo_str)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = temporario + &quot;0&quot;' />
									<exp exp='temporario = temporario + segundo_str' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = temporario + segundo_str' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;tnub2.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_alarmes' 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='nublizacao1 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_nubliza1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao2 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_nubliza2' />
							</flowline>
							<flowline />
						</command>
						<command class_type='switch' title=' contador pass alarmes' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_pass_alarmes' >
							<case >
								<flowline >
									<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao1 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='climatiza_ventil_1 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_1 = 0' />
														<exp exp='out_2 = 0' />
														<exp exp='' />
														<exp exp='estado_s1 = &quot;S1off&quot;' />
														<exp exp='estado_s2 = &quot;S2off&quot;' />
														<exp exp='' />
													</command>
													<command class_type='call' title='Chamar control ventila1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_ventila1' />
												</flowline>
												<flowline >
													<command class_type='call' title='calculo caldeira 1' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_caldeira1' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao2 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='climatiza_ventil_2 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_4 = 0' />
														<exp exp='out_5 = 0' />
														<exp exp='' />
														<exp exp='estado_s4 = &quot;S4off&quot;' />
														<exp exp='estado_s5 = &quot;S5off&quot;' />
														<exp exp='' />
													</command>
													<command class_type='call' title='Chamar control ventila2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_ventila2' />
												</flowline>
												<flowline >
													<command class_type='call' title='calculo caldeira 2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_caldeira2' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='call' title='Chamar alarme temp1 max' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_t1_max' />
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='call' title='chamar alarme t1 min' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_t1min' />
								</flowline>
							</case>
							<case exp='16' >
								<flowline >
									<command class_type='call' title='Chamar alarme c1 max' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_c1max' />
								</flowline>
							</case>
							<case exp='20' >
								<flowline >
									<command class_type='call' title='Chamar alarme c1 min' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_c1min' />
								</flowline>
							</case>
							<case exp='24' >
								<flowline >
									<command class_type='call' title='Chamar alarme temp2 max' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_t2_max' />
								</flowline>
							</case>
							<case exp='28' >
								<flowline >
									<command class_type='call' title='Chamar alarme temp2 min' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_t2min' />
								</flowline>
							</case>
							<case exp='32' >
								<flowline >
									<command class_type='call' title='Chamar alarme c2 max' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_c2max' />
								</flowline>
							</case>
							<case exp='36' >
								<flowline >
									<command class_type='call' title='Chamar alarme c2 min' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_c2min' />
								</flowline>
							</case>
							<case exp='40' >
								<flowline >
									<command class_type='call' title='Chamar control sens fumo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_sens_fumo' />
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch contador pass alarmes' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_pass_alarmes' >
							<case >
								<flowline />
							</case>
							<case exp='44' >
								<flowline >
									<command class_type='call' title='chamar alarme fumo' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_fumo' />
								</flowline>
							</case>
							<case exp='48' >
								<flowline >
									<command class_type='call' title='chamar alarme luz' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_luz' />
								</flowline>
							</case>
							<case exp='52' >
								<flowline >
									<command class_type='call' title='chamar  alarme sensor1' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_sensor1' />
								</flowline>
							</case>
							<case exp='56' >
								<flowline >
									<command class_type='call' title='chamar  alarme sensor2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='alarme_sensor2' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='contador_pass_alarmes = 0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador_pass_alarmes = contador_pass_alarmes + 1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
						<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_nubliza2' 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='adc_temp_2 &gt; prog_T2 + histerese_t' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer2 &lt;&gt; 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='1' name='TMR1' call='timer_1' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='byte_timer2 = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer2 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='chamar calculo display temporiza2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_temporiza2' />
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = minuto_str' />
									<exp exp='temporario = temporario + segundo_str' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza2_on &gt;= tempo_on_nubliza2' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_8 = 0' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza2_off &gt;= tempo_off_nubliza2' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador_nubliza2_on = 0 // reset' />
															<exp exp='minuto3 = 0' />
															<exp exp='segundo3 = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador_nubliza2_off = StringToInt$ (temporario)' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='out_8 = 0' />
													<exp exp='estado_s8 = &quot;S8off&quot;' />
													<exp exp='minuto3 = 0' />
													<exp exp='segundo3 = 0' />
													<exp exp='reset_nubliza_icones = 0' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='reset_nubliza_icones = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='reset_nubliza_icones = 1' />
													<exp exp='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												<command class_type='calculation' title='comando = &quot;tnub2.pic=48&quot; //fundo cinza off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;tnub2.pic=48&quot; //fundo cinza off' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza2_on = StringToInt$ (temporario)' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_8 = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='out_8 = 1' />
													<exp exp='estado_s8 = &quot;S8 on&quot;' />
													<exp exp='contador_nubliza2_off = 0 // reset contador nubliza1 off' />
													<exp exp='reset_nubliza_icones = 0' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='reset_nubliza_icones = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='reset_nubliza_icones = 1' />
													<exp exp='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												<command class_type='calculation' title='comando = &quot;tnub2.pic=49&quot; //fundo verde on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;tnub2.pic=49&quot; //fundo verde on' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt;= prog_T2' swap='1' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer2 &lt;&gt; 0' swap='1' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='0' name='TMR1' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='out_8 = 0' />
											<exp exp='estado_s8 = &quot;S8off&quot;' />
											<exp exp='minuto3 = 0' />
											<exp exp='segundo3 = 0' />
											<exp exp='byte_timer2 = 0' />
											<exp exp='contador_nubliza2_on = 0' />
											<exp exp='contador_nubliza2_off = 0' />
											<exp exp='reset_nubliza_icones = 0' />
										</command>
										<command class_type='calculation' title='comando = &quot;tnub2.pic=39&quot; //fundo azul standby' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;tnub2.pic=39&quot; //fundo azul standby' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
										<command class_type='calculation' title='comando = &quot;tnub2.txt=&quot;--:--&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;tnub2.txt=&quot;' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
											<exp exp='comando = comando + &quot;--:--&quot;' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='conversao_adcs_string' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='string_C1 = ToString$ (adc_caldeira_1)' />
							<exp exp='string_C2 = ToString$ (adc_caldeira_2)' />
							<exp exp='string_T1 = ToString$ (adc_temp_1)' />
							<exp exp='string_T2 = ToString$ (adc_temp_2)' />
							<exp exp='string_H1 = ToString$ (display_hum1)' />
							<exp exp='string_H2 = ToString$ (display_hum2)' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_H1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print display_hum1' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;h1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (hum_1)' />
							<exp exp='comando = &quot;h1.val=&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temporario' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_1' 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='pulso_nublizacao2 = pulso_nublizacao2 + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pulso_nublizacao2 = 160' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='segundo3 = segundo3 + 1' />
									<exp exp='pulso_nublizacao2 = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='segundo3 &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minuto3 = minuto3 + 1' />
											<exp exp='segundo3 = 0' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto3 &gt; 9' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='minuto3 = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='iniciar' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
						<command class_type='call' title='chamar pwm_on_off' cmdcolor='16711808' cmdcolor_sec='16711808' macro='PWM_on_off' />
						<command class_type='calculation' title='iniciar variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//adc_caldeira_1 = 65' />
							<exp exp='adc_senfumo = 0 // apagar este valor depois de fazer os testes !!' />
							<exp exp='//adc_caldeira_2 = 65 // apagar este valor depois de fazer os testes !!' />
							<exp exp='//hum_2 = 60 // apagar este valor depois de fazer os testes !!' />
							<exp exp='min_temp_ajuste = 40' />
							<exp exp='desabilitar = &quot;sms0&quot;' />
							<exp exp='habilitar = &quot;sms1&quot;' />
							<exp exp='estado = &quot;stat&quot;' />
							<exp exp='cclk = &quot;cclk&quot;' />
							<exp exp='texto_erro = &quot;OK&quot;' />
							<exp exp='string_espaco = &quot;  &quot;' />
							<exp exp='string_geral = &quot;&quot;' />
							<exp exp='contador = 0' />
							<exp exp='ciclo_macros = 0' />
							<exp exp='byte_sms = 0' />
							<exp exp='byte_onboard_stat = 0' />
							<exp exp='numero_compara = 1' />
							<exp exp='med_hum1 = 153' />
							<exp exp='med_hum2 = 153' />
							<exp exp='out_1 = 0 // motor dos fumos' />
							<exp exp='out_2 = 0 // motor do ar quente' />
							<exp exp='out_3 = 0 // ventilacao 1' />
							<exp exp='out_4 = 0 // motor dos fumos' />
							<exp exp='out_5 = 0 // motor do ar quente' />
							<exp exp='out_6 = 0 // ventilacao 2' />
							<exp exp='out_7 = 0 // nublizacao 1' />
							<exp exp='out_8 = 0 // nublizacao 2' />
							<exp exp='estado_s1 = &quot;S1off&quot;' />
							<exp exp='estado_s2 = &quot;S2off&quot;' />
							<exp exp='estado_s3 = &quot;S3off&quot;' />
							<exp exp='estado_s4 = &quot;S4off&quot;' />
							<exp exp='estado_s5 = &quot;S5off&quot;' />
							<exp exp='estado_s6 = &quot;S6off&quot;' />
							<exp exp='estado_s7 = &quot;s7off&quot;' />
							<exp exp='estado_s8 = &quot;s8off&quot;' />
							<exp exp='alarme_fumo = 0' />
							<exp exp='alarme_falha_luz = 0' />
							<exp exp='led_alarmes = 0' />
							<exp exp='texto_falha_energia = &quot;falha energia&quot;' />
							<exp exp='texto_fumo = &quot;fumo detetado&quot;' />
							<exp exp='pos_mem_telefone = 1' />
							<exp exp='reset = &quot;rese&quot;' />
							<exp exp='byte_sms_reset = 0' />
							<exp exp='atualiza_adcs = 0' />
							<exp exp='pulso = 0 // usada em temporizador C1' />
							<exp exp='flash_temp_fumo = 0' />
							<exp exp='alarme_temp1max = 0' />
							<exp exp='alarme_temp2max = 0' />
							<exp exp='alarme_c1max = 0' />
							<exp exp='alarme_c2max = 0' />
							<exp exp='texto_excesso_temp1 = &quot;TEMPERATURA ALTA AVIARIO 1&quot;' />
							<exp exp='texto_excesso_temp2 = &quot;TEMPERATURA ALTA AVIARIO 2&quot;' />
							<exp exp='texto_excesso_c1 = &quot;TEMPERATURA ALTA CALDEIRA 1&quot;' />
							<exp exp='texto_excesso_c2 = &quot;TEMPERATURA ALTA CALDEIRA 2&quot;' />
							<exp exp='byte_c1 = 0' />
							<exp exp='byte_c2 = 0' />
							<exp exp='byte_t1 = 0' />
							<exp exp='byte_t2 = 0' />
							<exp exp='T1 = &quot;Tem1&quot;' />
							<exp exp='T2 = &quot;Tem2&quot;' />
							<exp exp='C1 = &quot;Cal1&quot;' />
							<exp exp='C2 = &quot;Cal2&quot;' />
							<exp exp='alarme_temp1min = 0' />
							<exp exp='alarme_temp2min = 0' />
							<exp exp='flash_arranque = 0' />
							<exp exp='texto_temp_min1 = &quot;TEMPERATURA BAIXA AVIARIO 1&quot;' />
							<exp exp='texto_temp_min2 = &quot;TEMPERATURA BAIXA AVIARIO 2&quot;' />
							<exp exp='segundo1 = 0 // usada em timer 0' />
							<exp exp='minuto1 = 0 // usada em timer 0' />
							<exp exp='alarme_c2min = 0' />
							<exp exp='alarme_c1min = 0' />
							<exp exp='estado_de_alarme = 0' />
							<exp exp='texto_baixo_c1 = &quot;TEMPERATURA BAIXA CALDEIRA 1&quot;' />
							<exp exp='texto_baixo_c2 = &quot;TEMPERATURA BAIXA CALDEIRA 2&quot;' />
							<exp exp='ventila1 = &quot;ven1&quot;' />
							<exp exp='ventila0 = &quot;ven0&quot;' />
							<exp exp='string_climatizar = &quot;CLIMA C/ VENTIL.&quot; // ver se esta variavel ainda faz falta...' />
							<exp exp='registo_simcard = &quot;+CREG: 0,1&quot;' />
							<exp exp='result_ok = &quot;OK&quot;' />
							<exp exp='contador_falha_ok = 0' />
							<exp exp='pulso_nublizacao2 = 0 //usada em timer 2' />
							<exp exp='minuto = 0 //usada em temporizador C1' />
							<exp exp='segundo = 0 // usada em temporizador C1' />
							<exp exp='byte_temporizador_c1 = 0' />
							<exp exp='pulso2 = 0 // usada em temporizador C2' />
							<exp exp='minuto2 = 0 // udsada em temporizador C2' />
							<exp exp='segundo2 = 0 // usada em temporizador C2' />
							<exp exp='byte_temporizador_c2 = 0' />
							<exp exp='numero_pagina = 0' />
							<exp exp='icon_sms = 0 // variavel para passar info uma vez' />
							<exp exp='icon_estado_caldeira1 = 0 //variavel para passar info uma vez' />
							<exp exp='icon_climatiza1 = 0 //variavel para passar info uma vez' />
							<exp exp='icon_climatiza2 = 0 //variavel para passar info uma vez' />
							<exp exp='icon_estado_caldeira2 = 0 //variavel para passar info uma vez' />
							<exp exp='aviso_alarme = 0 //variavel para passar info uma vez' />
							<exp exp='contador_display_adcs = 16 //inicia variavel' />
							<exp exp='icon_habilitar = 0 //reset variavel' />
							<exp exp='icon_alarmes_min = 0 // reset variavel' />
							<exp exp='byte_reset = 0 // inicia variavel (main)' />
							<exp exp='byte_gravar_numeros = 0 // inicia variavel' />
							<exp exp='cont_sens_fail_1 = 0 // esta variavel é experimental usada na leitura analogica' />
							<exp exp='contador_modulos_rf = 1 // inicia variavel' />
							<exp exp='alarme_falha_sensor_1 = 0 //inicia variavel experimental sensores wireless' />
							<exp exp='alarme_falha_sensor_2 = 0 //inicia variavel experimental sensores wireless' />
							<exp exp='cont_sens_fail_1 = 0 // inicia variavel' />
							<exp exp='cont_sens_fail_2 = 0 // inicia variavel' />
							<exp exp='cont_f_sen_geral = 0 // variavel usada em leitura modulos' />
							<exp exp='contador_reset = 0 // variavel usada em leitura modulos' />
							<exp exp='contador_pass_alarmes = 0 // variavel experimental em control adcs IO alarmes' />
							<exp exp='contador_nubliza1_off = 0 // usada nos timers de nublizacao' />
							<exp exp='contador_nubliza1_on = 0 // usada nos timers de nublizacao' />
							<exp exp='byte_timer1 = 0 //usada em control nubliza 1' />
							<exp exp='contador_nubliza2_off = 0 // usada nos timers de nublizacao' />
							<exp exp='contador_nubliza2_on = 0 // usada nos timers de nublizacao' />
							<exp exp='byte_timer2 = 0 //usada em control nubliza 2' />
							<exp exp='reset_nubliza_icones = 0 // usada em control nubliza 1 e 2' />
							<exp exp='segundo3 = 0 // usada em timer1' />
							<exp exp='minuto3 = 0 //usada em timer 3' />
							<exp exp='ciclo_switch = 0 // usada em switch contador e macros/paginas do menu' />
							<exp exp='contador_alarmes = 0 // usada nas macros de alarmes' />
							<exp exp='cont_led_alarm = 0 // usada na macro flash led alarme' />
							<exp exp='timer3_ativo = 0 // usada na macro flash led alarme' />
						</command>
						<command class_type='calculation' title='comando = &quot;page 0&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;page 0&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='call' title='configurar AN0' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_ptr_black1' macro='RawEnable' />
						<command class_type='call' title='configurar AN1' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_color_cap1' macro='RawEnable' />
						<command class_type='call' title='leitura analogica' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_analogica' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_display_temporiza1' 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='minuto_str = ToString$ (minuto1)' />
							<exp exp='segundo_str = ToString$ (segundo1)' />
							<exp exp='temporario_byte = Length$ (minuto_str)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = &quot;0&quot;' />
									<exp exp='temporario = temporario + minuto_str' />
									<exp exp='temporario = temporario + &quot;:&quot;' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = minuto_str' />
									<exp exp='temporario = temporario + &quot;:&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_byte = Length$ (segundo_str)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = temporario + &quot;0&quot;' />
									<exp exp='temporario = temporario + segundo_str' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = temporario + segundo_str' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;tnub1.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_nubliza1' 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='adc_temp_1 &gt; prog_T1 + histerese_t' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer1 &lt;&gt; 1' swap='1' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='1' name='TMR1' call='timer_0' >
											<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<option value='8' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='byte_timer1 = 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer1 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='chamar calculo display temporiza1' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_temporiza1' />
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = minuto_str' />
									<exp exp='temporario = temporario + segundo_str' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_on &gt;= tempo_on_nubliza1' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_7 = 0' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off &gt;= tempo_off_nubliza1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador_nubliza1_on = 0 // reset' />
															<exp exp='minuto1 = 0' />
															<exp exp='segundo1 = 0' />
														</command>
														<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador_nubliza1_off = StringToInt$ (temporario)' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='out_7 = 0' />
													<exp exp='estado_s7 = &quot;S7off&quot;' />
													<exp exp='minuto1 = 0' />
													<exp exp='segundo1 = 0' />
													<exp exp='reset_nubliza_icones = 0' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='reset_nubliza_icones = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='reset_nubliza_icones = 1' />
													<exp exp='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												<command class_type='calculation' title='comando = &quot;tnub1.pic=45&quot; //fundo cinza off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;tnub1.pic=45&quot; //fundo cinza off' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_on = StringToInt$ (temporario)' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_7 = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='out_7 = 1' />
													<exp exp='estado_s7 = &quot;S7 on&quot;' />
													<exp exp='contador_nubliza1_off = 0 // reset contador nubliza1 off' />
													<exp exp='reset_nubliza_icones = 0' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='reset_nubliza_icones = 1' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='reset_nubliza_icones = 1' />
													<exp exp='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												<command class_type='calculation' title='comando = &quot;tnub1.pic=46&quot; //fundo verde on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;tnub1.pic=46&quot; //fundo verde on' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt;= prog_T1' swap='1' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_timer1 &lt;&gt; 0' swap='1' >
									<flowline />
									<flowline >
										<command class_type='interrupt' title='Interrupt' cmdcolor='49344' cmdcolor_sec='49344' enable='0' name='TMR1' >
											<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
											</settings>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='out_7 = 0' />
											<exp exp='estado_s7 = &quot;S7off&quot;' />
											<exp exp='minuto1 = 0' />
											<exp exp='segundo1 = 0' />
											<exp exp='byte_timer1 = 0' />
											<exp exp='contador_nubliza1_on = 0' />
											<exp exp='contador_nubliza1_off = 0' />
											<exp exp='reset_nubliza_icones = 0' />
										</command>
										<command class_type='calculation' title='comando = &quot;tnub1.pic=44&quot; //fundo azul standby' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;tnub1.pic=44&quot; //fundo azul standby' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
										<command class_type='calculation' title='comando = &quot;tnub1.txt=&quot;--:--&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;tnub1.txt=&quot;' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
											<exp exp='comando = comando + &quot;--:--&quot;' />
											<exp exp='comando = comando + &quot;\&quot;&quot;' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_0' 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='pulso_nublizacao1 = pulso_nublizacao1 + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pulso_nublizacao1 = 160' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='segundo1 = segundo1 + 1' />
									<exp exp='pulso_nublizacao1 = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='segundo1 &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='minuto1 = minuto1 + 1' />
											<exp exp='segundo1 = 0' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto1 &gt; 9' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='minuto1 = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_c1max' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='adc_caldeira_1 &gt; prog_c1 + 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &gt;= prog_c1 + 10' swap='0' >
							<flowline >
								<command class_type='decision' title='alarme_c1 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c1max = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;TEMP.ALTA C1!&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_c1max = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;TEMP.ALTA C1!&quot;' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_excesso_c1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='colher_dados' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='string_char = &quot;&quot;' />
							<exp exp='temporario = &quot;&quot;' />
							<exp exp='char = 0' />
						</command>
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char = 35 //#' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='50' />
								</command>
								<command class_type='decision' title='char &lt; 48 //caractere numerico' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 48 //caractere numerico' swap='1' >
									<flowline >
										<command class_type='decision' title='char &gt; 57 //caractere numerico' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 57 //caractere numerico' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='temporario = temporario + string_char' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='string_char[0] = char' />
													<exp exp='temporario = temporario + string_char' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_saldo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando= comando +saldo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + saldo' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='pedido_estado' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
						<command class_type='switch' title='Switch sms_habilitar' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='string_habilitar = &quot;sms off&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='string_habilitar = &quot;sms off &quot;' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='string_habilitar = &quot;sms on&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='string_habilitar = &quot;sms on &quot;' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Chamar pedir saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='pedir_saldo' />
						<command class_type='calculation' title='reset texto' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='texto = &quot;&quot;' />
						</command>
						<command class_type='comment' title='' comment='21/08/16 
altreraçao' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Chamar leitura analogica' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='leitura_modulos' />
						<command class_type='comment' title='' comment='21/08/16 
altreraçao' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
						<command class_type='call' title='Chamar calculo textos estado' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_textos_estado' />
						<command class_type='comment' title='' comment='se &quot;byte_on_board_stat&quot; = 1
o sistema nao vai enviar sms 
ate que o utilizador faça reset manual
 na consola' textmode='1' textarea='76,33,551,333' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='byte_onboard_stat = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_onboard_stat = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Chamar enviar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='enviar_sms' />
								<command class_type='calculation' title='reset variavel texto' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CR_LF' 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='UART1' macro='SendChar' >
							<argument exp='0x0d' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendChar' >
							<argument exp='0x0a' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='page_colect_dados' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch numero_pagina' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
							<case >
								<flowline />
							</case>
							<case exp='2 //caldeira 1' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog caldeira 1 on off c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_caldeira1_on_off' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog_c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_C1' />
									<command class_type='comment' title='' comment='//prog_c1 // e variavel que gere a segurança de temperatura da caldeira
//e interfere com o modo de funcionamento do ar quente' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								</flowline>
							</case>
							<case exp='3 //caldeira 2' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog caldeira 2 on off c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_caldeira2_on_off' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog_c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_C2' />
								</flowline>
							</case>
							<case exp='4 //temperatura 1' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog histerese T' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_histerese_T' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog TEMP1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_temp1' />
								</flowline>
							</case>
							<case exp='5 //temperatura 2' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog histerese T' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_histerese_T' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog TEMP2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_temp2' />
								</flowline>
							</case>
							<case exp='6 //humidades' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
								</flowline>
							</case>
							<case exp='7 //ventilacao' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='climatiza_ventil_1 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='climatiza_ventil1 = StringToInt$ (temporario)' />
									</command>
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='climatiza_ventil_2 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='climatiza_ventil2 = StringToInt$ (temporario)' />
									</command>
									<command class_type='comment' title='' comment='teste iniciado em 01/02/2020
usar a pagina de ventil set para acertar o racio de calculo
proporcional
' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='percentual = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='percentual = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='8 //alarmes sms' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar sms habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='sms_habilitar' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog habilitar alarmes minimos' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='habilitar_alarmes_minimos' />
								</flowline>
							</case>
							<case exp='9 //fumos' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='call' title='Chamar prog sensor fumo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_sens_fumo' />
								</flowline>
							</case>
							<case exp='10 //gravar numeros' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='switch' title='Switch byte_gravar_numeros' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_gravar_numeros' >
										<case >
											<flowline />
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
												<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
												<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='temporario = ToString$ (pos_mem_telefone)' />
													<exp exp='comando = &quot;t0.txt=&quot;' />
													<exp exp='comando = comando + &quot;\&quot;&quot;' />
													<exp exp='comando = comando + &quot;pos.&quot;' />
													<exp exp='comando = comando + temporario' />
													<exp exp='comando = comando + &quot; &quot;' />
													<exp exp='comando = comando + numero' />
													<exp exp='comando = comando + nome' />
													<exp exp='comando = comando + &quot;\&quot;&quot;' />
													<exp exp='' />
												</command>
												<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Chamar numeros e nomes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_e_nomes' />
												<command class_type='delay' title='Atraso 100 ms' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='100' type='1' />
												<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='' textmode='1' textarea='96,162,571,462' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
							<case >
								<flowline />
							</case>
							<case exp='11' >
								<flowline >
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='nublizacao1 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='nublizacao1 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='tempo_on_nubliza = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='tempo_on_nubliza1 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='tempo_off_nubliza = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='tempo_off_nubliza1 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
									<command class_type='comment' title='' comment='timer 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='nublizacao2 = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='nublizacao2 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='tempo_on_nubliza 2 = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='tempo_on_nubliza2 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Chamar colher dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='colher_dados' />
									<command class_type='calculation' title='tempo_off_nubliza 2 = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='tempo_off_nubliza2 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='12' >
								<flowline />
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='pedir_saldo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='saldo = &quot;&quot;' />
							<exp exp='rs232_result = &quot;&quot;' />
							<exp exp='count_spaces = 0' />
						</command>
						<command class_type='calculation' title='comando = &quot;ATD*#123#&quot; TMN' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;ATD*#123#&quot; // uzo,meo' />
							<exp exp='//comando = &quot;ATD*#100#&quot; // vodafone' />
							<exp exp='//comando = &quot;ATD*111#&quot; // nos' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='char = 34 ( &quot; )' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
									<flowline >
										<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='255' start='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
													<return exp='char' />
													<argument exp='20' />
												</command>
												<command class_type='decision' title='char = 34 ( &quot; )' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
													<flowline >
														<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;erro ponto A&quot;' />
						</command>
						<command class_type='call' title='Chamar display saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saldo' />
						<command class_type='calculation' title='reset saldo' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;&quot;' />
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='100' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
								<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
							</flowline>
						</command>
						<command class_type='calculation' title='comando = &quot;AT+CUSD=1,&quot;2&quot;,15' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;AT+CUSD=1,&quot; // nos' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;2&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;,15&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='char = 34 ( &quot; )' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;erro ponto B&quot;' />
						</command>
						<command class_type='call' title='Chamar display saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saldo' />
						<command class_type='calculation' title='reset saldo' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;&quot;' />
						</command>
						<command class_type='label' title='Connection Point B' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='255' >
							<flowline >
								<command class_type='comment' title='' comment='com um loop de 255 vezes e um 
timeout de 10 ms o tempo de espera é cerca de 2,5 segundos' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='30' />
								</command>
								<command class_type='decision' title='char &gt; 31' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 31' swap='0' >
									<flowline >
										<command class_type='decision' title='CHAR &lt; 127' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='CHAR &lt; 127' swap='1' >
											<flowline />
											<flowline >
												<command class_type='comment' title='' comment='no caso da operadora ser da rede MEO
o loop deve terminar quenado atingir 
o proximo caractere  ( &quot; )
alterar o ponto de ligaçao &quot;C&quot;' textarea='103,28,103,28' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='decision' title='char = 34 ( &quot; )' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='colocar ponto de ligaçao &quot;C&quot; 
aqui em caso da operadora ser da &quot;UZO&quot;' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='goto' title='VaiPara Ponto de ligação C' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='string_char[0] = char' />
															<exp exp='saldo = saldo + string_char' />
															<exp exp='' />
															<exp exp='' />
														</command>
														<command class_type='decision' title='char = 44 ( , )' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 44' swap='0' >
															<flowline >
																<command class_type='comment' title='' comment='colocar ponto de ligaçao &quot;C&quot; 
aqui em caso da operadora ser da &quot;NOS&quot;' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;erro ponto C&quot;' />
						</command>
						<command class_type='call' title='Chamar display saldo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saldo' />
						<command class_type='calculation' title='reset saldo' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='saldo = &quot;&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
						<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='texto_page_alarmes' 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='contador_alarmes = contador_alarmes + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_alarmes &gt; 12' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_alarmes = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_alarmes' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al1.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al2.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al3.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al4.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al5.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al6.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al7.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al8.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='9' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al9.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='10' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al10.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_alarmes' >
							<case >
								<flowline />
							</case>
							<case exp='11' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al11.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='comando = &quot;alrese.al12.txt=&quot;' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + clock_modem' />
							<exp exp='comando = comando + &quot; &quot;' />
							<exp exp='comando = comando + &quot;#&quot;' />
							<exp exp='comando = comando + &quot; &quot;' />
							<exp exp='comando = comando + texto_de_alarme' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_t1_max' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='adc_temp_1 &gt; prog_T1 + 2 + histerese_T' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 + 2 + histerese_T' swap='0' >
							<flowline >
								<command class_type='decision' title='alarme_temp1max = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_temp1max = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;EXCESSO TEMP.1&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_temp1max = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;EXCESSO TEMP.1&quot;' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_excesso_temp1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='apagar_sms' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset sms no cartao&quot;AT+CMGD=1,4&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CMGD=1,4&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando com variavel &quot;temporario&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='entradas_IO' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='falha de luz' textmode='1' textarea='36,0,511,300' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048578' mask='2' exp='falha_luz' />
					</flowline>
				</macro>
				<macro >
					<flowline name='output_pwm' 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='PWM1' macro='SetDutyCycle' >
							<argument exp='pwm1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM2' macro='SetDutyCycle' >
							<argument exp='pwm2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_sens_fumo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_senfumo &gt; cal_sens_fumo' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='sensor_fumo = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='histerese ao sensor de fumo :
100 
981 P.P.M.' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_senfumo &lt; cal_sens_fumo - 100' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='sensor_fumo = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='processar_instrucoes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='' />
						<command class_type='calculation' title='reset char' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
						</command>
						<command class_type='loop' title='Ciclo enquanto char &lt;&gt; 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='char &lt;&gt; 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title=' 0x65 (evento de toque)+Pagina+Componente' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 0x65' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='ao fazer reset ao &quot;ciclo_switch&quot; com o toque em qualquer tecla 
do display este nao vai sair &quot;automaticamente&quot; da pagina onde está' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='ciclo_switch = 0' />
										</command>
										<command class_type='switch' title='Switch numero_pagina &gt; 10' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
											<case >
												<flowline >
													<command class_type='switch' title='Switch numero pagina' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
														<case >
															<flowline >
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='1 //menu' >
															<flowline >
																<command class_type='call' title='Chamar botoes menu' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='botoes_menu' />
															</flowline>
														</case>
														<case exp='2 //prog_c1' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='3 //prog_c2' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='4 //PROG T1' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='5 //prog t2' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='6 //manual' >
															<flowline >
																<command class_type='loop' title='2 Ciclo =  numero componente' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='2' >
																	<flowline >
																		<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
																			<return exp='char' />
																			<argument exp='20' />
																		</command>
																	</flowline>
																</command>
																<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 0x21' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='numero_pagina = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='numero_pagina = 1' />
																		</command>
																		<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
																	</flowline>
																	<flowline >
																		<command class_type='call' title='Chamar botoes manual' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='botoes_manual' />
																		<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
																		<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saidas' />
																		<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='PWM_on_off' />
																		<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='output_pwm' />
																	</flowline>
																</command>
															</flowline>
														</case>
														<case exp='7 //vent 1 e vent 2' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='8 //alarm min e sms' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='comment' title='' comment='aqui deve chamar por exemplo 
a rotina de uma pagina' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='9 //sensor fumo' >
															<flowline >
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='10 //numeros telefone' >
															<flowline >
																<command class_type='loop' title='2 Ciclo =  numero componente' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='2' >
																	<flowline >
																		<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
																			<return exp='char' />
																			<argument exp='20' />
																		</command>
																	</flowline>
																</command>
																<command class_type='switch' title='Switch' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char // numero de botao pag 10' >
																	<case >
																		<flowline >
																			<command class_type='calculation' title='byte_gravar_numeros = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='byte_gravar_numeros = 0' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='0x02' >
																		<flowline >
																			<command class_type='calculation' title='byte_gravar_numeros = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='byte_gravar_numeros = 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='0x03' >
																		<flowline >
																			<command class_type='calculation' title='byte_gravar_numeros = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='byte_gravar_numeros = 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='0x08' >
																		<flowline >
																			<command class_type='calculation' title='byte_gravar_numeros = 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='byte_gravar_numeros = 2' />
																			</command>
																		</flowline>
																	</case>
																</command>
																<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
																<command class_type='comment' title='' comment='talvez nao chamar tres ciclos char' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar page colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
																<command class_type='decision' title='byte_gravar_numeros = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_gravar_numeros = 0' swap='0' >
																	<flowline >
																		<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
																	</flowline>
																	<flowline />
																</command>
																<command class_type='comment' title='' comment='estava rotina pagina 1' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
															</flowline>
														</case>
													</command>
												</flowline>
											</case>
											<case exp='11 //pwm' >
												<flowline >
													<command class_type='call' title='Chamar tres ciclos char' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_char' />
													<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
													<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
												</flowline>
											</case>
											<case exp='12 //res.al.saldo' >
												<flowline >
													<command class_type='loop' title='1 Ciclo numero pagina' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='2' >
														<flowline >
															<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
																<return exp='char' />
																<argument exp='20' />
															</command>
														</flowline>
													</command>
													<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char' >
														<case >
															<flowline />
														</case>
														<case exp='0x07 //reset' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculos_reset' />
															</flowline>
														</case>
														<case exp='0x01 //sair' >
															<flowline >
																<command class_type='call' title='Chamar rotina pagina 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='rotina_pagina_1' />
															</flowline>
														</case>
														<case exp='0x08 //saldo' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculos_saldo' />
															</flowline>
														</case>
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 35 //#' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='ao fazer reset ao &quot;ciclo_switch&quot; com o toque em qualquer tecla 
do display este nao vai sair &quot;automaticamente&quot; da pagina onde está' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='ciclo_switch = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_H2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x5 prog h2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x5' />
							<argument exp='prog_h2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='remoto_t2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_rem_string = Right$ (temporario_rem_string,2)' />
							<exp exp='prog_T2 = StringToInt$ (temporario_rem_string)' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T2 &lt; 18' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;numero tem que ser &gt;= 18  &lt;= 40&quot;' />
									<exp exp='texto_dados_rem = &quot;limites&gt;=18&lt;=40&quot;' />
								</command>
								<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T2 &gt; 40' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto = &quot;numero tem que ser &gt;= 18  &lt;= 40&quot;' />
											<exp exp='texto_dados_rem = &quot;limites&gt;=18&lt;=40&quot;' />
										</command>
										<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_dados_rem = &quot;dados alterados&quot;' />
										</command>
										<command class_type='call' title='Chamar display dados guardados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_dados_guardados' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_temp2' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
					</flowline>
				</macro>
				<macro >
					<flowline name='temporizador_c2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pulso2 = pulso2 + 1' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pulso2 &gt;= 10' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='pulso2 = 0' />
									<exp exp='segundo2 = segundo2 + 1' />
								</command>
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='segundo2 &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='segundo2 = 0' />
											<exp exp='minuto2 = minuto2 + 1' />
										</command>
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto2 &gt;= 3' swap='0' >
											<flowline >
												<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto2 &gt;= 4' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='' />
															<exp exp='pulso2 = 0' />
															<exp exp='segundo2 = 0' />
															<exp exp='minuto2 = 0' />
														</command>
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='byte_temporizador_c2 = 0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='byte_temporizador_c2 = 1' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculos_dados_modulos' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_modulos_rf' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_negativa = 1' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_temp &gt; 3' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,4)' />
														<exp exp='temp_aviario1 = temporario' />
														<exp exp='adc_temp_1 = 0' />
														<exp exp='hum_1 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,3)' />
														<exp exp='temp_aviario1 = temporario' />
														<exp exp='adc_temp_1 = 0' />
														<exp exp='hum_1 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_temp &gt; 3' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,4)' />
														<exp exp='temp_aviario1 = temporario' />
														<exp exp='temporario = Left$ (temporario,3)' />
														<exp exp='adc_temp_1 = StringToInt$ (temporario)' />
														<exp exp='hum_1 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,3)' />
														<exp exp='temp_aviario1 = temporario' />
														<exp exp='temporario = Left$ (temporario,2)' />
														<exp exp='adc_temp_1 = StringToInt$ (temporario)' />
														<exp exp='hum_1 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temp_negativa = 1' swap='0' >
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_temp &gt;= 3' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,4)' />
														<exp exp='temp_aviario2 = temporario' />
														<exp exp='adc_temp_2 = 0' />
														<exp exp='hum_2 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,3)' />
														<exp exp='temp_aviario2 = temporario' />
														<exp exp='adc_temp_2 = 0' />
														<exp exp='hum_2 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_temp &gt; 3' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,4)' />
														<exp exp='temp_aviario2 = temporario' />
														<exp exp='temporario = Left$ (temporario,3)' />
														<exp exp='adc_temp_2 = StringToInt$ (temporario)' />
														<exp exp='hum_2 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='' />
														<exp exp='' />
														<exp exp='temporario = Left$ (data_temp,3)' />
														<exp exp='temp_aviario2 = temporario' />
														<exp exp='temporario = Left$ (temporario,2)' />
														<exp exp='adc_temp_2 = StringToInt$ (temporario)' />
														<exp exp='hum_2 = StringToInt$ (data_humid)' />
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_ventila2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='experimental
' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_byte = StringToInt$ (temp_aviario2)' />
							<exp exp='prog_t2 = prog_t2 * 10' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &gt; prog_t2' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='o calculo da saida estava aqui' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='pwm2 = temporario_byte - prog_t2' />
									<exp exp='exponencial2 = pwm2 * percentual / 100' />
									<exp exp='pwm2 = pwm2 * exponencial2' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm2 &gt; 220' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='pwm2 = 220' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm2 &lt; 22' swap='1' >
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='out_6 = 1' />
													<exp exp='estado_s6 = &quot;S6 on&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='out_6 = 0' />
													<exp exp='estado_s6 = &quot;S6off&quot;' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='pwm2 = 0' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt;= prog_t2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='out_6 = 0' />
											<exp exp='estado_s6 = &quot;S6off&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='pwm2 = 0' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='chamar output pwm' cmdcolor='16711808' cmdcolor_sec='16711808' macro='output_pwm' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_t2 = prog_t2 / 10' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_estado_caldeiras' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decisão icon_estado_caldeiras = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_estado_caldeira1 = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='temporario = ToString$ (caldeira1_on_off)' />
											<exp exp='comando = &quot;c1stat.val=&quot;' />
											<exp exp='comando = comando + temporario' />
											<exp exp='icon_estado_caldeira1 = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='comando = &quot;c1.pic=3&quot; //caldeira 1 on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='comando = &quot;c1.pic=2&quot; //caldeira 1 on' />
													<exp exp='icon_estado_caldeira1 = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='comando = &quot;c1.pic=3&quot; //caldeira 1 off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='comando = &quot;c1.pic=3&quot; //caldeira 1 off' />
													<exp exp='icon_estado_caldeira1 = 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<command class_type='decision' title='Decisão icon_estado_caldeiras = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_estado_caldeira2 = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 3' swap='0' >
									<flowline >
										<command class_type='calculation' title='' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='temporario = ToString$ (caldeira2_on_off)' />
											<exp exp='comando = &quot;c2stat.val=&quot;' />
											<exp exp='comando = comando + temporario' />
											<exp exp='icon_estado_caldeira2 = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='comando = &quot;c2.pic=4&quot; //caldeira 2 on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='comando = &quot;c2.pic=4&quot; //caldeira 2 on' />
													<exp exp='icon_estado_caldeira2 = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='comando = &quot;c2.pic=5&quot; //caldeira 2 off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='comando = &quot;c2.pic=5&quot; //caldeira 1 off' />
													<exp exp='icon_estado_caldeira2 = 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_saidas' 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='out_1 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p1.pic=41&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p1.pic=40&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_2 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p2.pic=21&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p2.pic=20&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_3 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p4.pic=23&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p4.pic=22&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_4 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p5.pic=51&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p5.pic=50&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_5 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p6.pic=53&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p6.pic=52&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_6 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p7.pic=55&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p7.pic=54&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_7 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p8.pic=57&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p8.pic=56&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_8 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p9.pic=59&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;p9.pic=58&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_H1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x4 prog h1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x4' />
							<argument exp='prog_h1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='remoto_t1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_rem_string = Right$ (temporario_rem_string,2)' />
							<exp exp='prog_T1 = StringToInt$ (temporario_rem_string)' />
						</command>
						<command class_type='decision' title='prog_T1 &lt; 18' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T1 &lt; 18' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='texto = &quot;numero tem que ser &gt;= 18  &lt;= 40&quot;' />
									<exp exp='texto_dados_rem = &quot;limites&gt;=18&lt;=40&quot;' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
							</flowline>
							<flowline >
								<command class_type='decision' title='prog_T1 &gt; 40' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T1 &gt; 40' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto = &quot;numero tem que ser &gt;= 18  &lt;= 40&quot;' />
											<exp exp='texto_dados_rem = &quot;limites&gt;=18&lt;=40&quot;' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Chamar erro dados temp' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='erro_dados_temp' />
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_dados_rem = &quot;dados alterados&quot;' />
										</command>
										<command class_type='call' title='Chamar display dados guardados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_dados_guardados' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_temp1' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
					</flowline>
				</macro>
				<macro >
					<flowline name='temporizador_c1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='pulso = pulso + 1' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pulso &gt;= 10' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='pulso = 0' />
									<exp exp='segundo = segundo + 1' />
								</command>
								<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='segundo &gt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='segundo = 0' />
											<exp exp='minuto = minuto + 1' />
										</command>
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto &gt;= 3' swap='0' >
											<flowline >
												<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='minuto &gt;= 4' swap='0' >
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='' />
															<exp exp='pulso = 0' />
															<exp exp='segundo = 0' />
															<exp exp='minuto = 0' />
														</command>
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='byte_temporizador_c1 = 0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='byte_temporizador_c1 = 1' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_fumo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='sensor_fumo = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sensor_fumo = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='alarme fumo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_fumo = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = texto_fumo' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_fumo = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = texto_fumo' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_fumo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C1 &quot;' />
													<exp exp='texto = texto + string_C1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T1 &quot;' />
													<exp exp='texto = texto + string_T1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H1 &quot;' />
													<exp exp='texto = texto + string_H1' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;H2 &quot;' />
													<exp exp='texto = texto + string_H2' />
													<exp exp='texto = texto + &quot;%&quot;' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_t1min' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='habilitar_alarmes_minimos = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos = 1' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='na condiçao de primeiro arranque 
nao faz alarme de baixas temperaturas se for pedido ao sistema' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
							<flowline >
								<command class_type='decision' title='caldeira1_on_off = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='decision' title='adc_temp_1 &lt;  prog_T1 - histerese_T - 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt; prog_T1 - histerese_T - 2' swap='0' >
											<flowline >
												<command class_type='decision' title='alarme_temp1min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_temp1min = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA T1!&quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='alarme_temp1min = 1' />
															<exp exp='estado_de_alarme = 1' />
															<exp exp='texto_de_alarme = &quot;TEMP.BAIXA T1!&quot;' />
															<exp exp='aviso_alarme = 0' />
														</command>
														<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
														<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
														<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='texto = texto_temp_min1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;C1 &quot;' />
																	<exp exp='texto = texto + string_C1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + &quot;T1 &quot;' />
																	<exp exp='texto = texto + string_T1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s1' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s2' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s3' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s4' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s5' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + estado_s6' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + saldo' />
																	<exp exp='texto = texto + string_espaco' />
																	<exp exp='texto = texto + clock_modem' />
																</command>
																<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 1 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 2 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_t2_max' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='adc_temp_2 &gt; prog_T2 + 2 + histerese_T ' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 + 2 + histerese_T' swap='0' >
							<flowline >
								<command class_type='decision' title='alarme_temp2max = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_temp2max = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;EXCESSO TEMP.2&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_temp2max = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;EXCESSO TEMP.2&quot;' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 31/03/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_excesso_temp2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_textos_estado' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='habilitar_alarmes_minimos' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='string_alarmes_min = &quot;ALARMES MIN OFF&quot;' />
									</command>
									<command class_type='decision' title='climatiza_ventiladores = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 1' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='texto = string_habilitar' />
												<exp exp='texto = texto + string_alarmes_min' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + string_climatizar' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T1 &quot;' />
												<exp exp='texto = texto + string_T1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H1 &quot;' />
												<exp exp='texto = texto + string_H1' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T2 &quot;' />
												<exp exp='texto = texto + string_T2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H2 &quot;' />
												<exp exp='texto = texto + string_H2' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s3' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s4' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s5' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s6' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + saldo' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + clock_modem' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='texto = string_habilitar' />
												<exp exp='texto = texto + string_alarmes_min' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_C1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_C2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;C1 &quot;' />
												<exp exp='texto = texto + string_C1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T1 &quot;' />
												<exp exp='texto = texto + string_T1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H1 &quot;' />
												<exp exp='texto = texto + string_H1' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;C2 &quot;' />
												<exp exp='texto = texto + string_C2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T2 &quot;' />
												<exp exp='texto = texto + string_T2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H2 &quot;' />
												<exp exp='texto = texto + string_H2' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s3' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s4' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s5' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s6' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + saldo' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + clock_modem' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='string_alarmes_min = &quot;ALARMES MIN ON&quot;' />
									</command>
									<command class_type='decision' title='climatiza_ventiladores = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 1' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='texto = string_habilitar' />
												<exp exp='texto = texto + string_alarmes_min' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + string_climatizar' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T1 &quot;' />
												<exp exp='texto = texto + string_T1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H1 &quot;' />
												<exp exp='texto = texto + string_H1' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T2 &quot;' />
												<exp exp='texto = texto + string_T2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H2 &quot;' />
												<exp exp='texto = texto + string_H2' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s3' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s4' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s5' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s6' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + saldo' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + clock_modem' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='texto = string_habilitar' />
												<exp exp='texto = texto + string_alarmes_min' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_C1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_C2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;C1 &quot;' />
												<exp exp='texto = texto + string_C1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T1 &quot;' />
												<exp exp='texto = texto + string_T1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H1 &quot;' />
												<exp exp='texto = texto + string_H1' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;C2 &quot;' />
												<exp exp='texto = texto + string_C2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;T2 &quot;' />
												<exp exp='texto = texto + string_T2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + &quot;H2 &quot;' />
												<exp exp='texto = texto + string_H2' />
												<exp exp='texto = texto + &quot;%&quot;' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s1' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s2' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s3' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s4' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s5' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + estado_s6' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + saldo' />
												<exp exp='texto = texto + string_espaco' />
												<exp exp='texto = texto + clock_modem' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_ventila1' 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='temporario_byte = StringToInt$ (temp_aviario1)' />
							<exp exp='prog_t1 = prog_t1 * 10' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &gt; prog_t1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='o calculo da saida estava aqui' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='pwm1 = temporario_byte - prog_t1' />
									<exp exp='exponencial1 = pwm1 * percentual / 100' />
									<exp exp='pwm1 = pwm1 * exponencial1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm1 &gt; 220' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='pwm1 = 220' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm1 &lt; 22' swap='1' >
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='out_3 = 1' />
													<exp exp='estado_s3 = &quot;S3 on&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='// ventilaçao 1' />
													<exp exp='out_3 = 0' />
													<exp exp='estado_s3 = &quot;S3off&quot;' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='pwm1 = 0' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt;= prog_t1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='// ventilaçao 1' />
											<exp exp='out_3 = 0' />
											<exp exp='estado_s3 = &quot;S3off&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='pwm1 = 0' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='chamar output pwm' cmdcolor='16711808' cmdcolor_sec='16711808' macro='output_pwm' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_t1 = prog_t1 / 10' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_sens_fumo' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<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='cal_sens_fumo = StringToInt$ (temporario)' />
							<exp exp='var1 = cal_sens_fumo &amp; 0xff' />
							<exp exp='var2 = cal_sens_fumo &gt;&gt; 8' />
						</command>
						<command class_type='call' title='0xd var 1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0xd' />
							<argument exp='var1' />
						</command>
						<command class_type='call' title='0xe var2' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0xe' />
							<argument exp='var2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='sem_ocurrencias_txt' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;sem ocorrencias&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='leitura_modulos' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='chamar calculo modulos' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_modulos' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
							<exp exp='string_geral = &quot;&quot;' />
							<exp exp='string_char = &quot;&quot;' />
							<exp exp='temporario = &quot;&quot;' />
							<exp exp='comando = &quot;&quot;' />
							<exp exp='data_temp = &quot;&quot;' />
							<exp exp='data_humid = &quot;&quot;' />
						</command>
						<command class_type='loop' title='Ciclo 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='10' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='char = 10 // line feed' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 10 // line feed' swap='0' >
									<flowline />
									<flowline >
										<command class_type='decision' title='char &lt; 127' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 127' swap='0' >
											<flowline >
												<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='no calculo seguinte vai determinar a cor de fundo 
do respetivo modulo para vermelho' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario_byte = StringToInt$ (numero_modulo)' />
							<exp exp='cont_f_sen_geral = cont_f_sen_geral + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_f_sen_geral &gt; 5' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_reset = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_f_sen_geral = 5' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_reset = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;vis t3,1&quot;' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='chamar contadores falhas sensores' cmdcolor='16711808' cmdcolor_sec='16711808' macro='contadores_falhas_sensores' />
						<command class_type='decision' title='numero_pagina &lt;&gt; 0' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina &lt;&gt; 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;t3.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;sensor&quot;' />
							<exp exp='comando = comando + numero_modulo' />
							<exp exp='comando = comando + &quot; F &quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='calculation' title='reset char' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
						</command>
						<command class_type='comment' title='' comment='receber o segundo caractere para determinar se
a temperatura é negativa ou positiva' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
							<return exp='char' />
							<argument exp='10' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 45 // -' swap='0' >
							<flowline >
								<command class_type='calculation' title='' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_negativa = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temp_negativa = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='loop para determinar temperaturas' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='loop' title='até char = 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char = 255' start='0' >
							<flowline >
								<command class_type='decision' title='char &gt;= 32 // caracteres alfanumericos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt;= 32' swap='0' >
									<flowline >
										<command class_type='decision' title='char &lt; 127 // caracteres alfanumericos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 127' swap='1' >
											<flowline />
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 35 //#' swap='0' >
													<flowline >
														<command class_type='goto' title='Goto Connection Point C' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='string_char[0] = char' />
															<exp exp='string_geral = string_geral + string_char' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point C' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='2' labelname='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='data_temp = string_geral' />
							<exp exp='string_geral = &quot;&quot;' />
							<exp exp='char = 0' />
							<exp exp='tamanho_str_temp = Length$ (data_temp)' />
						</command>
						<command class_type='loop' title='até char = 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char = 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='char &gt;= 32 // caracteres alfanumericos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt;= 32' swap='0' >
									<flowline >
										<command class_type='decision' title='char &lt; 127 // caracteres alfanumericos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 127' swap='1' >
											<flowline />
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 35 //#' swap='0' >
													<flowline >
														<command class_type='goto' title='Goto Connection Point D' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='3' labelname='' />
													</flowline>
													<flowline >
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='string_char[0] = char' />
															<exp exp='string_geral = string_geral + string_char' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point D' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='3' labelname='D' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='data_humid = string_geral' />
						</command>
						<command class_type='calculation' title='' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='tamanho_str_humid = Length$ (string_geral)' />
						</command>
						<command class_type='decision' title='' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='tamanho_str_humid &lt;&gt; 0' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario_byte = StringToInt$ (numero_modulo)' />
									<exp exp='cont_f_sen_geral = cont_f_sen_geral + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_f_sen_geral &gt; 6' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_reset = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_f_sen_geral = 8' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='comando = &quot;vis t3,1&quot;' />
										</command>
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='chamar contadores falhas sensores' cmdcolor='16711808' cmdcolor_sec='16711808' macro='contadores_falhas_sensores' />
								<command class_type='comment' title='' comment='colocar aqui o que está na reserva com o nome :
&quot;calculo falha dados&quot;' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;T&quot; // alterando a letra é possivel usar outro icon de fundo no HMI' />
									<exp exp='comando = comando + numero_modulo' />
									<exp exp='comando = comando + &quot;.bco=2016&quot; // mudar a cor da respetiva janela de fundo para verde' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_reset = contador_reset + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_reset = 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='cont_f_sen_geral = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='numero_pagina &lt;&gt; 0' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina &lt;&gt; 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_reset = 10' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='comando = &quot;vis t3,0&quot;' />
													<exp exp='cont_sens_fail_1 = 0' />
													<exp exp='cont_sens_fail_2 = 0' />
												</command>
												<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='chamar calculo dados modulos' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculos_dados_modulos' />
								<command class_type='comment' title='' comment='para mostrar no display o que é lido por cada sensor
deve colocar aqui em baixo o que está na macro reserva
ponto : 3' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='comment' title='' comment='se o numero da pagina nao for 0
nao vai enviar para o display os dados 
' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='numero_pagina &lt;&gt; 0' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina &lt;&gt; 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador_modulos_rf = contador_modulos_rf + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_modulos_rf &gt; 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_modulos_rf = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='loop_ate_ok' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
							<exp exp='rs232_result = &quot;&quot;' />
							<exp exp='count = 0' />
							<exp exp='temporario = &quot;&quot;' />
						</command>
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='25' >
							<flowline >
								<command class_type='comment' title='' comment='chamar control rs232' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
								<command class_type='decision' title='count = 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='count = 2' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='switch' title='capturar &quot;OK&quot;' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char' >
									<case >
										<flowline />
									</case>
									<case exp='75' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='string_char[0] = char' />
												<exp exp='rs232_result = rs232_result + string_char' />
												<exp exp='count = count + 1' />
											</command>
										</flowline>
									</case>
									<case exp='79' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='string_char[0] = char' />
												<exp exp='rs232_result = rs232_result + string_char' />
												<exp exp='count = count + 1' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='byte_result = Compare$ (result_ok,rs232_result,1)' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='byte_result = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset ao contador_falha_ok' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_falha_ok = 0' />
								</command>
								<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='contador_falha_ok = contador_falha_ok + 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador_falha_ok = contador_falha_ok + 1' />
						</command>
						<command class_type='decision' title='contador_falha_ok &gt;= 20' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_falha_ok &gt;= 20' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset ao contador_falha_ok' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_falha_ok = 0' />
								</command>
								<command class_type='call' title='Chamar arrancam modem ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='arrancar_com_modem' />
							</flowline>
							<flowline />
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='char = 0' />
							<exp exp='temporario = rs232_result' />
							<exp exp='rs232_result = &quot;&quot;' />
							<exp exp='' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='tres_ciclos_ff' 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='UART2' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='loop' title='3ciclos' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='3' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='SendChar' >
									<argument exp='0xff' />
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Atraso 10 ms' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_display_pwm2' 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='out_6 = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 = 0' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm2 &lt; 22 //equivale a 10% 4 mah' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
								<command class_type='calculation' title='nao mostrar valor para &lt; 22  pwm2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='comando = &quot;V2.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='mostrar o valor pwm2 / 2.2 (0-100%)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario_byte = pwm2' />
									<exp exp='temporario_byte = temporario_byte / 2.2' />
									<exp exp='temporario = ToString$ (temporario_byte)' />
									<exp exp='temporario = temporario + &quot;%&quot;' />
									<exp exp='comando = &quot;V2.txt=&quot; //mostrar o valor pwm1 / 2.24 (0-100%)' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + temporario' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_para_cicloswitch' 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='ciclo_switch &gt;= 5' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='ciclo_switch = 0' />
									<exp exp='numero_pagina = 1' />
									<exp exp='contador = 0' />
								</command>
								<command class_type='calculation' title='comando = &quot;page 1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='' />
									<exp exp='comando = &quot;page 1&quot;' />
									<exp exp='' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_C2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print adc_caldeira_2' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;c2.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//nota:' />
							<exp exp='//no interface está a ser usada uma variavel do tipo &quot;float&quot; para mostrar as temperaturas em formato de virgula decimal' />
							<exp exp='//adc_caldeira_2 = adc_caldeira_2 * 10 // apagar este calculo quando o sensor estiver definitivamente ligado !!' />
							<exp exp='temporario = ToString$ (adc_caldeira_2)' />
							<exp exp='comando = &quot;c2.val=&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temporario' />
							<exp exp='//comando = comando + temp_caldeira2' />
							<exp exp='//adc_caldeira_2 = adc_caldeira_2 / 10' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_display_pwm1' 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='out_3 = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 0' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pwm1 &lt; 22 //equivale a 10% 4 mah' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
								<command class_type='calculation' title='nao mostrar valor para &lt; 10  pwm1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='' />
									<exp exp='comando = &quot;V1.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='mostrar o valor pwm1 / 2.2 (0-100%)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario_byte = pwm1' />
									<exp exp='temporario_byte = temporario_byte / 2.2' />
									<exp exp='temporario = ToString$ (temporario_byte)' />
									<exp exp='temporario = temporario + &quot;%&quot;' />
									<exp exp='comando = &quot;V1.txt=&quot; //mostrar o valor pwm1 / 2.55 (0-100%)' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + temporario' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='clock_set' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando = &quot;AT+CCLK=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CCLK=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + clock_rede' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar loop ate ok' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
					</flowline>
				</macro>
				<macro >
					<flowline name='display_C1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='print adc_temp_1' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;c1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='//nota:' />
							<exp exp='//no interface está a ser usada uma variavel do tipo &quot;float&quot; para mostrar as temperaturas em formato de virgula decimal' />
							<exp exp='//adc_caldeira_1 = adc_caldeira_1 * 10 // apagar este calculo quando o sensor estiver definitivamente ligado !!' />
							<exp exp='temporario = ToString$ (adc_caldeira_1)' />
							<exp exp='comando = &quot;c1.val=&quot;' />
							<exp exp='' />
							<exp exp='comando = comando + temporario' />
							<exp exp='//comando = comando + temp_caldeira1' />
							<exp exp='//adc_caldeira_1 = adc_caldeira_1 / 10' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='manual_estado_botoes' 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='temporario = ToString$ (out_1)' />
							<exp exp='comando = &quot;bt0.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_2)' />
							<exp exp='comando = &quot;bt1.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_3)' />
							<exp exp='comando = &quot;bt2.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_4)' />
							<exp exp='comando = &quot;bt4.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_5)' />
							<exp exp='comando = &quot;bt5.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_6)' />
							<exp exp='comando = &quot;bt6.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_7)' />
							<exp exp='comando = &quot;bt3.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (out_8)' />
							<exp exp='comando = &quot;bt7.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='arrancar_com_modem' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Ciclo byte_result = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='byte_result = 0' start='0' >
							<flowline >
								<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='rs232_result = &quot;&quot;' />
									<exp exp='char = 0' />
									<exp exp='char_enter_count = 0' />
									<exp exp='byte_result = 1' />
									<exp exp='//temporario = &quot;&quot;' />
								</command>
								<command class_type='calculation' title='comando = &quot;AT+CREG?&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;AT+CREG?&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
									<argument exp='comando' />
								</command>
								<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
								<command class_type='calculation' title='reset rs232_result' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='rs232_result = &quot;&quot;' />
								</command>
								<command class_type='call' title='Chamar  registo sim rede' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='registo_sim_rede' />
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='byte_result = Compare$ (rs232_result,registo_simcard,1)' />
								</command>
								<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
								<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + rs232_result' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='rs232_result = &quot;&quot;' />
							<exp exp='char = 0' />
							<exp exp='char_enter_count = 0' />
							<exp exp='byte_result = 1' />
							<exp exp='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculos_reset' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando= comando + &quot;reset alarmes &quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;! RESET A TODOS OS ALARMES !&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='reset estados / alarmes' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='alarme_fumo = 0' />
							<exp exp='alarme_falha_luz = 0' />
							<exp exp='byte_onboard_stat = 1' />
							<exp exp='led_alarmes = 0' />
							<exp exp='byte_sms_reset = 0' />
							<exp exp='alarme_temp1max = 0' />
							<exp exp='alarme_temp2max = 0' />
							<exp exp='alarme_c1max = 0' />
							<exp exp='alarme_c2max = 0' />
							<exp exp='alarme_temp1min = 0' />
							<exp exp='alarme_temp2min = 0' />
							<exp exp='alarme_c2min = 0' />
							<exp exp='alarme_c1min = 0' />
							<exp exp='estado_de_alarme = 0' />
							<exp exp='alarme_falha_sensor_1 = 0' />
							<exp exp='alarme_falha_sensor_2 = 0' />
							<exp exp='cont_sens_fail_1 = 0' />
							<exp exp='cont_sens_fail_2 = 0' />
							<exp exp='contador_alarmes = 0' />
						</command>
						<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_nub1_off' 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='pulso_nublizacao1 = pulso_nublizacao1 + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='pulso_nublizacao1 = factor_timer' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_nubliza1_off = contador_nubliza1_off + 1' />
									<exp exp='pulso_nublizacao1 = 0 // reset' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off = 59' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_off = 100' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off = 159' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_off = 200' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off = 259' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_off = 300' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off = 359' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_off = 400' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_nubliza1_off = 459' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='contador_nubliza1_off = 500' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ciclos_macros_sms' 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='2' exp='400' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclo_macros_geral' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
								<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='p11_nubliza_prog_display' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='bt0.val' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (nublizacao1)' />
							<exp exp='comando = &quot;bt0.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='bt2.val' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (nublizacao2)' />
							<exp exp='comando = &quot;bt2.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='tempo on nubliza 1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (tempo_on_nubliza1)' />
							<exp exp='comando = &quot;ton.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='tempo off nubliza1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (tempo_off_nubliza1)' />
							<exp exp='comando = &quot;toff.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='tempo on nubliza 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (tempo_on_nubliza2)' />
							<exp exp='comando = &quot;ton2.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='tempo off nubliza 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = ToString$ (tempo_off_nubliza2)' />
							<exp exp='comando = &quot;toff2.val=&quot;' />
							<exp exp='comando = comando + temporario' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='preparar para calcular o display timer 1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (tempo_on_nubliza1)' />
							<exp exp='temporario_byte = Length$ (temporario)' />
						</command>
						<command class_type='call' title='chamar calculo display timer' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_timer' />
						<command class_type='comment' title='' comment='para mostrar no display do timer 1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t3.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='preparar para calcular o display timer 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (tempo_on_nubliza2)' />
							<exp exp='temporario_byte = Length$ (temporario)' />
						</command>
						<command class_type='call' title='chamar calculo display timer' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_timer' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t1.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='iniciar os minutos e os segundos em p11
teste macro' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='' />
							<exp exp='comando = &quot;m.val=&quot;' />
							<exp exp='comando = comando + minuto_str' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='' />
							<exp exp='comando = &quot;s.val=&quot;' />
							<exp exp='comando = comando + segundo_str' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='o proximo passo pode ser ignorado' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (tempo_on_nubliza1)' />
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='comment' title='' comment='o proximo passo pode ser ignorado' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = ToString$ (tempo_on_nubliza2)' />
							<exp exp='comando = &quot;t2.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='texto_sem_numero' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;sem numero...&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_c1min' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='habilitar_alarmes_minimos = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos = 1' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='na condiçao de primeiro arranque 
nao faz alarme de baixas temperaturas se for pedido ao sistema' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
							<flowline >
								<command class_type='decision' title='climatiza_ventiladores = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='na condiçao de climatizar com ventiladores 
nao faz alarme de baixas temperaturas nas caldeiras' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
									</flowline>
									<flowline >
										<command class_type='decision' title='caldeira1_on_off = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off = 0' swap='0' >
											<flowline />
											<flowline >
												<command class_type='decision' title='adc_caldeira_1 &lt;= 30' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &lt;= 30' swap='0' >
													<flowline >
														<command class_type='decision' title='alarme_c1min = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c1min = 1' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='texto_de_alarme = &quot;TEMP.BAIXA C1!&quot;' />
																</command>
															</flowline>
															<flowline >
																<command class_type='comment' title='' comment='interrupçao habilitar
TMR0
macro :interrupt' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='alarme_c1min = 1' />
																	<exp exp='estado_de_alarme = 1' />
																	<exp exp='texto_de_alarme = &quot;TEMP.BAIXA C1!&quot;' />
																	<exp exp='aviso_alarme = 0' />
																</command>
																<command class_type='comment' title='' comment='teste 01/04/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
																<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
																<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
																	<flowline >
																		<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
																		<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																			<exp exp='texto = texto_baixo_c1' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + &quot;C1 &quot;' />
																			<exp exp='texto = texto + string_C1' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + &quot;T1 &quot;' />
																			<exp exp='texto = texto + string_T1' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s1' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s2' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s3' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s4' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s5' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + estado_s6' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + saldo' />
																			<exp exp='texto = texto + string_espaco' />
																			<exp exp='texto = texto + clock_modem' />
																		</command>
																		<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																		<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 1 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='comment' title='' comment='alteracao 30/12/16
se a caldeira 2 estiver desligada nao faz alarmes de temperaturas
minimas referente a mesma' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='alarme_c2max' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='adc_caldeira_2 &gt; prog_c2 + 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &gt;= prog_c2 + 10' swap='0' >
							<flowline >
								<command class_type='decision' title='alarme_c2 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c2max = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='texto_de_alarme = &quot;TEMP.ALTA C2!&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='interrupçao habilitar
TMR0
macro :interrupt' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='alarme_c2max = 1' />
											<exp exp='estado_de_alarme = 1' />
											<exp exp='texto_de_alarme = &quot;TEMP.ALTA C2!&quot;' />
											<exp exp='aviso_alarme = 0' />
										</command>
										<command class_type='comment' title='' comment='teste 01/04/20' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_flash_alarme' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_sino' />
										<command class_type='call' title='Chamar control saidas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='texto_page_alarmes' />
										<command class_type='decision' title='sms_habilitar = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Chamar conversao adcs string' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='conversao_adcs_string' />
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='texto = texto_excesso_c2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;C2 &quot;' />
													<exp exp='texto = texto + string_C2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + &quot;T2 &quot;' />
													<exp exp='texto = texto + string_T2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s1' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s2' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s3' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s4' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s5' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + estado_s6' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + saldo' />
													<exp exp='texto = texto + string_espaco' />
													<exp exp='texto = texto + clock_modem' />
												</command>
												<command class_type='comment' title='' comment='chamar lista telefones' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='call' title='Chamar numeros envio sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='numeros_envio_sms' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='botoes_manual' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='reset_ contador' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='temporario = &quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='switch' title='' textmode='1' textarea='210,299,685,599' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char' >
							<case >
								<flowline />
							</case>
							<case exp='0xc //fumos 1' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_1 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0xd // calor 1' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_2 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0xe //ventil 1' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_3 = StringToInt$ (temporario)' />
										<exp exp='climatiza_ventil1 = out_3' />
									</command>
								</flowline>
							</case>
							<case exp='0xf //nubliz 1' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_7 = StringToInt$ (temporario)' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
							<case exp='0x10 //fumos 2' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_4 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0x11 //calor 2' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_5 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0x12 // ventil 2' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_6 = StringToInt$ (temporario)' />
										<exp exp='climatiza_ventil2 = out_6' />
									</command>
								</flowline>
							</case>
							<case exp='0x13 // nubliz 2' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='out_8 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0x1c // vareador 1' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='pwm1 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
							<case exp='0x20 //vareador 2' >
								<flowline >
									<command class_type='call' title='Chamar colect dados' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='page_colect_dados' />
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='pwm2 = StringToInt$ (temporario)' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_display_timer' 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='temporario_byte &lt; 4' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 3' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='temporario_byte &lt; 2' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='segundo_str = temporario' />
													<exp exp='temporario = &quot;0&quot;' />
													<exp exp='temporario = temporario + segundo_str' />
													<exp exp='segundo_str = temporario' />
													<exp exp='minuto_str = &quot;0&quot;' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='segundo_str = temporario' />
													<exp exp='minuto_str = &quot;0&quot;' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='segundo_str = Right$ (temporario,2)' />
											<exp exp='minuto_str = Right$ (temporario,3)' />
											<exp exp='temporario = &quot;0&quot;' />
											<exp exp='temporario = temporario + minuto_str' />
											<exp exp='minuto_str = temporario' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='minuto_str = Left$ (temporario,0)' />
									<exp exp='segundo_str = Left$ (temporario,2)' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='temporario = minuto_str' />
							<exp exp='temporario = temporario + &quot;:&quot;' />
							<exp exp='temporario = temporario + segundo_str' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_modulos' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_modulos_rf' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
										<argument exp='&quot;*1&quot;' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='numero_modulo = &quot;1&quot;' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
										<argument exp='&quot;*2&quot;' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
										<exp exp='numero_modulo = &quot;2&quot;' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_pwm_val_percent' 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='numero_pagina = 7' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c1 = 1 OR 2' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point A' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 = 0' swap='0' >
									<flowline />
									<flowline >
										<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='calculo_display_pwm1' />
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c2 = 1 OR 2' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point B' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 = 0' swap='0' >
									<flowline />
									<flowline >
										<command class_type='label' title='Connection Point' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_pwm2' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='estado_ventiladores' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch climatiza_ventil_1' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='Decisão icon_climatiza = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_climatiza1 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='numero_pagina = 7' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 7' swap='0' >
												<flowline >
													<command class_type='calculation' title='comando = &quot;V1.pic=24&quot; //ventilador off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V1.pic=24&quot; //ventilador off' />
														<exp exp='icon_climatiza1 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='comando = &quot;V1.pic=7&quot; //ventilador off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V1.pic=7&quot; //ventilador off' />
														<exp exp='icon_climatiza1 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decisão icon_climatiza = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_climatiza1 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='numero_pagina = 7' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 7' swap='0' >
												<flowline >
													<command class_type='calculation' title='comando = &quot;V1.pic=25&quot; //ventilador on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V1.pic=25&quot; //ventilador on' />
														<exp exp='icon_climatiza1 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='comando = &quot;V1.pic=6&quot; //ventilador on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V1.pic=6&quot; //ventilador on' />
														<exp exp='icon_climatiza1 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch climatiza_ventil_2' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='Decisão icon_climatiza2 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_climatiza2 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='numero_pagina = 7' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 7' swap='0' >
												<flowline >
													<command class_type='calculation' title='comando = &quot;V2.pic=26&quot; //ventilador off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V2.pic=26&quot; //ventilador off' />
														<exp exp='icon_climatiza2 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='comando = &quot;V2.pic=29&quot; //ventilador off' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V2.pic=29&quot; //ventilador off' />
														<exp exp='icon_climatiza2 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decisão icon_climatiza2 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='icon_climatiza2 = 1' swap='0' >
										<flowline />
										<flowline >
											<command class_type='decision' title='numero_pagina = 7' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 7' swap='0' >
												<flowline >
													<command class_type='calculation' title='comando = &quot;V2.pic=27&quot; //ventilador on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V2.pic=27&quot; //ventilador on' />
														<exp exp='icon_climatiza2 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
												<flowline >
													<command class_type='calculation' title='comando = &quot;V2.pic=28&quot; //ventilador on' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='comando = &quot;V2.pic=28&quot; //ventilador on' />
														<exp exp='icon_climatiza2 = 1' />
													</command>
													<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='remoto_ventila' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom 0x11 climatiza_ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x11' />
							<argument exp='climatiza_ventil1' />
						</command>
						<command class_type='call' title='eeprom 0x12 climatiza_ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x12' />
							<argument exp='climatiza_ventil2' />
						</command>
						<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_pwm1' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_display_pwm2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='toke_confirmacao' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;ATD&quot;' />
							<exp exp='comando = comando + numero' />
							<exp exp='comando = comando + &quot;;&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='comment' title='' comment='aqui pode ser inserida a macro :
NO CARRIER' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='na red &quot;nos&quot; o cancelar da chamada 
da sinal de ocupado' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclos_macros_toke' />
						<command class_type='comment' title='' comment='experimentar no caso da operadora uzo :
ATD 9' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='calculation' title='comando = &quot;ATH&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;ATH&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF ' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
					</flowline>
				</macro>
				<macro >
					<flowline name='tres_ciclos_char' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Ciclo ate char &gt;= 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char &gt;= 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='Ciclo ate char &gt;= 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char &gt;= 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='Ciclo ate char &gt;= 255' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='char &gt;= 255' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='20' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_caldeira2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='caldeira2_on_off = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='out_4 = 0' />
									<exp exp='out_5 = 0' />
									<exp exp='out_6 = 0' />
									<exp exp='estado_s4 = &quot;S4off&quot;' />
									<exp exp='estado_s5 = &quot;S5off&quot;' />
									<exp exp='estado_s6 = &quot;S6off&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='adc_caldeira_2 &lt; 40' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &lt; 40' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='byte_c2 = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='adc_caldeira_2 &gt; prog_C2 + histerese_t' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &gt; prog_C2 + histerese_t' swap='0' >
											<flowline >
												<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='byte_c2 = 2' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='adc_caldeira_2 &gt;= 40 + histerese_t' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &gt;= 40 + histerese_t' swap='0' >
													<flowline >
														<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_2 &lt;= prog_C2 - histerese_t' swap='0' >
															<flowline >
																<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='byte_c2 = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Chamar control temp aviario 2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_temp_aviario2' />
								<command class_type='decision' title='alarme_c2max = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c2max = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='out_4 = 0' />
											<exp exp='estado_s4 = &quot;S4off&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='byte_c1 = 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c2 = 2' swap='0' >
											<flowline />
											<flowline >
												<command class_type='call' title='Chamar temporizador c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='temporizador_c2' />
												<command class_type='decision' title='byte_temporizador_c2 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_temporizador_c2 = 1' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='out_4 = 1
estado_s1 = &quot;S4 on&quot;
' textmode='1' textarea='56,60,531,360' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='out_4 = 1' />
															<exp exp='estado_s1 = &quot;S4 on&quot;' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='dados_eeprom' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom estado habilitar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='sms_habilitar' />
							<argument exp='0x0' />
						</command>
						<command class_type='decision' title='sms_habilitar &gt; 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='sms_habilitar &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='sms_habilitar = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='sms_habilitar = 0' />
								</command>
								<command class_type='call' title='eeprom estado habilitar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x0' />
									<argument exp='sms_habilitar' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom estado contador sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='contador_sms_in' />
							<argument exp='0x1' />
						</command>
						<command class_type='call' title='eeprom prog_T1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_T1' />
							<argument exp='0x8' />
						</command>
						<command class_type='call' title='eeprom prog_T2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_T2' />
							<argument exp='0x9' />
						</command>
						<command class_type='call' title='eeprom histerese_T' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='histerese_T' />
							<argument exp='0xa' />
						</command>
						<command class_type='call' title='eeprom histerese_H' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='histerese_H' />
							<argument exp='0xb' />
						</command>
						<command class_type='call' title='eeprom prog c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_C1' />
							<argument exp='0x2' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_C1 &gt; 100' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x2 prog c1 define por defeito 60 graus' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x2' />
									<argument exp='60' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_C1 &lt; 40' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x2 prog c1 define por defeito 40 graus' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x2' />
									<argument exp='40' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom prog c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_C2' />
							<argument exp='0x3' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_C2 &gt; 100' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x3 prog c2 define por defeito 60 graus' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x3' />
									<argument exp='60' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_C2 &lt; 40' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x3 prog c2 define por defeito 40 graus' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x3' />
									<argument exp='40' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom prog H1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_H1' />
							<argument exp='0x4' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_H1 &gt; 100' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x4 prog H1 define por defeito 60 %' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x4' />
									<argument exp='60' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_H1 &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x4 prog H1 define por defeito 10 %' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x4' />
									<argument exp='10' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom prog H2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_H2' />
							<argument exp='0x5' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_H2 &gt; 100' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x5 prog H2 define por defeito 60 %' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x5' />
									<argument exp='60' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_H2 &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom 0x5 prog H2 define por defeito 10 %' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x5' />
									<argument exp='10' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom caldeira1_on_off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='caldeira1_on_off' />
							<argument exp='0x6' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off &gt; 1' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom caldeira1 define off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x6' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom caldeira2_on_off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='caldeira2_on_off' />
							<argument exp='0x7' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off &gt; 1' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom caldeira2 define off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x7' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='prog_T1 &gt; 40' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T1 &gt; 40' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom prog_t1 define 32' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x8' />
									<argument exp='32' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='prog_T2 &gt; 40' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T2 &gt; 40' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom prog_t2 define 32' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x9' />
									<argument exp='32' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='prog_T1 &lt; 18' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T1 &lt; 18' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom prog_t1 define 32' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x8' />
									<argument exp='32' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='prog_T2 &lt; 18' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='prog_T2 &lt; 18' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom prog_t2 define 32' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x9' />
									<argument exp='32' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom prog_T2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_T2' />
							<argument exp='0x9' />
						</command>
						<command class_type='call' title='eeprom prog_T1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='prog_T1' />
							<argument exp='0x8' />
						</command>
						<command class_type='decision' title='histerese_T &gt; 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_T &gt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom histerese T define 5' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0xa' />
									<argument exp='5' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='histerese_H &gt; 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='histerese_H &gt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='eeprom histerese H define 5' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0xb' />
									<argument exp='5' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom histerese_T' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='histerese_T' />
							<argument exp='0xa' />
						</command>
						<command class_type='call' title='eeprom histerese_H' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='histerese_H' />
							<argument exp='0xb' />
						</command>
						<command class_type='comment' title='' comment='0xc ( byte_primeira_eeprom)' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='0xd var 1 (sensor fumo)' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var1' />
							<argument exp='0xd' />
						</command>
						<command class_type='call' title='0xe var2 (sensor fumo)' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var2' />
							<argument exp='0xe' />
						</command>
						<command class_type='calculation' title='Cálculo devoluçao do valor int cal sens fumo ( var 1 var 2)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='cal_sens_fumo = var2 &lt;&lt; 8' />
							<exp exp='cal_sens_fumo = cal_sens_fumo | var1' />
						</command>
						<command class_type='call' title='eeprom habilitar alarmes minimos' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='habilitar_alarmes_minimos' />
							<argument exp='0x10' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='habilitar_alarmes_minimos &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='habilitar_alarmes_minimos = 1' />
								</command>
								<command class_type='call' title='eeprom habilitar alarmes minimos' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x10' />
									<argument exp='habilitar_alarmes_minimos' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom 0x11 climatizar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='climatiza_ventil1' />
							<argument exp='0x11' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil1 &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='climatiza_ventil1 = 0' />
								</command>
								<command class_type='call' title='eeprom 0x11 climatiza_ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x11' />
									<argument exp='climatiza_ventil1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='eeprom 0x12 climatizar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='climatiza_ventil2' />
							<argument exp='0x12' />
						</command>
						<command class_type='decision' title='climatiza_ventil_2 &gt; 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='climatiza_ventil2 &gt; 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='climatiza_ventil2 = 0' />
								</command>
								<command class_type='call' title='eeprom 0x12 climatiza_ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x12' />
									<argument exp='climatiza_ventil2' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='actualiza os textos para envio sms ' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='0x13 percentual' cmdcolor='16734039' cmdcolor_sec='16734039' exp='percentual &gt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='0x13 valor medio percentual 5' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
									<argument exp='0x13' />
									<argument exp='5' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='0x13 percentual' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='percentual' />
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='0x14 nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='nublizacao1' />
							<argument exp='0x14' />
						</command>
						<command class_type='call' title='0x15 var1 /tempo on nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var1' />
							<argument exp='0x15' />
						</command>
						<command class_type='call' title='0x16 var2 /tempo on nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var2' />
							<argument exp='0x16' />
						</command>
						<command class_type='calculation' title='Cálculo devoluçao do valor int  tempo_on_nubliza  ( var 1 var 2)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tempo_on_nubliza1 = var2 &lt;&lt; 8' />
							<exp exp='tempo_on_nubliza1 = tempo_on_nubliza1 | var1' />
						</command>
						<command class_type='call' title='0x17 var1 /tempo off nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var1' />
							<argument exp='0x17' />
						</command>
						<command class_type='call' title='0x18 var2 /tempo off nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var2' />
							<argument exp='0x18' />
						</command>
						<command class_type='calculation' title='Cálculo devoluçao do valor int  tempo_off_nubliza   var 1 var 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tempo_off_nubliza1 = var2 &lt;&lt; 8' />
							<exp exp='tempo_off_nubliza1 = tempo_off_nubliza1 | var1' />
						</command>
						<command class_type='comment' title='' comment='nublizacao 2' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='0x19 nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='nublizacao2' />
							<argument exp='0x19' />
						</command>
						<command class_type='call' title='0x1a var1 /tempo on nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var1' />
							<argument exp='0x1a' />
						</command>
						<command class_type='call' title='0x1b var2 /tempo on nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var2' />
							<argument exp='0x16' />
						</command>
						<command class_type='calculation' title=' devoluçao do valor int  tempo_on_nubliza2  ( var 1 var 2)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tempo_on_nubliza2 = var2 &lt;&lt; 8' />
							<exp exp='tempo_on_nubliza2 = tempo_on_nubliza2 | var1' />
						</command>
						<command class_type='call' title='0x1c var1 /tempo off nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var1' />
							<argument exp='0x1c' />
						</command>
						<command class_type='call' title='0x1d var2 /tempo off nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='var2' />
							<argument exp='0x1d' />
						</command>
						<command class_type='calculation' title=' devoluçao do valor int  tempo_off_nubliza2   var 1 var 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='tempo_off_nubliza2 = var2 &lt;&lt; 8' />
							<exp exp='tempo_off_nubliza2 = tempo_off_nubliza2 | var1' />
						</command>
						<command class_type='call' title='Chamar calculo textos estado' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_textos_estado' />
					</flowline>
				</macro>
				<macro >
					<flowline name='habilitar_alarmes_minimos' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='habilitar_alarmes_minimos = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='habilitar_alarmes_minimos = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom habilitar alarmes minimos' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x10' />
							<argument exp='habilitar_alarmes_minimos' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_caldeira2_on_off' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='caldeira2_on_off = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='caldeira2_on_off = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x7 caldeira2_on_off' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x7' />
							<argument exp='caldeira2_on_off' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira2_on_off = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='out_4 = 0' />
									<exp exp='out_5 = 0' />
									<exp exp='estado_s4 = &quot;s4 off&quot;' />
									<exp exp='estado_s5 = &quot;s5 off&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_caldeira1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='caldeira1_on_off = 0' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='caldeira1_on_off = 0' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='out_1 = 0
out_2 = 0
out_3 = 0
estado_s1 = &quot;S1off&quot;
estado_s2 = &quot;S2off&quot;
estado_s3 = &quot;S3off&quot;
' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='out_1 = 0' />
									<exp exp='out_2 = 0' />
									<exp exp='out_3 = 0' />
									<exp exp='estado_s1 = &quot;S1off&quot;' />
									<exp exp='estado_s2 = &quot;S2off&quot;' />
									<exp exp='estado_s3 = &quot;S3off&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='adc_caldeira_1 &lt; 40' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='decision' title='' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &lt; 40' swap='0' >
									<flowline >
										<command class_type='calculation' title='byte_c1 = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='byte_c1 = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='comment' title='' comment='adc_caldeira_1 &gt; prog_C1 + histerese_t' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='decision' title='' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &gt; prog_C1 + histerese_t' swap='0' >
											<flowline >
												<command class_type='calculation' title='byte_c1 = 2' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='byte_c1 = 2' />
												</command>
											</flowline>
											<flowline >
												<command class_type='comment' title='' comment='adc_caldeira_1 &gt;= 40 + histerese_t' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
												<command class_type='decision' title='' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &gt;= 40 + histerese_t' swap='0' >
													<flowline >
														<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_caldeira_1 &lt;= prog_C1 - histerese_t' swap='0' >
															<flowline >
																<command class_type='calculation' title='byte_c1 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='byte_c1 = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Chamar control temp aviario 1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_temp_aviario1' />
								<command class_type='decision' title='alarme_c1max = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='alarme_c1max = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='out_1 = 0
estado_s1 = &quot;S1off&quot;
' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='out_1 = 0' />
											<exp exp='estado_s1 = &quot;S1off&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='byte_c1 = 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c1 = 2' swap='0' >
											<flowline />
											<flowline >
												<command class_type='call' title='Chamar temporizador c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='temporizador_c1' />
												<command class_type='decision' title='byte_temporizador_c1 = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_temporizador_c1 = 1' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='out_1 = 1
estado_s1 = &quot;S1 on&quot;
' textmode='1' textarea='56,60,531,360' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='out_1 = 1' />
															<exp exp='estado_s1 = &quot;S1 on&quot;' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='até ao momento as locaçoes usadas de eeprom está em :
0x1d ( 29 ) variavel : tempo off nubliza2 (var2)
 a locaçao 0xc está disponivel' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='portas/saidas usadas :
rc2-pwm1
rc1-pwm2
ra0-ativa/desativa modem (74hc4052)
rg1-tx2(rx nextion)
rg2-tx2(tx nextion)
rc6-tx1(rx modem)
rc7-tx2(tx modem)
rb7-pgd(programador)
rb6_pgc(programador)
re0-led avarias
re1-out1 S1 (M.fumos 1)
re2-out2 S2 (V.ar quente 1)
re3-out3 S3 (R.ventil 1.)
re4-out4 S4 (M.fumos 2)
re5-out5 S5 (V.ar quente 2)
re6-out6 S6 (R.ventil 2)
re7-out7 S7 (R.nubliza 1)
rd0-out8 S8 (R.nubliza 2)

portas/entradas usadas :
rc0-falha de luz
' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART2' macro='Initialise' />
						<command class_type='delay' title='Atraso 3s' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='3' type='2' />
						<command class_type='output' title='Saída F7 =0 &quot;activa o modem&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048581' mask='128' exp='0' />
						<command class_type='call' title='Chamar iniciar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='iniciar' />
						<command class_type='calculation' title='comando &quot;t0.txt=a iniciar modem........&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;a iniciar modem........&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='call' title='Chamar arrancar com modem' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='arrancar_com_modem' />
						<command class_type='calculation' title='comando = &quot;AT+CNMI=2,1,0,0,0&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CNMI=2,1,0,0,0&quot; // MODO DE GUARDAR SMS NA MEMORIA ATE SER LIDA' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando com variavel &quot;temporario&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
						<command class_type='calculation' title='comando = &quot;AT+CSDH=0&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CSDH=0&quot;' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='calculation' title='comando =&quot;AT+CUSD=1&quot; // HABILITAR VER SALDO' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CUSD=1&quot; // HABILITAR VER SALDO' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando com variavel &quot;temporario&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
						<command class_type='calculation' title='comando = &quot;AT+CMGF=1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CMGF=1&quot;' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando com variavel &quot;temporario&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + temporario' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='call' title='Chamar apagar sms todas' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='apagar_sms' />
						<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='100' type='1' />
						<command class_type='calculation' title='reset contador sms' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='contador_sms_in = 0' />
						</command>
						<command class_type='call' title='eeprom guardar contagem sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1' />
							<argument exp='contador_sms_in' />
						</command>
						<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + string_geral' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
						<command class_type='decision' title='byte_result = 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_result = 1' swap='1' >
							<flowline >
								<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;sms apagados !&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;t0.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;erro ao apagar sms !&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='3' type='2' />
						<command class_type='call' title='Chamar obter sinal' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='obter_sinal' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='texto = &quot;gsm ok &quot; + texto_csq_verbal //sinal gsm abreviado' />
							<exp exp='' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + texto' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saidas' />
						<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
						<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
						<command class_type='call' title='Chamar sem ocurrencias txt' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='sem_ocurrencias_txt' />
						<command class_type='call' title='Chamar display estado caldeiras' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_estado_caldeiras' />
						<command class_type='calculation' title='comando = &quot;vis p0,1&quot; //mostrar icone sms' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;vis p0,1&quot; //mostrar icone sms' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
						<command class_type='calculation' title='comando = &quot;vis gsm,1&quot; //mostrar grafico sinal' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;vis gsm,1&quot; //mostrar grafico sinal' />
						</command>
						<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao1 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;vis tnub1,1&quot; //mostrar timer nublizaçao' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								<command class_type='calculation' title='comando = &quot;tnub1.txt=&quot;--:--&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;tnub1.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;--:--&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='comando = &quot;vis tnub1,0&quot; //esconder timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;vis tnub1,0&quot; //esconder timer nublizaçao' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao2 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;vis tnub2,1&quot; //mostrar timer nublizaçao' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
								<command class_type='calculation' title='comando = &quot;tnub2.txt=&quot;--:--&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;tnub2.txt=&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
									<exp exp='comando = comando + &quot;--:--&quot;' />
									<exp exp='comando = comando + &quot;\&quot;&quot;' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='comando = &quot;vis tnub2,0&quot; //esconder timer nublizaçao' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='comando = &quot;vis tnub2,0&quot; //esconder timer nublizaçao' />
								</command>
								<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
							</flowline>
						</command>
						<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='Chamar monitor' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='monitor' />
								<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
								<command class_type='comment' title='' comment='de momento as entradas IO so tem falha de luz' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
								<command class_type='switch' title=' numero_pagina &gt; 10' textmode='1' textarea='107,207,582,507' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
									<case >
										<flowline >
											<command class_type='switch' title='Switch numero_pagina &lt;= 10' textmode='1' textarea='136,200,611,500' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
												<case >
													<flowline />
												</case>
												<case exp='1 //menu' >
													<flowline >
														<command class_type='calculation' title='reset contador' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='contador = 0' />
														</command>
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 1' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 1 OR ciclo_switch = 10' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='ciclo_switch &gt;= 10' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='numero_pagina = 0' />
																	<exp exp='ciclo_switch = 0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='ciclo_switch = 0' />
																</command>
															</flowline>
														</command>
														<command class_type='switch' title='' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
															<case >
																<flowline />
															</case>
															<case exp='0 //geral' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 0&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 0&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='1 //menu' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 1&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='2 //prog_c1' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 2&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 2&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='3 //prog_c2' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 3&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 3&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='4 //PROG T1' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 4&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 4&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='5 //prog t2' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 5&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 5&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='6 //manual' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 6&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 6&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='7 //ventil 1 e ventil 2' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 7&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 7&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='8 //alarmes min e sms' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 8&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 8&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='9 //sensor fumo' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 9&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 9&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
														</command>
														<command class_type='switch' title='Switch numero_pagina' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina' >
															<case >
																<flowline />
															</case>
															<case exp='10 // numeros telefone' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 10&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 10&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='11 //teste pwm' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 11&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 11&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
															<case exp='12 //RESET ALARMES' >
																<flowline >
																	<command class_type='calculation' title='comando = &quot;page 12&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='comando = &quot;page 12&quot;' />
																		<exp exp='' />
																		<exp exp='' />
																		<exp exp='' />
																	</command>
																</flowline>
															</case>
														</command>
														<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='decision' title=' numero_pagina = 0' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='numero_pagina = 0' swap='0' >
															<flowline >
																<command class_type='comment' title='' comment='algumas destas variaveis devem ser vistas na macro :
receber sms' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='calculation' title='reset variaveis' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='ciclo_macros = 0' />
																	<exp exp='icon_sms = 0' />
																	<exp exp='icon_climatiza1 = 0' />
																	<exp exp='icon_climatiza2 = 0' />
																	<exp exp='icon_estado_caldeira1 = 0' />
																	<exp exp='icon_estado_caldeira2 = 0' />
																	<exp exp='aviso_alarme = 0' />
																	<exp exp='contador_display_adcs = 7 //para fazer mostrar todas as adcs' />
																	<exp exp='icon_habilitar = 0 //reset variavel' />
																	<exp exp='icon_alarmes_min = 0 // reset variavel' />
																	<exp exp='cont_f_sen_geral = 0' />
																	<exp exp='contador_reset = 0' />
																	<exp exp='cont_sens_fail_1 = 0' />
																	<exp exp='cont_sens_fail_2 = 0' />
																	<exp exp='contador_display_adcs = 16 // serve para obrigar a fazer display de todas as adcs' />
																</command>
																<command class_type='comment' title='' comment='ao fazer reset na seguinte variavel
é possivel fazer com que o icone de nublizaçao permaneça
no estado correspondente' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
																<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='byte_timer1 = 0' />
																	<exp exp='reset_nubliza_icones = 0' />
																</command>
																<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
																	<exp exp='comando = &quot;vis t3,0&quot;' />
																</command>
																<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
																<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
															</flowline>
															<flowline />
														</command>
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='2 //caldeira 1' >
													<flowline >
														<command class_type='calculation' title='icon_estado_caldeira1 = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='icon_estado_caldeira1 = 0' />
														</command>
														<command class_type='call' title='Chamar display estado caldeiras' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_estado_caldeiras' />
														<command class_type='calculation' title='comando = &quot;safe.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (prog_C1)' />
															<exp exp='comando = &quot;safe.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
														<command class_type='call' title='Chamar display c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C1' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 2' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 2 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='3 //caldeira 2' >
													<flowline >
														<command class_type='calculation' title='icon_estado_caldeira2 = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='icon_estado_caldeira2 = 0' />
														</command>
														<command class_type='call' title='Chamar display estado caldeiras' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_estado_caldeiras' />
														<command class_type='calculation' title='comando = &quot;safe.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (prog_C2)' />
															<exp exp='comando = &quot;safe.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
														<command class_type='call' title='Chamar display c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_C2' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 3' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 3 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='4 //temp1+hist' >
													<flowline >
														<command class_type='calculation' title='comando = &quot;histereseT.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (histerese_T)' />
															<exp exp='comando = &quot;histereseT.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='calculation' title='comando = &quot;T1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (prog_T1)' />
															<exp exp='comando = &quot;T1.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='comment' title='' comment='PODE CHAMAR TEMPERATURA ACTUAL' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
														<command class_type='call' title='Chamar display t1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_t1' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 4' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 4 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
																<command class_type='decision' title='contador = 70' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador = 70' swap='0' >
																	<flowline >
																		<command class_type='call' title='Chamar display t1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_t1' />
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='5 //temp2+hist' >
													<flowline >
														<command class_type='calculation' title='comando = &quot;histereseT.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (histerese_T)' />
															<exp exp='comando = &quot;histereseT.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='calculation' title='comando = &quot;T2.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (prog_T2)' />
															<exp exp='comando = &quot;T2.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='comment' title='' comment='PODE CHAMAR TEMPERATURA ACTUAL' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
														<command class_type='call' title='Chamar display t2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_T2' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 5' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 5 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
																<command class_type='decision' title='contador = 70' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador = 70' swap='0' >
																	<flowline >
																		<command class_type='call' title='Chamar display t2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_T2' />
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='6 //manual' >
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_saidas' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='manual_estado_botoes' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 6' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 6' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='comment' title='' comment='nao chamar switch contador' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
															</flowline>
														</command>
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='PWM_on_off' />
														<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='out_7 = 0' />
															<exp exp='out_8 = 0' />
														</command>
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='7 //ventil 1 e 2' >
													<flowline >
														<command class_type='calculation' title='reset   icon_climatiza ' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='icon_climatiza1 = 0' />
															<exp exp='icon_climatiza2 = 0' />
														</command>
														<command class_type='calculation' title='comando = &quot;v1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (climatiza_ventil1)' />
															<exp exp='comando = &quot;v1.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='calculation' title='comando = &quot;v2.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (climatiza_ventil2)' />
															<exp exp='comando = &quot;v2.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='comment' title='' comment='alteraçao 02/02/2020
para mostrar na pagina vent set o valor percentual' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
														<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario_byte = percentual' />
															<exp exp='temporario_byte = temporario_byte * 10' />
															<exp exp='temporario = ToString$ (temporario_byte)' />
															<exp exp='comando = &quot;n0.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='call' title='Chamar estado ventiladores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_ventiladores' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 7' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 7 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_ventila' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='PWM_on_off' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_off_nubliza' />
														<command class_type='call' title='chamar prog nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_nublizacao1' />
														<command class_type='call' title='chamar prog nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_nublizacao2' />
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='8 //alarm min e sms' >
													<flowline >
														<command class_type='calculation' title='reset   icon ' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='icon_habilitar = 0 //reset variavel' />
															<exp exp='icon_alarmes_min = 0 // reset variavel' />
															<exp exp='' />
														</command>
														<command class_type='calculation' title='comando = &quot;v1.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (sms_habilitar)' />
															<exp exp='comando = &quot;v1.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='calculation' title='comando = &quot;v2.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (habilitar_alarmes_minimos)' />
															<exp exp='comando = &quot;v2.val=&quot;' />
															<exp exp='comando = comando + temporario' />
														</command>
														<command class_type='call' title='Chamar tres ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='call' title='Chamar estado alarmes minimos e sms habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_alarmes_min' />
														<command class_type='call' title='Chamar estado sms habilitar' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='estado_sms_habilitar' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 8' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 8 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='9 //sensor fumo' >
													<flowline >
														<command class_type='calculation' title='comando = &quot;ppm.val=&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (cal_sens_fumo)' />
															<exp exp='comando = &quot;ppm.val=&quot;' />
															<exp exp='' />
															<exp exp='comando = comando + temporario' />
															<exp exp='' />
															<exp exp='' />
														</command>
														<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='call' title='Chamar modulo ler sensores' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_74HC4052' />
														<command class_type='call' title='Chamar display prog sens fumo' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='display_prog_sens_fumo' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 9' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 9 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
												<case exp='10 // numeros telefone' >
													<flowline >
														<command class_type='output' title='Saída A0 =0 &quot;activa o modem&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='1' exp='0' />
														<command class_type='call' title='Chamar modem ler' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='modem_ler' />
														<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='temporario = ToString$ (pos_mem_telefone)' />
															<exp exp='comando = &quot;t0.txt=&quot;' />
															<exp exp='comando = comando + &quot;\&quot;&quot;' />
															<exp exp='comando = comando + &quot;pos.&quot;' />
															<exp exp='comando = comando + temporario' />
															<exp exp='comando = comando + &quot; &quot;' />
															<exp exp='comando = comando + numero' />
															<exp exp='comando = comando + nome' />
															<exp exp='comando = comando + &quot;\&quot;&quot;' />
															<exp exp='' />
														</command>
														<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='comando = &quot;va0.val=&quot;' />
															<exp exp='comando = comando + temporario // numero de posiçao memo telem' />
														</command>
														<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
														<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 10' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 10 OR ciclo_switch &gt;= 5' start='0' >
															<flowline >
																<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
																<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
															</flowline>
														</command>
														<command class_type='output' title='Saída A0 =1 &quot;desactiva o modem&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='1' exp='255' />
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
														<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
													</flowline>
												</case>
											</command>
										</flowline>
									</case>
									<case exp='11 //nublizacao' >
										<flowline >
											<command class_type='call' title='chamar p11 nubliza' cmdcolor='16711808' cmdcolor_sec='16711808' macro='p11_nubliza_prog_display' />
											<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 11' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 11 OR ciclo_switch &gt;= 5' start='0' >
												<flowline >
													<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
													<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
													<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='pulso_nublizacao1 = 0' />
												<exp exp='minuto1 = 0' />
												<exp exp='segundo1 = 0' />
												<exp exp='pulso_nublizacao2 = 0' />
												<exp exp='minuto3 = 0' />
												<exp exp='segundo3 = 0' />
											</command>
											<command class_type='call' title='chamar prog nublizacao1' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_nublizacao1' />
											<command class_type='call' title='chamar prog nublizacao2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_nublizacao2' />
											<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
											<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_off_ventil' />
											<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='prog_ventila' />
											<command class_type='call' title='Chamar dados eeprom' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='dados_eeprom' />
											<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
										</flowline>
									</case>
									<case exp='12 //res.alar.' >
										<flowline >
											<command class_type='loop' title='Ciclo ate numero_pagina &lt;&gt; 12' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='numero_pagina &lt;&gt; 12 OR ciclo_switch &gt;= 5' start='0' >
												<flowline >
													<command class_type='call' title='Chamar processar instrucoes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='processar_instrucoes' />
													<command class_type='call' title='chamar switch contador' cmdcolor='16711808' cmdcolor_sec='16711808' macro='switch_contador' />
													<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_saidas' />
												</flowline>
											</command>
											<command class_type='calculation' title='byte_onboard_stat = 0' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='byte_onboard_stat = 0' />
												<exp exp='byte_reset = 0' />
												<exp exp='contador = 0' />
												<exp exp='' />
											</command>
											<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='calculo_para_cicloswitch' />
											<command class_type='goto' title='Goto Connection Point B' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
										</flowline>
									</case>
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='ciclo_macros_geral' />
								<command class_type='call' title='Chamar control  alarmes' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_alarmes' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_csq' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='csq_decimal = StringToInt$ (string_csq)' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='csq_decimal &lt; 9' swap='1' >
							<flowline >
								<command class_type='decision' title='csq_decimal &gt; 25' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='csq_decimal &gt; 25' swap='0' >
									<flowline >
										<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='string_csq = &quot;2&quot; // mostra um grafico de escala muito baixa' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='string_csq = &quot;2&quot; // mostra um grafico de escala muito baixa' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='csq_decimal = StringToInt$ (string_csq)' />
							<exp exp='csq_decimal = csq_decimal * 3 // aqui triplica o valor para poder dar melhor leitura na escala grafica' />
							<exp exp='string_csq = ToString$ (csq_decimal) //conversao para string' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='clock_gsm' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando + reset clock_modem' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CCLK?&quot;' />
							<exp exp='clock_modem = &quot;&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='100' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='char = 34 // &quot;' textmode='1' textarea='179,107,654,407' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34 // &quot;' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='100' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='10' />
								</command>
								<command class_type='decision' title='char = 43 // +' textmode='1' textarea='197,96,672,396' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 43 // +' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação B ' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='char &lt; 32' textmode='1' textarea='222,90,697,390' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &lt; 32' swap='1' >
									<flowline >
										<command class_type='decision' title='char &gt; 126' textmode='1' textarea='266,96,741,396' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char &gt; 126' swap='0' >
											<flowline />
											<flowline >
												<command class_type='decision' title='charl = 34 // &quot;' textmode='1' textarea='236,85,711,385' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 34 // &quot;' swap='0' >
													<flowline />
													<flowline >
														<command class_type='calculation' title='obter clock modem' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='string_char[0] = char' />
															<exp exp='clock_modem = clock_modem + string_char' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='call' title='chamar loop ate ok' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
					</flowline>
				</macro>
				<macro >
					<flowline name='control_temp_aviario2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='byte_c2' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c2' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='89,243,564,543' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_4 = 0' />
												<exp exp='out_5 = 0' />
												<exp exp='out_6 = 1' />
												<exp exp='estado_s4 = &quot;S4off&quot;' />
												<exp exp='estado_s5 = &quot;S5off&quot;' />
												<exp exp='estado_s6 = &quot;S6 on&quot;' />
												<exp exp='byte_t2 = 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='116,167,591,467' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 &amp; byte_t2 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_4 = 0' />
														<exp exp='out_5 = 0' />
														<exp exp='out_6 = 1' />
														<exp exp='estado_s4 = &quot;S4off&quot;' />
														<exp exp='estado_s5 = &quot;S5off&quot;' />
														<exp exp='estado_s6 = &quot;S6 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='153,197,628,497' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 = prog_T2' swap='0' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_4 = 1' />
																<exp exp='out_5 = 0' />
																<exp exp='out_6 = 0' />
																<exp exp='estado_s4 = &quot;S4 on&quot;' />
																<exp exp='estado_s5 = &quot;S5off&quot;' />
																<exp exp='estado_s6 = &quot;S6off&quot;' />
																<exp exp='byte_t2 = 0' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='Decisão' textmode='1' textarea='153,178,628,478' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt; prog_T2 - histerese_t' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='out_4 = 1' />
																		<exp exp='out_5 = 0' />
																		<exp exp='out_6 = 0' />
																		<exp exp='estado_s4 = &quot;S4 on&quot;' />
																		<exp exp='estado_s5 = &quot;S5off&quot;' />
																		<exp exp='estado_s6 = &quot;S6off&quot;' />
																		<exp exp='byte_t2 = 0' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='decision' title='adc_temp_2 &gt; prog_T2 ' textmode='1' textarea='193,236,668,536' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2' swap='0' >
																		<flowline >
																			<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_t2 = 0' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																						<exp exp='out_4 = 1' />
																						<exp exp='out_5 = 0' />
																						<exp exp='out_6 = 0' />
																						<exp exp='estado_s4 = &quot;S4 on&quot;' />
																						<exp exp='estado_s5 = &quot;S5off&quot;' />
																						<exp exp='estado_s6 = &quot;S6off&quot;' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='decision' title='adc_temp_2 &lt; prog_T2' textmode='1' textarea='179,244,654,544' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt; prog_T2' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_t2 = 0' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																								<exp exp='out_4 = 1' />
																								<exp exp='out_5 = 0' />
																								<exp exp='out_6 = 0' />
																								<exp exp='estado_s4 = &quot;S4 on&quot;' />
																								<exp exp='estado_s5 = &quot;S5off&quot;' />
																								<exp exp='estado_s6 = &quot;S6off&quot;' />
																								<exp exp='' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_4 = 0' />
												<exp exp='out_5 = 0' />
												<exp exp='out_6 = 1' />
												<exp exp='estado_s4 = &quot;S4off&quot;' />
												<exp exp='estado_s5 = &quot;S5off&quot;' />
												<exp exp='estado_s6 = &quot;S6 on&quot;' />
												<exp exp='byte_t2 = 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 &amp; byte_t2 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_4 = 0' />
														<exp exp='out_5 = 0' />
														<exp exp='out_6 = 1' />
														<exp exp='estado_s4 = &quot;S4off&quot;' />
														<exp exp='estado_s5 = &quot;S5off&quot;' />
														<exp exp='estado_s6 = &quot;S6 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 &amp; byte_t2 = 0' swap='0' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_4 = 0' />
																<exp exp='out_5 = 0' />
																<exp exp='out_6 = 0' />
																<exp exp='estado_s4 = &quot;S4off&quot;' />
																<exp exp='estado_s5 = &quot;S5off&quot;' />
																<exp exp='estado_s6 = &quot;S6off&quot;' />
																<exp exp='' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 = prog_T2' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='out_4 = 0' />
																		<exp exp='out_5 = 0' />
																		<exp exp='out_6 = 0' />
																		<exp exp='estado_s4 = &quot;S4off&quot;' />
																		<exp exp='estado_s5 = &quot;S5off&quot;' />
																		<exp exp='estado_s6 = &quot;S6off&quot;' />
																		<exp exp='byte_t2 = 0' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt; prog_T2 - histerese_t' swap='0' >
																		<flowline >
																			<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='out_4 = 1' />
																				<exp exp='out_5 = 1' />
																				<exp exp='out_6 = 0' />
																				<exp exp='estado_s4 = &quot;S4 on&quot;' />
																				<exp exp='estado_s5 = &quot;S5 on&quot;' />
																				<exp exp='estado_s6 = &quot;S6off&quot;' />
																				<exp exp='byte_t2 = 0' />
																			</command>
																		</flowline>
																		<flowline />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_4 = 0' />
												<exp exp='out_5 = 1' />
												<exp exp='out_6 = 1' />
												<exp exp='estado_s4 = &quot;S4off&quot;' />
												<exp exp='estado_s5 = &quot;S5 on&quot;' />
												<exp exp='estado_s6 = &quot;S6 on&quot;' />
												<exp exp='' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &gt; prog_T2' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_4 = 0' />
														<exp exp='out_5 = 1' />
														<exp exp='out_6 = 1' />
														<exp exp='estado_s4 = &quot;S4off&quot;' />
														<exp exp='estado_s5 = &quot;S5 on&quot;' />
														<exp exp='estado_s6 = &quot;S6 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_2 &lt;= prog_T2' swap='0' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_4 = 0' />
																<exp exp='out_5 = 1' />
																<exp exp='out_6 = 0' />
																<exp exp='estado_s4 = &quot;S4off&quot;' />
																<exp exp='estado_s5 = &quot;S5 on&quot;' />
																<exp exp='estado_s6 = &quot;S6off&quot;' />
																<exp exp='byte_t2 = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_6 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM2' macro='Enable' />
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_ventila2' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='enviar_sms' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='eeprom estado contador sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Read' >
							<return exp='contador_sms_in' />
							<argument exp='0x1' />
						</command>
						<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='contador_sms_in &gt; 5' swap='0' >
							<flowline >
								<command class_type='calculation' title='reset contador sms in' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='contador_sms_in = 0' />
									<exp exp='temporario = &quot;a apagar sms box&quot;' />
								</command>
								<command class_type='call' title='Chamar apagar sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='apagar_sms' />
								<command class_type='comment' title='' comment='print temporario' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='calculation' title='reset temporario' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='temporario = &quot;&quot;' />
								</command>
								<command class_type='delay' title='Atraso' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Cálculo contador sms' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='contador_sms_in = contador_sms_in + 1' />
						</command>
						<command class_type='call' title='eeprom guardar contagem sms' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x1' />
							<argument exp='contador_sms_in' />
						</command>
						<command class_type='calculation' title='comando = &quot;AT+CMGF=1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CMGF=1&quot;' />
							<exp exp='byte_result = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando = &quot;AT+CMGS=\&quot;numero_rec\&quot;&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CMGS=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + numero' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
							<exp exp='char = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='comment' title='' comment='CHAMAR CRLF' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='ESPERAR POR &quot;&gt;&quot;' textmode='1' textarea='182,54,657,354' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='loop' title='Ciclo' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='254' start='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='ReceiveChar' >
									<return exp='char' />
									<argument exp='50' />
								</command>
								<command class_type='decision' title='Decisão char = 62' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='char = 62' swap='0' >
									<flowline >
										<command class_type='goto' title='VaiPara Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='comando = &quot;AT+CFUN=1&quot;' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='comando = &quot;AT+CFUN=1&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='comando' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;erro ao enviar sms&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='goto' title='VaiPara Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='' />
						<command class_type='label' title='Ponto de ligação A' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='0' labelname='A' />
						<command class_type='comment' title='' comment='A ENVIAR SMS....' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='comment' title='' comment='mostrar numero' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendString' >
							<argument exp='texto' />
						</command>
						<command class_type='comment' title='' comment='chamar cr lf ??' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='UART1' macro='SendChar' >
							<argument exp='0x1a' />
						</command>
						<command class_type='call' title='Chamar CR LF' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='CR_LF' />
						<command class_type='call' title='Chamar LOOP ATE OK' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='loop_ate_ok' />
						<command class_type='calculation' title='comando = comando + numero' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + &quot;a enviar sms...&quot;' />
							<exp exp='comando = comando + numero' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='label' title='Ponto de ligação B' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' labelid='1' labelname='B' />
						<command class_type='comment' title='' comment='13/02/19
alteraçao :
reset variavel de texto movida para macro :
numeros_envio_sms;pedir estado' textmode='1' textarea='12,0,487,300' cmdcolor='5751039' cmdcolor_sec='5751039' />
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_C2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='prog_c2 = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_c2 = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x3 prog c2' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x3' />
							<argument exp='prog_C2' />
						</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='calculation' title='histerese_t = StringToInt$ (temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='histerese_t = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0xa histerese T' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0xa' />
							<argument exp='histerese_T' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='calculo_off_ventil' 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='nublizacao1 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='climatiza_ventil1 = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='nublizacao2 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='climatiza_ventil2 = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='control_temp_aviario1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='byte_c1' textmode='1' textarea='36,25,511,325' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_c1' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_1 = 0' />
												<exp exp='out_2 = 0' />
												<exp exp='out_3 = 1' />
												<exp exp='estado_s1 = &quot;S1off&quot;' />
												<exp exp='estado_s2 = &quot;S2off&quot;' />
												<exp exp='estado_s3 = &quot;S3 on&quot;' />
												<exp exp='byte_t1 = 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 &amp; byte_t1 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_1 = 0' />
														<exp exp='out_2 = 0' />
														<exp exp='out_3 = 1' />
														<exp exp='estado_s1 = &quot;S1off&quot;' />
														<exp exp='estado_s2 = &quot;S2off&quot;' />
														<exp exp='estado_s3 = &quot;S3 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 = prog_T1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_1 = 1' />
																<exp exp='out_2 = 0' />
																<exp exp='out_3 = 0' />
																<exp exp='estado_s1 = &quot;S1 on&quot;' />
																<exp exp='estado_s2 = &quot;S2off&quot;' />
																<exp exp='estado_s3 = &quot;S3off&quot;' />
																<exp exp='byte_t1 = 0' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt; prog_T1 - histerese_t' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='out_1 = 1' />
																		<exp exp='out_2 = 0' />
																		<exp exp='out_3 = 0' />
																		<exp exp='estado_s1 = &quot;S1 on&quot;' />
																		<exp exp='estado_s2 = &quot;S2off&quot;' />
																		<exp exp='estado_s3 = &quot;S3off&quot;' />
																		<exp exp='byte_t1 = 0' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1' swap='0' >
																		<flowline >
																			<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_t1 = 0' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																						<exp exp='out_1 = 1' />
																						<exp exp='out_2 = 0' />
																						<exp exp='out_3 = 0' />
																						<exp exp='estado_s1 = &quot;S1 on&quot;' />
																						<exp exp='estado_s2 = &quot;S2off&quot;' />
																						<exp exp='estado_s3 = &quot;S3off&quot;' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt; prog_T1' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='byte_t1 = 0' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																								<exp exp='out_1 = 1' />
																								<exp exp='out_2 = 0' />
																								<exp exp='out_3 = 0' />
																								<exp exp='estado_s1 = &quot;S1 on&quot;' />
																								<exp exp='estado_s2 = &quot;S2off&quot;' />
																								<exp exp='estado_s3 = &quot;S3off&quot;' />
																								<exp exp='' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_1 = 0' />
												<exp exp='out_2 = 0' />
												<exp exp='out_3 = 1' />
												<exp exp='estado_s1 = &quot;S1off&quot;' />
												<exp exp='estado_s2 = &quot;S2off&quot;' />
												<exp exp='estado_s3 = &quot;S3 on&quot;' />
												<exp exp='byte_t1 = 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 &amp; byte_t1 = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_1 = 0' />
														<exp exp='out_2 = 0' />
														<exp exp='out_3 = 1' />
														<exp exp='estado_s1 = &quot;S1off&quot;' />
														<exp exp='estado_s2 = &quot;S2off&quot;' />
														<exp exp='estado_s3 = &quot;S3 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 &amp; byte_t1 = 0' swap='0' >
														<flowline >
															<command class_type='calculation' title='' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_1 = 0' />
																<exp exp='out_2 = 0' />
																<exp exp='out_3 = 0' />
																<exp exp='estado_s1 = &quot;S1off&quot;' />
																<exp exp='estado_s2 = &quot;S2off&quot;' />
																<exp exp='estado_s3 = &quot;S3off&quot;' />
																<exp exp='' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 = prog_T1' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																		<exp exp='out_1 = 0' />
																		<exp exp='out_2 = 0' />
																		<exp exp='out_3 = 0' />
																		<exp exp='estado_s1 = &quot;S1off&quot;' />
																		<exp exp='estado_s2 = &quot;S2off&quot;' />
																		<exp exp='estado_s3 = &quot;S3off&quot;' />
																		<exp exp='byte_t1 = 0' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt; prog_T1 - histerese_t' swap='0' >
																		<flowline >
																			<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																				<exp exp='out_1 = 1' />
																				<exp exp='out_2 = 1' />
																				<exp exp='out_3 = 0' />
																				<exp exp='estado_s1 = &quot;S1 on&quot;' />
																				<exp exp='estado_s2 = &quot;S2 on&quot;' />
																				<exp exp='estado_s3 = &quot;S3off&quot;' />
																				<exp exp='byte_t1 = 0' />
																			</command>
																		</flowline>
																		<flowline />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
									<command class_type='comment' title='' comment='teste :
chamar macro control ventilador para reverter temperatura 
da caldeira' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1 + histerese_T' swap='0' >
										<flowline >
											<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
												<exp exp='out_1 = 0' />
												<exp exp='out_2 = 1' />
												<exp exp='out_3 = 1' />
												<exp exp='estado_s1 = &quot;S1off&quot;' />
												<exp exp='estado_s2 = &quot;S2 on&quot;' />
												<exp exp='estado_s3 = &quot;S3 on&quot;' />
												<exp exp='' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &gt; prog_T1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
														<exp exp='out_1 = 0' />
														<exp exp='out_2 = 1' />
														<exp exp='out_3 = 1' />
														<exp exp='estado_s1 = &quot;S1off&quot;' />
														<exp exp='estado_s2 = &quot;S2 on&quot;' />
														<exp exp='estado_s3 = &quot;S3 on&quot;' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decisão' textmode='1' textarea='36,0,511,300' cmdcolor='16734039' cmdcolor_sec='16734039' exp='adc_temp_1 &lt;= prog_T1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Cálculo' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
																<exp exp='out_1 = 0' />
																<exp exp='out_2 = 1' />
																<exp exp='out_3 = 0' />
																<exp exp='estado_s1 = &quot;S1off&quot;' />
																<exp exp='estado_s2 = &quot;S2 on&quot;' />
																<exp exp='estado_s3 = &quot;S3off&quot;' />
																<exp exp='byte_t1 = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='out_3 = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='PWM1' macro='Enable' />
								<command class_type='call' title='' cmdcolor='16711808' cmdcolor_sec='16711808' macro='control_ventila1' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='display_dados_guardados' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='comando' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='' />
							<exp exp='comando = &quot;t0.txt=&quot;' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='comando = comando + texto_dados_rem' />
							<exp exp='comando = comando + &quot; &quot;' />
							<exp exp='comando = comando + temporario_rem_string' />
							<exp exp='comando = comando + &quot;\&quot;&quot;' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Chamar 3 ciclos ff' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' macro='tres_ciclos_ff' />
						<command class_type='delay' title='Atraso 2s' textmode='1' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='flash_led_alarm' 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='cont_led_alarm = cont_led_alarm + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_led_alarm = 150' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='led_alarmes = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='cont_led_alarm = 300' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='led_alarmes = 0' />
									<exp exp='cont_led_alarm = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prog_C1' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='prog_c1 = StringToInt$(temporario)' textmode='1' textarea='36,0,511,300' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='prog_c1 = StringToInt$ (temporario)' />
						</command>
						<command class_type='call' title='eeprom 0x2 prog c1' textmode='1' textarea='36,0,511,300' cmdcolor='16711808' cmdcolor_sec='16711808' component='eeprom1' macro='Write' >
							<argument exp='0x2' />
							<argument exp='prog_C1' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART1' x='-90' y='60' z='0' xsz='64' ysz='32' zsz='1.53' 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 >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='000' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTF.3' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTF.2' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='0' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART2' x='-90' y='20' z='0' xsz='64' ysz='32' zsz='1.53' 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 >
					<value target='cal_uart::CHANNEL' data='002' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='000' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTF.5' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTF.4' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='0' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='-110' y='-20' z='0' xsz='20' ysz='20' 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='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='4096 byte' />
					<value target='EEbitdepth' data='16 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
					<value target='ResetValues' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM1' x='-77' y='-67.2222' z='3.83333' xsz='1.85185' ysz='1.85185' zsz='1.85185' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTD.0' />
					<value target='RemapPin' data='000' />
					<value target='timer' data='2' />
					<value target='period' data='32000' />
					<value target='prescale' data='006' />
					<value target='period_calc' data='682688.000000' />
					<value target='frequency_calc2' data='1.464798' />
					<value target='frequency_calc' data='0.001465' />
					<value target='pwm_prescale' data='64' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM2' x='33' y='-67.2222' z='3.83333' xsz='1.85185' ysz='1.85185' zsz='1.85185' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='002' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTD.1' />
					<value target='RemapPin' data='000' />
					<value target='timer' data='2' />
					<value target='period' data='32000' />
					<value target='prescale' data='006' />
					<value target='period_calc' data='682688.000000' />
					<value target='frequency_calc2' data='1.464798' />
					<value target='frequency_calc' data='0.001465' />
					<value target='pwm_prescale' data='64' />
					<value target='ReqFreq' data='100.000000' />
					<value target='OldReqFreq' data='100.000000' />
					<value target='CalcFreq' data='100.004570' />
					<value target='CalcPeriod' data='10936' />
					<value target='CalcScaler' data='64' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='pot_ptr_black1' x='0' y='0' z='0' xsz='22.6274' ysz='22.6274' zsz='14.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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='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='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='pot_color_cap1' x='30' y='0' z='16.475' xsz='25.1419' ysz='25.1419' zsz='18.55' 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='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='12' />
					<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='0' ye='0' ze='300' xt='0' yt='0' 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='23.2335' ye='9.93598' ze='336.657' xt='23.2335' yt='9.93598' 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='iniciar' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUQUAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
