F100_SHR

Redundant instruction

NOTE

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

Shifts n bits of 16-bit data area specified by d to the right (to the lower bit position) if the trigger EN is in the ON-state.

  1.  (1) nth bit
  2.  (2) 16-bit data area
  3.  (3) Bit position

When n bits are shifted to the right, the data in the nth bit (1) is transferred to the system variable sys_bIsCarry (carry-flag) and the higher n bits of the 16-bit data area (2) specified by d are filled with 0s.

Parameters

Input

n (INT)

Number of bits to be shifted

Output

d (WORD, INT, UINT)

16-bit area to be shifted to the right

Related topics:

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