Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 997

Table of Contents

Advertisement

Operand Specifications
Word addresses
Area
CIO
WR
HR
C
D1, D2
OK
OK
OK
S
Flags
Name
Error Flag
Related Auxiliary Area Flags and Words
Name
Memory Card Type
Memory Card Format Error Flag
File Write Error Flag
File Write Impossible Flag
No File Flag
File Memory Operation Flag
Accessing File Flag
Memory Card Detected Flag
EM File Memory Format Error Flag
Number of Data to Transfer
Function
• Overwriting Data in an Existing File (Third Digit of C=1)
FWRIT(701) uses data area data starting at the word specified in S to overwrite file memory data in
the specified data type. It overwrites the number of words or fields specified in D1 and D1+1 in the
file specified in D2 (with filename extension .IOM, .TXT, or .CVS) starting at the address specified in
D1+2 and D1+3.
CPU Unit
Starting
address
specified
in S
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
ER
• ON if the file memory type specified in C does not exist.
• ON if the settings in C are not within the specified range.
• ON if the filename specified in D2 does not satisfy the required conditions.
• ON if the File Memory Operation Flag was ON.
• ON if a constant was not specified for C (only for CS-series CS1 CPU Units prior to V1).
• ON if data specified for D1 is out of range (all CPU Units except for CS-series CS1 CPU Units prior to
V1).
• ON if an illegal area is specified for S.
• With the CS1D CPU Units: ON if the active and standby CPU Units could not be synchronized.
• OFF in all other cases.
Address
Operation
A343.00 to A343.02
Contains a binary number indicating the type of Memory Card, if any, that is installed.
(0: None, 4: Flash ROM)
A343.07
ON when the Memory Card is not formatted or a formatting error has occurred.
A343.08
ON when an error occurred when writing to the file.
A343.09
ON when the data could not be written because the file was write-protected or there
was insufficient free memory.
A343.11
ON when the specified directory does not exist when writing a file.
A343.13
ON for any of the following:
The CPU Unit has sent a FINS command to itself using CMND(490).
FREAD(700) or FWRIT(701) are being executed.
The program is being overwritten using a control bit in memory.
A simple backup operation is being performed.
A343.14
ON when file data is actually being accessed.
A343.15
ON when a Memory Card has been detected.
0 (OFF) when a Memory Card cannot be detected.
A343.06
ON when there is a format error in the starting bank of EM file memory.
A346 to A347
The contents of these words indicate the status of data file transfers.
When an FWRIT(701) instruction is executed, the number of words or fields to be
transferred is written to these words. The value is decremented by 1 as each word is
transferred.
A346 contains the rightmost 16 bits and A347 contains the leftmost 16 bits of the 32-bit
binary value.
File specified in D2
Starting word
specified in
D1+2 and
D1+3
Number of
words specified
in D1 and D1+1
Overwrite
Memory Card or EM file memory
(Specified by the 1st digit of C.)
addresses
Con-
stants
*DM
DR
*EM
---
---
OK
---
OK
OK
---
Operation
3. Instructions
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---
3
959

Advertisement

Table of Contents
loading

Table of Contents