Programming Example

Section 4-4

 

 

 

(3)Inputting the Two-second Timer

1, 2, 3...

LD

3. Input the 1-second timer T001.

 

B

00006

 

TIM

1 TIM

 

 

001

 

 

00006 TIM DATA

WRITE

#0000

4. Input the SV for T001 (#0010 = 1.0 s).

B A 00006 TIM DATA

1

0

#0010

00007READ

WRITE NOP (000)

The following key operations are used to input the 2-second timer. 1. Input the normally open condition IR 20000.

C

A

A

A

A

0

00007

 

2

0

0

0

 

LD

20000

00008READ

WRITE NOP (000)

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

AND

 

 

C

00008

NOT

TIM

2 AND NOT TIM 002

 

 

 

 

 

 

00009READ

WRITE NOP (000)

3. Input the 2-second timer T002.

 

C

00009

 

TIM

2 TIM

 

 

002

 

 

00009 TIM DATA

WRITE

#0000

4. Input the SV for T002 (#0020 = 2.0 s).

C A 00009 TIM DATA

2

0

#0020

00010READ

WRITE NOP (000)

(4) Inputting the 10-count Counter

1, 2, 3...

LD

The following key operations are used to input the 10-count counter.

1. Input the normally open condition IR 20000.

C

A

A

A

A

0

00010

 

2

0

0

0

 

LD

20000

00011READ

WRITE NOP (000)

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

AND

 

B

00011

 

TIM

1 AND

 

 

 

TIM 001

 

 

 

00012READ

WRITE NOP (000)

105

Page 117
Image 117
Omron CPM1A operation manual Inputting the Two-second Timer, Inputting the 10-count Counter