6.5.20 Performing basic number transformation

Consider the input value as basic number specified in input basic number and transform the input value to basic number specified in output basic number. If input value is other than basic number specified in input basic number, error value (NaN) is returned. If input value exceeds 64 bits, round the bits more than 64 bits.

Process the radix conversion function with Big Endian.

Specifications of basic number transformation are as follows:

Organization of this subsection
(1) Function used
(2) Setting procedure
(3) Execution example

(1) Function used

To transform input value to basic number specified in output basic number, use Radix conversion function. Following figure shows the usage example.

Figure 6-21 FigureUsage example of radix conversion function

[Figure]

(2) Setting procedure

Procedure for transforming the input value to basic number specified in output basic number is as follows:

  1. Select radix conversion function (radix) from pallet and deploy to the mapping viewer.
  2. Set the mapping line.
  3. Display Radix Conversion dialog with either of the following method:
    • Right click the Radix conversion function and select Settings.
    • Double click the radix conversion function.
    Radix Conversion dialog is displayed.
    For details on Radix Conversion dialog, see "1.6.36 Base conversion dialog" in "Service Platform Reference Guide".
  4. To specify input value of basic number transformation in Input, click Select node button.
    Node selection dialog is displayed.
  5. Specify node set, which is input value.
    Input value of basic number transformation is set in Input.
  6. When you want to execute mapping only when you set conditions in input value specified in Input and that condition is fulfilled, click Specify node conditions button.
    Specify node conditions dialog is displayed.
    For details on how to specify node conditions, see "6.7 Specifying Node Conditions". For details on the Specify node conditions dialog, see " Set Node Condition Dialog " in "Service Platform Reference Guide"
  7. When you want to specify basic number transformation target function in Input, click Select function button.
    Function selection dialog is displayed.
    For details on Function selection dialog, see "1.6.7 Select function dialog" in "Service Platform Reference Guide".
  8. Specify input basic number.
  9. Specify output basic number.
  10. Click OK button.

(3) Execution example

Following table describes the execution example:

InputBasic number transformationResult
1101Binary numberdecimal-3
0100Binary numberdecimal4
1101Binary numberHexadecimald
11DecimalBinary number0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 1011#1
11DecimalHexadecimal00 00 00 00 00 00 00 0b#1
11HexadecimalBinary number0001 0001
11HexadecimalDecimal17
8bHexadecimalDecimal-117
1102Binary numberDecimalNaN#2
110fDecimalHexadecimalNaN#2
Note#1
Bold letters are supplementary bits.
Note#2
As you cannot convert the input value to basic number specified in input basic number, result becomes "NaN".