EasyManuals Logo
Home>Delta>Controller>DVP-SS2

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #150 background imageLoading...
Page #150 background image
3. Instruction Set
3-29
Floating Point Operation
The operations in DVP-PLC are conducted in BIN integers. When the integer performs division,
e.g. 40 ÷ 3 = 13, the remainder will be 1. When the integer performs square root operations, the
decimal point will be left out. To obtain the operation result with decimal point, please use floating
point instructions.
Application instructions revelant to floating point:
FLT DECMP DEZCP DMOVR DRAD
DDEG DEBCD DEBIN DEADD DESUB
DEMUL DEDIV DEXP DLN DLOG
DESQR DPOW INT DSIN DCOS
DTAN DASIN DACOS DATAN DADDR
DSUBR DMULR DDIVR
FLD FAND
FOR
Binary Floating Point
DVP-PLC represents floating point value in 32 bits, following the IEEE754 standard:
S
exponent
mantissa
8-bit 23-bit
b31
Sign bit
0: positive
1: negative
b0
Equation
( )
127;.121 =××
BM
BE
S
Therefore, the range of 32-bit floating point value is from ±2
-126
to
±2
+128
, i.e. from ±1.1755×10
-38
to
±3.4028×10
+38
.
Example 1: Represent “23” in 32-bit floating point value
Step 1: Convert “23” into a binary value: 23.0 = 10111
Step 2: Normalize the binary value: 10111 = 1.0111 × 2
4
, in which 0111 is mantissa and 4 is
exponent.
Step 3: Obtain the exponent: E B = 4 E 127 = 4 E = 131 = 10000011
2
Step 4: Combine the sign bit, exponent and mantissa into a floating point
0 10000011 01110000000000000000000
2
= 41B80000
16
Example 2: Represent “-23.0” in 32-bit floating point value
The steps required are the same as those in Example 1 and only differs in modifying the sign bit
into “1”.
1 10000011 01110000000000000000000
2
=C1B80000
16
DVP-PLC uses registers of 2 continuous No. to store a 32-bit floating point value. For example, we

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals