beautypg.com

Example of displaying messages with titles, Ladder program – KEYENCE KV-D20 User Manual

Page 53

background image

3. Examples of Ladder Programs

3

53

Example of displaying messages with titles

Display messages with titles.
The current values of C000 and C001 are displayed with comments.
The comments of relays 10000 and 10001 are used as titles.
Switching between screens is disabled.

Operator screen

Ladder program

1. Turn on Bit 0 of DM1676 ($0001) to allow the screen to be changed only to the

operator screen.

2. Assign relay 10000 to the device displayed on the first line (specify "#50000" in

DM1580) and set the attributes so that only the comment is displayed (Bit 8:
ON) (DM1680 = $0100).
Assign relay 10001 to the device displayed on the fourth line (specify "#50001"
in DM1583) and set the attributes so that only the comment is displayed (Bit 8:
ON).

0001

0002

0003

0004

0005

0006

0007

0008

2002

0000

0002

C000

#65535

0001

$0001

DM1676

DW

C001

#00010

0003

1

0009

0010

0011

0012

0013

0014

0015

2002

2002

#50000

DM1580

DW

$0100

DM1680

DW

#50001

DM1583

DW

$0100

DM1683

DW

#21000

DM1581

DW

$D050

DM1681

DW

#21001

DM1582

DW

$D050

DM1682

DW

ENDH

END

2

3

F1

F2

F3

F4

1

2

3

4

*MILK CARAMEL NO 1*
PRODUCED:

470PACKS

DEFECTIVE:

12PACKS

ABCDE CO.

To display product information

Always ON

Display the current values of the counters and disable changes.

Always ON

Use the comments for internal utility relays 10000 and 10001 as titles.

Display titles.

Counter

Always ON

Initial setting

Switching to other modes is disabled. The screen cannot be changed.

Display values of counters 0 and 1 with titles.

kv_d20_manual.p65

08.3.10, 6:09 PM

53