beautypg.com

Delta DVP-ES2 User Manual

Page 306

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 1 9 0

API Mnemonic Operands

Function

73

SEGD P

7-segment decoder

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

*

*

*

*

*

*

*

*

SEGD, SEGDP: 5 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: Source device for decoding D: Output device after decoding

Explanations:

The instruction decodes the lower 4 bits (Hex data: 0 to 9, A to F) of source device S and stores the

decoded data in lower 8 bits of D so as to form a 7-segment display.

Program Example:

When X20 = ON, the content of the lower 4 bits (b0~b3) of

D10 will be decoded into the 7-segment display. . The

decoded results will be stored in Y20~Y27. If the source

data exceeds 4bits, still only lower 4 bits will be decoded.

X20

SEGD

D10

K2Y20

Decoding table of the 7-segment display:

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

1111

1110

1101

1100

1011

1010

1001

1000

0111

0110

0101

0100

0011

0010

0001

0000

ON

OFF

ON

ON

ON

ON

ON

OFF

OFF

OFF

OFF

OFF

ON

ON

ON

ON

ON

ON

OFF

OFF

ON

ON

ON

ON

ON

ON

OFF

OFF

OFF

OFF

OFF

ON

ON

ON

ON

ON

OFF ON

ON

OFF

ON

ON

OFF

ON

ON

ON

ON

ON

ON

ON

ON

OFF

OFF

OFF

ON

ON

ON

ON

ON

ON

ON

ON

ON

ON

ON

ON

ON

OFF

ON

ON

OFF OFF

ON

ON

ON

OFF

ON

ON

ON

OFF

ON

OFF OFF

ON

ON

ON

ON

OFF OFF

OFF

a

c

b

d

g

ON

ON

ON

ON

ON

ON

OFF

ON

ON

ON

OFF

ON

OFF

OFF ON

ON

ON

ON

ON

ON

ON

ON

Hex

Bit

combi-

nation

Composition

of the 7-

segment display

Status of each segment

Data

displayed

This manual is related to the following products: