Programming Example

Section 4-4

 

 

 

3. Input the normally closed condition IR 20000.

LD

 

C

A

A

A

A

00012

 

NOT

 

 

 

2

0

0

0

 

0 LD NOT

20000

 

 

 

00013READ

WRITE NOP (000)

4. Input the counter 000.

 

A

00013

 

CNT

0 CNT

 

 

000

 

 

WRITE

00013 CNT DATA #0000

5. Input the SV for counter 000 (#0010 = 10 counts).

B

A

0

00013 CNT DATA

1

 

#0010

 

 

 

 

 

 

 

00014READ

WRITE NOP (000)

(5) Inputting the Flicker Output

1, 2, 3...

1. Input the normally open condition IR 20000.

 

LD

C

A

A

A

A

000014

 

 

 

 

2

0

0

0

0

LD

20000

 

 

 

 

 

 

00015READ

 

 

 

 

 

 

WRITE

NOP (000)

 

2.Input the normally closed AND condition T001. (It isn’t necessary to input leading zeroes.)

AND

 

 

B

00015

NOT

TIM

1 AND NOT TIM 001

 

 

 

 

 

 

00016READ

WRITE NOP (000)

3.Input the OUT instruction IR 01000.

(It isn’t necessary to input leading zeroes.)

B A A A

OUT 1 0 0 0

WRITE

00016

OUT 01000

00017READ NOP (000)

(6)Inputting the END(001) Instruction

Input END(01). (The display shows three digits in the function code, but only the last two digits are input for CPM1A PCs.)

00017

FUN FUN (0??)

A B 00017

0 1 END (001)

00018READ

WRITE NOP (000)

106

Page 118
Image 118
Omron CPM1A operation manual LD not, Inputting the Flicker Output, Inputting the END001 Instruction