80
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, CJ1M, or
CP1H, CP1L, NSJ, or FQM1-CM (MMA/MMP).
■
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, CJ1M, or
CP1H, CP1L, NSJ, or FQM1-CM (MMA/MMP).
Create a Function Block
Definition
Refer to
3-2-2 Creating a New Function Block Definition
for details.
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 pop-up menu.
Define the Function Block
Refer to
3-2-3 Defining Function Blocks Created by User
for details.
■
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
Refer to
3-2-4 Creating Instances from Function Block Definitions
for details.
■
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.
Содержание SYSMAC CX-Programmer 9
Страница 2: ......
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 8: ......
Страница 16: ...xvi ...
Страница 20: ...xx ...
Страница 26: ...xxvi Application Precautions 4 ...
Страница 27: ...Part 1 Function Blocks ...
Страница 28: ......
Страница 154: ...128 Procedures Section 3 2 ...
Страница 155: ...Part 2 Structured Text ST ...
Страница 156: ......
Страница 160: ...134 CX Programmer Specifications Section 4 2 ...
Страница 206: ...180 Procedures Section 6 1 ...
Страница 208: ...182 System defined external variables supported in function blocks Appendix A ...
Страница 230: ...204 Revision History ...
Страница 231: ......