![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hw-pcs01-ev1/sysmac-c200hw-pcs01-ev1_operation-manual_742247069.webp)
53
File Writing Example
In the following example, two words of data, from DM 0102 and DM 0103, are
written as a new file to the operating level #1 PC Card Unit’s memory card. The
drive and filename are G:\DMDATA.DAT.
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 writing results.
Function
Bit
Command data
Contents of file
10
9
8
New (Binary)
*
1
1
00 04 00 00 12 34 56 78
12 34 56 78 (4 bytes, binary file)
New (CSV word)
0
0
1
00 06 00 00 12 34 56 78 9a bc de f0
1234,5678,9abc,def0
(19 bytes, ASCII text file)
New (CSV
double-length word)
1
0
1
00 06 00 00 12 34 56 78 9a bc de f0
12345678,9abcdef0
(17 bytes, ASCII text file)
Delete
*
*
1
00 01
–
Add (CSV word)
0
0
1
00 04 00 01 12 34 56 78
1234,5678
→
1234,5678,1234,5678
(19 bytes, ASCII text file)
Overwrite (CSV word)
0
0
0
00 03 00 01 12 34
1234,5678
→
1234,1234
(9 bytes, ASCII text file)
Overwrite (CSV
double-length word)
1
0
0
00 04 00 01 12 34 56 78
12345678,9abcdef0
→
12345678,12345678
(17 bytes, ASCII text file)
5-3-8 File Read (Process No. 2)
The File Read process reads files on a memory card in the PC Card Unit to
C200HX/HG/HE memory.
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
0
1
•
(Operating) Level
Setting to “0” specifies level #0; setting to “1” specifies level #1.
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: ......