F57_BDEC

Redundant instruction

NOTE

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

Subtracts "1" from the 4-digit BCD data specified by d if the trigger EN is in the ON-state. The result is stored in d.

Parameters

Output

d (WORD)

16-bit area for BCD data to be decreased by 1

Example

  1.  (1) Example value 4322 (BCD)
  2.  (2) Result value 4321 (BCD)
  3.  (3) Trigger: ON

Remarks

Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_DEC_BCDFP_DEC_BCD

Error flags

sys_bIsEqual (turns to TRUE for one scan)

if the calculated result is 0.

sys_bIsCarry (turns to TRUE for one scan)

if the result exceeds the range of 4-digit BCD data (underflow).

Related topics:

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