Omron CPM2B ユーザーズマニュアル

ページ / 149
6-3
Section
Programming Example
111
4. Input the counter 000.
CNT
A
0
00013
CNT          000
WRITE
00013 CNT DATA
           #0000
5. Input the SV for counter 000 (#0010 = 10 counts).
B
1
A
0
00013 CNT DATA
           #0010
WRITE
00014READ
NOP (000)
(5) Inputting the Flicker Output
1, 2, 3...
1. Input the normally open condition IR 20000.
LD
C
2
A
0
A
0
A
0
A
0
000014
LD         20000
WRITE
00015READ
NOP (000)
2. Input the normally closed AND condition T001.
(It isn’t necessary to input leading zeroes.)
AND
NOT
TIM
B
1
00015
AND NOT  TIM 001
WRITE
00016READ
NOP (000)
3. Input the OUT instruction IR 01000.
(It isn’t necessary to input leading zeroes.)
OUT
B
1
A
0
A
0
A
0
00016
OUT        01000
WRITE
00017READ
NOP (000)
Input END(01). (The display shows three digits in the function code, but only the
last two digits are input for CPM2B PCs.)
FUN
00017
FUN (0??)
A
0
B
1
00017
END (001)
WRITE
00018READ
NOP (000)
6-3-4 Checking the Program
Check the program syntax in PROGRAM mode to make sure that the program
has been input correctly.
1, 2, 3...
1. Press the CLR Key to bring up the initial display.
CLR
00000
(6) Inputting the END(001)
Instruction