beautypg.com

2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 100

background image

2 Instructions

2-64

CP1E CPU Unit Instructions Reference Manual(W483)

Example 4: One-shot Bit

A TIM timer can be combined with OUT or OUT NOT to control how long a particular bit is ON or OFF.
In this example, CIO 2.04 will be ON for 1.5 seconds (the SV of T0001) after CIO 0.00 goes ON.

Example 5: Flicker Bit
1) Two TIM Instructions

Two TIM timers can be combined to make a bit turn ON and OFF at regular intervals while the execution
condition is ON. In this example, CIO 2.05 will be OFF for 1.0 second and then ON for 1.5 seconds as
long as CIO 0.00 is ON.

0.00

100.04

1.5 s

1.5 s

TIM

0001

#0015

10.00

10.00

0.00

10.00

T0001

100.00

10.00

100.04

100.00

100.00

(1.5seconds)

1

#0015

T0001

100.00

10.00

100.00

100.04

Operands

--

OR LD

AND NOT

Instruction

0.00

LD

TIM

LD

10.00

LD

10.00

OUT

10.00

LD

OUT

OUT

LD

100.00

AND NOT

TIM

0002

#0015

TIM

0001

#0010

100.05

2.05

0.00

T0001

T0002

0.00

100.05

1.5 s

1.0 s

1.5 s

1.0 s

(1 second)

(1.5 seconds)

LD

LD

LD

TIM

TIM

OUT

AND LD

Instruction

T0002

1

#0010

2.05

2

#0015

100.05

T0001

0.00

Operands

This manual is related to the following products: