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

zConstant K:

Decimal value in PLC operation is attached with an “K”, e.g. K100 indicates the value 100 in Decimal format.

Exception:

When constant K is used with bit devices X, Y, M, S, the value specifed after K indicates the groups of 4-bit unit, which forms a digit(4-bit), byte(8 bit), word(16bit), or double word(32-bit) data, e.g. K2Y10, K4M100, representing Y10 ~ Y17 and M100~M115.

4.BCD (Binary Coded Decimal)

BCD format takes 1 digit or 4 bits to indicate a Decimal value, so that data of consecutive 16 bits indicates a 4-digit decimal value. Used mainly for reading values from DIP switches or sending data to 7-segement displays

5.Hexadecimal Number, HEX

DVP-PLC appies Hexadecimal operation in situations below:

zFor use of operand in API instructions, e.g. MOV H1A2B D0(H value)

zConstant H:

Hexadecimal value in PLC operation is attached with an “H”, e.g. H100 indicates the value 100 in Hex format.

Reference Table:

Binary

Octal

Decimal (K)

BCD

(BIN)

(OCT)

(DEC)

(Binary Code Decimal)

 

 

 

 

For PLC

No. of X, Y

Costant K, No. of

For DIP Switch and 7-

internal

registers M, S, T, C,

relay

segment display

operation

D, E, F, P, I devices

 

 

0000

0

0

0000

 

 

 

 

0001

1

1

0001

 

 

 

 

0010

2

2

0010

 

 

 

 

0011

3

3

0011

 

 

 

 

0100

4

4

0100

 

 

 

 

0101

5

5

0101

 

 

 

 

0110

6

6

0110

 

 

 

 

0111

7

7

0111

 

 

 

 

1000

10

8

1000

 

 

 

 

1001

11

9

1001

 

 

 

 

1010

12

10

0000

 

 

 

 

1011

13

11

0001

 

 

 

 

1100

14

12

0010

 

 

 

 

Hexadecimal (H)

(HEX)

Constant H

0

1

2

3

4

5

6

7

8

9 A B C

2 - 16

Page 48
Image 48
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Bcd, Bin Oct Dec, Hex