![background image](http://html1.mh-extra.com/html/omron/cx-programmer-v9/cx-programmer-v9_operation-manual_744204201.webp)
PART 1: CX-Programmer
CHAPTER 6 – Converting a C500/C120/C**P Program to CS/CJ/CP/CVM1 Format
OMRON
CX-Programmer _Page 118
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 V9
Страница 1: ...Cat No W446 E1 12 CX Programmer Ver 9 CXONE AL_C V4 AL_D V4 SYSMAC OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC CX Programmer Ver 9 CXONE AL C V4 AL D V4 Operation Manual Revised July 2010...
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 33: ...PART 1 CX Programmer...
Страница 34: ......
Страница 91: ......
Страница 111: ......
Страница 191: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 108...
Страница 217: ......
Страница 233: ......
Страница 234: ...PART 2 CX Server PLC Tools...
Страница 235: ......
Страница 243: ......
Страница 249: ......
Страница 261: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Страница 280: ......
Страница 333: ......
Страница 377: ......
Страница 409: ......
Страница 430: ......
Страница 431: ...PART 3 CX Server Runtime...
Страница 432: ......
Страница 476: ......
Страница 482: ......
Страница 498: ......
Страница 524: ......
Страница 534: ......
Страница 535: ......
Страница 536: ......