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".
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(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
XYMTCS
D
.b
KnX KnY KnM KnS T C D R
U\G
VZModifier K H E
"
"
P
zzz z
S1
z
zz
S2 S3
zz
zz z z
SFTL
EN
s
n1
ENO
d
n2
SFTLP
EN
s
n1
ENO
d
n2