![background image](http://html1.mh-extra.com/html/omron/cx-programmer-v9/cx-programmer-v9_operation-manual_744204143.webp)
PART 1: CX-Programmer
CHAPTER 4 – Reference
OMRON
CX-Programmer _Page 60
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…
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.
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 Size
Signed
Format
Notes
BOOL
1 bit
–
Binary
Address of a logical binary value (Bit). Used
for contacts and coils.
CHANNEL
(See note 1.)
1 or
more
words
–
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.
DINT
2 words
Yes
Binary
Address of a double integer
INT
1 word
Yes
Binary
Address of an integer
Содержание CX-PROGRAMMER V9
Страница 1: ...Cat No W446 E1 12 CX Programmer Ver 9 CXONE AL_C V4 AL_D V4 SYSMAC OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC CX Programmer Ver 9 CXONE AL C V4 AL D V4 Operation Manual Revised July 2010...
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 33: ...PART 1 CX Programmer...
Страница 34: ......
Страница 91: ......
Страница 111: ......
Страница 191: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 108...
Страница 217: ......
Страница 233: ......
Страница 234: ...PART 2 CX Server PLC Tools...
Страница 235: ......
Страница 243: ......
Страница 249: ......
Страница 261: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Страница 280: ......
Страница 333: ......
Страница 377: ......
Страница 409: ......
Страница 430: ......
Страница 431: ...PART 3 CX Server Runtime...
Страница 432: ......
Страница 476: ......
Страница 482: ......
Страница 498: ......
Страница 524: ......
Страница 534: ......
Страница 535: ......
Страница 536: ......