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

Скачать
Страница из 838
10 Applied Instructions (Rotation and Shift Operation)
10.6 SFTL / Bit Shift Left
210
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
10.6
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 specified by 
 is transferred by "n2" bits from the least 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
SFTL
16 bits
Continuous
SFTL(EN,s,n1,n2,d);
SFTLP
16 bits
Pulse
SFTLP(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 leftward shift
Bit
Bit length of the shift data (see Caution). 
ANY16
Number of bits to be shifted leftward (see Caution). 
ANY16
Output
variable
ENO
Execution state
Bit
Head bit device to be shifted leftward
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
SFTL
EN
s
n1
ENO
d
n2
SFTLP
EN
s
n1
ENO
d
n2