Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 1008

Table of Contents

Advertisement

3. Instructions
D1: Number of write words, starting write position
• D1 and D1+1: Number of Write Items
D1+1
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)
• D1+2 and D1+3: First Destination Word
The 8-digit hexadecimal value in D1+2 and D1+3 specifies the starting write word from the beginning
of the file.
D1+3
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
• D1+2 and D1+3 are used only when overwriting data, and only 1) For text and CVS data with no carriage returns
(i.e., bits 08 to 11 of C set to 0 hex) or 2) for binary data. Always set D1+2 and D1+3 to 00000000 hex when writing
data with carriage returns (i.e., bits 08 to 11 of C set to between 8 and D hex).
• D1 to D1+3 must be in the same data area.
D2: Filename
• D2 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, .TXT, or .CSV extension is added
automatically. Fixed at .IOM and thus not specified.
• Separate the directory name and file name with ¥ (#5C).
F1
D2
F3
D2+1
F73
D2+38
S: First Source Word
S specifies the starting address containing the data that will be written to the file memory.
972
D1
D1+1 contains the leftmost 4 digits and
D1 contains the rightmost 4 digits.
Bits 12 to 15 of C
D1+2
D1+3 contains the leftmost 4 digits and
D1+2 contains the rightmost 4 digits.
Bits 12 to 15 of C
Store the character string beginning
F2
with the leftmost byte in D2.
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 D1 and D1+1
Number of words to write from file memory.
00000000 to 3FFFFFFF hex
Number of fields to write from file memory, i.e., the number of words to
write from file memory.
00000000 to 1FFFFFFF hex
Number of fields to write from file memory, i.e., half the number of words
to write from file memory.
00000000 to 0FFFFFFF hex
Contents of D1+2 and D1+3
The word at which to begin writing from the beginning of file memory.
00000000 to 3FFFFFFF hex
The field at which to begin writing 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 writing 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)

Advertisement

Table of Contents
loading

Table of Contents