EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 268

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
228
Manipulating Files Section 5-2
ory Instruction is being executed, the program is being replaced by an Auxil-
iary Area control bit operation, or a simple backup operation is being
executed. Be sure to include the File Memory Operation Flag (A34313) as a
normally closed condition to prevent CMND(490) from being executed while
another file memory operation is in progress.
If CMND(490) cannot be executed for the local CPU Unit, the Error Flag will
be turned ON.
Related Auxiliary Bits/Words
Example Program
The following example shows how to use CMND(490) to create a subdirectory
in the Memory Card.
Note There are other FINS commands that can be sent to the local PLC in addition
to the ones related to file memory operations that are listed in the table above.
Name Address Operation
File Memory Opera-
tion Flag
A34313 ON for any of the following:
• The CPU Unit is processing a FINS command sent to itself using CMND(490).
• FREAD(700) or FWRIT(701) is being executed.
• The program is being overwritten using an Auxiliary Area control bit.
• A simple backup operation is being performed.
Memory Card
Detected Flag
A34315 ON when a Memory Card has been detected. (Not supported by CS-series CS1 CPU
Units that are pre-EV1)
Number of bytes of command data: 001A Hex (26 bytes)
Number of bytes of response data: 0004 Hex (4 bytes)
Destination address: 0000 Hex (local network)
00 Hex (local node) and 00 Hex (CPU Unit)
Response requested, communications port 7, 0 retries
Response monitor time: FFFF Hex (6,553.5 s)
Directory path: \OMRON
Directory length: 0006 Hex (6 characters)
Subdirectory name: CS1@@@@@.@@@
(@: a space)
Parameter: 0000 Hex (Create subdirectory.)
Disk number: 8000 Hex (Memory Card)
Command code: 2215 Hex (CREATE/DELETE SUBDIRECTORY)
In this case, the FINS command creates a subdi-
rectory named "CS1" within the OMRON directory
in the CPU Unit's Memory Card. The response is
composed of the 2-byte command code (2215) and
the 2-byte response code.
When 000000 and A20207 are ON and A34313 is
OFF, CMND(490) issues FINS command 2215
(CREATE/DELETE SUBDIRECTORY) is sent to
the local CPU Unit and the response is stored in
D00100 and D00101.
Network Instruction
Enabled Flag
(for port 7)
File Memory
Operation Flag

Table of Contents

Related product manuals