Omron CJ - INSTRUCTIONS Reference Manual page 1024

Table of Contents

Advertisement

3. Instructions
S1: Number of read words, starting read position
• S1 and S1+1: Number of Read Items
S1+1
S1+1 is the leftmost 4 digits, S1 is the rightmost 4 digits
Data type
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)
• 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
S1+3 is the leftmost 4 digits, S1+2 is the rightmost 4 digits
Data type
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)
Note
• S1+2 and S1+3 are used only for text and CVS data with no carriage returns (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).
• S1 to S1+3 must be in the same data area. S1 to S1+3 are used only when reading data.
S2: Filename
• S2 is the starting address of the words containing the absolute path and filename 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.
• Separate the directory name and file name with ¥ (#5C).
S2
F1
S2+1
F3
S2+38
F73
D: First Destination Word
• When data is being read, D specifies the starting address where the data read from file memory will
be stored.
• When the number of words of data is being read, the number of words is written to D and D+1 in 8-
digit hexadecimal (00000000 to 7FFFFFF). D contains the rightmost 4 digits and D+1 contains the
leftmost 4 digits.
986
S1
S1+1 contains the leftmost 4 digits and
S1 contains the rightmost 4 digits.
Bits 12 to 15 of C
S1+2
S1+3 contains the leftmost 4 digits and
S1+2 contains the rightmost 4 digits.
Bits 12 to 15 of C
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.
Contents of S1 and S1+1
Number of words to read from file memory.
00000000 to 3FFFFFFF hex
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
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 beginning.
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
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents