F74_A2BCD

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: FP_ASCII_TO_BCD

Converts the ASCII codes that express the decimal characters starting from the 16-bit area specified by s1 to BCD if the trigger EN is in the ON-state. s2 specifies the number of source data bytes and the direction of converted code source data.

Parameters

Input

s1_Start (WORD)

starting 16-bit area for storing ASCII code (source)

s2_Number (WORD, INT, UINT)

specifies number of source data bytes to be converted, and how it is arranged

Output

d_Start (WORD)

starting 16-bit area for storing converted result (destination)

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if ASCII code not corresponding to decimal numbers (0 to 9) is specified.

  • if the number of bytes specified by s2_Number exceeds the area specified by s1_Start.

  • if the converted result exceeds the area specified by d_Start.

  • if the data specified by s2_Number is recognized as "0".

  • if the number of bytes for ASCII characters in s2_Number is more than 16#8.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if ASCII code not corresponding to decimal numbers (0 to 9) is specified.

  • if the number of bytes specified by s2_Number exceeds the area specified by s1_Start.

  • if the converted result exceeds the area specified by d_Start.

  • if the data specified by s2_Number is recognized as "0".

  • if the number of bytes for ASCII characters in s2_Number is more than 16#8.

Related topics:

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