Creating A Script File "Startup.cmd - Mitsubishi Electric Q12DCCPU-V User Manual

Melsec-q series c controller module
Hide thumbs Also See for Q12DCCPU-V:
Table of Contents

Advertisement

9
PROGRAMMING USING BUS INTERFACE
FUNCTIONS
9.9

Creating a Script File "STARTUP.CMD"

(1) Definition of script file
(2) Precautions for creating a script file
9
- 51
9.9 Creating a Script File "STARTUP.CMD"
"STARTUP.CMD" is a script file of a user program which starts in booting up of the C
Controller module, and it contains the loading location, startup order, parameter
setting, etc. of the user program.
Standard RAM/
standard ROM
1)
STARTUP.CMD
2)
User program (***.out)
Figure 9.16 Script file is stored into the standard RAM or standard ROM
(a) Restrictions on command description
In the script file, only one command can be described in one line.
For the Q06CCPU-V(-B), up to 128 characters can be specified in one command
(in one line).
If more than 128 characters are specified, the following stop error occurs.
• Other (error code: 2502, CAN'T EXE.PRG.)
The error (event No.:0xC0000111) is registered to the event history. (
13-5, CHAPTER 13 (6))
(b) Argument that can be specified for one command.
Up to 12 arguments can be specified for one command.
(c) When C++ function is executed in a script file
Describe the function declaration part of C++ source code as follows.
extern "C" {
Function declaration part
(d) At user program start
Describe a command that starts the task (priority 100 to 255) when the user
program is executed.
The system may malfunction if the user program is executed without the task
being started.
(e) Description of comment statement
To describe a comment statement, describe "//" at the beginning of a command
(line).
The line where "//" has been described is handled as a comment statement.
No restrictions are applied on the number of characters in a comment statement.
Q12DCCPU-V
Describe the loading location,
startup order, etc. of the user
program.
A file specified in STARTUP.CMD
}
Q06CCPU-V
Q06CCPU-V-B
Page

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q06ccpu-vQ06ccpu-v-bSw3pvc-ccpu-e

Table of Contents