[exponent D1 ]

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

The decimal floating point is represented by 2 continuous registers. The register of smaller number is for the constant while the register of bigger number is for the exponent.

Example: Store a decimal floating point in registers (D1, D0)

Decimal floating point = [constant D0] × 10

Constant D0 = ±1,000 ~ ±9,999

Exponent D1 = -41 ~ +35

The constant 100 does not exist in D0 because 100 is represented as 1,000 × 10-1. The range of decimal floating point is ±1175 × 10-41~ ±3402×10+35.

The decimal floating point can be used in the following instructions:

D EBCD: Convert binary floating point to decimal floating point

D EBIN: Convert decimal floating point to binary floating point

Zero flag (M1020), borrow flag (M1021), carry flag (M1022) and the floating point operation instruction

Zero flag: M1020 = On if the operational result is “0”.

Borrow flag: M1021 = On if the operational result exceeds the minimum unit.

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

Index register E, F

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

16-bit 16-bit

 

F0

 

 

E0

 

32-bit

 

 

 

 

 

 

F0

 

E0

 

 

High byte

Low byte

E and F index registers are 16-bit data registers which can be read and written.

If you need a 32-bit register, you have to designate E. In this case, F will be covered up by E and cannot be used; otherwise, the contents in E may become incorrect. (We recommend you use MOVP instruction to reset the contents in D to 0 when the PLC is switched on.)

Combination of E and F when you designate a

32-bit index register: (E0, F0), (E1, F1), (E2, F2), … (E7, F7)

3 - 22

Page 138
Image 138
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Bit 16-bit 32-bit