Mitsubishi Electric MELSEC IQ-R series Reference Manual page 217

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

Advertisement

Communication example (files for MELSEC iQ-R series)
Read directory/file information under the following conditions.
• Drive No.: 4
• Head file No.: 1
• Number of requested files: 3
The path names of directory are shown in the following table.
(1) SUBDIR (6 characters)
Item
Value of code corresponds to character
Path name
S
U
UTF-16
0053
0055
ASCII code
30303533
30303535
Binary code
5300
5500
The following shows the file name of a directory/file information to be read.
The current directory information is stored in the directory/file information 1.
The parent directory information is stored in the directory/file information 2.
Directory
Number of file name
characters
Current directory
1
Parent directory
2
The following shows the file name of the directory/file information 3.
(2) LINE.CSV (8 characters)
Item
Value of code corresponds to character
File name
L
I
UTF-16
004C
0049
ASCII code
30303443
30303439
Binary code
4C00
4900
■Data communication in ASCII code
(Request data)
Subcommand
1
8
1
0
0
0
4
0
31
38
31
30
30
30
34
30
H
H
H
H
H
H
H
H
Number of characters
0
0
0
6
30
30
30
36
H
H
H
H
In the figure (1), set the value of "ASCII code" in the table of "Value of code corresponds to character" in "Path name".
B
D
I
0042
0044
0049
30303432
30303434
30303439
4200
4400
4900
Character code
File name
UTF-16
ASCII code
Binary code
File name
UTF-16
ASCII code
Binary code
N
E
.
004E
0045
002E
30303445
30303435
30303245
4E00
4500
2E00
(Fixed value)
Drive No.
0
0
0
0
0
0
0
4
30
30
30
30
30
30
30
34
H
H
H
H
H
H
H
H
Path name
(1)
Directory specification
R
0052
30303532
5200
.
002E
30303245
2E00
.
002E
30303245
2E00
C
S
0043
0053
30303433
30303533
4300
5300
Head file No.
Number of requested files
0
0
0
0
0
0
0
1
30
30
30
30
30
30
30
31
H
H
H
H
H
H
H
H
.
002E
30303245
2E00
V
0056
30303536
5600
0
0
0
3
30
30
30
33
H
H
H
H
12 FILE CONTROL
12.4 File Check
12
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents