Omron CX-PROGRAMMER V9 - REV 12-2009 Operation Manual page 209

Table of Contents

Advertisement

OMRON
Before conversion
C500
C**P
Example
/C120
FUN75
FUN75 00 10
FUN76
FUN76 00 #0021 10
FUN77
FUN77 00 10 #0012
FUN78
FUN78 00 #0013 10
FUN79
FUN79 00 05 10
FUN80
FUN80 #0010 05 #1010
FUN81
FUN81 10 #10 20
FUN82
FUN82 #6537 #1515 00
FUN83
FUN83 #0100 #0201 10
FUN84
FUN84 35 10 20
FUN85
FUN85 #1000 40 50
FUN87
FUN87 #0050 10 05
CHAPTER 6 – Converting a C500/C120/C**P Program to CS/CJ/CP/CVM1 Format
CS/CJ
Example
Series
SRD
SRD 0000 0010
MLPX
MLPX 0000 #0021 0010
DMPX
DMPX 0000 0010 #0012
SDEC
SDEC 0000 #0013 0010
FDIV
FDIV 0000 0005 0010
DISTC
DISTC #10 5 #1010
COLLC
COLLC 10 #0010 20
MOVBC
MOVBC #6537 #1515 0
MOVD
MOVD #100 #201 10
SFTR
SFTR 35 10 20
TCMP
TCMP #1000 40 50
IOWR
IOWR 10 &0050 0005
After conversion
CV Series
Example
SRD
SRD 0000 0010
MLPX
MLPX 0000 #0021 0010
DMPX
DMPX 0000 0010 #0012
SDEC
SDEC 0000 #0013 0010
FDIV
FDIV 0000 0005 0010
DIST
DIST #0010 0005 #1010
COLL
COLL 0010 #0010 0020
MOVB
MOVB #6537 #1515
0000
MOVD
MOVD #0100 #0201
0010
SFTR
SFTR 0035 0010 0020
TCMP
TCMP #1000 0040 0050
WRIT
WRIT #0050 0010 0005
PART 1: CX-Programmer
Remarks
FUN75 is converted to its
corresponding instruction,
SRD.
FUN76 is converted to its
corresponding instruction,
MLPX.
FUN77 is converted to its
corresponding instruction,
DMPX.
FUN78 is converted to its
corresponding instruction,
SDEC.
FUN79 is converted to its
corresponding instruction,
FDIV.
- 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.
- 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.
- 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 is converted to its
corresponding instruction,
MOVD.
FUN84 is converted to its
corresponding instruction,
SFTR.
FUN85 is converted to its
corresponding instruction,
TCMP.
- 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.
CX-Programmer _Page 129

Advertisement

Table of Contents
loading

Table of Contents