Fread(700), Fwrit(701), And Cmnd(490 - Omron CS1G/H-CPUxx-EV1 Programming Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Manipulating Files
Computer to Memory Card
File
5-2-3

FREAD(700), FWRIT(701), and CMND(490)

216
Note A computer on an Ethernet Network can read and write file memory (Memory
Cards or EM file memory) on a CPU Unit through an Ethernet Unit. Data in
files can be exchanged if the host computer functions as an FTP client and
the CS/CJ-series PLC functions as an FTP server.
Host computer (FTP client)
Ethernet
FTP command
Memory Card or
EM file memory
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) instruction can be used to create a data
file containing the specified I/O memory 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.
Ethernet Unit
Memory Card or
EM file memory
Memory Card to computer
File
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
Memory Card or
EM file memory
Description

Advertisement

Table of Contents
loading

Table of Contents