Fnc 34 - Sftr / Bit Shift Right - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
11.5
FNC 34 – SFTR / Bit Shift Right
Outline
This instruction shifts bit devices of the specified bit length rightward by the specified number of bits.
After shift, the bit device
1. Instruction format
FNC 34
SFTR
P
2. Set data
Operand Type
S
D
n1
n2
*1.
Do not set a negative value to the number of bits to be shifted rightward.
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
is transferred by "n2" bits from the most significant bit.
S
Mnemonic
16-bit Instruction
SFTR
9 steps
SFTRP
Head bit device number to be stored to the shift data after rightward shift
Head bit device number to be shifted rightward
Bit length of the shift data n2 ≤ n1 ≤ 1024
Number of bits to be shifted rightward n2 ≤ n1 ≤ 1024
Digit Specification
and FX
3U
3UC
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
Index
Unit
V Z Modify K H
PLCs. However, index modifiers (V and Z) are not available.
11.5 FNC 34 – SFTR / Bit Shift Right
Mnemonic
Operation Condition
Data Type
Bit
Bit
16-bit binary
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
11
12
13
14
15
Pointer
P
16
17
18
19
20
315

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents