![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301218.webp)
1178
Other Instructions
Section 3-31
Examples
Example 1: Converting a CV-series Program with
*
DM Indirect Binary
Mode DM Addressing
In this FRMCV(284) example, a DM word is specified in S, the PLC memory
address there is stored in an Index Register, and the Index Register is used
for indirectly addressed.
0200 Hex
#1234
#1234
000000
MOV
#1234
S
D
0200 Hex
000000
FRMCV
D00000
IR0
S
D
MOV
#1234
,IR0
S
D
0200 Hex
OC0200 Hex
#1234
#1234
000OC0200 Hex
0200 Hex
OC0200 Hex
PLC Setup
Indirect DM data:
When indirect DM addresses are in binary, the content of
the DM word is treated as a PLC memory address and
specifies the corresponding address in I/O memory.
• CV-series program
(Program using indirect DM
binary mode addressing)
• CS/CJ-series program
Equivalent program
In this case, the value in D00000 is 0200 hex. The
corresponding data area address is CIO 0512, so
#1234 is transferred to CIO 0512.
Word address:
D00000
Word address:
CIO 0512
MOV(021)
CS/CJ-series PLC
memory address
CS/CJ-series PLC
memory address
In this case, the value in D00000 is 0200 hex. The
corresponding CV-series data area address is CIO 0512.
The CS/CJ-series PLC memory address for CIO 0512 is
0000C200 hex, so this value is stored in IR0. The
destination operand in MOV(021) indirectly addresses the
content of IR0, so #1234 is transferred to CIO 0512.
MOV
(021)
FRMCV
(284)
CS/CJ-series word
address: D00000
CV-series PLC
memory address:
CV-series word
address: CIO0512
CS/CJ-series word
address: CIO 0512
Equivalent
CS/CJ-series word
address: IR0
CS/CJ-series word
address: CIO 0512
CS/CJ-series PLC
memory address:
CS/CJ-series PLC
memory address:
MOV(021)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...