Download Print this page

Omron CPM2C Operation Manual page 116

Hide thumbs Also See for CPM2C:

Advertisement

4-4-10 Inserting and Deleting Instructions
Original Program
00100
00101
00201
00102
Insertion
1, 2, 3...
Deletion
1, 2, 3...
4. Press the SRCH Key to search for the next occurrence of the operand bit.
5. The search will continue until an END instruction or the end of Program
Memory is reached. In this case, an END instruction was reached.
This operation is used to insert or delete instructions from the program. It is pos-
sible in PROGRAM mode only.
RUN
No
To demonstrate this operation, an IR 00105 NO condition will be inserted at
program address 00206 and an IR 00103 NO condition deleted from address
00205, as shown in the following diagram.
00104
00103
01000
Delete
00105
Insert
END(01)
Follow the procedure below to insert the IR 00105 NO condition at address
00206.
1. Press the CLR Key to bring up the initial display.
2. Input the address where the NO condition will be inserted and press the
Down Arrow Key. It is not necessary to input leading zeroes.
C
A
2
0
6
3. Input the new instruction and press the INS Key.
B
A
F
AND
1
0
5
4. Press the Down Arrow Key to insert the new instruction.
Note For instructions that require more operands (such as set values),
input the operands and then press the WRITE Key.
Follow the procedure below to delete the IR 00103 NO condition at address
00205.
1. Press the CLR Key to bring up the initial display.
2. Input the address where the NO condition will be deleted and press the
Down Arrow Key. It is not necessary to input leading zeroes.
C
A
F
2
0
5
))  
  
SRCH
.   
  % & /-
SRCH
MONITOR
PROGRAM
No
OK
Address Instruction
00205
AND
Delete
00206
AND NOT
00207
OUT
00208
END(01)
 *
  
 * 
 
INS
   
  
 )
 
Section
4-4
)
Operands
00103
Insert
00104
01000
-
 -
 )
 -
 

Advertisement

loading