Fnc 35 - Sftl / Bit Shift Left - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
11.6
FNC 35 – SFTL / Bit Shift Left
Outline
This instruction shifts bit devices of the specified bit length leftward by the specified number of bits.
After shift, the bit device
1. Instruction format
FNC 35
SFTL
2. Set data
Operand Type
S
D
n1
n2
*1.
Do not set a negative value to the number of bits to be shifted leftward.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n1
n2
: "D .b" is available only in FX
Explanation of function and operation
1. 16-bit operation (SFTL and SFTLP)
For "n1" bits (shift register length) starting from
After shift, "n2" bits from
Command
input
FNC 35
SFTLP
Before
execution
Overflow (data to
After
execution
304
is transferred by "n2" bits from the least significant bit.
S
Mnemonic
16-bit Instruction
P
SFTL
9 steps
SFTLP
Head bit device number to be stored to the shift data after leftward shift
Head bit device number to be shifted leftward
Bit length of the shift data n2 ≤ n1 ≤ 1024
Number of bits to be shifted leftward n2 ≤ n1 ≤ 1024
Digit Specification
and FX
3U
are transferred to "n2" bits from
S
S
D
+8
+7
+6
D
D
D
[1]
be deleted)
+8
+7
+6
D
D
D
D
D
to
+5 before shift (n2=3)
11 Rotation and Shift Operation – FNC 30 to FNC 39
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
*1
Word Devices
Special
System User
Unit
PLCs. However, index modifiers (V and Z) are not available.
3UC
, "n2" bits are shifted leftward ([1] and [2] shown below).
D
([3] shown below).
D
n1
n2
n1 (in the case of "n1=9")
+5
+4
+3
D
D
D
[2]
"n2" bits are
shifted rightward
(n2=3).
+5
+4
+3
D
D
D
11.6 FNC 35 – SFTL / Bit Shift Left
Mnemonic
Operation Condition
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
n2 (in the case of "n2=3")
+2
+1
S
S
S
+2
+1
D
D
D
[3] Copy
+2
+1
D
D
D
S
S
+2 to
before shift (n2=3)
Data Type
Bit
Bit
16-bit binary
16-bit binary
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents