Bit Shift Left - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Bit shift left

SFTL(P)
High
Basic
Process
performance
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
SFTL
SFTLP
(S): Start number (bit) of the bit devices to be stored in empty data after shifting to the left
(D): Start number of bit device to shift to the left (bit)
Bit data length of shift data (n2  n1  1024) (BIN 16 bits)
n1:
Number of bit points to shift to the left (n2  n1  1024)
n2:
Setting
Internal device
data
Bit
(S)
(D)
n1
n2
*1 Do not set a negative value in the number of bit points (n2) to be shifted to the left.
Processing details
• This instruction shifts bit data for (n2) bits to the left within the data range of (n1) bits starting from (D). After the shift, the
function transfers (n2)-bit data from (S) to the (n2) bits from (D).
Before
execution
(D)+8
(D)+7
(D)+8
(D)+7
After
execution
(D) to (D)+5 before execution (n2=3)
(1) Overflow (deletion data)
(2) n2 bits shift to the left (n2=3)
(3) Coping n2 points
7 APPLICATION INSTRUCTIONS
406
7.3 Shift Instructions
Ver.
Ver.
Redundant
Universal
LCPU
Command
Command
R, ZR
Word
Number of (n1) points (n1=9)
(D)+6
(D)+5
(D)+4
(1)
(2)
(D)+6
(D)+5
(D)+4
SFTL
SFTLP
*1
(BIN 16 bits)
J\
Bit
Word
Number of (n2) points (n2=3)
(S)+2
(S)+1
(D)+3
(D)+2
(D)+1
(D)+3
(D)+2
(D)+1
(S)+2 to (S) before execution (n2=3)
S
D
n1
n2
S
D
n1
n2
U\G
Zn
(S)
(D)
(3)
(D)
Constant
Others
K, H

Advertisement

Table of Contents
loading

Table of Contents