Panasonic FP Series Programming Manual page 557

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bit-shift instructions
LSR
Shifts 1 bit of the specified data area (d_WR) to the left (to the higher bit position). When
Description
programming the LSR instruction, be sure to program the data input (DataInput), shift
(ShiftLeftTrigger) and reset triggers (Reset).
DataInput: specifies the state of new shift-in data:
new shift-in data 1: when the input is ON
new shift-in data 0: when the input is OFF
ShiftLeftTrigger: shifts 1 bit to the left when the leading edge of the trigger is detected
Reset: turns all the bits of the data area to 0 if the trigger is in the ON-state
The area available for this instruction is only the word internal relay (WR).
PLC types
Availability of LSR (see page 1328)
Word internal relay (WR) number range, depends on the free area in the Extras
 Options  Compile Options  Address Ranges menu.
Data types
Variable
DataInput
ShiftLeftTrigger
Reset
d_WR
Operands
For
DataInput,
ShiftLeftTrigger,
Reset
d_WR
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
556
Left shift register
Data type
Function
BOOL
when ON, shift-in data = 1, when OFF, shift-in data = 0
BOOL
shifts one bit to the left when ON
BOOL
resets data area to 0 when ON
ANY16
specified data area where data shift takes place
Relay
X
Y
R
L
T
-
-
WR
-
-
T/C
C
-

Advertisement

Table of Contents
loading

Table of Contents