Shifting N-Bit Data To The Left By 1 Bit - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Shifting n-bit data to the left by 1 bit

BSFL(P)
These instructions shift (n) point(s) of data to the left by 1 bit from the device specified by (d).
Ladder diagram
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Remarks
(d)
Head device number to be shifted
(n)
Number of devices to be shifted
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(d)
(n)
*1 T, ST, C cannot be used.
Processing details
• These instructions shift (n) point(s) of data to the left by 1 bit from the device specified by (d).
Carry flag (SM700)
1
• The value of the device specified by (d) becomes 0.
■Related devices
Device
SM700
Operation error
Error code
Remarks
(SD0/SD8067)
2820
The (n) points of data starting from the device specified by (d) exceed in the corresponding device.
5 SEQUENCE INSTRUCTIONS
130
5.4 Shift Instructions
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
*1
(d)+(n-1)
(d)+(n-2) (d)+(n-3)
1
1
(d)+(n-1)
(d)+(n-2) (d)+(n-3)
1
0
Name
Carry
Structured text
ENO:=BSFL(EN,n,d);
ENO:=BSFLP(EN,n,d);
Range
0 to 65535
Double word Indirect
U\G
Z
LC
(n)
···
(d)+2
(d)+1
0
0
1
···
(d)+2
(d)+1
0
1
1
Remarks
ON/OFF according to the status (1/0) of the (d) bit.
Data type
Bit
16-bit unsigned binary
Constant
specification
LZ
K, H
(d)
1
(d)
0
These bits become "0".
Data type (label)
ANY_BOOL
ANY16
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents