Registering User Program - Mitsubishi Electric MELSEC iQ-R Series User Manual

Controller module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

6.13

Registering User Program

This section shows the procedure to register a user program.
1.
Describe the loading destination of the user program which starts at the time of the C Controller module startup to the
script file, "STARTUP.CMD".
2.
Write the script file and user program file to the C Controller module.
3.
Turn the power OFF and ON, or reset the C Controller module.
• User program files can be stored in any memories that can store files.
• To register by overwriting, close the file before overwriting it. Overwriting with the file opened may fail.
How to write
The following methods are available to write a script file and a user program.
• Writing from a personal computer by using the FTP function
• Writing from an SD memory card by copying with a command in a script file
■When writing files using the FTP function from a personal computer
The following shows the procedure to write files using the FTP function from a personal computer.
1.
Create the following files.
File name
Description
STARTUP.CMD
Script file to load a user program
*1
file.out
User program
*1 Specify an arbitrary file name.
• STARTUP.CMD
ld(1,0,"/0/file.out")
sp(func,0,0,0,0,0,0,0,0,0)
(1) Load the "file.out" file from root directory in the program memory.
(2) Generate the "func" function under the default task name (t1). (The "func" function is already included in the file.out file.)
2.
Turn the power of the C Controller module ON.
3.
Connect the C Controller module with the personal computer.
4.
Access the C Controller module using the FTP function.
5.
Write the script file and user program to the program memory.
6.
Turn the power OFF and ON, or reset the C Controller module.
7.
Check that the READY LED starts flashing. ("STARTUP.CMD" is executed.)
8.
Check that the READY LED turns ON. ("file.out" is executed.)
The default settings of the FTP function are as follows:
• Login name: target
• Password: password
6 PROCEDURE BEFORE OPERATION
54
6.13 Registering User Program
/*(1)*/
/*(2)*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

R12ccpu-v

Table of Contents