12 FILE CONTROL
12.3 Data to be specified in commands
199
12
File No.
This is a number for module to control files.
File No. can be obtained by following command.
Page 217 Search directory/file information (command: 1811)
File No. of MELSEC-Q/L series module
Use the subcommand '0000'.
A file No. can be specified within the range of 1 to 256 (1H to 100H).
■Data communication in ASCII code
Convert the file No. to 4-digit ASCII code (hexadecimal), and send it from the upper digits.
■Data communication in binary code
Send 2-byte
*1
numerical values that indicate file No. from lower byte (L: bits 0 to 7).
*1 For C24, the additional code may be added. (Page 35 Additional code (10H))
1FH
File No. of MELSEC iQ-R series module
Use the subcommand '0040'.
■Data communication in ASCII code
Convert the file No. to ASCII code 8 digits (hexadecimal), and transmit it from the upper digits.
■Data communication in binary code
Send 4-byte
*1
numerical values that indicate file No. from the lower byte (L: bits 0 to 7).
*1 For C24, the additional code may be added. (Page 35 Additional code (10H))
For 1FH
ASCII code Binary code
ASCII code Binary code
000
30
H
30
H
30
H
0
30
H
001
30
H
30
H
31
H
F
46
H