Redundant instruction
This is a redundant instruction. It is replaced by: FP_ROL_CARRY
Rotates n bits of the 16-bit data specified by d including the data of carry-flag to the left if the trigger EN is in the ON-state.
Input
Number of bits to be rotated
Output
16-bit area
Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_ROL_CARRYFP_ROL_CARRY
This example rotates one bit to the left. When n bits with carry-flag data are rotated to the left,
the data in bit position 16-n (nth bit starting from bit position 15) is transferred to the system variable sys_bIsCarry (carry-flag).
n bits starting from bit position 15 are shifted out to the left and carry-flag data and n-1 bits starting from bit position 15 are shifted into lower bit positions of the 16-bit data specified by d.