17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2. Programming Concepts<br />

2.6 PLC Bits, Nibbles, Bytes, Words, etc<br />

For different control purposes, there are five types of values inside <strong>DVP</strong>-PLC for executing the<br />

operations.<br />

Numeric<br />

Description<br />

Bit Bit is the basic unit of a binary number system. Range is 0 or 1<br />

Nibble<br />

Byte<br />

Word<br />

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

Hex<br />

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

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

Double Word<br />

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

in Hex<br />

Bit, nibble, byte, word, and double word in a binary system:<br />

DW<br />

W1<br />

W0<br />

Double Word<br />

Word<br />

BY3 BY2 BY1 BY0<br />

Byte<br />

NB7<br />

NB6<br />

NB5<br />

NB4<br />

NB3<br />

NB2<br />

NB1<br />

NB0<br />

Nibble<br />

Bit<br />

2.7 Binary, Octal, Decimal, BCD, Hex<br />

For fulllfilling different kinds of internal manipulation, <strong>DVP</strong>-PLC appies 5 foramts of number systems.<br />

Each number system has its specific purpose and function described as below.<br />

1. Binary Number, (BIN)<br />

PLC internally calculates, operates, and stores the value in Binary format.<br />

2. Octal Number, (OCT)<br />

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

e.g.<br />

External inputs: X0~X7, X10~X17, …, X377. (No. of device)<br />

External outputs: Y0~Y7, Y10~Y17, …, Y377. (No. of device)<br />

3. Decimal Number, (DEC)<br />

<strong>DVP</strong>-PLC appies decimal operation in situations below:<br />

• Set value for timers and counters, e.g. TMR C0 K50. (K value)<br />

• No. of S, M, T, C, D, E, F, P, I devices, e.g. M10, T30. (No. of device)<br />

• For use of operand in API instructions, e.g. MOV K123 D0. (K value)<br />

2-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!