F127_DRCR

Redundant instruction

NOTE

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

The function rotates the value at output d via the carry flag to the right. The number of bits at output d to be rotated to the right 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).

Parameters

Input

n (INT)

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

Output

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

32-bit data 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 n - 1 has the value 1.

Related topics:

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