Single File Write: 22 03 - 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
Comments

5-3-34 SINGLE FILE WRITE: 22 03

Execution Conditions
Command Format
22
03
Command
code
Directory
Absolute directory
length
Response Format
File position (response)
The position of the first data read is returned.
Data length (response)
The number of bytes of data read is returned. If the last data in the file is
included, the leftmost bit in this parameter will be ON.
Data (response)
The specified data is returned in sequence starting from the specified byte.
Directory length
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
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.
By specifying 0000 (hex) as the file position and data length in the command,
is possible to see if the file exists.
Writes a new file to the file memory or appends or overwrites an existing file
stored in the file memory. 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.
Access right at
other device
No
RUN mode
OK
12 bytes
Disk no
Parameter
File name
code
path
22
03
Command
End code
code
UM read
DIP switch UM
protection
write protection
OK
OK
MONITOR mode
OK
File position
Data length
Section 5-3
Network write
protection
No
PROGRAM mode
OK
File data
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents