Mitsubishi Electric Q12DCCPU-V User Manual page 296

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

Advertisement

9
PROGRAMMING USING BUS INTERFACE
FUNCTIONS
<Stored files>
File in standard RAM
/RAM
C Controller module
<Task settings>
Startup
Task name
order
1
Default: tN (N=1, 2, ...)
2
taskB
<Script file description example>
ld (1, 0, "/CF/DirA/fileA.out")
ld (1, 0, "/RAM/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) The "fileA.out" file is loaded from the CompactFlash card "DirA" directory.
2) The "fileB.out" file is loaded from the standard RAM "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".
Figure 9.19 Example of script file description (loaded from CompactFlash card)
9
- 55
9.9 Creating a Script File "STARTUP.CMD"
(b) When loading the user program from the script file in CompactFlash card
The following provides an example of loading user programs ("fileA.out",
"fileB.out") in the standard RAM and CompactFlash card from the script file in the
CompactFlash card.
/DirB
"fileB.out"
*2
/CF
Priority
Stack size (byte)
Default: 100
Default: 20000
120
5000
POINT
Since the maximum number of arguments to 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 task Spawn (funcB in the above example).
File in CompactFlash card
"STARTUP.CMD"
/ DirA
"fileA.out"
*1
Function
name
funcA
None
funcB
Specified (First argument: 10)
1)
2)
3)
4)
*1 "funcA" function already included in fileA.out
*2 "funcB" function already included in fileB.out
Argument specification
File storage location
/CF/DirA/fileA.out
/RAM/DirB/fileB.out

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q06ccpu-vQ06ccpu-v-bSw3pvc-ccpu-e

Table of Contents