File Memory Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

File Memory Instructions

File Memory Instructions
User Instructions for File Memory Operations
Overview
• 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 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.
• The CMND(490) (DELIVER COMMAND) instruction can be executed to issue a FINS command to
the CPU Unit itself to perform file operations. File operations such as file formatting, deletion,
copying, and renaming can be performed on files in the Memory Card or EM file memory.
FREAD(700)/FWRIT(701):
Transfers between I/O memory and file memory
CPU Unit
FREAD/FWRIT
instruction
I/O memory
I/O memory
File Memory Instructions
READ(700)/FWRIT(701) Instructions
Name
READ DATA FILE
WRITE DATA FILE
WRITE TEXT FILE (See note.)
The operands of the FREAD(700) and FWRIT(701) instructions determine whether binary data (.IOM
files), non-delimited or tab-delimited text files (.TXT files), or comma-delimited text files (.CSV) are
handled. The operand settings are shown below.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Memory Card
I/O memory
EM file memory
Mnemonic
FREAD(700)
Reads specified data file data or data elements to specified I/O memory.
FWRIT(701)
Uses specified I/O memory area data to create a specified data file.
TWRIT(704)
Creates a text file from ASCII data in the specified I/O memory data area location.
CMND(490):
File memory operations
CPU Unit
CMND
instruction
Operation
Operation
I/O memory
Description
3. Instructions
Memory Card
EM file memory
931
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents