User manual
Table Of Contents
- Cover
- Preface
- Table of Contents
- Chapter 1 Introduction
- Chapter 2 Creating and Editing Screens- 2.1 ScrEdit (Screen Editor) Setup
- 2.2 How to Start ScrEdit
- 2.3 Menu Bar and Toolbar (File)
- 2.4 Menu Bar and Toolbar (Edit)
- 2.5 Menu Bar and Toolbar (View)
- 2.6 Menu Bar and Toolbar (Element)
- 2.7 Menu Bar and Toolbar (Screen)
- 2.8 Menu Bar and Toolbar (Tools)
- 2.9 Menu Bar and Toolbar (Options)
- 2.10 Menu Bar and Toolbar (Window)
- 2.11 Menu Bar and Toolbar (Help)
 
- Chapter 3 Element Function
- Chapter 4 Macro Function
- Chapter 5 Control Block and Status Block
- Chapter 6 Internal Memory
- Chapter 7 Example Explanation
- Appendix A Specifications and Installation
- Appendix B USB Flash Drive Function
- Appendix C Main Menu Operation of HMI System

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. 










