Write To File (Command: 1829) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Write to file (command: 1829)

Write contents to a file.
Use the open/close command in order to prohibit access from other devices when this command is used.
When this command is executed to files of parameter and a program being executed, place CPU module in
the STOP status. (Page 463 Commands that cannot be executed during RUN)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Command
Subcommand
■Response data
The number of data bytes written in the file is stored. (Page 209 Number of bytes)
Data specified by request data
■Command
ASCII code
1
8
2
9
31
38
32
39
H
H
H
H
■Sub command
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
■File pointer No.
Specify the file pointer No. obtained with the 'open file' (command: 1827). (Page 208 File pointer No.)
■Offset address
Specify the start address to start writing. (Page 208 Offset address)
• Writing data to a file of which drive name is '00H' (program memory): Specify the address in multiples of 4 (0, 4, 8,... in
decimal notation).
• Writing data to a file of which drive name is other than '00H': Specify the addresses in even numbered addresses (0, 2, 4, 6,
8,... In decimal notation).
■Number of bytes written
Specify the number of bytes to be written to a file in the range of 0 to 1920. (Page 209 Number of bytes)
Specify it as one address/one byte.
Write data to the file within the file size reserved by creating new file.
When the file size is 1921 bytes or more, use an offset address and write data divide into multiple steps. The
file size can be checked by reading directory/file information (command: 1810).
Page 211 Read directory/file information (command: 1810)
12 FILE CONTROL
242
12.6 File Modification
File pointer No.
Offset address
Binary code
29
18
H
H
Binary code
00
00
H
H
Number of
Write data
bytes written

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents