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
Summary of Contents for SYSMAC C200HW-PCS01-EV1
Page 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Page 2: ......
Page 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Page 4: ......
Page 6: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 34: ......
Page 38: ......
Page 60: ......
Page 80: ......
Page 82: ......
Page 88: ......
Page 120: ......
Page 148: ......
Page 178: ......
Page 214: ......
Page 220: ......
Page 232: ......
Page 234: ......
Page 236: ......
Page 238: ......
Page 240: ......