51
5-3-5 Response Codes
Code
Meaning
00
Normal completion
01
Parameter error (offset, file size, number of words read, etc.)
02
Disk full, file I/O error, file type error
03
File does not exist.
04
Comparison, search failure
05 to FE
Undefined
FF
Process number error
Note CMCR Errors
When the C200HX/HG/HE ER Flag is ON.
Either the set parameter range has been exceeded or the instruction was
executed when the SEND/RECV Enable Flag was OFF.
When the PC Card Unit displays an error response.
The relevant bit on word 252 is ON. Refer to 5-3-4 Related SR Words and Bits.
5-3-6 Using CMCR Processes
The following four subsections explain how to use the four CMCR processes.
The processes are explained one by one, in order of process number.
5-3-7 File Write (Process No. 1)
The File Write process writes the contents of C200HX/HG/HE memory to a file
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
0
0
1
1
•
(Operating) Level
Setting to “0” specifies level #0; setting to “1” specifies level #1.
•
Port Number
Bit 8
0:
Overwrites existing file.
1:
Creates new file.
When “offset” (explained below) is set to “1,” the new data is
added to the end of the existing file.
When “offset” is set to “0,” a new file with the same name as an
existing file overwrites the existing file. At this time, if “data
length” (explained below) is set to “1” (no transmission data), the
existing file is deleted.
Bit 9
0:
Makes the created file a comma separated value file. Carriage
returns are not inserted. The separation method is determined
by bit 10. The file is created as one line with no carriage returns
(CR + LF).
1:
Makes the created file a binary file, and saves the memory con-
tents just as it is.
File Operations: CMCR Instruction
Section 5-3
Содержание SYSMAC C200HW-PCS01-EV1
Страница 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Страница 4: ......
Страница 6: ......
Страница 10: ......
Страница 12: ......
Страница 18: ......
Страница 34: ......
Страница 38: ......
Страница 60: ......
Страница 80: ......
Страница 82: ......
Страница 88: ......
Страница 120: ......
Страница 148: ......
Страница 178: ......
Страница 214: ......
Страница 220: ......
Страница 232: ......
Страница 234: ......
Страница 236: ......
Страница 238: ......
Страница 240: ......