Omron CJ - INSTRUCTIONS Reference Manual page 1035

Table of Contents

Advertisement

S3: First write data word
Specifies the first word (I/O memory data area address) containing the data to be written.
Note It is not necessary for all of the source words (starting at S3) to be in the same data area. The data will be
read in PLC memory address order and written as a file.
S4: Delimiter character
Specifies the delimiter characters (up to 2 bytes) for the write data in ASCII. If a delimiter is not
required, specify #0000.
Up to 2 bytes can be specified. When 1 byte is being specified, set the rightmost byte to #00.
Typical delimiters (all hexadecimal):
#2C00: Comma (1 byte)
#0A00: Line feed (1 byte)
#0D0A: Carriage return/Line feed (2 bytes)
#0C00: New page (1 byte)
#0900: Tab (1 byte)
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
S1
OK
OK
OK
S2, S3
S4
Flags
Name
Error Flag
Related Auxiliary Area Flags and Words
Name
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
Number of Data Items to Transfer
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
Label
P_ER
• ON if there is no Memory Card.
• ON if C is not within the specified range of 0000 or 0001.
• ON if the filename specified at S2 does not meet the required conditions.
• ON if the File Memory Operation Flag is ON.
• ON if the data area specified for S3 is an invalid area.
• With the CS1D CPU Units: ON if the active and standby CPU Units could not be synchronized.
• OFF in all other cases.
Label
A343.07
A343.08
A343.09
A343.11
A343.13
A343.14
A343.15
A346 and A347
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
OK
---
---
OK
Operation
ON when the Memory Card is not formatted or a formatting error has occurred.
ON when an error occurred when writing to the file.
ON when the data could not be written because the file was write-protected or
there was insufficient free memory.
ON when the specified directory does not exist when writing a file.
ON for any of the following, otherwise OFF:
• The CPU Unit has sent a command to itself using CMND(490).
• FREAD(700), FWRIT(701), or TWRIT(704) is being executed.
• The program is being overwritten using a control bit in memory.
• A simple backup operation is being performed.
ON when file data is actually being accessed.
ON when a Memory Card has been detected.
OFF when a Memory Card could not be detected.
The contents of these words indicate the status of data file transfers.
When an file write instruction is executed, the number of bytes to be transferred is
written to these words. The value is decremented by 1 as each byte is transferred.
A346 contains the rightmost 16 bits and A347 contains the leftmost 16 bits of the
32-bit binary value.
3. Instructions
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
Operation
3
TR
bits
---
997

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents