Read Drive Memory Usage Status (Command: 0205) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

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

Advertisement

Read drive memory usage status (command: 0205)

Read the usage status of the drive memory.
When creating a new file (registering new file), a consecutive free area for the file size to be created is
required.
To calculate the capacity (size) of the consecutive free area of the specified drive, check the number of
consecutive free clusters (number of consecutive OFF bits) by reading the usage status of that drive memory.
Capacity of consecutive free area (size) = number of consecutive free cluster  4096 or 512 (byte)
When the consecutive area is insufficient, perform the following memory defragmentation.
Page 295 Defragment drive memory (command: 1207)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
ASCII
0
2
0
5
Subcommand
30H 32H 30H 35H
Binary
Setting
Subcommand
Keyword Drive name
flag
05H 02H
■Response data
The free cluster table is stored. The order of data differs depending on the ASCII code or binary code.
Page 292 Free cluster table
Data specified by request data
■Command
ASCII code
0
2
0
5
30
32
30
35
H
H
H
H
■Subcommand
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
■Keyword
Set whether to allow/prohibit access to a drive. (Page 298 Keyword)
■Setting flag
This indicates whether the keyword registered in the specified drive matches the keyword of request data. (Page 290
Setting flag)
■Drive name
Read the usage status of the drive memory, and specify the QnACPU drive to be defragmented. (Page 291 Drive name)
■Cluster No.
Specify the first cluster No. within the range of drive memory whose usage status is to be read. (Page 291 Cluster No.)
Drive name Cluster No.
Keyword
Setting flag
Number
Cluster
of clusters
No.
to be read
Binary code
05
02
H
H
Binary code
00
00
H
H
Number of
clusters to
be read
15 QnACPU DEDICATED COMMANDS
15.2 Defragmentation of Drive Memory
15
293

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents