![IDEC OpenNet series Скачать руководство пользователя страница 146](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384146.webp)
8: A
DVANCED
I
NSTRUCTIONS
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
8-5
Double-Word Operands in Data Registers and Link Registers
When the double-word data type is selected for the source or destination operand, the data is loaded from or stored to two
consecutive operands. The order of the two operands depends on the operand type.
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.
Example: When data register D10 and link register L100 are designated as a double-word source operand and data regis-
ter D20 and link register L200 are designated as a double-word destination operand, the data is loaded from or stored to
two consecutive operands as illustrated below.
Discontinuity of Operand Areas
Each operand area is discrete and does not continue, for example, from input to output or from output to internal relay. In
addition, special internal relays M8000 through M8237 are in a separate area from internal relays M0 through M2557.
Special data registers D8000 through D8999 are in a separate area from data registers D0 through D7999. Slave link regis-
ters L100 through L727 are in a separate area from master link registers L1000 through L1317.
Advanced instructions execute operation only on the available operands in the valid area. If invalid operands are desig-
nated, a user program syntax error occurs when transferring the user program to the
OpenNet Controller
CPU module.
305419896
Double-word Data
Upper Word D10
(12345678h)
Source Operand
Data Register/Timer/Counter
4660
(1234h)
Lower Word D11
22136
(5678h)
Lower Word L100
22136
(5678h)
Upper Word L101
4660
(1234h)
Link Register
Upper Word D20
4660
(1234h)
Lower Word D21
22136
(5678h)
Lower Word L200
22136
(5678h)
Upper Word L201
4660
(1234h)
Link Register
Data Register/Timer/Counter
Destination Operand
The internal relay ends at M2557. Since the MOV (move) instruction
reads 16 internal relays, the last internal relay exceeds the valid range.
When this program is downloaded to the
OpenNet Controller
CPU mod-
ule, a user program syntax error occurs and the ERROR LED is lit.
M8125
REP
S1 –
M2550
D1 –
D0
MOV(W)
This program results in a user program syntax error. The desti-
nation of the DIV (division) instruction requires two data regis-
ters D7999 and D8000. Since D8000 is a special data register
and does not continue from the data register area, a user pro-
gram syntax error is caused.
I0
REP
S1 –
D100
S2 –
D200
DIV(W)
D1 –
D7999
The MOV (move) instruction sets data of data register D0 to 16 outputs
Q580 through Q597 in the first repeat cycle. The destination of the sec-
ond cycle is the next 16 outputs Q600 through Q617, which are invalid,
resulting in a user program syntax error.
For details about repeat operations of each advanced instruction, see the
following chapters.
M8125
REP
2
S1 –
D0
D1 R
Q580
MOV(W)
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]