Registering A User Program - Mitsubishi Electric MELSEC iQ-R C User Manual

Programmable controller intelligent function module
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

Registering a 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 intelligent function module startup
in the script file "STARTUP.CMD".
2.
Write the script files and user program file to the C intelligent function module.
3.
Reset the CPU module, or turn the power OFF and ON.
• User program files can be stored in any memory 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
STARTUP.CMD
*1
file.out
*1 Any file name
• STARTUP.CMD
ld(1,0,"/ROM/file.out")
/*(1)*/
sp(func,0,0,0,0,0,0,0,0,0)
/*(2)*/
(1) Load the "file.out" file from the root folder of the standard ROM.
(2) Create "func" function with the default task name (t1). ("func" function has been already included in file.out)
2.
Turn the power of the CPU module ON.
3.
Connect a C intelligent function module with a personal computer. ( Page 36 WIRING)
4.
Access the C intelligent function module using the FTP function.
5.
Write the script file and user program to the standard ROM.
6.
Reset the CPU module, or turn the power OFF and ON.
7.
Check that the RUN LED starts flashing (low-speed). ("STARTUP.CMD" is executed.)
8.
Check that the RUN LED turns ON. ("file.out" is executed.)
The default settings of the FTP function are as follows:
• Login name: target
• Password: password
Description
Script file to load a user program
User program file
4 PROCEDURE BEFORE OPERATION
4.2 Creating User Program
4
31

Advertisement

Table of Contents
loading

Table of Contents