
High
−
level Instructions
3
−
277
Description
Rotates “n” bits of the 16-bit data specified by D to the left.
Example:
Rotates 1 bit to the left
· ··
·
Bit position
·
· ·
· ·
D
15
12 11
8 7
4 3
0
· ··
·
Bit position
·
· ·
· ·
D
15
12 11
8 7
4 3
0
Special internal relay
R9009 (carry flag)
Data in bit position 15
0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
When “n” bits are rotated to the left,
−
The data in bit position 16-n (n th bit starting from bit position 15) is transferred to special internal
relay R9009 (carry flag).
−
“n” bits starting from bit position 15 are shifted out to the left and then shifted into the lower bit
positions of the 16-bit data specified by D.
For “n”, only the lower 8 bits in the 16 bit data are valid.
15
0
n
Range of n: K0 to K255
(H00 to HFF)
Upper 8 bits
are invalid
0 0
0
0
0 0
0
0
— — — — — — — —
Precaution during programming
If the specified “n” is a multiple of 16 bits, the data will be the same as that before the operation.
e.g.,
n = K16: same operation as n = K0 (The carry flag does not change, either.)
n = K17: same operation as n = K1
n = K32: same operation as n = K0 (The carry flag does not change, either.)
n = K33: same operation as n = K1
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): Turns on for an instant when the data in bit position 16-n is recognized as 1.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...