App - 5 App - 5
MELSEC-Q
APPENDIX
Appendix 1.5 Precautions when Using Wild Cards
It would appear that the wild cards can be used in any way but the following restrictions
do apply.
1) Wild cards can only be used in the following instructions.
FILES, LFILES, KILL
2) A question mark (?) represents one en character. One Kanji is the equivalent of two
en characters; it is thus necessary to use two question marks (??) to represent a
Kanji.
3) If question marks (?) are specified at the end of a file name or extension, all files
that do not have characters for the specified number of question marks will also be
included.
Example
AD51H??.BAS
AD51HAB.BAS
AD51HG .BAS
AD51H .BAS
All of these will be included.
4) Characters after an asterisk ( ) will be disregarded.
When using a wild card with the KILL instruction, check which files will be included
beforehand using an instruction such as the FILES instruction.
A file that has been deleted using the KILL instruction cannot be recovered.
Appendix 1.6 The Efficient Way to Assign a File Name
In order to manage files efficiently, use the following methods to assign file names in
such a way that wild cards are easy to use.
1) Use the same extension to all data that are used in the same program, etc.
2) Use the extension ‘BAS’ for all program files.
3) Start the file names with the same characters for programs or data that are related.
(It is not a good idea to end the file names with the same character because an
asterisk cannot be used.)