PART 1: CX-Programmer
OMRON
CHAPTER 4 – Reference
CX-Programmer _Page 83
& A decimal or BCD-format number.
+ or - A signed, decimal, floating point value.
Note that a symbol can hold a value – the NUMBER data type is used.
It is possible to search for a symbol from the operand box by pressing the ‘…’ button to its right (or by pressing
F2). This presents a dialog that allows a symbol to be selected or created.
Symbol Information
Whenever CX-Programmer finds a symbol associated with the typed operand, (except number types) symbol
information is displayed in this box. The name, address/value and comment are shown, together with the data
type of the symbol and its scope, global or local.
Specifying Address Offsets
When using a CJ2 CPU Unit, offsets can be set for addresses when specifying operand addresses for input
conditions, output instructions, or special instructions in ladder diagrams. The offset is placed into brackets [ ]
after the address being offset. The offset can be an integer or an address or symbol that specifies integer data.
Offsets can be set be set for bit addresses and word addresses.
The format to specify an offset is as follows:
A[B]
Offset
Address being offset
The above example specifies that address (A) is offset by the value specified by the offset (B) (see note). If the
address being offset is a bit address, then the offset specifies the number of bits. If the address being offset is a
word address, then the offset specifies the number of words.
An array variable that uses a word address or symbol to specify the subscript cannot be used as an operand in an
instruction for which immediate refreshing is specified.
Note:
Observe the following precaution when specifying a symbol or word address for an offset in a
ladder program.
When using a symbol or address to indirectly specify an offset for a memory address, be sure
that the resulting address is not outside the memory area that contains original address. For
example, use a symbol comparison instruction to ensure that processing is performed only
when the memory area is not exceeded. If the final address (i.e., the original address plus the
specified offset) exceeds the memory area, data in another memory area will be read or
written, possibly resulting in unexpected operation.
Address Incremental Copying
Overview
Address Incremental Copying makes it easy to make multiple copies of a ladder program section when the only
differences between multiple program sections are the addresses. By specifying the offsets for the addresses in
the copied program section, the specified number of program sections can be created with the addresses
incremented.
Symbol names and I/O comments will be created automatically.
Operation
In Ladder View, select the program section that is to be copied. Select
Address Incremental Copy
from the Edit
Menu to display the dialog box. Input the data in the dialog box, and press the
Paste
Button. A program section
will be created with the addresses incremented automatically, and it will be inserted in the next program
location.
Example
In this example, two copies are made of the following program section, bit offset is set to 16, the word (CH)
offset is set to 10, and then the program section is pasted.
Содержание 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: ......