![IDEC OpenNet series Скачать руководство пользователя страница 156](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384156.webp)
9: M
OVE
I
NSTRUCTIONS
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
9-9
NSET (N Data 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 S1 through S
N
, 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) is 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 on the CPU module.
Valid Data Types
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: NSET
Operand
Function
I
Q
M
R
T
C
D
L
Constant
Repeat
S1 (Source 1)
First operand number to move
X
X
X
X
X
X
X
X
X
—
D1 (Destination 1)
First operand number to move to
—
X
▲
X
X
X
X
X
—
—
W (word)
I (integer)
D (double word)
L (long)
X
X
X
X
S1, S2, S3, ... , S
N
→
D1, D2, D3, ... , D
N
When input is on, N blocks of 16- or 32-bit data in operands
designated by S1, S2, S3, ... , S
N
are moved to N blocks of
destinations, starting with operand designated by D1.
NSET(*)
S1
*****
S2
*****
S
N
*****
.....
D1
*****
First 16-/32-bit data
S1
Second 16-/32-bit data
S2
Third 16-/32-bit data
S3
Nth 16-/32-bit data
S
N
N blocks of 16-/32-bit data
First 16-/32-bit data
D1
Second 16-/32-bit data
D1+1 or D1+2
Third 16-/32-bit data
D1+2 or D1+4
Nth 16-/32-bit data
D1+N–1 or D1+2N–2
N blocks of 16-/32-bit data
N Data Set
D1
D20
Five constants 1998, 12, 25, 12, and 30
→
D20 through D24
When input I0 is turned on, 5 constants designated by source operands S1 through S5
are moved to 5 data registers starting with D20 designated by destination operand D1.
12
1998
25
S1
1998
S4
12
I0
NSET(W)
12
30
12
D21
1998
D20
25
D22
12
D23
30
D24
S2
12
S3
25
S5
30
SOTU
D1
D50
S1
12
I1
NSET(D)
S2
34
S3
56
SOTU
12
D51
0
D50
0
D52
34
D53
0
D54
12 (32-bit)
S1
56
D55
34 (32-bit)
S2
56 (32-bit)
S3
Three 32-bit constants 12, 34, and 56
→
D50 through D55
When input I1 is turned on, 3 constants designated by source oper-
ands S1 through S3 are moved to 6 data registers starting with D50
designated by destination operand D1.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]