<root>
<document scada='0' schema='102' license='1,viktor_aust,WUXBW2' title='' description='' fcversion='524800' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' 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='9' />
			<data name='CalculatedCommsDelay' value='9' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' 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='Cde' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OldCde' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Octet' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NbDS18' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Error' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TempString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='5' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ID1w' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='64' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='j' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp2Oct' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='LireOneWire' description='' >
						<return name='Return' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='NumeroDS18' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Param = N° du DS18
à lire: 0 à 7' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='comment' title='' comment='si Erreur1W &gt; 0 Erreur
Valeur retournée = température
 sur 2 octets (Entier)' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Return = 0' />
							<exp exp='Error = 0' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Read device NumeroDS18' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='ReadDevice' >
							<return exp='Error' />
							<argument exp='.NumeroDS18' />
						</command>
						<command class_type='decision' title='Erreur si &gt; 0 (CRC)' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Error &gt; 0' swap='0' >
							<flowline />
							<flowline >
								<command class_type='call' title='Get temp' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='DS1820_GetTemp' >
									<return exp='.Return' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TempToStr' description='' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' />
						<param name='DS18S20' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='ValDS18' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Negatif' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Decimal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Entiere' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='z' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='r' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='TempStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='10' />
						</local>
						<command class_type='comment' title='' comment='TempToStr.DS18S20 =
