10
FUNCTIONS AND PROGRAMMING
10.2 Programming Using Bus Interface Functions
10.2.8 Creating script file "STARTUP.CMD"
10 - 30
9
UTILITY OPERATION
10
FUNCTIONS AND
PROGRAMMING
11
OVERVIEW OF
MULTIPLE CPU
SYSTEM
12
MULTIPLE CPU
SYSTEM
CONFIGURATION
13
MULTIPLE CPU
SYSTEM
CONCEPT
14
COMMUNICATIONS
BETWEEN CPU
MODULES
15
PARAMETERS
ADDED FOR
MULTIPLE CPU
16
PRECAUTIONS FOR
USE OF AnS SERIES
MODULE
10.2.8 Creating script file "STARTUP.CMD"
(1) Definition of script file
The script file "STARTUP.CMD" is the one used to describe the loading location,
startup order, parameter setting values, etc. of the user program that will start when
the C Controller module is booted up.
(2) Precautions for creating script file
(a) Restrictions on command description
In the script file, only one command can be described on one line.
Up to 128 characters can be specified for one command (one line).
If more than 129 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.
( Section 18.4.2 (6) )
(b) Arguments that can be specified for one command
Up to 12 arguments can be specified for one command.
(c) When C++ function is executed in script file
Describe the function declaration part as follows.
(d) At user program start
Describe a command so that a user program will be executed by starting a task
(priority 100 to 255).
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.
There are no restrictions on the number of characters in a comment statement.
Figure 10.14 When script file is stored into standard ROM
STARTUP.CMD
Standard ROM
User program (***.out)
1)
2)
Describe the loading location,
startup order, etc. of the user
program.
File specified in STARTUP.CMD
extern "C" { }
Function declaration part