High−level Instructions
3 − 289
Description
Rotates “n” bits of the 32-bit data specified by D, including carry flag data, to the left when the trigger turns on.
15 0
Carry flag
[D+1] [D]
015
Content of MSB
Trigger:
on
When “n” bits with carry flag data are rotated to the left,
− The data in bit position 32-n (nth bit starting from bit position 31) is transferred to special internal
relay R9009 (carry flag).
− “n” bits starting from bit position 31 are shifted out to the left and then carry flag data and the n-1 bits
starting from bit position 31 are shifted into the lower bit positions of the 32-bit data specified by D.
Only the lower eight bits of the 16-bit data “n” are effective.
0000 0000
15 0
K0 to K255(H00 to HFF)
n
Upper 8 bits
are invalid
When “n” is specified using K0, the contents of “D+1 and D” and the carry flag do not change.
Precautions during programming
If the specified “n” is a multiple of 33 bits, the data will be the same as that before the operation.
e.g.,n = K33: same operation as n = K0
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・Carry flag (R9009): Content in the nth bit from MSB (most significant bit) turns on for an instant
when the data in bit position 31-n is recognized as 1.