Programming Console Operations

Section 4-3

 

 

 

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.

Indicates the address of END instruction.

SRCH

00397CONT SRCH END (001)00.4KW

Indicates the amount used by the user program in units of 0.1 Kwords.

4-3-9 Inserting and Deleting Instructions

This operation is used to insert or delete instructions from the program. It is pos- sible in PROGRAM mode only.

RUN

MONITOR

PROGRAM

 

 

 

No

No

OK

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.

Original Program

00100 00101

00201 00102

00103

Delete

00104

00105

Insert

01000

END(01)

Delete

Address Instruction

Operands

00205

AND

00103

00206

AND NOT

00104

00207

OUT

01000

00208

END(01)

-

Insert

Insertion

Follow the procedure below to insert the IR 00105 NO condition at address

 

00206.

 

 

 

 

 

 

1, 2, 3...

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

6

00206READ

 

 

 

 

2

0

AND NOT

00104

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Input the new instruction and press the INS Key.

AND

B

A

F

 

00206INSERT?

 

 

 

 

1

0

5

INS

AND

00105

4. Press the Down Arrow Key to insert the new instruction.

 

00207INSERT END

 

 

AND NOT

00104

 

 

 

 

 

 

 

 

 

Note For instructions that require more operands (such as set values),

 

input the operands and then press the WRITE Key.

Deletion

Follow the procedure below to delete the IR 00103 NO condition at address

 

00205.

 

 

 

1, 2, 3... 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

00205READ

 

 

 

2

0

5

AND

00103

 

 

 

 

88

Page 100
Image 100
Omron CPM1A Inserting and Deleting Instructions, Insertion, 00207INSERT END Not, Deletion, Original Program