EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - User Instructions for File Memory Operations

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...
224
Manipulating Files Section 5-2
The following FINS commands can be used to perform a variety of functions,
including reading and writing files.
Note The time from the CPU Units internal clock is used to date files created in file
memory with the 220A, 220B, 220C, and 2203 commands.
5-2-3 User Instructions for File Memory Operations
The FWRIT(701) (WRITE DATA FILE)/TWRIT(704) (WRITE TEXT FILE)
instruction can be used to create a data file containing the specified I/O mem-
ory data in a Memory Card or EM file memory. It can also add to or overwrite
from any point in existing files.
The FREAD(700) (READ DATA FILE) instruction will read I/O memory data
from a specified location from a data file in a Memory Card or EM file memory
and write it to the specified portion of I/O memory. It can read from any point
in the specified file.
Note These instructions do not transfer the specified file, but rather the specified
amount of data beginning at the specified start position in the file.
The CMND(490) (DELIVER COMMAND) instruction can be executed to issue
a FINS command to the CPU Unit itself to perform file operations. File opera-
tions such as file formatting, deletion, copying, and renaming can be per-
formed on files in the Memory Card or EM file memory (Not supported by CS-
series CS1 CPU Units that are pre-EV1).
Command Name Description
2201 Hex FILE NAME READ Reads file memory data.
2202 Hex SINGLE FILE READ Reads a specified length of file data from a
specified position within a single file.
2203 Hex SINGLE FILE WRITE Writes a specified length of file data from a
specified position within a single file.
2204 Hex FILE MEMORY FOR-
MAT
Formats (initializes) the file memory.
2205 Hex FILE DELETE Deletes specified files stored in the file mem-
ory.
2207 Hex FILE COPY Copies files from one file memory to another
file memory.
2208 Hex FILE NAME CHANGE Changes a file name.
220A Hex MEMORY AREA FILE
TRANSFER
Transfers or compares data between the I/O
memory area and the file memory.
220B Hex PARAMETER AREA
FILE TRANSFER
Transfers or compares data between the
parameter area and the file memory.
220C Hex PROGRAM AREA FILE
TRANSFER
Transfers or compares data between the UM
(User Memory) area and the file memory.
2215 Hex CREATE/DELETE
SUBDIRECTORY
Creates and deletes subdirectories.

Table of Contents

Related product manuals