54
•
Control Code Enable
Fixed at “1” (control codes enabled).
•
Port Number
Bit 8
0:
Reads the specified file.
1:
Reads the specified number of elements in the file.
Bit 9
0:
Reads data as comma separated values. The separation
method is determined by bit 10.
1:
Reads as binary file.
Bit 10 0:
Uses comma separation in single word units (one word).
1:
Uses comma separation in double word units (two words).
•
Control Code
Write in hexadecimal value the drive and filename for the file to be read. The
extension must be written in three characters. Shift JIS 1-byte alphanumeric
code is used.
Slot 1 is drive G, and slot 2 is drive H.
Command Data
Data length
Offset
Number of words read
•
Data Length
Fixed at 0003.
•
Offset
The beginning read offset is specified by word or number of elements (double-
length words). Specify a number from 0 to FFFF in hexadecimal.
Single-word comma separation, binary:
Specified by word.
Double-word comma separation:
Specified by no. of elements.
•
Number of Words Read
The number of words read is specified by word or number of elements.
Single-word comma separation, binary:
Specified by word.
Double-word comma separation:
Specified by no. of elements.
Make the setting from 1 to 3E7 in hexadecimal. The number of words read
depends on the type of file, as follows:
Single-word comma separation, binary:
999 words ($3E7)
Double-word comma separation:
449 (998 words) ($1F3)
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
The data read from the specified file is stored. When reading the number of ele-
ments, the number of elements in the file is stored in 2-word hexadecimal.
Response Codes
00:
Normal completion.
01:
Error in offset value or number of words read.
02:
File I/O error or file type error.
03:
File does not exist.
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: ......