F82_DBCD

Redundant instruction

NOTE

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

Converts the 32-bit binary data specified by s to the BCD code that expresses 8-digit decimals if the trigger EN is in the ON-state. The converted data is stored in d. The binary data that can be converted to BCD code are in the range of 0 (0 hex) to 99,999,999 (5F5E0FF hex).

Example

  1.  (1) Source [s]: 72811730
  2.  (2) Bit position
  3.  (3) Binary data
  4.  (4) Decimal
  5.  (5) 32-bit area
  6.  (6) Destination [d]: 16#72811730
  7.  (7) BCD code
  8.  (8) BCD Hex code
  9.  (9) 

Parameters

Input

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

binary data (source), range: 0 to 99,999,999

Output

d (DWORD)

32-bit area for 8-digit BCD code (destination)

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if 32-bit data specified by s outside the range of 0 (16#0) to 99999999 (16#5F5E0FF) is converted.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if 32-bit data specified by s outside the range of 0 (16#0) to 99999999 (16#5F5E0FF) is converted.

Related topics:

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