Panasonic FP Series Programming Manual page 577

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bit-shift instructions
F111_WSHL
Shifts one word (16 bits) of the data range specified by d1 (starting) and d2 (ending) to the left (to
Description
the higher word address) if the trigger EN is in the ON-state.
When one word (16 bits) is shifted to the left, the ending word is shifted out and the data in the
starting word becomes 0.
The ending word
is shifted out
d1 and d2 should be:
the same type of operand
d1  d2
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 F111_WSHL (see page 1320)
PLC types
Data types
Variable
Data type
d1
ANY16
d2
The variables d1 and d2 have to be of the same data type.
Operands
For
d1, d2
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
POU header
576
Left shift of one word (16 bits) of 16-bit data range
Specified data range
D2
D2
Function
starting 16-bit area
ending 16-bit area
Relay
-
WY
WR
WL
SV
D1
D1
0
The data in the starting
word becomes 0
T/C
Register
Constant
EV
DT
LD
FL
-

Advertisement

Table of Contents
loading

Table of Contents