Omron CPM1A Benutzerhandbuch

Seite von 176
85
7. Input the second operand (123 to specify 12.3 seconds) and press the
WRITE Key. The next program address will be displayed.
B
1
C
2
D
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).
FUN
C
2
B
1
00202
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
1
A
0
A
0
00202 MOV DATA A
           #0100
Press the WRITE Key to write the instruction to Program Memory. The input
display for the second operand will appear.
WRITE
00202 MOV DATA B
             000
Writing a Word Address
11. Input the second operand.
*EM
LR
B
1
A
0
00202 MOV DATA B
         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.
Programming Console Operations
Section 4-3