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

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

Advertisement

File Memory Instructions
Note
D1 and D1+1: Number of Write Items
The 8-digit hexadecimal value in D1 and D1+1 specifies how many words or
fields to write to file memory.
D1+1
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)
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
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. 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).
2. D1 to D1+3 must be in the same data area.
3. If the specified starting word exceeds the number of words in the data file,
the File Write Error Flag (A34308) will be turned ON and the data will not
be written.
D2: Filename
D2 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
D1
D1+1 contains the leftmost 4 digits and
D1 contains the rightmost 4 digits.
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
D1+2
D1+3 contains the leftmost 4 digits and
D1+2 contains the rightmost 4 digits.
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 begin-
ning.
00000000 to 0FFFFFFF hex
Section 3-26
1109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents