Redundant instruction
This is a redundant instruction. It is replaced by: FP_ASCII_TO_DEC
Converts ASCII code that expresses the decimal digits, starting from the 16-bit area specified by s1_Start to 32-bit data as specified by s2_Number. The converted result is stored in the area starting from the 32-bit area specified by d. s2_Number specifies the number of bytes used to express the destination data using decimals.
Input
starting 16-bit area for ASCII code (source)
specifies number of source data bytes to be converted
Output
area for 32-bit data storage (destination)
Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_ASCII_TO_DEC
The ASCII codes being converted should be stored in the direction of the last address in the specified area.
If the area specified by s1_Start and s2_Number is more than that required by the data you want to convert, place "0" (ASCII HEX code: 16#30) or "SPACE" (ASCII HEX code: 16#20) in the extra bytes.
ASCII codes with signs (such as +: 16#2B and -: 16#2D) are also converted. The + codes can be omitted.
Example of converting an ASCII code indicating a negative number
ASCII HEX code to express decimal characters:
ASCII HEX code |
Decimal characters |
---|---|
16#20 16#2B 16#2D 16#30 16#31 16#32 16#33 16#34 16#35 16#36 16#37 16#38 16#39 |
SPACE + - 0 1 2 3 4 5 6 7 8 9 |
if the number of bytes specified by s2_Number exceeds the area specified by s1_Start.
if the data specified by s2_Number is recognized as "0".
if the converted result exceeds the area specified by d.
if the converted result exceeds the 32-bit area.
if ASCII code not corresponding to decimal numbers (0 to 9) or ASCII characters (+, -, and SPACE) is specified.
if the number of bytes specified by s2_Number exceeds the area specified by s1_Start.
if the data specified by s2_Number is recognized as "0".
if the converted result exceeds the area specified by d.
if the converted result exceeds the 32-bit area.
if ASCII code not corresponding to decimal numbers (0 to 9) or ASCII characters (+, -, and SPACE) is specified.