F73_BCD2A

Redundant instruction

NOTE

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

Converts the BCD code starting from the 16-bit area specified by s1 to the ASCII code that expresses the equivalent decimals according to the contents specified by s2 if the trigger EN is in the ON-state. s2 specifies the number of source data bytes and the direction of converted data (normal/reverse).

Parameters

Input

s1_Start (WORD)

starting 16-bit area for BCD data (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 the data specified by s1 is not BCD data.

  • if the number of bytes specified by s2 exceeds the area specified by s1.

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

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

  • if the number of bytes specified by s2 is more than 16#4.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the data specified by s1 is not BCD data.

  • if the number of bytes specified by s2 exceeds the area specified by s1.

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

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

  • if the number of bytes specified by s2 is more than 16#4.

Related topics:

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