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

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

Advertisement

File Memory Instructions
Note
1102
Data type
Bits 12 to 15 of C
Word
1 hex (non-delimited),
3 hex (comma-delimited), or
5 hex (tab-delimited)
Double-word
2 hex (non-delimited),
4 hex (comma-delimited), or
6 hex (tab-delimited)
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.
S1+3
Data type
Bits 12 to 15 of C
Binary
0 hex (binary)
Word
1 hex (non-delimited),
3 hex (comma-delimited), or
5 hex (tab-delimited)
Double-word
2 hex (non-delimited),
4 hex (comma-delimited), or
6 hex (tab-delimited)
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.
S2
F1
S2+1
F3
S2+38
F73
Contents of S1 and S1+1
Number of fields to read from file
memory, i.e., the number of words to
read from file memory.
00000000 to 1FFFFFFF hex
Number of fields to read from file
memory, i.e., half the number of words
to read from file memory.
00000000 to 0FFFFFFF hex
S1+2
S1+3 contains the leftmost 4 digits and
S1+2 contains the rightmost 4 digits.
Contents of S1+2 and S1+3
The word at which to begin reading
from the beginning of file memory.
00000000 to 3FFFFFFF hex
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
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
Store the character string beginning
F2
with the leftmost byte in S2.
F4
The entire pathname and filename can
be up to 74 characters (bytes) long,
including the initial slash character and
F74
ending null character.
Section 3-26

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents