58
5-3-10 File Search (Process No. 4)
The File Search process searches files, by specified data, on a memory card in
the PC Card Unit.
Control Data
Control code
•
•
•
Control code
C+1
to
C+7
Word
Port No.
Process No.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
C+0
Bit
Level (0/1)
Port No.
0
0
0
0
0
1
0
0
1
•
(Operating) Level
Setting to “0” specifies level #0; setting to “1” specifies level #1.
•
Control Code Enable
Fixed at “1” (control codes enabled).
•
Port Number
Bit 9
0:
Searches as comma separated values. The separation method
is determined by bit 10.
1:
Searches as binary file.
Bit 10 0:
Puts comma separation in single word units (one word).
1:
Puts comma separation in double word units (two words).
•
Control Code
Input in hexadecimal values the drive and filename for the file to be searched.
The extension must be written in three characters. Shift JIS 1-byte alphanu-
meric code is used.
Slot 1 is drive G, and slot 2 is drive H.
Command Data
Data length
Offset
Search data
2 or 4 bytes
•
Data Length
For word comparison, specify “3” and for double-length word comparison
specify “4.” For binary, specify “3.”
•
Offset
The offset specifies the search data offset. For binary files it is specified by the
number of words, and for comma separated files it is specified by the number
of elements. Specify a number from 0 to FFFF in hexadecimal.
•
Search Data
The length of the search data depends on the type of file created, as follows:
Single-word comma separation, binary:
One word
Double-word comma separation:
Two words
Note Comma-separated files are read as text files with one-byte separations, such as
commas, every 4 or 8 bytes. If 2-byte separations, such as carriage returns (CR
+ LF), are included, an error will be generated with a response code of 2. Convert
to 1-byte characters beforehand.
File Operations: CMCR Instruction
Section 5-3
Содержание SYSMAC C200HW-PCS01-EV1
Страница 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Страница 4: ......
Страница 6: ......
Страница 10: ......
Страница 12: ......
Страница 18: ......
Страница 34: ......
Страница 38: ......
Страница 60: ......
Страница 80: ......
Страница 82: ......
Страница 88: ......
Страница 120: ......
Страница 148: ......
Страница 178: ......
Страница 214: ......
Страница 220: ......
Страница 232: ......
Страница 234: ......
Страница 236: ......
Страница 238: ......
Страница 240: ......