Ladder program – KEYENCE KV-D20 User Manual

Page 55

Advertising
background image

3. Examples of Ladder Programs

3

55

Ladder program

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. The operation starts when customized switch F1 is pressed.

3. The operation is slowed down and stopped when customized switch F2 is

pressed.

4. The operation is stopped in an emergency when customized switch F3 is

pressed.

0001

0002

0003

0004

0005

0006

0007

0008

$0061

DM1676

DW

2002

2500

2310

1

2

Parameter settings for positioning control

Use the KV-D20 to set the parameters for the simplified positioning control of the KV basic unit.

Enable changing the screen between the operator, switch comment, and lamp comment screens.

Initial setting

Always ON

0009

0010

0011

0012

0013

0014

0015

0016

0017

0018

0019

0020

0021

0022

0023

0024

0025

#31480

DM1580

DW

DM1486

LDA

#00000

CMP

#24000

ADD

DM1950

STA

#00000

DM1486

DW

$0030

DM1680

DW

#31481

DM1581

DW

$0030

DM1681

DW

#31482

DM1582

DW

$0030

DM1682

DW

#31484

DM1583

DW

$0430

DM1683

DW

2501

2502

1100

2010

2309

2002

2002

2515

2308

2504

2511

2309

RES

2515

SET

DIFU

1100

END

ENDH

3

4

5

6

7

8

Beep

Error code

User
message
display

User
message
display

Error
code

Always
ON

User
message
display

Always ON

Operating

Operating

Slow-down
stop

Start

Emergency stop

Slow-down stop

Customized lamp setting

RUNNING lamp

Preset value display

Set the display of the contents of the data memory for the positioning control.

Display a user message when positioning setting error occurs.

Use the contact comment of TM to display user messages.

Produce a beep sound when a user message is displayed.

Customized switch setting

Start positioning control operation.

kv_d20_manual.p65

08.3.10, 6:09 PM

55

Advertising