Application of difu, difd instructions – KEYENCE Visual KV Series User Manual

Page 103

Advertising
background image

2.4 Instruction Details

1

2

3-79

Chapter 2 Instructions

Application of DIFU, DIFD instructions

One-shot circuit using the differentiate instruction
When input relay 0000 turns ON/OFF, output relay 0500 and 0501 turns ON one-
shot (1 second).

Coding

Timing diagram

Alternating circuit
Every time input relay 0000 turns ON, output relay 0500 turns ON and OFF alter-
nately.

Coding

0000

1000

T001

0500

1001

T002

0501

0500

1000
DIFU

1001
DIFD

#00010

T001

0501

#00010

T002

Line No.

Instruction

Operand

0000

LD

0000

0001

DIFU

1000

0002

DIFD

1001

0003

LD

1000

0004

OR

0500

0005

ANB

T001

0006

OUT

0500

0007

TMR

001 #00010

0008

LD

1001

0009

OR

0501

0010

ANB

T002

0011

OUT

0501

0012

TMR

002 #00010

ON

ON

0000

1000

1001

0500

0501

OFF

ON

OFF

ON

OFF

ON

0000

1000
DIFU

1000

1000

0500

0500

0500

Line No.

Instruction

Operand

0000

LD

0000

0001

DIFU

1000

0002

LD

1000

0003

ANB

0500

0004

LDB

1000

0005

AND

0500

0006

ORL

0007

OUT

0500

1 s

1 s

DIFU / DIFD

KVNKA Chap 02_4aP.p65

08.3.11, 11:58 AM

79

Advertising