214
FINS Commands Section 5-3
All data values are in binary.
Year: Add 1980 to the value returned. (The year is the number of years since
1980.)
Second: Multiply the value returned by two. (The value returned is expressed
in units of two seconds.)
End code (response)
Refer to 5-1-3 End Codes for information on end codes.
5-3-33 SINGLE FILE READ: 22 02
Reads the contents of a file stored in the file memory.
Execution Conditions
Command Format
Response Format
Parameters Disk number (command)
The classification of the file memory with the file name to be read is specified
as follows:
8000 (hex): Memory card
8001 (hex): EM file memory
File name (command)
Specify the name of the file to be read. For details on the configuration, refer
to page 168.
File position (command)
Specify the number of bytes (the relative byte address) from the start of the
file from which to start reading. (Files start at 00000000 hex.)
Data length (command)
Specify the number of bytes of data to read.
File capacity (response)
The capacity (bytes) of the file that was read is returned.
31
Ye a r
(0 to 119)
25 24 21 1620 15 1011 5 4 0toto to to toto
2nd byte 3rd byte 4th byte1st byte
Month
(1 to 12)
Minute
(0 to 59)
Second
(0 to 29)
Day
(1 to 31)
Hour
(0 to 23)
Bit
7 bits 5 bits6 bits5 bits 5 bits4 bits
Access right at
other device
UM read
protection
DIP switch UM write
protection
Network write
protection
OK OK OK OK
RUN mode MONITOR mode PROGRAM mode
OK OK OK
File positionDisk No.Command
code
22
File name Data length
02
12 bytes
Absolute directory
path
Directory
length
File capacityEnd codeCommand
code
22
Data length
02
File position Data