PART 1: CX-Programmer
OMRON
CHAPTER 4 – Reference
CX-Programmer _Page 65
The
Expansion Table
pushbutton on the Edit Instruction dialogue displays the Expansion
Instruction Mapping dialogue and is only available to certain PLCs. This dialogue allows
certain instructions to be assigned to an expansion slot.
Select
an
Expansion Slot
, select an
Instruction
and select the
Set
pushbutton. To remove
an instruction, select the
Expansion Slot
and select the
Remove
pushbutton.
Alternatively, select the
Set Defaults
pushbutton to apply default instruction assignments.
Select the
OK
pushbutton to return to the Edit Instruction dialogue.
3. If required, use the
Instruction Help
button, which shows a help topic for the chosen
instruction.
4. Enter the instruction operands (see below).
5. Select
the
OK
pushbutton from the Edit Instruction dialogue to complete the operation.
Select the
Cancel
pushbutton to abort the operation.
Modifiers can be set for contact instructions (LD, AND, OR and NOT) – either differentiate up or differentiate
down. Contact and coil instructions OUT and OUT NOT can be set to immediate update. The availability of
modifiers depends upon the type of PLC being used.
Non-differentiated instructions execute each time they are scanned, but differentiated instructions execute only
once after their execution condition switches from OFF to ON or from ON to OFF.
Entering Operands
An instruction operand can either be entered as a symbol, address or literal value. When entering an operand in
the detailed dialog mode, the dialogue shows the valid address ranges and types of operands that are allowed.
When entering an operand, a prefix character may be used to add a meaning:
*
An indirect address (the contents of the given address are used as the address to find the data). Can be
used in front of a symbol name.
# A hexadecimal value. Also used for operands which must take a BCD number.
& 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 dialogue which 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.
Adding Comments to a Program
It is recommended that commenting be used as part of good programming practice. When
Show
Program/Section Comments
is selected on the
Ladder Information
tab of
Options
dialogue, the comment of the
program and section will be shown at the top of the ladder diagram view. Double-click the comments to edit.
Comments should be added to rungs as they are written, so that it is easier to understand their
functions when reviewing the program later. Select the
Properties
of the rung to apply a
comment to a ladder rung. Select the
Properties
of a program element
(contact/coil/instruction) to set a text comment to the element of the Ladder program.
Text can be added as comments to the Ladder program either as notes that are not compiled or as rung
comments that are compiled with the code (setting the
Use Comment Instructions
property of a PLC). Rung
comments are typically used for introducing and explaining chapters of code.
Comments can also be entered against symbol names and addresses via the elements associated edit or
properties dialogs. Symbol comments are downloaded to the Memory Card, if one is present or to allocated EM
memory.
Содержание Sysmac WS02-CXPC1-EV3
Страница 1: ...Cat No W414 E1 01 SYSMAC...
Страница 2: ......
Страница 3: ...SYSMAC WS02 CXPC1 EV3 CX Programmer Ver 3 1 Operation Manual Revised November 2002...
Страница 4: ......
Страница 6: ......
Страница 7: ...PART1 CX Programmer...
Страница 8: ......
Страница 24: ......
Страница 34: ......
Страница 106: ......
Страница 130: ......
Страница 131: ...PART 2 CX Server PLC Tools...
Страница 132: ......
Страница 136: ......
Страница 158: ......
Страница 168: ......
Страница 194: ......
Страница 206: ......
Страница 250: ......
Страница 298: ......
Страница 304: ......
Страница 305: ...PART 3 CX Server Runtime...
Страница 306: ......
Страница 310: ......
Страница 338: ......
Страница 344: ......
Страница 378: ......
Страница 384: ......
Страница 388: ......
Страница 390: ...Cat No W414 E1 01 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...