Create/Delete Directory: 22 15 - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

FINS Commands

5-3-42 CREATE/DELETE DIRECTORY: 22 15

Execution Conditions
Command Format
Response Format
Parameters
Comments
226
Creates or deletes a directory.
Access right at
other device
No
RUN mode
OK
22
15
Command
Disk No.
Parameter
code
22
15
Command
End code
code
Disk number (command)
The classification of the file memory where the directory is to be created or
deleted is specified as follows:
8000 (hex):
Memory card
8001 (hex):
EM file memory
Parameter (command)
Specify either creation or deletion as follows:
0000 (hex):
Create
0001 (hex):
Delete
Directory name (command)
Specify the name of the directory to be created or deleted. For details on the
configuration, refer to page 168. If the directory name is less than 12 bytes, fill
unused bytes with 20 hex.
Directory length (command)
Indicates the length of the absolute directory path. The maximum number of
characters is 65. To specify the root directory as the absolute directory path,
specify 0000 (hex) as the directory length.
Absolute directory path (command)
Indicates the absolute path from the root directory. It begins with \ (5C hex),
and the drive name and colon (:) are not required."\" is used to delimit the
lower directory. It is not required at the end of the final absolute path. No set-
ting is required to specify the root directory itself.
End code (response)
Refer to 5-1-3 End Codes for information on end codes.
The CPU Unit's clock data will be recorded as the date of any directory that is
created.
UM read
DIP switch UM write
protection
protection
OK
MONITOR mode
OK
12 bytes
Directory
Directory
name
length
Section 5-3
Network write
protection
OK
No
PROGRAM mode
OK
Absolute directory
path

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents