PART 1: CX-Programmer
OMRON CHAPTER 6 – Converting a C500/C120/C**P Program to CS/CJ/CP/CVM1 Format
CX-Programmer _Page 119
Before conversion
After conversion
C500
/C120
C**P Example
CS/CJ
Series
Example CV Series Example Remarks
FUN75 FUN75 00 10 SRD SRD 0000 0010 SRD SRD 0000 0010 FUN75 is converted to its
corresponding instruction,
SRD.
FUN76 FUN76 00 #0021 10 MLPX MLPX 0000 #0021 0010 MLPX MLPX 0000 #0021 0010 FUN76 is converted to its
corresponding instruction,
MLPX.
FUN77 FUN77 00 10 #0012 DMPX DMPX 0000 0010 #0012 DMPX DMPX 0000 0010 #0012 FUN77 is converted to its
corresponding instruction,
DMPX.
FUN78 FUN78 00 #0013 10 SDEC SDEC 0000 #0013 0010 SDEC SDEC 0000 #0013 0010 FUN78 is converted to its
corresponding instruction,
SDEC.
FUN79 FUN79 00 05 10 FDIV FDIV 0000 0005 0010 FDIV FDIV 0000 0005 0010 FUN79 is converted to its
corresponding instruction,
FDIV.
FUN80 FUN80 #0010 05 #1010 DISTC DISTC #10 5 #1010 DIST DIST #0010 0005 #1010 - For CS/CJ-H PLCs,
FUN80 is converted to its
corresponding instruction,
DISTC.
- For the CV Series, FUN80
is converted to its
corresponding instruction,
DIST.
FUN81 FUN81 10 #10 20 COLLC COLLC 10 #0010 20 COLL COLL 0010 #0010 0020 - For CS/CJ-H PLCs,
FUN81 is converted to its
corresponding instruction,
COLLC.
- For the CV Series, FUN81
is converted to its
corresponding instruction,
COLL.
FUN82 FUN82 #6537 #1515 00 MOVBC MOVBC #6537 #1515 0 MOVB MOVB #6537 #1515
0000
- For CS/CJ-H PLCs,
FUN82 is converted to its
corresponding instruction,
MOVBC.
- For the CV Series, FUN82
is converted to its
corresponding instruction,
MOVB.
FUN83 FUN83 #0100 #0201 10 MOVD MOVD #100 #201 10 MOVD MOVD #0100 #0201
0010
FUN83 is converted to its
corresponding instruction,
MOVD.
FUN84 FUN84 35 10 20 SFTR SFTR 35 10 20 SFTR SFTR 0035 0010 0020 FUN84 is converted to its
corresponding instruction,
SFTR.
FUN85 FUN85 #1000 40 50 TCMP TCMP #1000 40 50 TCMP TCMP #1000 0040 0050 FUN85 is converted to its
corresponding instruction,
TCMP.
FUN87 FUN87 #0050 10 05 IOWR IOWR 10 &0050 0005 WRIT WRIT #0050 0010 0005 - The following message will
appear for CS/CJ-H PLCs:
“CONVERT_WARNING:
The instruction specification
is different. Check the
instructions.” Check the
specifications of CPU Unit
after conversion.
- For CJ/CS-H PLCs,
FUN87 is converted to its
corresponding instruction,
IOWR.
- For CJ/CS-H PLCs, the
first and second operands
are interchanged.
- For CS/CJ-H PLCs, the
second operand is
converted from BCD data
(#0050) to unsigned
decimal data (&0050).
- For the CV Series, FUN87
is converted to its
corresponding instruction,
WRIT.