EasyManuals Logo

Mitsubishi MELSEC Q Series User Manual

Mitsubishi MELSEC Q Series
664 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #433 background imageLoading...
Page #433 background image
10
FUNCTIONS AND PROGRAMMING
10.2 Programming Using Bus Interface Functions
10.2.8 Creating script file "STARTUP.CMD"
10 - 32
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
(4) Example of script file description
The following provides an example of describing the script file to start user programs.
(a) When loading user programs from script file in standard ROM
The following gives an example of loading user programs ("fileA.out", "fileB.out")
in the standard ROM from the script file in the standard ROM.
POINT
Since the maximum number of arguments that can be specified for one command
is 12, up to seven arguments can be given to the function entry specified in
taskSpawn (funcB in the above example).
The task will not start if eight or more arguments are specified for the function
entry specified in taskSpawn (funcB in the above example).
Figure 10.16 Example of script file description (loaded from standard ROM)
1
Default: 100
funcA
/ROM/DirA/fileA.out
2 taskB 120 5000
funcB
/ROM/DirB/fileB.out
ld (1, 0, "/ROM/DirA/fileA.out")
ld (1, 0, "/ROM/DirB/fileB.out")
sp (funcA, 0, 0, 0, 0, 0, 0, 0, 0, 0)
taskSpawn ("taskB", 120, 0, 5000, funcB,10, 0, 0, 0, 0, 0, 0)
1)
2)
3)
4)
/ROM
/DirB
"STARTUP.CMD"
"fileB.out"
*2
/DirA "fileA.out"
*1
Files in standard ROM
<Stored files>
*1 "funcA" function already included in fileA.out
*2 "funcB" function already included in fileB.out
C Controller module
<Task settings>
Startup
order
Task name Priority Stack size (byte)
Function
name
Argument specification File storage location
Default: tN (N=1, 2, ...) Default: 20000 None
Specified (First argument: 10)
<Example of script file description >
1) The "fileA.out" file is loaded from the standard ROM "DirA" directory.
2) The "fileB.out" file is loaded from the standard ROM "DirB" directory.
3) The "funcA" function is generated under the default task name (t1).
4) The "funcB" function is generated under the task name "taskB".

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals