Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Tky

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 299
Image 299

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Instruction

Set

API

Mnemonic

 

Operands

 

 

Function

 

 

Controllers

 

70

D

 

TKY

 

 

 

 

Ten key input

 

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

 

 

 

 

SE

 

 

Type

Bit Devices

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

TKY: 7 steps

 

 

S

 

*

*

*

*

 

 

 

 

 

 

 

 

 

DTKY: 13 steps

 

 

D1

 

 

 

 

 

 

*

*

*

*

*

*

*

*

 

 

D2

 

 

*

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

16-bit

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

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

D1: Device for storing keyed-in

value D2: 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 D2 and D2 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 D1.

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

0

1

2

3

4

5

6

7

8

9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

24G

+24V

S/S

X30

X31

X32

X33

X34

X35

X36

X37

X40

X41

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ELC

3 - 1 8 3

Page 299
Image 299
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Tky