![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681157.webp)
1118
File Memory Instructions
Section 3-26
Data Format
Store the data in the I/O memory area in order from leftmost byte
→
rightmost
byte and lower word address
→
higher word address, starting from the left-
most byte of S3.
Directory Name and
Filename (S2)
• 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
→
higher 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
Flags
The following table shows relevant flags in the Auxiliary Area.
S3
#3132
#3334
S3+1
#3536
#3738
S3+2
S3+3
When Writing the String 12345678
Characters: 12
Characters: 34
Characters: 56
Characters: 78
41
43
5B
5A
5C
42
5C
59
00
Saved in ASCII.
S2
S2+1
S2+2
S2+3
S2+4
'\ '
'B'
'\ '
'Y'
NUL
'A'
'C'
'Y'
'Z'
S2
S2+1
S2+2
S2+3
S2+4
Name
Label
Operation
Error Flag
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.
Name
Label
Operation
Memory Card Format
Error Flag
A34307
ON when the Memory Card is not formatted
or a formatting error has occurred.
File Write Error Flag
A34308
ON when an error occurred when writing to
the file.
File Write Impossible
Flag
A34309
ON when the data could not be written
because the file was write-protected or
there was insufficient free memory.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...