5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-53
API Mnemonic
Operands
Function
35
SFTL P
Bit Shift Left
Controllers
20PM
10PM
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T C D E F
S
*
*
*
*
D
*
*
*
n
1
*
*
n
2
*
*
SFTL, SFTLP: 9 steps
Operands:
S
: Start No. of source device
D
: Start No. of destination device
n
1
: Length of data to be shifted
n
2
: Number of
bits to be shifted as a group
Explanations:
1.
This instruction performs a left shift from source device of
n
2
bits starting from
S
to
destination device
of
n
1
bits
starting from
D
2.
This instruction is generally used in pulse execution mode (SFTLP).
3.
When SFTL is used as 16-bit instruction, Z device cannot be adopted; when SFTL is used as 32-bit instruction,
V device cannot be adopted
4.
Valid range of operand
n1
,
n2
: 1
≤
n2
≤
n1
≤
1024
Program Example:
1.
When X0 is rising edge triggered, SFTL instruction shifts X0~X4 into 16-bit data M0~M15 and M0~M15 also
shift to the left with a group of 4 bits.
2.
The figure below illustrates the left shift of the bits in one scan
n
M15~M12
→
Carry
o
M11~M8
→
M15~M12
p
M7~M4
→
M11~M8
q
M3~M0
→
M7~M4
r
X3~X0
→
M3~M0 completed
X0
SFTR
X0
M0
K16
K4
X3
X2
X1 X0
M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0
1
2
3
4
5
4 bits in a group shift to the left
Carry
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...