Mitsubishi Electric MELSEC Q Series User Manual page 351

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

Advertisement

(2) Registration from SD memory card
In any of the following cases, files can be copied from an SD memory 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.
File name
STARTUP.CMD
STARTUP.ROM
file.out
STARTUP.CMD
//The user program "file.out" in the SD memory card is copied to the standard ROM.
copy "/SD/file.out", "/ROM/file.out"
//Rename the operational script file "STARTUP.ROM" in the SD memory card to "STARTUP.CMD", and
//copy it to the standard ROM.
copy "/SD/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)
For details of description of scripts to load user program(s), refer to the following.
 Page 347, Section 19.6 (5)
2.
Write the created file into an SD memory card.
3.
Insert the SD memory card into the C Controller module.
4.
Reset or power on the C Controller module.
5.
Check that the U RDY LED is lit and then the RUN LED start flashing.
The script file "STARTUP.CMD" in the SD memory card is started.
Command(s) described in the script file "STARTUP.CMD" is executed and files in the SD memory card are
copied into the standard ROM of the C Controller module.
6.
Check that the RUN LED is lit or goes off.
The script ends.
7.
Power OFF the C Controller module and remove the SD memory card.
8.
Power on the C Controller module.
9.
Check that the U RDY LED is lit and then the RUN LED start flashing.
The script file "STARTUP.CMD" (a script file to load the user program) copied into the standard ROM is
started.
10.
Check that the RUN LED is lit or goes off.
The user program is executed.
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.)
CHAPTER 19 PROGRAMMING
Description
19
349

Advertisement

Table of Contents
loading

Table of Contents