F78_DA2BIN

Redundant instruction

NOTE

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.

Parameters

Input

s1_Start (WORD, INT, UINT)

starting 16-bit area for ASCII code (source)

s2_Number (INT)

specifies number of source data bytes to be converted

Output

d (DWORD, DINT, UDINT, DATE, TOD, DT)

area for 32-bit data storage (destination)

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • 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.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • 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.

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline