Delta Electronics DOP-A Series Network Card User Manual


 
Chapter 4 Macro Function|ScrEdit Software User Manual
Revision Apr. 30th, 2007, 2007PDD23000002 4-15
Command Equation Description Remark
FADD
V1
=FADD(
V2
,
V3
)
Addition
FSUB
V1
=FSUB(
V2
,
V3
)
Subtraction
FMUL
V1
=FMUL(
V2
,
V3
)
Multiplication
FDIV
V1
=FDIV(
V2
,
V3
)
Division
Floating Point
Operation
FMOD
V1
=FMOD(
V2
,
V3
)
Get Remainder
Floating Point Operation
is the operation of
signed 32 Bit data.
V1 can be internal
memory only.
V2 and V3 can be
internal memory or
constant.
SIN
Var1 = SIN (Var2)
Sine Function
COS
Var1 = COS (Var2)
Cosine Function
TAN
Var1 = TAN (Var2)
Tangent Function
COT
Var1 = COT (Var2)
Cotangent Function
SEC
Var1 = SEC (Var2)
Secant Function
Trigonometric Function
Operation
CSC
Var1 = CSC (Var2)
Cosecant Function
Trigonometric Function
Operation is the
operation of signed 32
Bit data.
V1 can be internal
memory only.
V2 and V3 can be
internal memory or
constant.
Table 4.3.1 Arithmetic command table
+, FADD
Addition
Equation: V1 = V2 + V3
V1 = FADD(V2, V3) (Signed DW)
Perform the addition on V2 and V3, and store the addition result in V1.
Example:
The value contained within the internal memory address #2 plus 1
$2 = $2 + 1
The values contained within the internal memory address #1 and #2 are combined and the total is
stored in the address #3.
$3 = $2 + $1
The value contained within the internal memory address #4 plus 1.9
$4 = FADD($4, 1.9) (Signed DW)
The floating point values contained within the internal memory address #4 and #6 are combined and
the total is stored in the address #8.
$8 = FADD($4, $6) (Signed DW)
-, FSUB
Subtraction
Equation: V1 = V2 - V3
V1 = FSUB(V2, V3) (Signed DW)
Perform the subtraction of V2 and V3, and store the subtraction result in V1.