Panasonic FP Series Programming Manual page 571

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bit-shift instructions
F108_BITR
The function shifts the bits of a specified data range, whose beginning and end are specified by the
Description
outputs d1 and d2 to the right. The number of bits by which the data range is to be shifted to the
right is specified by the value assigned at input n. The value may lie between 0 and 16. Bits
cleared because of the shift become 0. When input n = 0, no shift takes place. When input n = 16,
a shift of one WORD occurs, i.e. the same process takes place as with function F110_WHSL (see
page 573).
start: ON
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F108_BITR (see page 1320)
PLC types
Data types
Variable
Data type
d1
ANY16
d2
INT
n
The addresses of the variables at inputs d1 and d2 have to have the same address type.
Operands
For
d1, d2
n
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
570
Right shift of multiple bits of 16-bit data range
Specified data range
d2
000
n bits
Function
starting 16-bit area
ending 16-bit area
number of bits to be shifted
Relay
-
WY
WR
WL
WX
WY
WR
WL
Set
permanently
for an instant
d1
n bits are
shifted out
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 the address of the variables at the
outputs d1 > d2 or the value at input is n
 16.
Constant
-
dec. or hex.

Advertisement

Table of Contents
loading

Table of Contents