Manipulating Files
CX-Programmer Versions V1.1 and Earlier
Execution
File Memory
condition
Operation Flag
1,2,3...
224
CX-Programmer V1.1 or Lower Version:
Indirectly Setting the Control Word
When V1.1 or an lower version of CX-Programmer is being used, ASCII files
cannot be transferred with FREAD(700) and FWRIT(701) if a constant is input
for the control word to specify the data type and carriage return treatment.
Only binary data with no carriage returns can be transferred if a constant is
used.
ASCII files can be transferred with FREAD(700) and FWRIT(701), however,
by indirectly setting the control word. Write the desired control word setting to
a word and specify that word as the control word in FREAD(700) or
FWRIT(701), as shown on the left in the following diagram.
Write #1800
to W000.
Specify W000
as C.
Note The time from the CPU Unit's internal clock is used to date files created in file
memory with FWRIT(701).
Only one file memory operation may be executed at a time, so FREAD(700)
and FWRIT(701) must not be executed when any of the following file memory
operations are being performed:
1. Execution of A File Memory Instruction
2. Execution of CMND(490) to send a FINS command to the CPU Unit itself
3. Replacement of the entire program by Auxiliary Area control bit operations
4. Execution of a simple backup operation
Use the File Memory Operation Flag (A34313) for exclusive control of file
memory instructions to prevent them from being executed while another file
memory operation is in progress.
When FREAD(700) is being executed, the File Read Error Flag (A34310) will
turn ON and the instruction won't be executed if the specified file contains
data that is not hexadecimal data or if delimiters are not positioned every 4
digits for word data and every 8 digits for double-word data. Data will be read
up to the point where an illegal character is detected.
CX-Programmer Versions V1.2 and Later
Execution
File Memory
condition
Operation Flag
Section 5-2
Specify #1800 as C.
Need help?
Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?