Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 999

Table of Contents

Advertisement

2.
Never remove the Memory Card from the CPU Unit when the BUSY indicator is lit. Press the
Memory Card power OFF button and wait for the BUSY indicator to go out before removing the
Memory Card. The Memory Card may become unusable if this is not done.
3.
Insert the Memory Card with the label facing to the right. Do not attempt to insert it in any other
orientation. The Memory Card or CPU Unit may be damaged.
4.
A few seconds will be required for the CPU Unit to recognize the Memory Card after it is
inserted. When accessing a Memory Card immediately after turning ON the power supply or
inserting the Memory Card, program an NC condition for the Memory Card Recognized Flag
(A343.15) as an input condition, as shown below.
Execution
A343.15
condition
Memory Card
Recognized
Flag
File Memory Instructions
FWRIT(701)
FWRIT(701) creates a data file containing the specified data from I/O memory. The file format can be
either binary or CSV. FWRIT(701) can also be used to add to an existing file or overwrite an existing file
from a specified position.
FREAD(700)
FREAD(700) reads the contents of a data file and stores it in the specified area of I/O memory. The file
format can be either binary or CSV. FREAD(700) can also be used to read data from a specified
position in a file.
TWRIT(704)
TWRIT(704) creates a text file containing ASCII data stored in I/O memory. TWRIT(704) can also be
used to add to an existing file or overwrite an existing file.
CMND(490)
CMND(490) can be used to format files, delete files, copy files, and change file names by sending FINS
commands for Memory Card operations.
Data structure of Files
For binary format (.IOM), the data will be as follows when 1234 hex, 5678 hex, 9ABC hex, and DEF0
hex are stored in the file ABC.IOM (although the user does not normally need to be concerned with this
structure):
I/O memory
1234
5678
9ABC
DEF0
CS/CJ/NSJ Series Instructions Reference Manual (W474)
A343.13
@FREAD
C
File Memory
Operation
S1
Flag
S2
D
XX
XX
to
XX
12
34
56
78
9A
BC
DE
F0
Contents of ABC.IOM
48 bytes (reserved
for system use)
8 bytes
3. Instructions
3
963

Advertisement

Table of Contents
loading

Table of Contents