![background image](http://html1.mh-extra.com/html/omron/cj2h-cpu6-rev-02-2010/cj2h-cpu6-rev-02-2010_operation-manual_740798252.webp)
226
Communicating between OMRON PLCs
Section 8-6
8-6-4
Writing Programs
Programs incorporating the SEND(090), RECV(098), and CMND(490)
instructions are generally created using the Communications Port Enabled
Flag and the Communications Port Error Flag as input conditions. CS/CJ-
series CPU Units have eight communications ports. Only one instruction can
be executed at any given port at one time, however, so the program must not
overlap the use of any of the ports. A program example is provided below.
File memory
22
01
FILE NAME READ
Reads file memory data.
22
02
SINGLE FILE READ
Reads a specified length of file data
from a specified position within a single
file.
22
03
SINGLE FILE WRITE
Writes a specified length of file data
from a specified position within a single
file.
22
04
FILE MEMORY FORMAT
Formats (initializes) the file memory.
22
05
FILE DELETE
Deletes specified files stored in the file
memory.
22
07
FILE COPY
Copies files from one file memory to
another file memory in the same sys-
tem.
22
08
FILE NAME CHANGE
Changes a file name.
22
0A
MEMORY AREA–FILE TRANSFER
Transfers or compares data between the
I/O memory area and the file memory.
22
0B
PARAMETER AREA–FILE TRANSFER
Transfers or compares data between the
parameter area and the file memory.
22
0C
PROGRAM AREA–FILE TRANSFER
Transfers or compares data between the
UM (User Memory) area and the file
memory.
22
15
CREATE/DELETE DIRECTORY
Creates or deletes a directory.
Debugging
23
01
FORCED SET/RESET
Force-sets or force-resets bits, or
releases force-set status.
23
02
FORCED SET/RESET CANCEL
Cancels all bits that have been force-set
or force-reset.
Usage
Command
code
Name
Function
MR
SR
There are eight communications ports, so up to eight
communications instructions can be executed at a time. The
number of messages that can be sent or received with a
single CPU Bus Unit service, though, is not more than two
each for the CPU Unit to the EtherNet/IP Unit and for the
EtherNet/IP Unit to the CPU Unit.
Communications port
EtherNet/IP Unit
CPU Unit
Instruction 1
Instruction 2
Instruction 3
Instruction 4
Instruction 5
Instruction 6
Instruction 7
Instruction 8
Содержание CJ2H-CPU6 - REV 02-2010
Страница 2: ......
Страница 4: ...iv...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 18: ...xviii...
Страница 38: ...12 Network Configurator Overview Section 1 5...
Страница 58: ...32 Selecting the Network Devices Section 2 3...
Страница 116: ...90 Auxiliary Area Data Section 4 5...
Страница 222: ...196 Message Communications Errors Section 7 6...
Страница 364: ...338 Using the Backup Tool Section 13 3...
Страница 402: ...376 CS CJ series Ethernet Unit Function Comparison Appendix A...
Страница 404: ...378 Ethernet Network Parameters Appendix B...
Страница 406: ...380 TCP Status Transitions Appendix C...
Страница 452: ...426 Precautions for Using Windows XP Vista or Windows 7 Appendix G...
Страница 460: ...434 Index...
Страница 462: ...436 Revision History...
Страница 463: ......