Visual kv series – KEYENCE Visual KV Series User Manual

Page 177

Advertising
background image

Chapter 4 KV-D20 Operator Interface Panel

1-153

1

4

Visual KV

Series

1.

Turn on Bits 0, 5, and 6 of DM1676 ($0061) to enable changing the screen between the
operator, switch comment, and lamp comment screens.

2.

With the MEMSW instruction, turn on SW3-3 of the memory switch ($0800) to set the 24-
bit high-speed counter.

3.

Set the high-speed counter in double multiplication mode and reset high-speed counter
0.

4.

High-speed counter 0 starts when relay 1000 is turned on. Customized lamp 1 illuminates
while the high-speed counter is operating.

5.

The ON/OFF status of relay 1000 is switched every time customized switch F1 is
pressed. (Alternating circuit)

6.

The current value of high-speed counter 0 and the outputs of comparators 0 and 1 are
reset when customized switch F2 is pressed.

7.

Customized lamp 2 illuminates when comparator 0 turns on.

8.

Customized lamp 3 illuminates when comparator 1 turns on.

9.

A flicker circuit is used to flash the titles.
When relay 1000 is turned on, assign relay 15000 to the device displayed on the first line
(specify "#55000" in DM1580), and set the attributes so that only the comment is dis-
played (Bit 8: ON) (DM1680 = $0100). Continue this operation for 500 ms.
After 500 ms, assign relay 15001 to the device displayed on the first line (specify
"#55001" in DM1580), and set the attributes so that only the comment is displayed (Bit 8:
ON) (DM1680 = $0100). Continue this operation for 1 second.
Repeat the operations above to flash the title.

10. Assign CTH0 to the device displayed on the second line (specify "#23000" in DM1581).

Set the attributes so that the decimal point position is "2" ($0002), the number of spaces
at the right end is "2" ($0020), a sign is used (Bit 9: ON), and changing the value is
disabled (Bit 15: ON) (DM1681 = $8222).

4.3 Examples of Ladder Programs

0011

0012

0013

0014

0015

0016

0017

0018

0019

0020

0021

0022

0023

0024

0025

0026

0027

ENDH

END

1000

2500

2003

2501

CTC0

CTC1

1000

T001

T000

2008

#23000

DM1581

DW

$8222

DM1681

DW

#22000

DM1582

DW

$0222

DM1682

DW

#22001

DM1583

DW

$0222

DM1683

DW

#55000

DM1580

DW

$0100

DM1680

DW

T000

#00005

#55001

DM1580

DW

$0100

DM1680

DW

T001

#00010

2505

2506

CTH0

RES

CTC1

RES

CTC0

RES

SFT

1000

D

1000

CLK

RES

5

6

7

8

9

10

ON for
1 scan

Always OFF

Alternating switch

Reset

High-speed counter comparator setting

Flashing title display

Use the comments of internal utility relays 15000 and 15001 as titles.

Display the current and preset values of high-speed
counter 0 (2-words with a sign and two decimal places)

KVHKA Chap 04.p65

08.3.11, 11:13 AM

153

Advertising