Delta Electronics A10 User Manual page 236

Dop series hmi
Hide thumbs Also See for A10:
Table of Contents

Advertisement

Command
FADD
FSUB
FMUL
FDIV
FMOD
SIN
COS
TAN
COT
SEC
CSC
+, 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.
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
Equation
V1=FADD(V2, V3)
V1=FSUB(V2, V3)
V1=FMUL(V2, V3)
V1=FDIV(V2, V3)
V1=FMOD(V2, V3)
Var1 = SIN (Var2)
Var1 = COS (Var2)
Var1 = TAN (Var2)
Var1 = COT (Var2)
Var1 = SEC (Var2)
Var1 = CSC (Var2)
Table 4.3.1 Arithmetic command table
Description
Addition
Subtraction
Multiplication
Division
Get Remainder
Sine Function
Cosine Function
Tangent Function
Cotangent Function
Secant Function
Cosecant Function
Remark
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.
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.
4-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents