184
Beginning file name (command): The name of the file to be read.
Set as: File name of up to eight l 3-letter extension. One-byte
alphanumeric code is used. When there are not enough letters to fill all 12 bytes,
fill the remaining bytes with spaces ($20).
File offset (command): Designates the offset from the beginning of the file from
which to start reading.
Data length (command): The number of bytes to be read. The file is comma-
separated and the data will thus be in word units. Therefore, set the number of
bytes to an even number. When the length is set to 0000, the command will
check whether there is any data at the file offset.
Response Block
File capacity
Response
code
Command
code
Data length
File offset
Data
Parameters
File capacity (response): The capacity (bytes) of the file that was read. When
the file capacity is 0 bytes and the SINGLE FILE READ is executed, the data
length will be 0000 and no data will be read.
File offset (response): File offset from the first byte of the file is returned.
Data length (response): The number of bytes read.
Data: The data is read in sequence from the file offset through the specified data
length.
Response code
Refer to Appendix E FINS Response Codes from the PC Card Unit.
11-2-14
SINGLE FILE WRITE WITH COMMAS
Writes a new file to the file device connected to the PC Card Unit or appends
to/overwrites an existing file stored in the file device. Writes specified files as
comma-separated value files (CSV files), i.e., adds commas to the data before
writing the files. Designation can be made to protect existing files if an attempt is
made to create a new file of the same name as an existing file.
Note Do not create any files on the Memory Card that begin with “TMP...”. The system
uses this prefix.
Command Block
Disk no.
Command
code
Data length
File offset
File name
Parameter
File data
12 bytes
? byte
Parameters
Disk no. (command): File offset codes for data on a PC Card Unit are desig-
nated as follows:
G drive (slot 1): $0006 H drive (slot 2): $0007
Parameter (command): As follows:
0000: Writes a new file. If a file with the same name already exists, the new
file will not be created.
0001: Writes a new file. If a file with the same name already exists, it will be
overwritten.
0002: Appends data to an existing file. (Appended to the end of the file.)
0003: Overwrites an existing file.
File name (command): The name of the file to be written.
Set as: File name of up to eight l 3-letter extension. One-byte
alphanumeric code is used. When there are not enough letters to fill all 12 bytes,
fill the remaining bytes with spaces ($20).
PC Card Unit Commands and Responses
Section 11-2
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: ......