Programming Procedure; Dedicated Function Library; Chapter 19 Programming - Mitsubishi Electric MELSEC Q Series User Manual

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

19.2

Programming Procedure

Described below are procedures to create a user program and write into C Controller modules.
1.
Install CW Workbench into the development environment (personal computer).
2.
Start CW Workbench.
3.
Specify a VxWorks image file ( Page 343, Section 19.5) of the same version as the C Controller
module, from CW Workbench.
4.
Create a project.
5.
Program a user program.
6.
Build a user program.
7.
Connect the personal computer to the C Controller module.
8.
Use CW Workbench to download the user program to the C Controller module.
9.
Use CW Workbench to debug the user program.
10.
Create a script file and register the created user program. ( Page 344, Section 19.6)
11.
Reset the C Controller system, or restart the user CPU
12.
The written user program are applied.
*1 :
The user CPU restarting function is not supported by Q12DCCPU-V.
19.3

Dedicated Function Library

The C Controller module provides the following dedicated function libraries.
• C Controller module dedicated function
• Bus interface function
• MELSEC data link function
Described in this section is the applications of functions and related functions.
Remark
● For the list of functions and precautions, refer to the following.
Page 353, CHAPTER 20, Page 356, CHAPTER 21, Page 362, CHAPTER 22
● For details of each function, refer to the following in Setting/monitoring tools for the C Controller module.
[Help]  [Function help]  [C Controller module function help]
● Device access
Any dedicated function library can access device(s).
To improve the processing performance of the user program, observe the following policies in programming.
• To access device(s) of the C Controller module cyclically
 Use the C Controller module dedicated function and data refresh function.
• To access device(s) of the C Controller module only as necessary
 Use bus interface functions.
• To access destination device(s) of the other stations via network module(s) cyclically
 Use the C Controller module dedicated function, refresh function, and the cyclic transmission.
• To access destination device(s) of the other stations via network module(s) only as necessary
 Use MELSEC data link functions.

CHAPTER 19 PROGRAMMING

*1
.
19
337

Advertisement

Table of Contents
loading

Table of Contents