9: MOVE INSTRUCTIONS
9-10 OPENNET CONTROLLER USER’S MANUAL
NRS (N Data Repeat Set)
Valid Operands
For the valid operand number range, see page 6-2.
▲ Internal relays M0 through M2557 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as N-W or S1, the timer/counter current value is read out. When T (timer) or C
(counter) is used as D1, the data is written in as a preset value which can be 0 through 65535.
Make sure that the last destination data determined by D1+N–1 (word or integer data type) or D1+2N–2 (double-word or
long data type) are within the valid operand range. If the derived destination operand is out of the valid operand range, a
user program execution error will result, turning on special internal relay M8004 and ERROR LED.
Valid Data Types
For the N-W, 16 points (bit operand) or 1 point (word operand) is always used without regard to the data type.
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is designated as the source or des-
tination, 16 points (word or integer data type) or 32 points (double-word or long data type) are used.
When a word operand such as T (timer), C (counter), D (data register), or L (link register) is designated as the source or
destination, 1 point (word or integer data type) or 2 points (double-word or long data type) are used.
Examples: NRS
Operand Function I Q M R T C D L Constant Repeat
N-W (N blocks) Quantity of blocks to move XXXXXXXX X —
S1 (Source 1) Operand number to move XXXXXXXX X —
D1 (Destination 1) First operand number to move to — X ▲ XXXXX ——
W (word) I (integer) D (double word) L (long)
XX X X
S1 → D1, D2, D3, ... , DN–1
When input is on, 16- or 32-bit data designated by S1 is set to N blocks
of destinations, starting with operand designated by D1.
NRS(*) N-W
*****
S1
*****
D1
*****
16-/32-bit dataS1
Source data for repeat set
First 16-/32-bit dataD1
Second 16-/32-bit dataD1+1 or D1+2
Third 16-/32-bit dataD1+2 or D1+4
Nth 16-/32-bit dataD1+N–1 or D1+2N–2
N blocks of 16-/32-bit data
N Data Repeat Set
D1
D30
D25 → D30 through D34
When input I0 is turned on, data of data register D25 designated by source operand S1 is
moved to 5 data registers starting with D30 designated by destination operand D1.
N-W
5
I0
NRS(W)
2345
D31
2345
D30
2345
D32
2345
D33
2345
D34
S1
D25
2345
D25
SOTU
34
D51
12
D50
12
D52
34
D53
12
D54
34
D55
Double-word data of D40 and D41 → D50 through D55
When input I1 is turned on, double-word data of data registers D40 and
D41 designated by source operand S1 is moved to 6 data registers starting
with D50 designated by destination operand D1.
D1
D50
N-W
3
I1
NRS(D) S1
D40
SOTU
34
D41
12
D40
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com