DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

Mnemonic

Operands

Function

Controllers

73

SEGD

P

 

 

 

 

7-segment decoder

 

 

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 SEGD, SEGDP: 5 steps

S

 

 

 

 

* *

*

*

*

*

* * * * *

 

D

 

 

 

 

 

 

*

*

*

*

*

*

*

*

 

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: 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.

Decoding table of the 7-segment display:

X20

SEGD D10 K2Y20

Hex

Bit

Composition

 

Status of each segment

Data

combi-

of the 7-

 

 

 

 

 

 

 

 

 

 

 

 

 

displayed

 

nation

segment display

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0000

 

ON

ON

ON

ON

ON

ON

OFF

1

0001

 

OFF

ON

ON

OFF

OFF

OFF

OFF

2

0010

 

ON

ON

OFF

ON

ON

OFF

ON

3

0011

 

ON

ON

ON

ON

OFF

OFF

ON

4

0100

 

OFF

ON

ON

OFF

OFF

ON

ON

5

0101

 

ON

OFF

ON

ON

OFF

ON

ON

6

0110

a

ON

OFF

ON

ON

ON

ON

ON

7

0111

g b

ON

ON

ON

OFF

OFF

ON

OFF

8

1000

c

ON

ON

ON

ON

ON

ON

ON

9

1001

d

ON

ON

ON

ON

OFF

ON

ON

 

A

1010

 

ON

ON

ON

OFF

ON

ON

ON

B

1011

 

OFF OFF

ON

ON

ON

ON

ON

C

1100

 

ON

OFF

OFF

ON

ON

ON

OFF

D

1101

 

OFF

ON

ON

ON

ON

OFF

ON

E

1110

 

ON

OFF

OFF

ON

ON

ON

ON

F

1111

 

ON

OFF

OFF

OFF

ON

ON

ON

3 - 190

Page 306
Image 306
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T SEGD, Segdp 5 steps