3. Instructions
984
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z Instruction-related Words and Bits
z EM File Memory-related Words and Bits
Name Address Operation
File Write Error Flag A343.08 ON when an error occurred when writing to the file.
ON when the file being written is write-protected.
File Write Impossible Flag A343.09 ON when the data could not be written because there was insufficient free memory.
File Read Error Flag A343.10 ON when a file could not be read because its data was corrupted or if it contains the wrong
data type.
File Missing Flag A343.11 ON when data could not be read because the specified file does not exist.
File Memory Operation Flag 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.
Accessing File Flag A343.14 ON when file data is actually being accessed.
Use this flag as an execution condition to prevent a file memory instruction from being
executed while another is in progress.
Number of Data to Transfer A346 to A347 The contents of these words indicate the status of data file transfers.
When an FREAD(700) or 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 or
field is transferred.
A346 contains the rightmost 16 bits and A347 contains the leftmost 16 bits of the 32-bit
binary value.
Name Address Operation
EM File Memory Format Error Flag A343.06 ON when there is a format error in the starting bank of EM file memory.
EM File Format Starting Bank A344 Contains the starting bank number of the EM Area that has been formatted for use as
EM file memory. Contains FFFF when none of the EM Area has been formatted.