PART 1: CX-Programmer
CHAPTER 4 – Reference
Programs written for one type of PLC may not be fully compatible with another type of PLC. In this event, CX-
Programmer attempts to change addresses and mnemonic instructions from the source PLC type to equivalent
addresses and instructions on the new type of PLC. It is not possible to convert a program that contains errors.
Any addresses and instructions that cannot be directly replaced are listed in the Compile tab of the Output
window. Refer to Chapter 5 - Advanced Topics for further information.
Deleting a PLC from the Project
Use the following procedure to delete a PLC.
1, 2, 3...
When a PLC is deleted, all associated information including the Ladder program/s are deleted from the project.
Symbols
Traditionally, PLC programmers have used numbers and addresses for operands within their programs. Without
further documentation, the program becomes very difficult to read and maintain, since addresses have no
obvious meaning.
Some packages have allowed the user to give comments to the addresses, so that the program has some readable
documentation. CX-Programmer supports this feature.
However, it is more powerful to use symbolic programming, where names are used instead of addresses. A
symbol is a named variable that can have an address or number. The name of the symbol is then used during
programming. This helps the readability and maintainability of the program. For example, it is possible to
change the address of a symbol, which changes the program to use the new address automatically.
Furthermore, CX-Programmer allows symbols to be defined for either a PLC or a program. This allows a
programmer to keep the definitions of the symbols for a particular program private from other programs within
the PLC. The symbols that are to be used in more than one program (global symbols) are then defined for the
PLC. Program symbols (local symbols) are kept in a local symbol table. PLC symbols are kept in a global
symbol table for the PLC.
Data Types
In addition to an address or number, a symbol has a data type. This describes the physical format of the data that
is held within the symbol, including its size.
Since a symbol's format is known, CX-Programmer is able to monitor the contents of the symbol in the correct
way. More importantly, CX-Programmer checks that the symbol is not used in an inappropriate manner.
For example, a symbol can be defined with a data type of 'UINT_BCD', which means that the data within the
address is unsigned, single word integer of BCD format. CX-Programmer checks that the symbol is used only
for BCD type instructions, and issues a warning if it is not.
The available data types are listed below An icon is associated with each type, which indicates the internal
format of the type. The icon is shown in the symbol tables.
Name
BOOL
CHANNEL
(See note 1.)
DINT
INT
CX-Programmer _Page 60
1. Select the PLC object in the project workspace.
2. Select Delete from the context sensitive menu. A confirmation dialog is displayed.
3. Select the Yes pushbutton to remove the PLC. Select the No pushbutton to abort the
operation.
Size
Signed
1 bit
–
1 or
–
more
words
2 words
Yes
1 word
Yes
Format
Binary
Address of a logical binary value (Bit). Used
for contacts and coils.
Any
Address of a non-bit value (i.e. a single
word or longer value, unsigned or signed).
This type is used for backward
compatibility. If a non-bit address is given a
comment, the resulting symbol is given a
'CHANNEL' type.
Binary
Address of a double integer
Binary
Address of an integer
Notes
OMRON
Need help?
Do you have a question about the CX-PROGRAMMER V9 and is the answer not in the manual?
Questions and answers