Variables In Function Blocks - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Additional Information
In CX-Programmer programs, global symbols, local symbols, and network symbols can be iden-
tified by the following character colors and icons indicating symbols.
Type of symbol
Global symbols
Local symbols
Network symbols

Variables in Function Blocks

Variables can be accesses only from the algorithms in function blocks.
Name
Variables (i.e.,
symbols used in
function blocks)
Some of the specifications for variables are different from those for symbols used outside of function
blocks. Set the area to be used for variables by selecting Memory Allocation
Memory from the PLC Menu in the CX-Programmer.
CJ2 CPU Unit Software User's Manual
Display color
Black (fixed)
Blue (default)
Select Tools
Options, display the
Appearance Tab Page, and select the
local symbols item to change the color.
Black (fixed)
An icon (
) indicating a network sym-
bol will be displayed under the symbol
name.
CX-programmer
project tree
Definitions in function
Not supported
blocks
(Network sym-
bols cannot be
registered for
external vari-
ables.)
5 Understanding Programming
Scope
Access using
Access from outside the
network sym-
function block
bols
Not supported
Example (default color)
Address
and I/O
comment
(without a
symbol
name)
Not sup-
ported
Function Block/SFC
5
5-49

Advertisement

Table of Contents
loading

Table of Contents