beautypg.com

Delta DVP-ES2 User Manual

Page 299

background image

3 . I n s t r u c t i o n S e t

3 - 1 8 3

API Mnemonic

Operands

Function

70

D

TKY

Ten key input

Controllers

ES2/EX2 SS2 SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y

M S K H KnX KnY KnM KnS T C D E F

S *

*

*

*

D

1

*

*

*

*

*

*

*

*

D

2

*

* *

TKY: 7 steps

DTKY: 13 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S: Start device for key input (occupies 10 consecutive devices) D

1

: Device for storing keyed-in

value D

2

: Output signal (occupies 11 consecutive devices)

Explanations:

157. This instruction designates 10 external input points (corresponding to decimal numbers 0 ~ 9)

starting from S, connecting to 10 keys respectively. Input point started from S triggers

associated device in D

2

and D

2

maps to a decimal value, a 4-digit decimal value 0~9,999

(16-bit instruction) or an 8-digit value 0~99,999,999 (32-bit instruction). The decimal value is

stored in D

1.

158. There is no limitation on the times of using this instruction in the program, however only one

instruction is allowed to be executed at the same time.

Program Example:

159. Connect the 10 input points starting from X30 to the 10 keys (0 ~ 9). When X20 = ON, the

instruction will be executed and the key-in values will be stored in D0 in BIN form. The key

status will be stored in M10 ~ M19.

X20

TKY

X30

D0

M10

ELC

0

1

3

2

4

5

6

7

8

9

X33

X32

X31

X30

S/S

X36

X35

X34

X40

X37

X41

+24V

24G

This manual is related to the following products: