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>SA2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

• The decimal floating point is represented by 2 continuous registers. The register of smaller<br />

number is for the constant while the register of bigger number is for the exponent.<br />

Example: Store a decimal floating point in registers (D1, D0)<br />

Decimal floating point = [constant D0] × 10<br />

Constant D0 = ±1,000 ~ ±9,999<br />

Exponent D1 = -41 ~ +35<br />

[exponent D1 ]<br />

The constant 100 does not exist in D0 because 100 is represented as 1,000 × 10 -1 . The range of<br />

decimal floating point is ±1175 × 10 -41 ~ ±3402×10 +35 .<br />

• The decimal floating point can be used in the following instructions:<br />

D EBCD: Convert binary floating point to decimal floating point<br />

D EBIN: Convert decimal floating point to binary floating point<br />

• Zero flag (M1020), borrow flag (M1021), carry flag (M1022) and the floating point operation<br />

instruction<br />

Zero flag: M1020 = On if the operational result is “0”.<br />

Borrow flag: M1021 = On if the operational result exceeds the minimum unit.<br />

Carry flag: M1022 = On if the absolute value of the operational result exceeds the range of use.<br />

Index register E, F<br />

The index registers are 16-bit registers. There are 16 devices including E0 ~ E7 and F0 ~ F7.<br />

• E and F index registers are 16-bit data registers<br />

which can be read and written.<br />

16-bit<br />

F0<br />

16-bit<br />

E0<br />

• If you need a 32-bit register, you have to designate<br />

E. In this case, F will be covered up by E and<br />

cannot be used; otherwise, the contents in E may<br />

32-bit<br />

F0 E0<br />

High byte Low byte<br />

become incorrect. (We recommend you use MOVP<br />

instruction to reset the contents in D to 0 when the<br />

PLC is switched on.)<br />

• Combination of E and F when you designate a<br />

32-bit index register: (E0, F0), (E1, F1), (E2, F2), …<br />

(E7, F7)<br />

3-22

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

Saved successfully!

Ooh no, something went wrong!