User Instructions For File Memory Operations - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Manipulating Files
5-2-3

User Instructions for File Memory Operations

224
The following FINS commands can be used to perform a variety of functions,
including reading and writing files.
Command
2201 Hex
FILE NAME READ
2202 Hex
SINGLE FILE READ
2203 Hex
SINGLE FILE WRITE
2204 Hex
FILE MEMORY FOR-
MAT
2205 Hex
FILE DELETE
2207 Hex
FILE COPY
2208 Hex
FILE NAME CHANGE
220A Hex
MEMORY AREA FILE
TRANSFER
220B Hex
PARAMETER AREA
FILE TRANSFER
220C Hex
PROGRAM AREA FILE
TRANSFER
2215 Hex
CREATE/DELETE
SUBDIRECTORY
Note The time from the CPU Unit's internal clock is used to date files created in file
memory with the 220A, 220B, 220C, and 2203 commands.
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).
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 mem-
ory.
Copies files from one file memory to another
file memory.
Changes a file name.
Transfers or compares data between the I/O
memory area and the file memory.
Transfers or compares data between the
parameter area and the file memory.
Transfers or compares data between the UM
(User Memory) area and the file memory.
Creates and deletes subdirectories.
Section 5-2
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents