![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hw-pcs01-ev1/sysmac-c200hw-pcs01-ev1_operation-manual_742247071.webp)
55
File Reading Example
In the following example, a file called “G:\DMDATA.DAT” in the operating level
#0 PC Card Unit is read in comma separated word units. The offset value is 0000
and the number of words read is “2.” The data is read to DM 0200 onwards.
Word
Bit
Specify the drive
and filename in
hexadecimal.
Settings and Results
The following table shows examples of settings for bits 8 to 10 and the command
data and file reading results.
Function
Bit
Command data
Contents of PC card
D: Response data
10
9
8
file
storage words
Size (Binary)
*
1
1
*
12 34 56 78 9a bc de f0
0000 0004
Size (CSV word)
0
0
1
*
1234,5678,9abc,def0
0000 0004
Size (CSV
double-length word)
1
0
1
*
12345678,9abcdef0
0000 0002
Read (Binary)
*
1
0
00 03 00 00 00 02
12 34 56 78 9a bc de f0
12 34 56 78
Read (CSV word)
0
0
0
00 03 00 00 00 02
1234,5678,9abc,def0
12 34 56 78
Read (CSV
double-length word)
1
0
0
00 03 00 00 00 02
12345678,9abcdef0
12 34 56 78 9a bc de f0
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: ......