F81_BIN

Redundant instruction

NOTE

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

Converts the BCD code that expresses 4-digit decimals specified by s to 16-bit binary data if the trigger EN is in the ON-state. The converted result is stored in the area specified by d.

Example

  1.  (1) Source [s]: 16#15 (BCD)
  2.  (2) Bit position
  3.  (3) BCD code
  4.  (4) BCD Hex code
  5.  (5) Destination [d]: 15
  6.  (6) Conversion (to binary data)
  7.  (7) Binary data
  8.  (8) Decimal

Parameters

Input

s (WORD)

16-bit area for 4-digit BCD data (source)

Output

d (WORD, INT, UINT)

16-bit area for storing 16-bit binary data (destination)

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the data specified by s is not BCD data.

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

Related topics:

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