Procedural Flow - Omron CX-PROGRAMMER V8.1 Operation Manual

Function blocks/ structured text
Table of Contents

Advertisement

Procedural Flow

3-1

Procedural Flow

Creating Function Blocks
Create a Project
1,2,3...
1,2,3...
Create a Function Block
Definition
1,2,3...
Define the Function Block
1,2,3...
1,2,3...
Create an Instance from
the Function Block
Definition
1,2,3...
1,2,3...
80
The following procedures are used to create function blocks, save them in
files, transfer them to the CPU Unit, monitor them, and debug them.
Refer to 3-2-1 Creating a Project for details.
Creating a New Project
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. 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).
Refer to 3-2-2 Creating a New Function Block Definition for details.
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.
Refer to 3-2-3 Defining Function Blocks Created by User for details.
Registering Variables before Inputting the Ladder Program or ST Program
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. Create the ladder program or ST program.
2. Register a variable in the variable table whenever required.
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. 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. 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.
Section 3-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents