<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="1602094081" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="EBB_VARIANTE_CALCULATEUR">
</FileName>
<Modif date="22/05/2020" site="Actia" user="E456886">
</Modif>
</IFile>
<ITool exedate="02/03/2020" name="fr.actia.flowchart.editor.model.engineID" revision="7.6.0.202001201427">
</ITool>
</Header>
<precel>
</precel>
<cel>
<Start posc=13 posl=16 destc="15" destl="16" ident=32>
<Comment>Menu calculateur CTPE
</Comment>
<Comment>$Rev: $
</Comment>
</Start>
<End posc=26 posl=17 ident=1413>
</End>
<Act posc=19 posl=16 destc="21" destl="16" ident=1490>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="DESCRIPTOR">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="IN_DIAG_MODE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="OUTPUT_DIAG_MODE">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ECUFunctionCall name="ECU_DESCRIPTOR">
<TextBuffer name="IN_DIAG_MODE">
</TextBuffer>
<Destination>
<TextBuffer name="OUTPUT_DIAG_MODE">
</TextBuffer>
</Destination>
</ECUFunctionCall>
</ECUCommunication>
<Execution>
</Execution>
</Act>
<Act posc=21 posl=16 destc="26" destl="17" ident=1496>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<TextBuffer name="OUTPUT_DIAG_MODE">
<Position>
<ValPos>1
</ValPos>
</Position>
<Length>5
</Length>
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=15 posl=16 destc="17" destl="16" ident=1519>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="VAR_ECU">
<RestoreAllowance Active="NO">
</RestoreAllowance>
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
</Act>
<Switch posc=17 posl=16 ident=19>
<Source>
<ECUData ParamName="STATE">
</ECUData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Degraded">
</ASCIIString>
</Source>
<TargetCell destc="17" destl="14">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc="19" destl="16">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="19" destl="18">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=19 posl=18 destc="26" destl="17" ident=20>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="ERROR">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=17 posl=14 ident=11>
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="X83_Chine">
</ASCIIString>
</Source>
<TargetCell destc="22" destl="12">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="P84">
</ASCIIString>
</Source>
<TargetCell destc="22" destl="14">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="P84Chine">
</ASCIIString>
</Source>
<TargetCell destc="22" destl="14">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="P1UO_OV">
</ASCIIString>
</Source>
<TargetCell destc="22" destl="12">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="18" destl="13">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=22 posl=12 destc="24" destl="13" ident=30>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="VAR_B">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="EBB_DEGRADED_VAR_B">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Test posc=20 posl=13 destyesc=22 destyesl=14 destnoc=22 destnol=12 ident=34>
<Comment>Action 1
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="RESPONSE">
</TextBuffer>
</Destination>
<Destination>
<TextBuffer name="V0">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_D630">
</ECUServiceRef>
<OutputFrameContent>
<TextBuffer name="RESPONSE">
</TextBuffer>
</OutputFrameContent>
</ExecuteECUService>
</ECUCommunication>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="RESPONSE">
<Position>
<ValPos>0
</ValPos>
</Position>
<Length>1
</Length>
</TextBuffer>
</Source>
<Destination>
<FloatVar name="V0">
</FloatVar>
</Destination>
</Assignment>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="V0">
</FloatVar>
</Source>
<Source>
<FloatNumber>10
</FloatNumber>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=22 posl=14 destc="24" destl="13" ident=38>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="VAR_A">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="EBB_DEGRADED_VAR_A">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=18 posl=13 destc="20" destl="13" ident=17>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_GENERIQUE">
</ECUServiceRef>
<ECUServiceInputParam ECUServiceParamName="ReadDataIdentifier">
<ASCIIString value="D630">
</ASCIIString>
</ECUServiceInputParam>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=24 posl=13 destyesc=25 destyesl=15 destnoc=25 destnol=12 ident=22>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>03
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=25 posl=15 destc="26" destl="17" ident=23>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="OPEN_MESS_RES">
<RestoreAllowance Active="NO">
</RestoreAllowance>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=25 posl=12 destc="26" destl="17" ident=24>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="NOK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="OPEN_MESS_RES">
<RestoreAllowance Active="NO">
</RestoreAllowance>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
</cel>
</Tree>
