Omron cx-programmer 5.0-function block operation 사용자 설명서

다운로드
페이지 183
112
Procedural Flow
Section 3-1
3-1
Procedural Flow
The following procedures are used to create function blocks, save them in
files, transfer them to the CPU Unit, monitor them, and debug them. 
Creating Function Blocks
Create a Project 
Refer to 3-2-1 Creating a Project for details. 
Creating a New Project
1,2,3...
1.
Start the CX-Programmer and select New from the File Menu.
2.
Select a Device type: CS1G-H, CS1H-H, CJ1G-H, CJ1H-H, or CJ1M.
Reusing an Existing CX-Programmer Project
1,2,3...
1.
Start the CX-Programmer, and read the existing project file (.cxp) created
using CX-Programmer Ver. 4.0 or earlier by selecting the file from the File
Menu.
2.
Select a Device type: CS1H-H, CS1G-H, CJ1G-H, CJ1H-H, or CJ1M.
Create a Function Block 
Definition
1,2,3...
1.
Select Function Blocks in the project workspace and right-click.
2.
Select  Insert Function Block - Ladder or Insert Function Blocks -
Structured Text
 from the popup menu.
Define the Function Block
Registering Variables before Inputting the Ladder Program or ST Program
1,2,3...
1.
Register variables in the variable table. 
2.
Create the ladder program or ST program. 
Registering Variables as Necessary while Inputting the Ladder Program 
or ST Program
1,2,3...
1.
Create the ladder program or ST program.
2.
Register a variable in the variable table whenever required.
Create an Instance from 
the Function Block 
Definition
Inserting Instances in the Ladder Section Window and then Inputting the 
Instance Name
1,2,3...
1.
Place the cursor at the location at which to create an instance (i.e., a copy)
of the function block and press the F Key.
2.
Input the name of the instance.
3.
Select the function block definition to be copied.
Registering Instance Names in the Global Symbol Table and then 
Selecting the Instance Name when Inserting
1,2,3...
1.
Select Function Block as the data type for the variable in the global symbol
table.
2.
Press the F Key in the Ladder Section Window.
3.
Select the name of the instance that was registered from the pull-down
menu on the FB Instance Field.