9: MOVE INSTRUCTIONS
9-2 OPENNET CONTROLLER USER’S MANUAL
Data Type: Word
Data move operation for the integer data type is the same as for the word data type.
Data Type: Double Word
Data move operation for the long data type is the same as for the double-word data type.
Data Type: Word
Data Type: Double Word
Double-word Data Move in Data Registers and Link Registers
The data movement differs depending on the selected double-word operand. When a data register, timer, or counter is
selected as a double-word operand, the upper-word data is loaded from or stored to the first operand selected. The lower-
word data is loaded from or stored to the subsequent operand.
On the contrary, when a link register is selected as a double-word operand, the lower-word data is loaded from or stored to
the first operand selected. The upper-word data is loaded from or stored to the subsequent operand.
I0
REP
810 → D2
When input I0 is on, constant 810 designated
by source operand S1 is moved to data register
D2 designated by destination operand D1.
D1
D0
810
D2
810
S1 –
810
D1 –
D2
MOV(W)
I0
REP
810 → D2·D3
When input I0 is on, constant 810 designated
by source operand S1 is moved to data registers
D2 and D3 designated by destination operand
D1.
D1
D0
0
D2
0
S1 –
810
D1 –
D2
MOV(D)
810
D3
810
I1
REP
D10 → D2
When input I1 is on, the data in data register
D10 designated by source operand S1 is moved
to data register D2 designated by destination
operand D1.
D1
D0
930
D2
930
D10
S1 –
D10
D1 –
D2
MOV(W)
I1
REP
D10·D11 → D2·D3
When input I1 is on, the data in data registers
D10 and D11 designated by source operand S1
is moved to data registers D2 and D3 desig-
nated by destination operand D1.
D1
D0
D2
Double-
D10
S1 –
D10
D1 –
D2
MOV(D)
D3
D11
word
Data
305419896
Double-word
(12345678h)
Upper Word D0
4660
(1234h)
Lower Word D1
22136
(5678h)
I1
REPS1 –
305419896
D1 –
D0
MOV(D)
Source Data
Data Move to Data Registers
Double-word Destination Operand: Data Register
305419896
Double-word
(12345678h)
Lower Word L100
22136
(5678h)
Upper Word L101
4660
(1234h)
I1
REPS1 –
305419896
D1 –
L100
MOV(D)
Source Data
Data Move to Link Registers
Double-word Destination Operand: Link Register
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com