PART 1: CX-Programmer
OMRON
CHAPTER 4 – Reference
CX-Programmer _Page 95
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.
1, 2, 3…
1. Select the program section to be copied.
2. Select
Address Incremental Copy
from the Edit Menu.
The Address Incremental Copy Dialog Box will be displayed.
3. In the Offset Field, input 16 in the Bit Box and 10 in the CH Box.
Содержание CX-Programmer 9
Страница 1: ...Cat No W446 E1 10 CX Programmer Ver 9 SYSMAC WS02 CXPC_ V9 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC WS02 CXPC V9 CX Programmer Ver 9 Operation Manual Revised December 2009...
Страница 4: ......
Страница 6: ......
Страница 19: ...CX Programmer_Page xvi Unit Versions and Lot Numbers...
Страница 30: ......
Страница 31: ...PART 1 CX Programmer...
Страница 32: ......
Страница 100: ......
Страница 120: ......
Страница 198: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 118...
Страница 224: ...PART 1 CX Programmer Keyboard Shortcuts CX Programmer OMRON CX Programmer _Page 144...
Страница 240: ......
Страница 241: ...PART 2 CX Server PLC Tools...
Страница 242: ......
Страница 250: ......
Страница 256: ......
Страница 268: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Страница 286: ......
Страница 338: ......
Страница 382: ......
Страница 414: ......
Страница 430: ......
Страница 436: ......
Страница 437: ...PART 3 CX Server Runtime...
Страница 438: ......
Страница 482: ......
Страница 488: ......
Страница 504: ......
Страница 530: ......
Страница 540: ......
Страница 541: ......
Страница 542: ......