Programming Console Operations

Section 4-3

 

 

 

7.Input the second operand (123 to specify 12.3 seconds) and press the WRITE Key. The next program address will be displayed.

B C D

1 2 3 WRITE

00202READ NOP (000)

If a mistake was made inputting the operand, press the Up Arrow Key to return to display the mistaken operand and input the operand again.

Note a) Counters are input in the same basic way as timers except the CNT Key is pressed instead of the TIM Key.

b)Timer and counter SVs are input in BCD, so it isn’t necessary to press the CONT/# Key.

8.Input the third instruction (MOVE) and its operands. First input the instruc- tion by pressing the FUN Key and then the function code (21 in this case).

 

C

B

00202

FUN

2

 

1 MOV (021)

 

 

To input the differentiated version of an instruction, press the NOT Key after the function code (FUN 2 1 NOT). The “@” symbol will be displayed next to differentiated instructions. Press the NOT Key again to change back the instruction back to a non-differentiated instruction. The “@” symbol will dis- appear.

To change an instruction after it has been entered, simply scroll through the program until the desired instruction is displayed and press the NOT Key. The “@” symbol should be displayed next to the instruction.

9.Press the WRITE Key to write the instruction to Program Memory. The input display for the first operand will be displayed.

WRITE

00202 MOV DATA A

000

Writing Hexadecimal, BCD Constant

10.Input the first operand.

The operands of MOV(21) are normally word addresses, but a constant can be input by pressing the CONT/# Key first. When the CONT/# Key is pressed, the display will change to “#0000,” indicating that a constant can be entered.

CONT

B

A

A

0

00202 MOV DATA A

 

#

1

0

 

#0100

 

 

 

 

Press the WRITE Key to write the instruction to Program Memory. The input display for the second operand will appear.

00202 MOV DATA B

WRITE

000

Writing a Word Address

11.Input the second operand.

*EM

B

A

0

00202 MOV DATA B

 

 

LR

1

 

LR

10

 

 

 

Press the WRITE Key to write the instruction to Program Memory. The next program address will be displayed.

WRITE

00203READ NOP (000)

Note When the default display value is “000”, a word address can be input immediately without pressing the Shift and CH/# Keys.

85

Page 97
Image 97
Omron CPM1A operation manual Writing Hexadecimal, BCD Constant, Writing a Word Address