编程软件designer培训资料

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Pages 14
A new ‘empty’ program will be added to the Project Tree. Double-click on the ‘Flow_Control_Program*’ icon to define the program.
Pages 15
Inserting Function Blocks in the program
Pages 33
Pages 34
Pages 35
you can view the values of other variables in your program by entering Debug Mode.To do this, click on: Online →Debug.
Pages 9
Analog Input Boards
Pages 10
Analog Output Boards
Pages 11
Step 1. Start ControlWave Designer: Click as follows: Start → Programs → OpenBSI Tools → ControlWave → ControlWave Designer Step 2. Open A New Project: Click as follows: File → New Project Choose the ‘ControlWave’ template in the new project dialog box, and click on [OK]
DESIGNER
Software Training
软件培训
Pages 1
Example 1 – Creating A Simple Project
A PID (proportional, integral, derivative) loop for controlling the flow of liquid through a pipeline.
First, click on the ‘Global scope’ tab.
Pages 19
Now, click on the ‘Variables’ page again,and click on the “Global” button. A list of global variables will appear.
Step 3. Start the I/O Configuration Wizard:
Click as follows: View → IO Configurator Step 4. Define Process I/O boards.
Pages 12
Step 5. Create A Program Which Implements Your Control Strategy
Pagwk.baidu.coms 16
Click on Edit Wizard Button
Pages 17
The dialog box, shown above, will appear. You can optionally enter a comment. Then click on the [OK] push button. A graphical representation of the LEAD_LAG function block will be displayed on the screen.
Pages 27
Step 8. Download the program into your ControlWave unit, or the I/O Simulator
To choose the resource, right click on the resource and choose “Settings” from the pop-up menu.
Libraries
There are two types of libraries:
Firmware libraries
containing functions and function Blocks
User libraries
Data Types
The Data Type worksheets can be used to define customized data type structures. For example, arrays of numbers.
Pages 28
Pages 29
click as follows: Online→Project Control
Stop:停止控制器程序 Reset:清除SDRAM中的程序 Download:弹出下载对话框 Error:控制器程序出错 Cold:控制器冷启动,所有的变量初始化 Warm:控制器温启动,标记为Retains的变量之外的变量进行初始化 Hot:控制器热启动,变量不初始化 Upload:从控制器中上载项目程序文件 Info:查看控制器系统信息 Click on the [Download] button in the Project section of the Download dialog box.
Pages 6
Configuring I/O
View → IO Configurator
I/O Configuration Wizard (Step 1 of 3):
Pages 7
I/O Configuration Wizard (Step 2 of 3):
Pages 8
I/O Configuration Wizard (Step 3 of 3):
To create a task, right-click on the “Tasks” icon in the project tree, and choose “Insert” from the popup menu.
Pages 24
Now that the task exists, however, it is necessary to associate the program that we wrote with the task. Otherwise we will just have an empty task executing.To associate the program with the task, right-click on the icon for the task in the project tree, and choose “Insert” from the pop-up menu.
Pages 3
The New Project dialog box will appear.
Double-click on the ‘ControlWave’ icon,
Pages 4
Logical POUs
Program Organization Units (POUs) hold the program code for your project. There are three types of POUs: Functions
Pages 25
Click on [OK] when finished.
Pages 26
Step 7. Compile the Program and, if necessary, correct any errors
To compile the program, click on the icon shown at left, or go to the menu bar, and click as follows: Build → Make
Pages 18
Click on the dot feeding into the irInput parameter of the LEAD_LAG function block, then go to the menu bar and click as follows: Objects → Variable
Pages 21
So now we have defined data types for all of our variables, entered initial values where necessary.
Pages 22
Pages 23
Step 6. Create A Task Which Can Run The Program
Click on [OK] and the ‘F101_INPUT’ variable will now be displayed on the irInput parameter of the LEAD_LAG function block.
Pages 20
Connecting Function Blocks Together – Method 1 click on the‘Connect Objects’ icon then click on the green dot representing the orOutput parameter of the LEAD_LAG function block.
an example of a function is R_INT which truncates a real number to an integer.
Function Blocks
AVERAGER, PID3TERM,
Programs
Programs are essentially groups of functions and function blocks which have been logically connected together to perform some task.
To start, locate the “Logical POUs” object in the Project Tree. Right-click on it and choose “Insert” from the pop-up menu.
Pages 13
Creating A Program
Pages 2
Start→Programs → OpenBSI Tools → ControlWave → ControlWave Designer
Opening A New Project
ControlWave Designer will start.Then, click on the New Project icon, shown at left, or click on File → New Project.
Pages 30
Pages 31
In the I/O Simulator, icons will now appear for all configured process I/O boards. In this example,we have two process I/O boards
Pages 32
Pages 5
Physical Hardware
RTU_CFG is the type of code generation required for the controller – for ControlWave this is always IPC_30, RTU_RESOURCE defines the type of run-time system used Tasks are the actual mechanism by which programs are executed. RTU_RESOURCE define certain global variables about the project. IO_Configuration defines the inputs and outputs of the process I/O boards in the ControlWave controller and optionally the ControlWave Ethernet I/O.
相关文档
最新文档