F126_DROL

Redundant instruction

NOTE

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

The function rotates the value at output d to the left. The number of bits at output d to be rotated to the left is specified by the value assigned at input n. This shift can lie between 0 and 255 (only the lower value byte of n is effective).Left rotate means that the bits shifted out of bit position 31 (MSB) are shifted via bit position 0 (LSB) into the value at output d.

Parameters

Input

n (INT)

Number of bits to be rotated (range: 0 to 255)

Output

d (DWORD, DINT, UDINT, DATE, TOD, DT)

32-bit area

Remarks

  1.  (1) data
  2.  (2) start: ON
  3.  (3) Carry flag

Error flags

sys_bIsCarry (turns to TRUE for one scan)

if the bit at position 32 - n of d has the value 1.

Related topics:

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