Omron CX-PROGRAMMER V8.1 Operation Manual page 116

Function blocks/ structured text
Table of Contents

Advertisement

Procedures
Source Instruction
Operand: Address and I/O
Comment
Note
Source Instruction
Operand: Symbol
Automatically generate symbol name Option Selected in Symbols Tab
under Options in Tools Menu
The user program symbol names (in the global symbol table only) will be gen-
erated automatically as AutoGen_ + Address (if the option is deselected, the
symbol names will be removed).
Example 1: For address 100.01, the symbol name will be displayed as
AutoGen_100_01.
Example 2: For address D0, the symbol name will be displayed as
AutoGen_D0.
If circuits in the user program are copied and pasted into the function block
definition program as is, the symbols will be registered automatically in the
function block definition symbol table (at the same time as copying the cir-
cuits) as the symbol name AutoGen_Address and I/O comments as Com-
ment. This function enables programmed circuits to be easily reused in
function blocks as addresses and I/O comments.
The prefix AutoGen_ is not added to Index Registers (IR) and Global Data
Registers (DR), and they cannot be registered in the original global symbol
table.
Automatically generate symbol name Option Not Selected in Symbols
Tab under Options in Tools Menu
Addresses and I/O comments are not registered in the function block defini-
tion variable tables. Addresses are displayed in the operand in red. I/O com-
ments will be lost. Double-click on the instruction and input the symbol name
into the operand.
Index Registers (IR) and Data Registers (DR), however, do not require modifi-
cation after pasting and function in the operand as is.
The user program symbol is automatically registered in the internal variables
of the function block definition variable table. This operation, however, is sub-
ject to the following restrictions.
Addresses
Symbol addresses are not registered. Use AT settings to specify the same
address.
Symbol Data Types
The symbol data types are converted when pasted from the user program into
the function block definition, as shown in the following table.
Symbol data type in user program
CHANNEL
NUMBER
UINT BCD
UDINT BCD
ULINT BCD
Symbol data types CHANNEL, NUMBER, UINT BCD, UDINT BCD, or ULINT
BCD, however, cannot be copied from the symbol table (not the program) and
then pasted into the variable table in the function block definition.
Variable data type after pasting in
function block program
WORD
The variable will not be registered,
and the value (number) will be pasted
directly into the operand as a con-
stant.
WORD
DWORD
LWORD
Section 3-2
91

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