Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
10 Applied Instructions (Rotation and Shift Operation)
10.5 SFTR / Bit Shift Right
208
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
10.5
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 specified by 
 is transferred by "n2" bits from the most significant bit. 
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction 
name
Operation
Execution 
form
Expression in each language
Structured ladder/FBD
ST
SFTR
16 bits
Continuous
SFTR(EN,s,n1,n2,d);
SFTRP
16 bits
Pulse
SFTRP(EN,s,n1,n2,d);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
Head bit device to be stored to the shift data after rightward shift.
Bit
Bit length of the shift data (see Caution). 
ANY16
Number of bits to be shifted rightward (see Caution)
ANY16
Output
variable
ENO
Execution state
Bit
Head bit device to be shifted rightward
Bit
Operand 
type
Bit Devices
Word Devices
Others
System User
Digit Specification System User
Special 
Unit
Index
Constant
Real 
Number
Character 
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D
R U
\G
V Z Modifier K
H
E
"
"
P
z z z
z
S1
z
z
z
S2 S3
z
z
z z
z
z
SFTR
EN
s
n1
ENO
d
n2
SFTRP
EN
s
n1
ENO
d
n2