beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 344

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-60

0 1

2 3 4 5 6 7 8 9

D0

10

3

10

2

10

1

10

0

number key

BCD value 1-digit BCD code

BIN value

overflow

BCD value

2. As shown in the timing chart below, the 4 points X5, X3, X0, and X1 connected to the keys are entered in order

and you can obtain the result 5,301. Store the result in D0. 9,999 is the maximum value allowed to stored in D0.

Once the value exceeds 4 digits, the highest digit will overflow.

3. M12 = On when from X2 is pressed to the other key is pressed. Same to other keys.

4. When any of the keys in X0 ~ X11 is pressed, one of M10 ~ 19 will be On correspondingly.

5. M20 = On when any of the keys is pressed.

6. When X20 goes Off, the keyed-in value prior to D0 will remain unchanged, but M10 ~ M20 will all be Off.

X0

X1

X3

X5

1

2

3

4

1

2

3

4

M10

M11

M13

M15

M20

Key output

signal