User Program Registration; Q24Dhccpu-V/-Vg - Mitsubishi Electric MELSEC Q Series User Manual

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

Advertisement

19.7

User Program Registration

The following is an overview of the user program registration procedure.
1.
Describe the loading location of the user program which starts in booting up of the C Controller
module in the script file "STARTUP.CMD".
2.
Write a script file and user program files into the C Controller module.
3.
Reset the C Controller module or perform a power cycle OFF  ON.
● User program storage memory
User program files can be stored in any memories that can store files.
For memories that can store files, refer to the following.
 Page 313, Section 18.1.2
● When registering by overwriting
Close the file to overwrite before overwriting. Otherwise, overwriting may fail.
There are the following 2 ways to write to files:
• Writing from the development environment (personal computer) by using the FTP function
• Copying from an SD memory card or CompactFlash card by using a script command
Each user program registration procedure is described below in this section.
19.7.1

Q24DHCCPU-V/-VG

(1) Registration from development environment (personal computer)
To write files from the development environment (personal computer) to a memory, use the FTP function
(Page 197, Section 12.1.2).
1.
Create the following files.
STARTUP.CMD
file.out
STARTUP.CMD
//The "file.out" file is loaded from the standard ROM root directory.
ld (1, 0, "/ROM/file.out")
//The "func" function is generated under the default task name (t1). ("func" function already included file.out)
sp (func, 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.
Power on the C Controller module.
3.
Connect the development environment (personal computer) to the C Controller module.
4.
Use the FTP function to write files into a memory.
5.
Reset the C Controller module or perform a power cycle OFF  ON.
6.
Check that the U RDY LED is lit and then the RUN LED start flashing.
The script file "STARTUP.CMD" is started.
7.
Check that the RUN LED is lit or goes off.
The user program is executed.
348
File name
Script file to load the user program
User program (Use any file name.)
Description

Advertisement

Table of Contents
loading

Table of Contents