beautypg.com

Application instructions – KEYENCE Visual KV Series User Manual

Page 358

background image

8.2 Details

3-334

8

Chapter 8 Programming Examples

0000

0001

0500

0501

0000

0001

0002

0003

0500

0000

1000

0002

1001

0003

0001

1002

0500

1000

1001

1002

Application Instructions

Application of W-UE instruction

Input sequence check
Output relay 0500 turns ON when input relay 0000 is ON and input 0001, 0002, and
0003 turn ON in this sequence.
Output relay 0500 turns OFF when input relay 0000 is OFF.

Timing diagram

Ladder diagram

Coding

Fork lift truck IN/OUT judgement
Checks the input sequence. Output relay 0500 turns ON when input relay 0000 turns
ON and then 0001 turns ON. Output relay 0501 turns ON when input relay 0001
turns ON and then 0000 turns ON.

Timing diagram

Ladder diagram

Coding

Line No. Instruction

Operand

0000

LD

0000

0001

W-UE

0001 1000

0002

LD

1000

0003

W-UE

0002 1001

0004

LD

1001

0005

W-UE

0003 1002

0006

LD

1002

0007

OUT

0500

0000

0001

1000

1000

0500

0001

0000

1001

1001

0501

Leave
warehouse

Enter
warehouse

Line No. Instruction

Operand

0000

LD

0000

0001

W-UE

0001 1000

0002

CON

0003

AND

1000

0004

OUT

0500

0005

LD

0001

0006

W-UE

0000 1001

0007

CON

0008

AND

1001

0009

OUT

0501

KVNKA Chap 08.p65

08.3.11, 0:12 PM

334