Writing Programs - Omron CJ1W-EIP21 - 10-2010 Operation Manual

Ethernet/ip units
Table of Contents

Advertisement

Communicating between OMRON PLCs
Usage
Command
MR
File memory
22
22
22
22
22
22
22
22
22
22
22
Debugging
23
23
8-6-4

Writing Programs

226
code
SR
01
FILE NAME READ
02
SINGLE FILE READ
03
SINGLE FILE WRITE
04
FILE MEMORY FORMAT
05
FILE DELETE
07
FILE COPY
08
FILE NAME CHANGE
0A
MEMORY AREA–FILE TRANSFER
0B
PARAMETER AREA–FILE TRANSFER Transfers or compares data between the
0C
PROGRAM AREA–FILE TRANSFER
15
CREATE/DELETE DIRECTORY
01
FORCED SET/RESET
02
FORCED SET/RESET CANCEL
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.
EtherNet/IP Unit
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.
Name
Reads file memory data.
Reads a specified length of file data
from a specified position within a single
file.
Writes a specified length of file data
from a specified position within a single
file.
Formats (initializes) the file memory.
Deletes specified files stored in the file
memory.
Copies files from one file memory to
another file memory in the same sys-
tem.
Changes a file name.
Transfers or compares data between the
I/O memory area and the file memory.
parameter area and the file memory.
Transfers or compares data between the
UM (User Memory) area and the file
memory.
Creates or deletes a directory.
Force-sets or force-resets bits, or
releases force-set status.
Cancels all bits that have been force-set
or force-reset.
Communications port
CPU Unit
Instruction 1
Instruction 2
Instruction 3
Instruction 4
Instruction 5
Instruction 6
Instruction 7
Instruction 8
Section 8-6
Function

Advertisement

Table of Contents
loading

Table of Contents