Omron CPM1A operation manual Instruction Search, Bit Operand Search

Models: CPM1A

1 176
Download 176 pages 15.47 Kb
Page 99
Image 99

Programming Console Operations

Section 4-3

 

 

 

4-3-7 Instruction Search

This operation is used to find occurrences of the specified instruction in the pro- gram and is possible in any mode.

RUN

MONITOR

PROGRAM

 

 

 

OK

OK

OK

The ON/OFF status of any displayed bit will be shown if the PC is in RUN or

MONITOR mode.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.

2.Input the address from which the search will begin and press the Down Arrow Key. It is not necessary to input leading zeroes.

B

A

A

00100READ

 

1

0

0

TIM

001

3.Input the instruction to be found and press the SRCH Key. In this case, the search is for OUT 01000.

In this case, the next OUT 01000 instruction is at address 200, as shown below.

 

B

A

A

0

A

OUT

1

 

0

0 SRCH

00200SRCH

OUT 01000

4.Press the Down Arrow Key to display the instruction’s operands or press the SRCH Key to search for the next occurrence of the instruction.

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 at

address 397.

Indicates the address of END instruction.

SRCH

00397SRCH

END (001)00.4KW

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

4-3-8 Bit Operand Search

This operation is used to find occurrences of the specified operand bit in the pro- gram and is possible in any mode.

RUN

MONITOR

PROGRAM

 

 

 

OK

OK

OK

The ON/OFF status of any displayed bit will be shown if the PC is in RUN or

MONITOR mode.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.

2. Input the operand address. It is not necessary to input leading zeroes.

CONT F

SHIFT

#

00000CONT SRCH

5 LD

00005

3. Press the SRCH Key to begin the search.

SRCH

00123CONT SRCH

LD 00005

4. Press the SRCH Key to search for the next occurrence of the operand bit.

SRCH

00255CONT SRCH

AND NOT

00005

87

Page 99
Image 99
Omron CPM1A operation manual Instruction Search, Bit Operand Search