![Omron CJ1G-CPUxx Instructions Manual Download Page 922](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491922.webp)
901
File Memory Instructions
Section 3-26
S1+2 and S1+3: First Source Word
The 8-digit hexadecimal value in S1+2 and S1+3 specifies the starting read
word from the beginning of the file.
Note
1.
S1+2 and S1+3 are used only for text and CVS data with no carriage re-
turns (i.e., bits 08 to 11 of C set to 0 Hex) or for binary data. Always set
S1+2 and S1+3 to 00000000 Hex when reading data with carriage returns
(i.e., bits 08 to 11 of C set to between 8 and D Hex).
2.
S1 to S1+3 must be in the same data area.
3.
S1 to S1+3 are used only when reading data.
4.
If the specified starting word exceeds the number of words in the data file,
the File Read Error Flag (A34310) will be turned ON and the file data won’t
be read.
S2: Filename
S2 is the starting address of the words containing the absolute path and file-
name in ASCII. Use ASCII a to z, A to Z, and 0 to 9.
The full path name to the directory containing the data file can be up to 65
characters long, including the starting slash (ASCII 5C). The filename can be
up to 8 characters long, but null characters (ASCII 00) aren’t allowed in the
filename because the null character is used to mark the end of the character
string. Do not include the filename extension; the .IOM extension will be
added automatically.
Note
1.
Be sure that the character string containing the pathname and filename
doesn’t exceed the end of the data area.
2.
If the specified file or directory doesn’t exist, the File Missing Flag (A34311)
will be turned ON and the file data won’t be read.
Write the path name and filename in ASCII beginning with the leftmost byte of
S2, as shown in the following example for \ABC\XYZ.IOM. (The .IOM exten-
sion is added automatically.)
Data type
Bits 12 to 15 of C
Contents of S1+2 and S1+3
Binary
0 Hex (binary)
The word at which to begin reading
from the beginning of file memory.
00000000 to 3FFFFFFF Hex
Word
1 Hex (non-delimited),
3 Hex (comma-delimited),
or 5 Hex (tab-delimited)
The field at which to begin reading
from the beginning of file memory, i.e.,
the number of words from the begin-
ning.
00000000 to 1FFFFFFF Hex
Double-word
2 Hex (non-delimited),
4 Hex (comma-delimited),
or 6 Hex (tab-delimited)
The field at which to begin reading
from the beginning of file memory, i.e.,
half the number of words from the
beginning.
00000000 to 0FFFFFFF Hex
S1+3 contains the leftmost 4 digits and
S1+2 contains the rightmost 4 digits.
S1+2
S1+3
Store the character string beginning
with the leftmost byte in S2.
The entire pathname and filename can
be up to 74 characters (bytes) long,
including the initial slash character and
ending null character.
F1
F2
S2+1
S2
F3
F4
S2+38
F73
F74
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...