5 Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-144
API Mnemonic Operands Function
260
RMOV P
32-bit→16-bit Conversion
Controllers
20PM 10PM
Bit Devices Word Devices Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T C D V Z
S
* * * * * * * * ***
D * * * * * ***
RMOV, RMOVP: 5 steps
Operands:
S: Source device (32-bit) D: Destination device (16-bit)
Explanations:
RMOV instruction sends the data in 32-bit device S to 16-bit device D. Sign bit (MSB) of source device will be copied
to MSB of destination device.
Program Example:
When X24 = ON, the data in D6 and D7 will be sent to D4.
X24
RMOV D6
D4
0011 1
0
0
0
11
1
1000
b15
b0
00 0 001111
D7, D6
1
1
1111111
b31
b16
1
b0
b15
D4
0
1
1
00
1
111
1
11
11
When X24 = ON, b31 (MSB) of D7 (S) will be sent to b15 (MSB) of D4 (D). In addition, b0~b14 of D6 will also be
sent to b0~b14 of D4 and b15 ~ b30 will be ignored.