355
The data length, offset, and command data settings depend on the processnumber that is specified, as shown in the following table.
Process
number Data length Offset Command data
1Number of words of data
(BCD: 1 to 1001) Number of elements of write data
(0 to FFFF)
Specify number of words for one-word
comma delimiter and binary.
Specify number of elements for
two-word comma delimiter.
Data to be written to the file
999 words max. for one-word comma
delimiter and binary.
998 words max. (449 elements) for
two-word comma delimiter.
2Always set to 0003. Number of elements of read data
(0 to FFFF)
Specify number of words for one-word
comma delimiter and binary.
Specify number of elements for
two-word comma delimiter.
Specify the number of words to read
(in hexadecimal, 1 to 3E7).
999 ($3E7) words max. for one-word
comma delimiter and binary.
449 ($1F3) elements max. for
two-word comma delimiter.
3Number of words of data
(BCD: 1 to 1001) Number of elements of compare data
(0 to FFFF)
Specify number of words for one-word
comma delimiter and binary.
Specify number of elements for
two-word comma delimiter.
Data to be compared.
999 words max. for one-word comma
delimiter and binary.
998 words max. (449 elements) for
two-word comma delimiter.
4Specify 3 for one-word
comma delimiter and
binary.
Specify 4 for two-word
comma delimiter.
Number of elements of search data
(0 to FFFF)
Specify number of words for one-word
comma delimiter and binary.
Specify number of elements for
two-word comma delimiter.
Search data
Specify one word of search data for
one-word comma delimiter and binary.
Specify two words of search data for
two-word comma delimiter.
Note 1. When an offset of 0 is specified for process number 1 and a file with thesame name already exists, the existing file will be deleted and a new file willbe created. If the data length has been set to 1 (no write data), the instructionjust deletes the existing file. If the offset has been set to 1, data will be ap-pended to the end of the existing file.2. A comma-delimited file is a file in which a 1-byte character such as a commais inserted after every 4 bytes or 8 bytes of data. An error (terminationcode 2) will occur if there are any 2-byte delimiters such as CR+LF. Replacethese 2-byte delimiters with 1-byte delimiters in advance.Response Data The response data depends on the process number that was specified, asshown in the following table.
Process
number Response data
1 None
2Contains the data read from the specified file. When the number of
elements is read, it is contained in 2-word hexadecimal.
3None (The result of the comparison is returned in the termination code.)
4When the search data is found in the file, its location is returned as the
number of words or data elements (0 to FFFF) from the offset location.
Beginning of the file: 0000
Second word (element):0001
Third word (element): 0002
Special I/O Unit Instructions Section 5-29