F241_LINE

Redundant instruction

NOTE

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

The function converts a bit column out of an ARRAY at input s and returns it at output d. The position at which the conversion takes place is specified at input n. The value assigned at input n should be between 0 and 15.

Parameters

Input

sARRAY [0..15] OF (WORD, INT, UINT)

source area where bit column will be read

n (WORD, INT, UINT)

specifies bit position

Output

dARRAY [0..15] of (WORD, INT, UINT)

destination area for storing converted data

Remarks

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

  1.  (1) position n = 10
  2.  (2) datafield[0]
  3.  (3) datafield[15]
  4.  (4) bit combination s

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the bit position specified at input n is not between 0 and 15

  • if an overflow of the address area at input s occurs.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the bit position specified at input n is not between 0 and 15

  • if an overflow of the address area at input s occurs.

Related topics:

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