2. Programming Concepts

2.6PLC Bits, Nibbles, Bytes, Words, etc

For different control purposes, there are five types of values inside DVP-PLC for executing the operations.

Numeric

Description

 

 

Bit

Bit is the basic unit of a binary number system. Range is 0 or 1

 

 

Nibble

Consists of 4 consecutive bits, e.g. b3~b0. Range 0 ~ 9 in Decimal or 0~F in

Hex

 

Byte

Consists of 2 consecutive nibbles, e.g. b7~b0. Range 00 ~ FF in Hex

 

 

 

Word

Consists of 2 consecutive bytes, e.g. b15~b0. Range 0000 ~ FFFF in Hex

 

 

 

Double Word

Consists of 2 consecutive words, e.g. b31~b1. Range 00000000 - FFFFFFFF

in Hex

 

 

 

Bit, nibble, byte, word, and double word in a binary system:

 

 

W1

DW

 

W0

 

 

 

Double Word

 

 

 

 

 

 

 

 

 

 

 

 

 

Word

 

 

 

 

 

 

 

 

BY3

 

BY2

 

BY1

 

BY0

 

Byte

NB7

NB6

NB5

NB4

NB3

NB2

NB1

NB0

 

 

Nibble

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

 

2.7Binary, Octal, Decimal, BCD, Hex

For fulllfilling different kinds of internal manipulation, DVP-PLC appies 5 foramts of number systems. Each number system has its specific purpose and function described as below.

1.Binary Number, (BIN)

PLC internally calculates, operates, and stores the value in Binary format.

2.Octal Number, (OCT)

The external I/O points of DVP-PLC are numbered in octal format.

e.g.

External inputs: X0X7, X10X17, …, X377. (No. of device)

External outputs: Y0Y7, Y10Y17, …, Y377. (No. of device)

3.Decimal Number, (DEC)

DVP-PLC appies decimal operation in situations below:

zSet value for timers and counters, e.g. TMR C0 K50. (K value)

zNo. of S, M, T, C, D, E, F, P, I devices, e.g. M10, T30. (No. of device)

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

2 - 1 5

Page 47
Image 47
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual PLC Bits, Nibbles, Bytes, Words, etc, Binary, Octal, Decimal, BCD, Hex