<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="1276590607" type="Script" onEnd="next" onBackExit="back">
<Header>
<IFile>
<FileName name="conversion">
</FileName>
<Modif date="17/01/2017" user="mhwaneb" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.5.0.1" exedate="18/01/2016">
</ITool>
</Header>
<precel>
</precel>
<cel>
<Start posc=3 posl=2 destc=7 destl=2 ident=10>
</Start>
<Act posc=7 posl=2 destc=7 destl=6 ident=11>
<Comment>Buffer d'entrée: TextBuffer "CODAGE_TYPE" et TextBuffer "STRING_TO_CONVERT"
</Comment>
<Comment>Exemple : CODAGE_TYPE="HEXA_TO_DEC" et STRING_TO_CONVERT="0A0B"
</Comment>
<Comment>Buffer de sortie : TextBuffer "CONVERTED_DATA"
</Comment>
<Comment>Dans l'exemple donné CONVERTED_DATA="2571"
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Clear>
<Clear>
<Destination>
<TextBuffer name="CONVERSION_STATE">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Clear>
<Destination>
<NamedFloatVar name="NFloot">
</NamedFloatVar>
</Destination>
</Clear>
<Clear>
<Destination>
<FloatVar name="V99">
</FloatVar>
</Destination>
</Clear>
<Clear>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Clear>
<Clear>
<Destination>
<Buffer>
<Number>1
</Number>
</Buffer>
</Destination>
</Clear>
<Clear>
<Destination>
<Buffer>
<Number>2
</Number>
</Buffer>
</Destination>
</Clear>
</MathAndLogic>
</Act>
<Switch posc=7 posl=6 ident=30>
<Source>
<TextBuffer name="CODAGE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="HEX_TO_BIN">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=6>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="HEX_TO_DEC">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=7>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="HEX_TO_ASC">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=8>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=7 destl=9>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=11 posl=7 destc=15 destl=7 ident=33>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<HexaCodedASCIIToHexa>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</HexaCodedASCIIToHexa>
</Conversion>
</MathAndLogic>
</Act>
<Act posc=15 posl=7 destc=19 destl=6 ident=34>
<MathAndLogic>
<Conversion>
<HexaToDecimalCodedASCII>
<Buffer>
<Number>1
</Number>
</Buffer>
<Buffer>
<Number>2
</Number>
</Buffer>
</HexaToDecimalCodedASCII>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=8 destc=19 destl=6 ident=40>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<HexaCodedASCIIToHexa>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</HexaCodedASCIIToHexa>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>1
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=9 destc=15 destl=9 ident=41>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<BinCodedASCIIToBin>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</BinCodedASCIIToBin>
</Conversion>
</MathAndLogic>
</Act>
<Act posc=15 posl=9 destc=19 destl=6 ident=42>
<MathAndLogic>
<Conversion>
<HexaToASCIIEx>
<Buffer>
<Number>1
</Number>
</Buffer>
<Buffer>
<Number>2
</Number>
</Buffer>
</HexaToASCIIEx>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=7 posl=9 ident=43>
<Source>
<TextBuffer name="CODAGE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="BIN_TO_HEX">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=9>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="BIN_TO_DEC">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=10>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=7 destl=11>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=15 posl=10 destc=19 destl=6 ident=45>
<MathAndLogic>
<Conversion>
<HexaToDecimalCodedASCII>
<Buffer>
<Number>1
</Number>
</Buffer>
<Buffer>
<Number>2
</Number>
</Buffer>
</HexaToDecimalCodedASCII>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=7 posl=11 ident=47>
<Source>
<TextBuffer name="CODAGE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="DEC_TO_HEX">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=11>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="DEC_TO_BIN">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=12>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=7 destl=13>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=11 posl=11 destc=15 destl=11 ident=49>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<TextToFloat InputFormat="DecimalCodedASCII">
<Buffer>
<Number>0
</Number>
</Buffer>
<FloatVariable>
<NamedFloatVar name="NFloot">
</NamedFloatVar>
</FloatVariable>
</TextToFloat>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatVariable>
<NamedFloatVar name="NFloot">
</NamedFloatVar>
</FloatVariable>
</Source>
<Destination>
<Buffer>
<Number>1
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=10 destc=15 destl=10 ident=50>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<BinCodedASCIIToBin>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</BinCodedASCIIToBin>
</Conversion>
</MathAndLogic>
</Act>
<Act posc=15 posl=11 destc=19 destl=6 ident=51>
<MathAndLogic>
<Conversion>
<HexaToASCIIEx>
<NamedFloatVar name="NFloot">
</NamedFloatVar>
<Buffer>
<Number>2
</Number>
</Buffer>
</HexaToASCIIEx>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=7 posl=13 ident=54>
<Source>
<TextBuffer name="CODAGE_TYPE">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="ASC_TO_HEX">
</ASCIIString>
</Source>
<TargetCell destc=11 destl=13>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=7 destl=21>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=11 posl=13 destc=19 destl=6 ident=55>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<HexaToASCII>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</HexaToASCII>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>1
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=6 destc=13 destl=6 ident=67>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<HexaCodedASCIIToHexa>
<Buffer>
<Number>0
</Number>
</Buffer>
<Buffer>
<Number>1
</Number>
</Buffer>
</HexaCodedASCIIToHexa>
</Conversion>
</MathAndLogic>
</Act>
<Act posc=15 posl=6 destc=19 destl=6 ident=68>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="BUFF_32">
<Position>
<ValPos>33
</ValPos>
</Position>
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=11 posl=12 destc=15 destl=12 ident=69>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="STRING_TO_CONVERT">
</TextBuffer>
</Source>
<Destination>
<Buffer>
<Number>0
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<TextToFloat InputFormat="DecimalCodedASCII">
<Buffer>
<Number>0
</Number>
</Buffer>
<FloatVariable>
<FloatVar name="V99">
</FloatVar>
</FloatVariable>
</TextToFloat>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<FloatVariable>
<FloatVar name="V99">
</FloatVar>
</FloatVariable>
</Source>
<Destination>
<Buffer>
<Number>1
</Number>
</Buffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=15 posl=12 destc=19 destl=6 ident=70>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>1
</Number>
</Buffer>
</Source>
<Destination>
<FloatVar name="V99">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<BinToASCII>
<FloatVar name="V99">
</FloatVar>
<Buffer>
<Number>2
</Number>
</Buffer>
</BinToASCII>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="CONVERTED_DATA">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<End posc=19 posl=6 ident=76>
</End>
<Act posc=7 posl=21 destc=19 destl=6 ident=77>
<MathAndLogic>
<Assignment>
<Source>
<FloatNumber>6
</FloatNumber>
</Source>
<Destination>
<FloatVar name="VCHK">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=13 posl=6 destc=15 destl=6 ident=78>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>1
</Number>
</Buffer>
</Source>
<Destination>
<FloatVar name="V99">
</FloatVar>
</Destination>
</Assignment>
</MathAndLogic>
<MathAndLogic>
<Conversion>
<BinToASCIIEx>
<FloatVar name="V99">
</FloatVar>
<Buffer>
<Number>2
</Number>
</Buffer>
</BinToASCIIEx>
</Conversion>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<Buffer>
<Number>2
</Number>
</Buffer>
</Source>
<Destination>
<TextBuffer name="BUFF_32">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
</cel>
</Tree>
