91
Procedures
Section 3-2
Source Instruction
Operand: Address and I/O
Comment
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.
Note
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.
Source Instruction
Operand: Symbol
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 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.
Symbol data type in user program
→
Variable data type after pasting in
function block program
CHANNEL
→
WORD
NUMBER
→
The variable will not be registered,
and the value (number) will be pasted
directly into the operand as a con-
stant.
UINT BCD
→
WORD
UDINT BCD
→
DWORD
ULINT BCD
→
LWORD
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......