0  -&gt; DS18B20
1  -&gt; DS18S20' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='TempToStr.Negatif = (TempToStr.ValDS18 &lt; 0)' />
							<exp exp='TempToStr.Return[0] = &apos;?&apos;' />
							<exp exp='TempToStr.Return[1] = &apos;?&apos;' />
							<exp exp='TempToStr.Return[2] = &apos;?&apos;' />
							<exp exp='TempToStr.Return[3] = &apos;?&apos;' />
							<exp exp='' />
							<exp exp='TempToStr.TempStr[0] = &apos;0&apos;' />
							<exp exp='TempToStr.TempStr[1] = &apos;1&apos;' />
							<exp exp='TempToStr.TempStr[2] = &apos;2&apos;' />
							<exp exp='TempToStr.TempStr[3] = &apos;3&apos;' />
							<exp exp='TempToStr.TempStr[4] = &apos;4&apos;' />
							<exp exp='TempToStr.TempStr[5] = &apos;5&apos;' />
							<exp exp='TempToStr.TempStr[6] = &apos;6&apos;' />
							<exp exp='TempToStr.TempStr[7] = &apos;7&apos;' />
							<exp exp='TempToStr.TempStr[8] = &apos;8&apos;' />
							<exp exp='TempToStr.TempStr[9] = &apos;9&apos;' />
						</command>
						<command class_type='decision' title='Négatif ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Negatif' swap='0' >
							<flowline >
								<command class_type='calculation' title='&quot;-&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='TempToStr.Return[0] = &apos;-&apos;' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='&quot;+&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='TempToStr.Return[0] = &apos; &apos;' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Pour un DS18S20 ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.DS18S20' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='//2 -&gt; 1 octet' />
									<exp exp='TempToStr.Entiere = TempToStr.ValDS18' />
									<exp exp='// impaire -&gt; &quot;,5&quot;' />
									<exp exp='TempToStr.Decimal = (TempToStr.Entiere AND 1)' />
								</command>
								<command class_type='decision' title='Négatif ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Negatif' swap='0' >
									<flowline >
										<command class_type='calculation' title='Complément à 2 et /2' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Entiere = TempToStr.Entiere XOR 255' />
											<exp exp='TempToStr.Entiere = TempToStr.Entiere + 1' />
											<exp exp='TempToStr.Entiere = TempToStr.Entiere &gt;&gt; 1' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='/ 2' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Entiere = TempToStr.Entiere &gt;&gt; 1' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='&lt;10 ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Entiere &lt; 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='&quot; &quot;  Unités' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[1] = &apos; &apos;' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Dizaines' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='//TempToStr.Negatif plus utilisé' />
											<exp exp='TempToStr.Negatif = TempToStr.Entiere / 10' />
											<exp exp='TempToStr.Return[1] = TempToStr.TempStr[TempToStr.Negatif]' />
											<exp exp='TempToStr.Entiere = TempToStr.Entiere - 10 * TempToStr.Negatif' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Unités &quot;,&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='TempToStr.Return[2] = TempToStr.TempStr[TempToStr.Entiere]' />
									<exp exp='TempToStr.Return[3] = &apos;,&apos;' />
								</command>
								<command class_type='decision' title=',5 ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal' swap='0' >
									<flowline >
										<command class_type='calculation' title='&quot;5&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[4] = &apos;5&apos;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='&quot;0&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[4] = &apos;0&apos;' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='TempToStr.Entiere = TempToStr.ValDS18 / 16' />
									<exp exp='TempToStr.Decimal = TempToStr.ValDS18 AND 15' />
								</command>
								<command class_type='decision' title='Négatif ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Negatif' swap='0' >
									<flowline >
										<command class_type='calculation' title='Complément à 2' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Entiere = TempToStr.Entiere XOR 255' />
											<exp exp='//TempToStr.Entiere = TempToStr.Entiere + 1//correction 15/2/09' />
											<exp exp='TempToStr.Decimal = TempToStr.Decimal XOR 15' />
											<exp exp='TempToStr.Decimal = TempToStr.Decimal + 1' />
											<exp exp='' />
										</command>
										<command class_type='decision' title='Decimal = 0001 0000' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal = 16' swap='0' >
											<flowline >
												<command class_type='calculation' title='Entiere + 1, Decimal = 0' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.Entiere = TempToStr.Entiere + 1 //correction 15/2/09' />
													<exp exp='TempToStr.Decimal = 0' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='&lt;10 ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Entiere &lt; 10' swap='0' >
									<flowline >
										<command class_type='calculation' title='&quot; &quot;  Unités' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[1] = &apos; &apos;' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Dizaines' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='//TempToStr.Negatif plus utilisé' />
											<exp exp='TempToStr.Negatif = TempToStr.Entiere / 10' />
											<exp exp='TempToStr.Return[1] = TempToStr.TempStr[TempToStr.Negatif]' />
											<exp exp='TempToStr.Entiere = TempToStr.Entiere - 10 * TempToStr.Negatif' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Unités &quot;,&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='TempToStr.Return[2] = TempToStr.TempStr[TempToStr.Entiere]' />
									<exp exp='TempToStr.Return[3] = &apos;,&apos;' />
								</command>
								<command class_type='decision' title='Decimal = 0' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal = 0' swap='1' >
									<flowline >
										<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.z = 0' />
											<exp exp='TempToStr.r = 0' />
										</command>
										<command class_type='decision' title='8 -&gt; 0.5, reste 0' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal AND 8' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.z = 5' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='4 -&gt; 0.2, reste 500' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal AND 4' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.z = TempToStr.z + 2' />
													<exp exp='TempToStr.r = 500' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='2 -&gt; 0.1, reste 250' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal AND 2' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.z = TempToStr.z + 1' />
													<exp exp='TempToStr.r = TempToStr.r + 250' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='1 -&gt; 0, reste 625' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.Decimal AND 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.r = TempToStr.r + 625' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Condition' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TempToStr.r &gt; 499' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempToStr.z = TempToStr.z + 1' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Char décimal' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[4] = TempToStr.TempStr[TempToStr.z]' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='&quot;0&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TempToStr.Return[4] = &apos;0&apos;' />
										</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='call' title='Init LCD' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Start' />
						<command class_type='calculation' title='Init variables' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='NbDS18 = 0' />
							<exp exp='Error = 0' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='erreur: 255 = no device (1 de busreset)
        1 no device (busreset)
        2 = 1 et 1 lu' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='comment' title='' comment='        autre = CRC' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Scan bus' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='ScanBus' >
							<return exp='Error' />
						</command>
						<command class_type='call' title='Clear LCD' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Clear' />
						<command class_type='call' title='Ligne 0, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Erreur1W' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Error &gt; 0' swap='0' >
							<flowline >
								<command class_type='call' title='&quot;Err 1W:&quot;' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
									<argument exp='&quot;Err 1W:&quot;' />
								</command>
								<command class_type='call' title='Erreur1W' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
									<argument exp='Error' />
								</command>
								<command class_type='call' title='Ligne 1 position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='&quot;App. stopped&quot;' textarea='36,0,36,52' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
									<argument exp='&quot;App. stopped&quot;' />
								</command>
								<command class_type='loop' title='Boucle infini' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Get device count' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='GetDeviceCount' >
							<return exp='NbDS18' />
						</command>
						<command class_type='call' title='NbDS18' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
							<argument exp='NbDS18' />
						</command>
						<command class_type='call' title='&quot; DS18&quot;' textarea='36,0,36,55' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
							<argument exp='&quot; DS18&quot;' />
						</command>
						<command class_type='decision' title='NbDS18 = 0 ou &gt; 8' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(NbDS18 = 0) OR (NbDS18 &gt; 8)' swap='0' >
							<flowline >
								<command class_type='call' title='Ligne 1, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='&quot;App. stopped&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
									<argument exp='&quot;App. stopped&quot;' />
								</command>
								<command class_type='loop' title='Boucle infini' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='Mise à jour de ID1w[64]
