PART 1: CX-Programmer
CHAPTER 6 – Converting a C500/C120/C**P Program to CS/CJ/CP/CVM1 Format
OMRON
CX-Programmer _Page 128
Before conversion
After conversion
C500
/C120
C**P
Example
CS/CJ
Series
Example
CV Series
Example
Remarks
DIFD
DIFD 0000
DIFD 000000
DIFD 000000
---
TIMH
TIMH 002 #0150
TIMH 2 #0150
TIMH 0002 #0150
---
WSFT
WSFT 01 02
WSFT #0000 0001 0002
WSFT #0000 0001 0002
- This instruction has only
two operands for the
C500/C120/C**P. After
conversion, a fixed value of
#0000
is added as the first
operand.
- After conversion, the first
operand of the old
instruction is moved to the
second operand.
- After conversion, the
second operand of the old
instruction is moved to the
third operand.
CMP
CMP 00 #0012
CMP 0001 #0012
CMP 0001 #0012
---
MOV
MOV #0100 05
MOV #0100 0005 MOV
#0100 0005
---
MVN
MVN #0100 05
MVN #0100 0005
MOV #0100 0005
---
BIN
BIN 10 20
BIN 0010 0020
BIN 0010 0020
---
BCD
BCD 10 20
BCD 0010 0020
BCD 0010 0020
---
ASL ASL
01
ASL
0001 ASL
0001 ---
ASR
ASR 01
ASR 0001
ASR 0001
---
ROL
ROL 01
ROL 0001
ROL 0001
---
ROR
ROR 01
ROR 0001
ROR 0001
---
COM
COM 00
COM 0000
COM 0000
---
ADD
ADD 00 #1100 02
+BC
+BC 0000 #1100 0002
+BC
+BC 0000 #1100 0002
ADD
is converted to its
corresponding instruction,
+BC.
SUB
SUB 00 #1100 02
-BC
-BC 0000 #1100 0002
-BC
-BC 0000 #1100 0002
SUB is converted to its
corresponding instruction, -
BC.
MUL
MUL 00 #1100 02
*B
*B 0000 #1100 0002
*B
*B 0000 #1100 0002
MUL
is converted to its
corresponding instruction,
*B.
DIV
DIV 00 #1100 02
/B
/B 0000 #1100 0002
/B
/B 0000 #1100 0002
DIV
is converted to its
corresponding instruction,
/B
.
ANDW
ANDW 10 #1001 02
ANDW 0010 #1001 0002
ANDW 0010 #1001 0002
---
ORW
ORW 10 #1001 02
ORW 0010 #1001 0002
ORW 0010 #1001 0002
---
XORW
XORW 10 #1001 02
XORW 0010 #1001 0002
XORW 0010 #1001 0002 ---
XNRW
XNRW 10 #1001 02
Same as before
conversion
XNRW 0010 #1001 0002
XNRW 0010 #1001 0002
---
INC
INC 00
++B
++B 0000
INC 0
For CS/CJ-H PLCs,
INC
is
converted to its
corresponding instruction,
++
B
.
DEC
DEC 00
--B
--B 0000
DEC 0
For CS/CJ-H PLCs,
DEC
is
converted to its
corresponding instruction, --
B
.
STC STC
STC
STC
---
CLC CLC
Same as before
conversion
CLC
Same as
before
conversion
CLC ---
FUN70
FUN70 #0003 01 10
XFERC
XFERC #0003 0001
0010
XFER
XFER #0003 0001 0010
- For CS/CJ-H PLCs,
FUN70
is converted to its
corresponding instruction,
XFERC
.
- For the CV Series,
FUN70
is converted to its
corresponding instruction,
XFER
.
FUN71
FUN71 #1000 00 10
BSET
BSET #1000 0000 0010
BSET
BSET #1000 0000 0010
FUN71
is converted to its
corresponding instruction,
BSET
.
FUN72
FUN72 00 10
ROOT
ROOT 0000 0010
ROOT
ROOT 0000 0010
FUN72
is converted to its
corresponding instruction,
ROOT
.
FUN73
FUN73 00 10
XCHG
XCHG 0000 0010
XCHG
XCHG 0000 0010
FUN73
is converted to its
corresponding instruction,
XCHG
.
FUN74
FUN74 00 10
SLD
SLD 0000 0010
SLD
SLD 0000 0010
FUN74
is converted to its
corresponding instruction,
SLD
.
Содержание CX-Programmer 9
Страница 1: ...Cat No W446 E1 10 CX Programmer Ver 9 SYSMAC WS02 CXPC_ V9 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC WS02 CXPC V9 CX Programmer Ver 9 Operation Manual Revised December 2009...
Страница 4: ......
Страница 6: ......
Страница 19: ...CX Programmer_Page xvi Unit Versions and Lot Numbers...
Страница 30: ......
Страница 31: ...PART 1 CX Programmer...
Страница 32: ......
Страница 100: ......
Страница 120: ......
Страница 198: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 118...
Страница 224: ...PART 1 CX Programmer Keyboard Shortcuts CX Programmer OMRON CX Programmer _Page 144...
Страница 240: ......
Страница 241: ...PART 2 CX Server PLC Tools...
Страница 242: ......
Страница 250: ......
Страница 256: ......
Страница 268: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Страница 286: ......
Страница 338: ......
Страница 382: ......
Страница 414: ......
Страница 430: ......
Страница 436: ......
Страница 437: ...PART 3 CX Server Runtime...
Страница 438: ......
Страница 482: ......
Страница 488: ......
Страница 504: ......
Страница 530: ......
Страница 540: ......
Страница 541: ......
Страница 542: ......