Mitsubishi Electric MELSEC Q Series User Manual page 353

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) Registration from CompactFlash card
In any of the following cases, files can be copied from an CompactFlash card to a memory by using a script file
command.
• Connection to the development environment (personal computer) fails
• The same user program is to be registered with multiple C Controller modules
1.
Create the following files.
When copying to standard ROM
File name
STARTUP.CMD
STARTUP.ROM
file.out
STARTUP.CMD
//The user program "file.out" in the CF card is copied to the standard ROM.
copy "/CF/file.out", "/ROM/file.out"
//Rename the operational script file "STARTUP.ROM" in the CF card to "STARTUP.CMD", and
//copy it to the standard ROM.
copy "/CF/STARTUP.ROM", "/ROM/STARTUP.CMD"
STARTUP.ROM
//The "file.out" file is loaded from the standard ROM root directory.
ld (1, 0, "/ROM/file.out")
//The "funcA" function is generated under the default task name (t1). ("funcA" function already included file.out)
sp (funcA, 0, 0, 0, 0, 0, 0, 0, 0, 0)
When copying to standard RAM
File name
STARTUP.CMD
STARTUP.RAM
file.out
STARTUP.CMD
//The user program "file.out" in the CF card is copied to the standard RAM.
copy "/CF/file.out", "/RAM/file.out"
//Rename the operational script file "STARTUP.RAM" in the CF card to "STARTUP.CMD", and
//copy it to the standard RAM.
copy "/CF/STARTUP.RAM", "/RAM/STARTUP.CMD"
STARTUP.RAM
//The "file.out" file is loaded from the standard RAM root directory.
ld (1, 0, "/RAM/file.out")
//The "funcA" function is generated under the default task name (t1). ("funcA" function already included file.out)
sp (funcA, 0, 0, 0, 0, 0, 0, 0, 0, 0)
For details of description of scripts to load user program(s), refer to the following.
 Page 347, Section 19.6 (5)
Script file to copy files to the standard ROM
Script file to load the user program
(File name must be other than "STARTUP.CMD".)
User program (Use any file name.)
Script file to copy files to the standard RAM
Script file to load the user program
(File name must be other than "STARTUP.CMD".)
User program (Use any file name.)
CHAPTER 19 PROGRAMMING
Description
Description
19
351

Advertisement

Table of Contents
loading

Table of Contents