8 x 8 octets' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='calculation' title='Init i, j' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='i = 0' />
									<exp exp='j = 0' />
								</command>
								<command class_type='loop' title='i = 0 à 7 ' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='i &lt; 8' >
									<flowline >
										<command class_type='loop' title='j = 0 à 7' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='j &lt; 8' >
											<flowline >
												<command class_type='call' title='Ligne 1, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Store octet, inc j' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='x = (i &lt;&lt; 3) + j' />
													<exp exp='' />
												</command>
												<command class_type='call' title='Appel de la Routine Composant' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
													<argument exp='x' />
												</command>
												<command class_type='decision' title='i &lt; NbDS18' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='i &lt; NbDS18' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='1W_get_IDByte
Octet j du capteur i' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
														<command class_type='call' title='Octet j du capteur i' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='GetIDByte' >
															<return exp='Octet' />
															<argument exp='i' />
															<argument exp='j' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Octet = 0' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='Octet = 0' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Store octet, inc j' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='ID1w[x] = Octet' />
													<exp exp='j = j + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Inc i' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='i = i + 1' />
											<exp exp='j = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Pause read aff.' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='16769676' exp='2' type='2' />
						<command class_type='calculation' title='Aff. capteur 1' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='i = 0' />
							<exp exp='Cde = 0' />
							<exp exp='OldCde = 1' />
						</command>
						<command class_type='loop' title='Boucle principale' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='Start conversion pour tous les capteurs
max 1 seconde
Erreur si retourne 1' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='call' title='Start conversion pour tous les capteurs' cmdcolor='1879295' cmdcolor_sec='5751039' component='OneWire1' macro='DS1820_StartConversion' >
									<return exp='Error' />
								</command>
								<command class_type='decision' title='Erreur' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Error &gt; 0' swap='1' >
									<flowline >
										<command class_type='input' title='Entrée + -' textarea='36,0,511,300' cmdcolor='4664832' cmdcolor_sec='4470784' mode='2' port='1048578' mask='3' exp='Cde' />
										<command class_type='comment' title='' comment='Cde &lt;&gt; OldCde on start
