KEYENCE Visual KV Series User Manual

Page 108

Advertising
background image

2.4 Instruction Details

3-84

2

Chapter 2 Instructions

Line No.

Instruction

Operand

0000

LD

2008

0001

SET

1000

0002

LDB

T001

0003

T001

#00010

0004

LD

2003

0005

LD

T001

0006

LD

2003

0007

SFT

1000 1005

0008

LD

1000

0009

OUT

0500

0010

LD

1001

0011

OUT

0501

0012

LD

1002

0013

OUT

0502

0014

LD

1003

0015

OUT

0503

0016

LD

1004

0017

OUT

0503

0018

LD

1005

0019

SET

1000

Resetting internal utility relays
When input relay No. 0000 turns ON, all internal utility relays No. 1000 through 1915
turn OFF.

SFT instruction can be substituted for RES instruction. This application can be used
to reset many relays at one time.
(All relays 3000 through 9915 can also be turned OFF at one time.)

Coding

Repeat shift circuit
Turns ON every output for a second sequentially. Sets 1000 to 2008 (ON for 1st
scan only at startup) and shifts outputs from 0500 to 0504 every second at T001.
When 1005 turns ON, 1000 is set and the same sequence as above repeats.

Coding

2003

2003

0000

SFT

D

1000

CLK

1915

RES

Line No.

Instruction

Operand

0000

LD

2003

0001

LD

2003

0002

LD

0000

0003

SFT

1000 1915

2003

T001

2008

T001

2003

SFT

D

1000

CLK

1005

RES

1000

1001

1002

1003

1004

1005

#00010

T001

1000

SET

0500

0501

0502

0503

0504

1000

SET

SFT

KVNKA Chap 02_4aP.p65

08.3.11, 11:58 AM

84

Advertising