Mitsubishi Electric Q12DCCPU-V User Manual page 293

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

Advertisement

9
PROGRAMMING USING BUS INTERFACE
FUNCTIONS
(f) Task activation
Q12DCCPU-V
Q06CCPU-V(-B)
Example) When activating the "funcA" function with the VX_FP_TASK option specified:
Remark
Always specify the VX_FP_TASK option for the third argument of taskSpawn
when activating a task that:
• Performs floating-point operations.
• Calls a function that returns a floating-point value.
• Calls a function that takes a floating-point value as an argument.
If the above task is activated without the VX_FP_TASK option specified, the
operating system may run away.
Use the following value when specifying a VX_FP_TASK option for the third
argument of taskSpawn in a script file.
C Controller module
< For the Q12DCCPU-V>
taskSpawn("taskA",100,0x1000000,20000,funcA,0,0,0,0,0,0,0)
<For the Q06CCPU-V(-B)>
taskSpawn("taskA",100,0x8,20000,funcA,0,0,0,0,0,0,0)
For details on the VX_FP_TASK option, refer to the following.
Manuals for VxWorks
1. Depending on the description in the script file, the following operation can be
performed from the CompactFlash card to the standard RAM or standard
ROM (excluding the Q06CCPU-V-B).
• Copy registration of a program to the standard RAM or standard ROM
(
Page 9-46, Section 9.8)
• Standard RAM and standard ROM formatting (
User's Manual (Hardware Design, Function Explanation))
2. Commands described in a script file are identical with those described in the
startup script file for VxWorks. (
3. The RUN LED of the C Controller module flashes while the script file
(command) is in process.
4. For precautions for the user program, refer to the following.
Page 9-23, "9.5 Programming Flow for Bus Interface Functions"
Page 9-26, "9.6 Precautions for Functions"
Page 10-5, "10.5 MELSEC Data Link Function Programming Flow"
In the script file, describe commands used for login user setting (addition/
change) and user program task start as necessary.
For login user, refer to the C Controller Module User's Manual (Hardware
Design, Function Explanation).
6. For the sample program of the script file, refer to the following.
Page 12-1, "CHAPTER 12 SAMPLE PROGRAMS"
Table 9.13 VX_FP_TASK values
VX_FP_TASK value
Manual for VxWorks)
9.9 Creating a Script File "STARTUP.CMD"
0x1000000
0x8
C Controller Module
9
- 52
9
10
11
12
13
A
I

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q06ccpu-vQ06ccpu-v-bSw3pvc-ccpu-e

Table of Contents