![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hw-pcs01-ev1/sysmac-c200hw-pcs01-ev1_operation-manual_742247073.webp)
57
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.
Response Data
No response data. Comparison results are indicated by response codes.
Response Codes
00:
Normal completion.
01:
Error in offset value or size.
02:
File input error or file type error.
03:
File does not exist.
04:
Data does not match.
File Reading Example
In the following example, a file called “G:\DMDATA.DAT” at the operating level
#0 PC Card Unit is compared to C200HX/HG/HE memory as binary data. The
comparison data length is three words, and the offset value is 0000 (beginning of
file).
Word
Bit
Specify the drive
and filename in
hexadecimal.
Settings and Results
The following table shows examples of settings for bits 9 and 10 and the com-
mand data and comparison results.
Function
Bit
Command data
Contents of PC card
Response code
10
9
file
Binary comparison
*
1
00 04 00 00 12 34 56 78
12 34 56 78
00 (Match)
*
1
00 03 00 01 56 78
12 34 56 78
00 (Match)
*
1
00 03 00 00 56 78
12 34 56 78
04 (No match)
CSV word comparison
0
0
00 06 00 00 12 34 56 78
9a bc de f0
1234,5678,9abc,def0
00 (Match)
0
0
00 04 00 02 9a bc de f0
1234,5678,9abc,def0
00 (Match)
0
0
00 04 00 00 9a bc de f0
1234,5678,9abc,def0
04 (No match)
CSV double-length word
comparison
1
0
00 06 00 00 12 34 56 78
9a bc de f0
12345678,9abcdef0
00 (Match)
1
0
00 04 00 01 9a bc de f0
12345678,9abcdef0
00 (Match)
1
0
00 04 00 00 9a bc de f0
12345678,9abcdef0
04 (No match)
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: ......