Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 264

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Manipulating Files
Related Auxiliary Bits/Words
Name
Address
File Memory Opera-
A34313
tion Flag
Memory Card
A34315
Detected Flag
Example Program
Network Instruction
Enabled Flag
(for port 7)
226
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.
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.
ON when a Memory Card has been detected. (Not supported by CS-series CS1 CPU
Units that are pre-EV1)
The following example shows how to use CMND(490) to create a subdirectory
in the Memory Card.
File Memory
Operation Flag
Command code: 2215 Hex (CREATE/DELETE SUBDIRECTORY)
Disk number: 8000 Hex (Memory Card)
Parameter: 0000 Hex (Create subdirectory.)
Subdirectory name: CS1@@@@@.@@@
Directory length: 0006 Hex (6 characters)
Directory path: \OMRON
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)
Response requested, communications port 7, 0 retries
Response monitor time: FFFF Hex (6,553.5 s)
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.
Operation
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.
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.
(@: a space)
00 Hex (local node) and 00 Hex (CPU Unit)
Section 5-2

Advertisement

Table of Contents
loading

Table of Contents