Delta AS Series Programming Manual page 368

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0206
MMOV
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
This instruction copies the data in the 16-bit device S to the 32-bit device D, and copies the sign bit from S to D.
Example
When X0.0 is ON, the instruction copies the value of b15 in D4 to b15–b31 in (D7, D6), copies the values of b0–b14 to
the corresponding bits in (D7, D6), and ignores the bits b15–b30. The data in (D7, D6) is a negative value (same as the
source).
Plus sign
0
Minus sign
1
1
1
1
1
1
1
1
1
1
b 31
Operand
S, D
P
S
T
C
HC
Pulse instruction
: Source device
S
: Conversion result
D
b 15
1
0 0 1 1
0
1
1
1
1
1
1
1
1
0 0
1
1
0
b 16
b 15
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Converting a 16-bit value into a 32-bit
D
FR
SM
SR
16-bit instruction
AS
AS
b 0
D4
0
1
0
1 1
1
0 0 0
1
0
D7, D6
0
1
1
1
1
0
0 0 1
b 0
Function
value
E
K
16#
"$"
F
32-bit instruction
6 - 8 9
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents