Omron CX-PROGRAMMER V9 - REV 12-2009 Operation Manual page 140

Table of Contents

Advertisement

PART 1: CX-Programmer
CHAPTER 3 – Project Reference
For the choice of 'Addresses', type in the address or addresses which are to be found in the 'Find What' field. A
range of addresses may be input by using a dash ('-' or minus) between two addresses. e.g. 'A100-A200' will find
addresses 'A100' 'A110' and 'A200'.
When a CHANNEL address has been entered, a choice of 'Include BOOLs' is available. If this is checked, then
bit addresses within the channel will also be matched. e.g. If a 'find' of A100 is input, and 'Include BOOLs' is
selected, then addresses 'A100', 'A100.00' and 'A100.15' will be matched.
Moving Addresses: It is possible to move a range of addresses. To do this, enter a range in the 'Find What'
field, and enter a new start address for the start of the range in the 'Replace' field. Note that a dash must be
included at the end of the 'Replace' field, indicating that a new range is given. e.g. 'Find What' of 'A100-A200'
and 'Replace With' of 'B100-' will move the range of addresses 'A100-A200' inclusive to a new start address of
'B100'. 'A100' will move to 'B100', and 'A101' will move to 'B101' etc. If the 'Include BOOLs' option is selected,
then bit addresses will be moved along with channel addresses (e.g. 'A100.0' will move to 'B100.0' etc),
otherwise bit addresses will not be affected.
Finding and Replacing Values
This search and replace operates the same as for Text but applies only to the 'Look At' choice of 'Values'.
When operating on values, it is necessary to choose whether floating point or integer numbers are to be
manipulated. Numbers used in program operands are either floating point or integer type. e.g. Numbers used in
TIM/CNT instructions to indicate the timer/counter are integers. Any operand value starting '+', '-' or containing
a decimal point is a floating point value. A value beginning in '#' is a hexadecimal integer value.
Note:
It is possible to move a range of integers to a new starting point, using the same method as 'Moving Addresses'.
Changing TIM/CNT Operands
It is possible to change the first operand of a TIM/CNT instruction easily, at the same time as changing the
address used for its status bit. To do this, use the 'Address' look-at type, and type in the address of the status
bit/s to operate on (e.g. T0001). This will also find the first operand of a timer/counter instruction (e.g. If T0001
is looked for, then '1' will also be found in the TIM instructions).
Therefore, it is possible to change a range of TIM numbers to another offset.
Finding and Replacing Symbols
It is possible to perform a replace on 'Symbol Names' within a program, but this only updates the program, so
that the new name is inserted as the operand. The replacement within the program does not affect the underlying
symbol definition.
When a symbol name is updated in the symbol table, the programs using the symbol will also be updated to use
the new name.
Note:
Switching between NO and NC Contacts
Contacts for a specified address can be switched between normally open (NO) and normally closed (NC), either
individually or collectively.
1. Select Invert Open/Closed Bit from the Edit Menu.
2. Select PLC, Program, or Current View in the Scope Field.
3. In the Invert Open/Close Bit in PLC Input Box, enter the address for which contacts are to be switched
between normally open and normally closed.
4. Click the Find Next Button to search for the next occurrence.
Click the Replace Button to switch the contact that was found between normally open and normally closed.
Click the Replace All Button to switch all contacts for the specified address between normally open and
normally closed.
CX-Programmer _Page 60
BCD operands are shown in the programming windows with a '#' on the front, but are
decimal values. When searching for a value in the find dialog, a '#' prefix means hexadecimal.
Therefore, a find of '#10' will actually match a BCD operand of '#16'. A replacement of
'#10' will actually show as '#16' back in the program display for a BCD operand.
It is not possible to change the definition of a symbol from within a program. i.e. A symbol's
comment or name cannot be changed unless the replace is happening within the symbol table.
OMRON

Advertisement

Table of Contents
loading

Table of Contents