F93_UNIT

Redundant instruction

NOTE

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

Extracts each lower 4 bits (bit position 0 to 3) starting with the 16-bit area specified by s and combines the extracted data into 1 word if the trigger EN is in the ON-state. The result is stored in the 16-bit area specified by d.

Parameters

Input

s (WORD)

starting 16-bit area to be extracted (source)

n (INT)

specifies number of data to be extracted

Output

d (WORD)

16-bit area for storing combined data (destination)

Remarks

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

n specifies the number of data to be extracted. The range of n is 0 to 4.

The programming example provided below can be envisioned thus:

  1.  (1) Source
  2.  (2) Bit position
  3.  (3) Array[0] at d
  4.  (4) Array[1] at d
  5.  (5) Array[2] at d
  6.  (6) start: ON
  7.  (7) Destination: ON
  8.  (8) Value at d
  9.  (9) Bit positions 12 to 15 are filled with 0s.

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the area specified using the index modifier exceeds the limit

  • if the value at n³ 5

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the area specified using the index modifier exceeds the limit

  • if the value at n³ 5

Related topics:

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