Programming instructions
105
Replace Instruction will
change one instruction type to
another. The earlier
instruction is the type of
instruction to replace, and the
new instruction is the
instruction to substitute into
the program. This can be
useful for example to replace
all occurrences of INC with
INCP in a program.
Change Open/Close Contact will
change all occurrences of an open
contact to a closed contact and change
closed contacts to open. A single
command will invert the state of all
occurrences of the address. This is
useful if the type of input provided to a
machine changes or does not match
the code, such as a program which is
expecting a normally closed stop signal
and the machine is wired with a
normally open switch.
Replace Character String will replace a string of text. This command searches
in a similar fashion to the Find Character String mentioned above. It will search
for text in the ladder, comments list, or device list, and replace it with a new
character string.
Change Module Start Address
allows
the programmer to change the head
address of a special function module.
This code will search a program and
change all occurrences of the SFM
number, such as TO or FROM
instructions. By specifying a start and end
as different values, a range of SFMs can
be moved at once. Enter the start and
end SFM numbers, and enter a single
new module number. The software will
move the old addresses to a range of
equal size starting at the new module
address.