![Omron CVM1D Скачать руководство пользователя страница 69](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532069.webp)
63
Register
Content
IR0
076C
+31
1F
078B
08FC moved
to CIO 1931.
Indicates 078B
(CIO 1931)
Word
Content
D00000
08FC
Word
Content
CIO 1931
08FC
(030)
MOV
31,IR0
Indirect
address
If a Data Register is input before the “,” prefix, the content of the Data Register
will be added to the content of the Index Register, and the result is the internal I/O
memory address that is indirectly addressed. If the result exceeds $FFFF, the
carry to the fifth digit is truncated (effectively subtracting $10000 (65,536, deci-
mal) from the result). In the following example, DR1 is added to IR0. The content
of DR1 is $FFE1, so adding $FFE1 is equivalent to subtracting 1F ($0FFE1 –
$10000 = –1F), for all IR0 values greater than or equal to $001F.
08FC moved
to CIO 1869.
Indicates 074D
(CIO 1869)
Word
Content
D00000
08FC
Word
Content
CIO 1869
08FC
Register
Content
DR1
FFE1
IR0
076C
1074D
Indirect
address
(030)
MOV
D00000 DR1,IR0
An auto-increment increases the contents of an Index Register by 1 or 2 after
executing the instruction. A “+” suffix indicates an auto-increment of 1, and a
“++” suffix indicates an auto-increment of 2.
An auto-decrement decreases the contents of an Index Register by 1 or 2 before
executing the instruction. A“–” prefix indicates an auto-decrement of 1, and a
“––” prefix indicates an auto-decrement of 2. The notation for auto-increments
and auto-decrements is as follows:
,IRn+: After execution, increase the contents of IRn by 1.
,IRn++: After execution, increase the contents of IRn by 2.
,–IRn:
Decrease the contents of IRn by 1 before execution.
,––IRn: Decrease the contents of IRn by 2 before execution.
Both an auto-increment and an auto-decrement are used in the following exam-
ple. The data movement for the first execution is shown. The second execution
would move the contents of CIO 1902 to CIO 1898; the third execution would
move the contents of CIO 1904 to CIO 1897; etc.
Word
Content
CIO 1900
08FC
Word
Content
CIO 1899
08FC
Register
Content
IR1
076C
IR0
076C
(030)
MOV
IR0++
IR1–
CIO 1900 – 1
CIO 1900
Auto-increments and
Auto-decrements
Index and Data Registers (IR and DR)
Section 3-10
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...