11 bit shift left instruction (shftl) – Yaskawa Ladder Works Programming Manual User Manual
Page 117

6.11 BIT SHIFT LEFT Instruction (SHFTL)
6-20
6.11 BIT SHIFT LEFT Instruction (SHFTL)
[Outline]
The SHFTL instruction shifts the bit sequence designated by the leading bit address (Head Bit
Address) and bit width (Bit Width) to the left the designated number of bits (Number of Shifts).
[Format]
Symbol : SHFTL
Full Name : Bit Shift Left
Category : MOVE
Icon :
[Parameter]
Parameter Name
Setting
Head Bit Address
· Any bit type register (except for # and C registers)
· Any bit type register with subscript (except for # and C registers)
Number of Shifts
· Any integer type register
· Any integer type register with subscript
· Constant
Bit Width
· Any integer type register
· Any integer type register with subscript
· Constant
[Program Example]
A ten-bit wide section of data with MB0000A (bit A of MW00000) as the head is shifted five bits to
the left.
A
Note: The upper five bits are thrown away.
1
1
0
0
0
1
0
0
0
・・・・・・・・・・・・・・・・・・・・・・・・・・
・・・・・・・・・・・・・・・・・・・・・
1
A
1
0
0
0
0
・・・・・・・・・・・・・・・・・・・・・
0
0
1
0
1
・・・・・・・・・・・・・・・・・・・・・・・・・・
3
3
0 is entered.
MW00001
MW00000
MW00001
MW00000