Mitsubishi Electric MELSEC IQ-R series Reference Manual page 206

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

Advertisement

File name of MELSEC iQ-R series module (Number of characters and file name)
Use the subcommand '0040'.
Specify the file name including absolute path from the root folder with variable length.
The file name and the extension are specified by inserting a period between them. Specify the length of character string with
"number of characters". (Page 200 Number of characters)
ASCII code
Number of characters
(4 digits)
Specify "Path name" + "Period (002EH)" + "Extension" by Unicode(UTF-16).
"Drive name:\" is not required in front of the path. Use '\' (005CH) for the delimiter between the folder names.
For the characters that cannot be used for a file name and naming rules, refer to the manual of the access target module.
■Data communication in ASCII code
Convert the numerical value of UTF-16, which indicates a file name, to ASCII code (hexadecimal), and send it from the upper
digits.
■Data communication in binary code
Send the numerical value of UTF-16 that indicates file name from the lower byte (L: bits 0 to 7).
Ex.
When the file name and the extension are 'LINE\LINE.CSV' (13 characters)
ASCII code
0
0
0
D
LINE/LINE.CSV
30
30
30
44
H
H
H
H
The value of the file name 'LINE\LINE.CSV' is as follows.
Item
Value of code corresponds to character
File name
L
UTF-16
004C
ASCII code
3030
3443
Binary code
4C00
12 FILE CONTROL
204
12.3 Data to be specified in commands
Binary code
File name + "." + Extension
(Variable length)
Binary code
I
N
E
\
0049
004E
0045
005C
3030
3030
3030
3030
3439
3445
3435
3543
4900
4E00
4500
5C00
Number of characters
File name + "." + Extension
(2 bytes)
(Variable length)
LINE/LINE.CSV
0D
00
H
H
L
I
N
E
004C
0049
004E
0045
3030
3030
3030
3030
3443
3439
3445
3435
4C00
4900
4E00
4500
.
C
S
V
002E
0043
0053
0056
3030
3030
3030
3030
3245
3433
3533
3536
2E00
4300
5300
5600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents