![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681141.webp)
1102
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 will
not 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) are not 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.
Word
1 hex (non-delimited),
3 hex (comma-delimited), or
5 hex (tab-delimited)
Number of fields to read from file
memory, i.e., the number of words to
read from file memory.
00000000 to 1FFFFFFF hex
Double-word
2 hex (non-delimited),
4 hex (comma-delimited), or
6 hex (tab-delimited)
Number of fields to read from file
memory, i.e., half the number of words
to read from file memory.
00000000 to 0FFFFFFF hex
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
Data type
Bits 12 to 15 of C
Contents of S1 and S1+1
S1+2
S1+3
S1+3 contains the leftmost 4 digits and
S1+2 contains the rightmost 4 digits.
F1
F2
S2+1
S2
F4
F3
S2+38
F73
F74
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.
Содержание 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...