<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="-972216027" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="SDCM_VARIANTE_CALCULATEUR">
</FileName>
<Modif date="22/06/2020" site="Actia" user="E582499">
</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=1 posl=1 destc="5" destl="1" ident=69>
<Comment>Détermination de la Variante ECU
</Comment>
</Start>
<Act posc=5 posl=1 destc="9" destl="1" ident=129>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TLCD_CONNECTED_TRACABILITY_TYPE">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="NEW">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TLCD_CONNECTED_TRACABILITY_TYPE">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<End posc=17 posl=17 ident=11>
<Comment>Fin de gamme
</Comment>
</End>
<Switch posc=9 posl=1 ident=12>
<Source>
<ECUData ParamName="STATE">
</ECUData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Degraded">
</ASCIIString>
</Source>
<TargetCell destc="13" destl="1">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc="13" destl="9">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="11" destl="9">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=13 posl=9 destc="15" destl="9" ident=13>
<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=23 posl=5 destc="21" destl="7" ident=14>
<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>
</Act>
<Act posc=11 posl=9 destc="17" destl="17" ident=15>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="ERROR">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=15 posl=9 destc="17" destl="17" ident=16>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="OUTPUT_DIAG_MODE">
<Position>
<ValPos>6
</ValPos>
</Position>
<Length>5
</Length>
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=21 posl=7 ident=10>
<Source>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="VAR_A">
</ASCIIString>
</Source>
<TargetCell destc="19" destl="9">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="VAR_B">
</ASCIIString>
</Source>
<TargetCell destc="24" destl="9">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="24" destl="15">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<PartDiag>
<Appl Description="" name="Appl1">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="D34">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=19 posl=9 destc="21" destl="13" ident=17>
<Comment>Chargement de la messagerie 0000002984_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_D34_313521_A_V1">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<Act posc=19 posl=9 destc="24" destl="15" ident=18>
<Comment>
</Comment>
</Act>
<Test posc=21 posl=13 destyesc=19 destyesl=15 destnoc=24 destnol=15 ident=19>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>03
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=24 posl=15 destc="17" destl="17" ident=20>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="NOK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="OPEN_MESS_RES">
<RestoreAllowance Active="NO">
</RestoreAllowance>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=19 posl=15 destc="17" destl="17" ident=21>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="OPEN_MESS_RES">
<RestoreAllowance Active="NO">
</RestoreAllowance>
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<PartDiag>
<Appl Description="" name="Appl2">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P21">
</ASCIIString>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P24">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=19 posl=9 destc="21" destl="13" ident=22>
<Comment>Chargement de la messagerie 0000002984_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_P2_318516_A_V1">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl3">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="D34">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=23>
<Comment>Chargement de la messagerie 0000003381_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_D34_313512_B_V2">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<Act posc=24 posl=9 destc="24" destl="15" ident=24>
</Act>
<PartDiag>
<Appl Description="" name="Appl4">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P21">
</ASCIIString>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P24">
</ASCIIString>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P21_Merco">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=25>
<Comment>Chargement de la messagerie 0000003381_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_P2_318521_B_V2">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl5">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="X83_Chine">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=19 posl=9 destc="21" destl="13" ident=26>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_X83_V1">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl6">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="X83_Chine">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=29>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_X83_V2">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl10">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P2JO_OV">
</ASCIIString>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P2QO_OV">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=19 posl=9 destc="21" destl="13" ident=30>
<Comment>Chargement de la messagerie 0000002984_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_P2JO_318516_A_V1">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl9">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P2JO_OV">
</ASCIIString>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P2QO_OV">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=31>
<Comment>Chargement de la messagerie 0000003381_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_P2JO_318512_B_V2">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<Act posc=14 posl=3 destc="18" destl="3" ident=27>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_E500">
</ECUServiceRef>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=18 posl=3 destyesc=20 destyesl=5 destnoc=23 destnol=5 ident=28>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<StandardValue name="SUCCESS">
</StandardValue>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=20 posl=5 destc="21" destl="7" ident=32>
<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>
</Act>
<PartDiag>
<Appl Description="" name="Appl9">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="P24Chine">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=33>
<Comment>Chargement de la messagerie 0000003381_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_P2_318512_B_V3">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<Switch posc=13 posl=1 ident=34>
<Source>
<VehicleData ParamName="ModelName">
</VehicleData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="P21_Merco">
</ASCIIString>
</Source>
<TargetCell destc="23" destl="5">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="14" destl="3">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<PartDiag>
<Appl Description="" name="Appl11">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="InternalName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="CP4">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=19 posl=9 destc="21" destl="13" ident=37>
<Comment>Chargement de la messagerie 0000002984_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_CP4_V1">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
<PartDiag>
<Appl Description="" name="Appl13">
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<VehicleData ParamName="InternalName">
</VehicleData>
</Source>
<Source>
<ASCIIString value="CP4">
</ASCIIString>
</Source>
</DataComparison>
</For>
</Appl>
<Act posc=24 posl=9 destc="21" destl="13" ident=38>
<Comment>Chargement de la messagerie 0000003381_00
</Comment>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="SDCM_CP4_V3">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
</PartDiag>
</cel>
</Tree>
