<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="-1269948820" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="NAC_VARIANTE_CALCULATEUR">
</FileName>
<Modif date="07/09/2020" site="Actia" user="E582498">
</Modif>
</IFile>
<ITool exedate="13/07/2020" name="fr.actia.flowchart.editor.model.engineID" revision="7.7.0.202005291538">
</ITool>
</Header>
<precel>
</precel>
<cel>
<Start posc=4 posl=7 destc="5" destl="8" ident=10>
<Comment>Menu de gestion de variantes
</Comment>
</Start>
<End posc=23 posl=15 ident=15>
<Comment>Fin de gamme
</Comment>
</End>
<Act posc=5 posl=8 destc="7" destl="8" ident=30>
<Comment>Initialisation des buffers "contextualisation", Voir chapitre C.12.9 du Guide D2C
</Comment>
<Comment>Cette cellule doit être adaptée au sujet
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DATA_TRACABILITE_LECTDEF">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DATA_TRACABILITE_RW">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="TLCD_CONNECTED_TRACABILITY_TYPE">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="$DTC_CODE$9003$DTC_STATUS$09$DTC_FAULT_TYPE$55">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DATA_TRACABILITE_LECTDEF">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="NEW">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="TLCD_CONNECTED_TRACABILITY_TYPE">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="|SCREEN_TRACABILITE_RW|TLCD_TRACEABILITY|">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DATA_TRACABILITE_RW">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<Execution>
</Execution>
</Act>
<Switch posc=7 posl=8 ident=11>
<Comment>Test si le calculateur est reconnu
</Comment>
<Source>
<ECUData ParamName="STATE">
</ECUData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Degraded">
</ASCIIString>
</Source>
<TargetCell destc="3" destl="11">
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc="12" destl="6">
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc="14" destl="7">
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=12 posl=6 destc="16" destl="6" ident=14>
<Comment>Récupération du Descripteur Flowchart
</Comment>
<Comment>Ne pas modifier cette cellule
</Comment>
<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=16 posl=6 destc="18" destl="6" ident=23>
<Comment>Cellule à adapter pour stocker l'applicabilité calculateur (ex : A)
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="OUTPUT_DIAG_MODE">
<Position>
<ValPos>8
</ValPos>
</Position>
<Length>1
</Length>
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<End posc=18 posl=6 ident=24>
</End>
<Act posc=14 posl=7 destc="18" destl="6" ident=25>
<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=12 posl=10 destc="14" destl="10" ident=26>
<Comment>Traduire ici les différentes Actions / Questions / Tests du synoptique de Mode Dégradé
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_DID_GEN">
</ECUServiceRef>
<ECUServiceInputParam ECUServiceParamName="DID">
<ASCIIString value="2131">
</ASCIIString>
</ECUServiceInputParam>
<OutputFrameContent>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</OutputFrameContent>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=14 posl=10 destyesc=13 destyesl=12 destnoc=20 destnol=10 ident=20>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<StandardValue name="SUCCESS">
</StandardValue>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>08
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=13 posl=12 destc="15" destl="12" ident=21>
<Comment>Traduire ici les différentes Actions / Questions / Tests du synoptique de Mode Dégradé
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_DID_GEN">
</ECUServiceRef>
<ECUServiceInputParam ECUServiceParamName="DID">
<ASCIIString value="2133">
</ASCIIString>
</ECUServiceInputParam>
<OutputFrameContent>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</OutputFrameContent>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=15 posl=12 destyesc=14 destyesl=14 destnoc=20 destnol=11 ident=22>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<StandardValue name="SUCCESS">
</StandardValue>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>08
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=14 posl=14 destc="16" destl="14" ident=36>
<Comment>Traduire ici les différentes Actions / Questions / Tests du synoptique de Mode Dégradé
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_DID_GEN">
</ECUServiceRef>
<ECUServiceInputParam ECUServiceParamName="DID">
<ASCIIString value="2134">
</ASCIIString>
</ECUServiceInputParam>
<OutputFrameContent>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</OutputFrameContent>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=16 posl=14 destyesc=15 destyesl=16 destnoc=20 destnol=12 ident=37>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<StandardValue name="SUCCESS">
</StandardValue>
</Source>
</DataComparison>
</For>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<HexaInt>08
</HexaInt>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=20 posl=10 destc="23" destl="15" ident=41>
<Comment>Applique la variante calculateur A
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="A">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="NAC_MODE_DEGRADE_VAR_A">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=20 posl=11 destc="23" destl="15" ident=42>
<Comment>Applique la variante calculateur B
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="B">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="NAC_MODE_DEGRADE_VAR_B">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=20 posl=12 destc="23" destl="15" ident=43>
<Comment>Applique la variante calculateur A
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="C">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="NAC_MODE_DEGRADE_VAR_C">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=20 posl=13 destc="23" destl="15" ident=44>
<Comment>Applique la variante calculateur A
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="D">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="NAC_MODE_DEGRADE_VAR_D">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=20 posl=14 destc="23" destl="15" ident=45>
<Comment>Applique la variante calculateur A
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="E">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="NAC_MODE_DEGRADE_VAR_E">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=3 posl=11 destc="3" destl="13" ident=12>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="ZA">
</ECUServiceRef>
<ECUServiceOutputParam ECUServiceParamName="ID_NOM_DU_FOURNISSEUR">
<TextBuffer name="Nom_Fournisseur">
</TextBuffer>
</ECUServiceOutputParam>
</ExecuteECUService>
</ECUCommunication>
</Act>
<Test posc=3 posl=13 destyesc=6 destyesl=15 destnoc=12 destnol=10 ident=13>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL" case="SENSITIVE">
<Source>
<TextBuffer name="Nom_Fournisseur">
</TextBuffer>
</Source>
<Source>
<ASCIIString value="004E">
</ASCIIString>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=6 posl=15 destc="23" destl="15" ident=17>
<Comment>Applique la variante calculateur F
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="F">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DBX_APP_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<OpenEcuServiceVariant>
<ASCIIString value="RC9_MODE_DEGRADE_VAR_F">
</ASCIIString>
</OpenEcuServiceVariant>
</ECUCommunication>
</Act>
<Act posc=15 posl=16 destc="17" destl="16" ident=16>
<Comment>Traduire ici les différentes Actions / Questions / Tests du synoptique de Mode Dégradé
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<ECUCommunication>
<ExecuteECUService>
<ECUServiceRef ServiceName="RDBI" SubServiceName="RDBI_RecordDataIdentifier_DID_GEN">
</ECUServiceRef>
<ECUServiceInputParam ECUServiceParamName="DID">
<ASCIIString value="2108">
</ASCIIString>
</ECUServiceInputParam>
<OutputFrameContent>
<TextBuffer name="Reponse_DID">
</TextBuffer>
</OutputFrameContent>
</ExecuteECUService>
</ECUCommunication>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="Reponse_DID">
<Position>
<ValPos>0
</ValPos>
</Position>
<Length>1
</Length>
</TextBuffer>
</Source>
<Destination>
<FloatVar name="V0">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Test posc=17 posl=16 destyesc=20 destyesl=14 destnoc=20 destnol=13 ident=27>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="SUP" case="INSENSITIVE">
<Source>
<FloatVar name="V0">
</FloatVar>
</Source>
<Source>
<FloatNumber>24
</FloatNumber>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
</cel>
</Tree>
