PART 1: CX-Programmer
CHAPTER 4 – Reference
The above example specifies the element that is offset from start address (A) by the value specified by the
subscript (B) (see note) based on the data type of the array variable.
An offset address cannot be used as an operand in an instruction for which immediate refreshing is specified.
Note:
Global Symbols
The PLC global symbol table is initially filled with some pre-set symbols, which depend upon the PLC type. For
example, the symbol 'P_1s' (1 second pulse) is created for many PLC types. All pre-set symbols have the prefix
'P_' and they may not be removed or edited.
A global symbol table contains the PLC's symbols – these symbols can be referenced by any program in the
PLC. Any unnamed symbols (IO comment - just addresses given a comment) are contained within the global
table - they may not be placed in a local symbol table.
Note:
Local Symbols
These symbols are specific to a particular program, and cannot be referenced by any other. It is recommended
that symbols are defined locally to a program unless the address is being used in multiple programs. This makes
the project more manageable and maintainable.
It is possible to define a symbol at a local level with the same name as a symbol at global level. This is
considered an override of the symbol definition. The program uses the symbol definition from its local level.
This is a powerful feature, but can be achieved by mistake, so CX-Programmer issues a warning when
validating symbols if this is done.
Network Symbols
Network symbols can be used to access I/O memory in the CPU Unit from external devices.
When a tag is used from an external device (e.g., host, PT, or Programming Device) to access I/O memory (e.g.,
tag data links using EtherNet/IP networks), the tag accesses I/O memory using a network symbol.
Network symbols are registered in the global symbol table. When the network symbol is registered, one of the
following attributes is selected for the network symbol: Publication, Input, or Output. Network symbols can be
used as global symbols when being used within a program in the PLC. Network symbols cannot be specified in
the local symbol table.
Name
Names used in
EtherNet/IP
networks must be
within 48
characters in
length.
Note:
Copying and Pasting Symbols
It is possible to cut, copy and paste symbols from one symbol table to another. It is also possible to move
symbols between tables by using drag/drop. Note that pre-set symbols can not be removed, but they may be
overridden.
CX-Programmer _Page 66
When setting a subscript for an array variable, do not specify a subscript that would cause the
resulting address to be outside of the memory area that contains the first word in the array. Be
particularly careful when using a word address or symbol to specify the subscript. Depending
on the size of the subscript, the resulting address may exceed the memory area, causing
unexpected operation.
Global symbols are only global for a particular PLC. It is not possible to share symbol
definitions between PLCs on the project workspace.
A program's local symbol table is created empty. The local symbol table can be viewed by
selecting the View Local Symbol button from the toolbar.
Data
Address/value
type
Sets the
Sets the
data type
address or
of the
value of the
global
global symbol.
symbol.
Network symbols can only be used with a CJ2H-CPU6@-EIP and CJ2M-CPU3@. In ladder
diagrams, network symbols are displayed using icons.
Network symbol
Publication
Input
Sets a
When "input" is
network
selected, the
symbol that
symbol will be
can be
used as the input
accessed
tag in the
from
EtherNet/IP data
external
link (cyclic
devices.
communications).
OMRON
Output
When "output" is
selected, the
symbol will be used
as the output tag in
the EtherNet/IP
data link (cyclic
communications).
Need help?
Do you have a question about the CX-PROGRAMMER V9 and is the answer not in the manual?