Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1157

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

File Memory Instructions
Data Format
Directory Name and
Filename (S2)
Flags
1118
Store the data in the I/O memory area in order from leftmost byte
byte and lower word address
most byte of S3.
When Writing the String 12345678
#3132
S3
Characters: 12
#3334
S3+1
Characters: 34
#3536
Characters: 56
S3+2
#3738
Characters: 78
S3+3
• Specify the directory name as the absolute path from the root directory (\).
The root directory's \ (#5C) delimiter must be entered. The directory name
can be up to 65 characters long. If there are fewer than 65 characters, it is
not necessary to add spaces after the directory name. Use \ (#5C) delim-
iters to separate directory levels. The allowed characters are "a to z", "A to
Z", and "0 to 9", in ASCII.
• Set the filename as 1 to 8 ASCII characters, using only the "a to z", "A to
Z", and "0 to 9" characters. If there are fewer than 8 characters, it is not
necessary to add spaces after the filename. Always insert an NULL (#00)
character after the filename.
• The filename extension is fixed to ".TXT", so it is not specified.
• Store the directory name and filename in ASCII and in order from leftmost
byte
rightmost byte and lower word address
starting from the leftmost byte of S2.
• If the specified directory does not exist, the No File Flag (A34311) will be
turned ON and the file will not be overwritten.
Example: Writing to Directory \ABC and Filename XYZ
S2
'\ '
'A'
'B'
S2+1
'C'
S2+1
S2+2
'Y'
S2+2
'\ '
S2+3
'Z'
S2+3
'Y'
S2+4
S2+4
NUL
Name
Label
Error Flag
ER
The following table shows relevant flags in the Auxiliary Area.
Name
Memory Card Format
Error Flag
File Write Error Flag
File Write Impossible
Flag
higher word address, starting from the left-
S2
5C
41
42
43
Saved in ASCII.
5C
5B
59
5A
00
Operation
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
A34307
ON when the Memory Card is not formatted
or a formatting error has occurred.
A34308
ON when an error occurred when writing to
the file.
A34309
ON when the data could not be written
because the file was write-protected or
there was insufficient free memory.
Section 3-26
rightmost
higher word address,
Operation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents