Function Blocks; Outline - Omron CX-PROGRAMMER V8.1 Operation Manual

Function blocks/ structured text
Table of Contents

Advertisement

Function Blocks

Pop-up Menu for Function Block Variable Tables
Pop-up menu
Edit
Insert Variable
Insert Variable
Above
Below
Cut
Copy
Paste
Find
Replace
Delete
Rename
Pop-up Menu for Instances
Pop-up menu
Edit
Update Invocation
Monitor FB Ladder Instance
Monitor FB Instance
Register in Watch Window
Function Block Definition
Shortcut Keys
F Key: Pasting Function
Block Definitions in
Program
Enter Key: Inputting
Parameters
1-2

Function Blocks

1-2-1

Outline

Edits the variable.
Adds a variable to the last line.
Inserts the variable above the current cursor position.
Inserts the variable below the current cursor position.
Cuts the variable.
Copies the variable.
Pastes the variable.
Searches for the variable. Variable names, variable comments, or all (text strings) can
be searched.
Replaces the variable.
Deletes the variable.
Changes only the name of the variable.
Changes the instance name.
When a function block definition's input variables, output variables, or input-output vari-
ables have been changed after the instance was created, an error will be indicated by
displaying the instance's left bus bar in red. This command updates the instance with
the new information and clears the error.
When monitoring the program online, monitors I/O bit and word status (I/O bit monitor)
of the ladder diagram in the instance.
(Supported by CX-Programmer Ver. 6.0 and later only).
When monitoring the program online, monitors ST variable status as well as I/O bit and
word status (I/O bit monitor) of the ladder diagram in the instance.
(Supported by CX-Programmer Ver. 6.1 and later only).
Displays the FB variables registration Dialog Box in order to register a variable from the
selected instance to the Watch Window.
Displays the selected instance's function block definition on the right side of the window.
Move the cursor to the position at which to create the copied function block
instance in the Ladder Section Window, and press the F Key. This operation is
the same as selecting Insert - Function Block Invocation.
Position the cursor at the left of the input variable or input-output variable, or
at the right of the output variable and press the Enter Key. This operation is
the same as selecting Insert - Function Block Parameter.
A function block is a basic program element containing a standard processing
function that has been defined in advance. Once the function block has been
defined, the user just has to insert the function block in the program and set
the I/O in order to use the function.
As a standard processing function, a function block does not contain actual
addresses, but variables. The user sets addresses or constants in those vari-
ables. These address or constants are called parameters. The addresses
used by the variables themselves are allocated automatically by the CX-Pro-
grammer for each program.
Function
Function
Section 1-2
11

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