Panasonic FP-E Programming Manual page 539

Fp series
Table of Contents

Advertisement

Description
Rotates "n" bits of the 16-bit data specified by D to the right.
Example:
Rotates 1 bit to the right
When "n" bits are rotated to the right,
− The data in bit position n-1 (n th bit starting from bit position 0) is transferred to special internal relay
R9009 (carry flag).
− "n" bits starting from bit position 0 are shifted out to the right and then shifted into the higher 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
n
0
0 0
— — — —
— — — —
Upper 8 bits
Range of n: K0 to K255
are invalid
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):
・Error flag (R9008):
・Carry flag (R9009): Turns on for an instant when the data in bit position n-1 is recognized as 1.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Bit position
15
1211
· · ·
D
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Bit position
15
1211
· ·
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D
Special internal relay
R9009 (carry flag)
0
0
0
0 0
0
(H00 to HFF)
Turns on and stays on when the area specified using the index modifier
exceeds the limit.
Turns on for an instant when the area specified using the index modifier
exceeds the limit.
8 7
4 3
0
·
·
· ·
· ·
8 7
4 3
0
·
·
· ·
· ·
0
Data in bit position 0
1
High−level Instructions
3 − 275

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents