Creating Script File - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

6.12

Creating Script File

A script file, "STARTUP.CMD" is a file to describe the loading destination of a user program which starts at the time of a C
Controller module startup and the starting order of tasks.
Considerations for creating a script file
■Starting a user program
Describe a command so that a user program is executed by activating the task
*1 Priority: 100 to 255
■Specifying VX_FP_TASK option
When specifying a VX_FP_TASK option for the third argument of taskSpawn, specify '0x1000000'.
Starting with the VX_FP_TASK option specified for "funcA" function
taskSpawn("TaskA",100,0x1000000,20000,funcA,0,0,0,0,0,0,0)
Script file storage location
A script file can be stored in the program memory and an SD memory card.
Store a script file in the root directory.
■A script file stored into both the program memory and an SD memory card
When a script file is stored in both memory, the script file in the SD memory card has priority, and the script file in the program
memory is not executed.
In the system which has been operated by a script file stored in the program memory, its processing can be
switched for maintenance easily by installing an SD memory card in which a script file for maintenance work is
stored.
Description of scripts
■Description of commands
• Only one command can be described in one line.
• Up to 12 arguments can be specified for one command.
■Description of comment statements
• Describe "//" at the beginning of a line.
• There is no limit on the number of characters in a statement.
■Executing C++ functions
Describe the function declaration portion on C++ source code as follows.
• extern "C" {Function declaration portion}
Description of commands in a script file allows the following operations.
• Copying a user program
• Formatting the program memory
Commands described in a script file are the same as contents described in a startup script file for VxWorks.
For more details, refer to the manual for VxWorks.
6 PROCEDURE BEFORE OPERATION
52
6.12 Creating Script File
*1
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

R12ccpu-v

Table of Contents