![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hw-pcs01-ev1/sysmac-c200hw-pcs01-ev1_operation-manual_742247072.webp)
56
5-3-9 File and Memory Compare (Process No. 3)
The File and Memory Compare process compares a file on a memory card in the
PC Card Unit to C200HX/HG/HE memory. The results of the comparison are
indicated by the response code.
If the specified length of data does not perfectly match, or if the file size is smaller
than the specified length of data, the response code (04) shows that there is no
match.
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
0
1
1
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:
Compares data as comma separated values. The separation
method is determined by bit 10.
1:
Compares 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 compared.
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
Comparison data
•
Data Length
The data length (including the data length and offset designations) is specified
by the number of words. Specify a number from 1 to 1001 in BCD.
•
Offset
The offset specifies the comparison data offset. For binary files it is specified by
the number of words, and for comma separated files it is specified by the num-
ber of elements. Specify a number from 0 to FFFF in hexadecimal.
•
Comparison Data
The maximum value for comparison data depends on the type of file created,
as follows:
Single-word comma separation, binary:
999 words (data length: 1001)
Double-word comma separation:
998 words (data length: 1000)
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: ......