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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

• Constant K:<br />

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

Decimal format.<br />

Exception:<br />

When constant K is used with bit devices X, Y, M, S, the value specifed after K indicates<br />

the groups of 4-bit unit, which forms a digit(4-bit), byte(8 bit), word(16bit), or double<br />

word(32-bit) data, e.g. K2Y10, K4M100, representing Y10 ~ Y17 and M100~M115.<br />

4. BCD (Binary Coded Decimal)<br />

BCD format takes 1 digit or 4 bits to indicate a Decimal value, so that data of consecutive 16<br />

bits indicates a 4-digit decimal value. Used mainly for reading values from DIP switches or<br />

sending data to 7-segement displays<br />

5. Hexadecimal Number, HEX<br />

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

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

• Constant H:<br />

Hexadecimal value in PLC operation is attached with an “H”, e.g. H100 indicates the value<br />

100 in Hex format.<br />

Reference Table:<br />

Binary Octal Decimal (K) BCD Hexadecimal (H)<br />

(BIN) (OCT) (DEC) (Binary Code Decimal) (HEX)<br />

For PLC<br />

internal<br />

operation<br />

No. of X, Y<br />

relay<br />

Costant K, No. of<br />

registers M, S, T, C,<br />

D, E, F, P, I devices<br />

For DIP Switch and 7-<br />

segment display<br />

Constant H<br />

0000 0 0 0000 0<br />

0001 1 1 0001 1<br />

0010 2 2 0010 2<br />

0011 3 3 0011 3<br />

0100 4 4 0100 4<br />

0101 5 5 0101 5<br />

0110 6 6 0110 6<br />

0111 7 7 0111 7<br />

1000 10 8 1000 8<br />

1001 11 9 1001 9<br />

1010 12 10 0000 A<br />

1011 13 11 0001 B<br />

1100 14 12 0010 C<br />

2-16

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

Saved successfully!

Ooh no, something went wrong!