Cde = 0 on start' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
										<command class_type='decision' title='Changement de capteur ?' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Cde = OldCde' swap='1' >
											<flowline >
												<command class_type='decision' title='Capteur +' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Cde = 1' swap='0' >
													<flowline >
														<command class_type='decision' title='Condition' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='i &lt; 7' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='i = i + 1' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Capteur -' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Cde = 2' swap='0' >
															<flowline >
																<command class_type='decision' title='Condition' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='i &gt; 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
																			<exp exp='i = i - 1' />
																		</command>
																	</flowline>
																	<flowline />
																</command>
															</flowline>
															<flowline >
																<command class_type='comment' title='' comment='Cde=0 on start' textarea='12,0,487,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='call' title='Clear LCD' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Clear' />
												<command class_type='call' title='Ligne 0, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='&quot;N=&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
													<argument exp='&quot;N=&quot;' />
												</command>
												<command class_type='call' title='i' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
													<argument exp='i' />
												</command>
												<command class_type='call' title='Ligne 0, position 7' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
													<argument exp='7' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='&quot;T=&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
													<argument exp='&quot;T=&quot;' />
												</command>
												<command class_type='call' title='Ligne 1, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='&quot;o0=&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
													<argument exp='&quot;o0=&quot;' />
												</command>
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='j = (i &lt;&lt; 3)' />
													<exp exp='Octet = ID1w[j]' />
												</command>
												<command class_type='call' title='Octet 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
													<argument exp='Octet' />
												</command>
												<command class_type='call' title='Ligne 1, position 8' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
													<argument exp='8' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='&quot;o1=&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
													<argument exp='&quot;o1=&quot;' />
												</command>
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='j = (i &lt;&lt; 3) + 1' />
													<exp exp='Octet = ID1w[j]' />
												</command>
												<command class_type='call' title='Octet 1' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintNumber' >
													<argument exp='Octet' />
												</command>
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='OldCde = 0' />
													<exp exp='Cde = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Lire Température capt. i' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='LireOneWire' >
											<return exp='Temp2Oct' />
											<argument exp='i' />
										</command>
										<command class_type='decision' title='Erreur CRC' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Error &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='&quot; CRC &quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='TempString = &quot; CRC &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='j = i &lt;&lt; 3' />
													<exp exp='Octet = ID1w[j]' />
												</command>
												<command class_type='decision' title='DS18S20' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Octet = 16' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='x = 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='DS18B20' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Octet = 40' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='x = 0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calcul' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='x = 2' />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='decision' title='DS valide' textarea='36,0,511,300' cmdcolor='12615680' cmdcolor_sec='15376912' exp='x &lt; 2' swap='0' >
													<flowline >
														<command class_type='call' title='Temp -&gt; chaîne' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' macro='TempToStr' >
															<return exp='TempString' />
															<argument exp='x' />
															<argument exp='Temp2Oct' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='&quot; ????&quot;' textarea='36,0,511,300' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='TempString = &quot; ????&quot;' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Ligne 0, position 9' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
											<argument exp='9' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='TempString' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
											<argument exp='TempString' />
										</command>
										<command class_type='delay' title='Pause' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
									</flowline>
									<flowline >
										<command class_type='call' title='Clear LCD' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Clear' />
										<command class_type='call' title='Ligne 0, position 0' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='&quot;Err Start conv&quot;' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='PrintString' >
											<argument exp='&quot;Err Start conv&quot;' />
										</command>
										<command class_type='delay' title='Pause' textarea='36,0,511,300' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='2' />
										<command class_type='call' title='Clear ' textarea='36,0,511,300' cmdcolor='1879295' cmdcolor_sec='5751039' component='LcdDisplay1' macro='Clear' />
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='5' vmaj='2' codename='LcdDisplay1' x='12.0695' y='-16.6278' z='131.117' xsz='78.2857' ysz='13.1429' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='LCD_Mode' data='000' />
					<value target='Pin_Data_0' data='$PORTD0.0' />
					<value target='Pin_Data_1' data='$PORTD0.1' />
					<value target='Pin_Data_2' data='$PORTD0.2' />
					<value target='Pin_Data_3' data='$PORTD0.3' />
					<value target='Pin_Data_4' data='$PORTA.1' />
					<value target='Pin_Data_5' data='$PORTA.1' />
					<value target='Pin_Data_6' data='$PORTA.1' />
					<value target='Pin_Data_7' data='$PORTA.1' />
					<value target='LCD_Port' data='$PORTA' />
					<value target='Pin_RS' data='$PORTD0.4' />
					<value target='Pin_E' data='$PORTD0.5' />
					<value target='LCD_Use_Write' data='0' />
					<value target='Pin_RW' data='$PORTA.0' />
					<value target='Rows' data='2' />
					<value target='Columns' data='16' />
					<value target='RemapCharacters' data='0' />
					<value target='DelayTiming' data='100' />
					<value target='BackgroundColor' data='0x808080' />
					<value target='LineColor' data='0' />
					<value target='TextColor' data='0x000000' />
					<value target='Font' data='Fixedsys' />
					<value target='CursorPosX' data='11' />
					<value target='CursorPosY' data='0' />
					<value target='DoubleDelay' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c0df38ee-7a7e-4a0a-bfd5-5a7745203826' vmin='0' vmaj='2' codename='Switches1' x='-45.496' y='-4.16539' z='133.546' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='count' data='2' />
					<value target='port' data='5' />
					<value target='PortByte' data='$PORTB0' />
					<value target='pin0' data='$PORTB0.0' />
					<value target='pin1' data='$PORTB0.1' />
					<value target='pin2' data='$PORTA0.0' />
					<value target='pin3' data='$PORTA0.0' />
					<value target='pin4' data='$PORTA0.0' />
					<value target='pin5' data='$PORTA0.0' />
					<value target='pin6' data='$PORTA0.0' />
					<value target='pin7' data='$PORTA0.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='200' />
					<value target='operation' data='000' />
					<value target='align' data='000' />
					<value target='spacing' data='12.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='004' />
					<value target='label_color' data='16777215' />
					<value target='target_object' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='64b26b13-68cf-4a92-8616-e882b7c71023' vmin='4' vmaj='1' codename='OneWire1' x='6.12877' y='12.993' z='131.117' xsz='68' ysz='33' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='oo_pin' data='$PORTA0.0' />
					<value target='BufferSize' data='8' />
					<value target='crc_en' data='1' />
					<value target='PIC8' data='1' />
					<value target='label' data='1-Wire' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='9737364' 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='1' lighting='2' brightness='76' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='39' />
		<camera xe='5' ye='14' ze='169.454' xt='5' yt='14' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAdgUAAIgDAAA' zoom='75' scrollx='0' scrolly='1440' flags='0' />
	</layout>
</document>
</root>
