September 28, 2018SIMATIC S7
SIEMENS LTD EGYPT
1/12
MATH OPERATIONMATH OPERATION
SIEMENS
SIEMENS
September 28, 2018SIMATIC S7
SIEMENS LTD EGYPT
2/12
SIEMENS
Objectives
- Understand The Math Operation & How To Use It In Different Language.
September 28, 2018SIMATIC S7
SIEMENS LTD EGYPT
3/12
MW2
ADD_I
IN2
EN ENO
IN1MW0 OUT MW4
SUB_I
IN2
EN ENO
IN1MW6
MW8
MW10OUT
MD22
MD26
EN ENO
IN1
IN2
MD30OUT
DIV_R
MD12
MD14
MUL_D
EN ENO
IN1 MD18
IN2
OUT
MW2
ADD_I
IN2
EN
ENO
OUT
IN1MW0
MW4
MW8
SUB_I
IN2
EN
ENO
OUT
IN1MW6
MW10
MD26
DIV_R
IN2
EN
ENO
OUT
IN1MD22
MD30
MD14
MUL_D
IN2
EN
ENO
OUT
IN1MD12
MD18
L MW0
L MW2
+ I
T MW4
L MW6
L MW8
- I
T MW10
L MD22
L MD26
/ R
T MD32
L MD12
L MD14
* D
T MD18
Mathematical Operation
EN The instruction is executed if RLO is =1 at Enable input EN.
IN1, IN2 The value at IN1 is read in as the first address and the value at IN2 as the second.
OUT The result of the mathematical operation is stored at the address at output OUT.
LAD Diagram FBD Diagram STL
SIEMENS

Math operation

  • 1.
    September 28, 2018SIMATICS7 SIEMENS LTD EGYPT 1/12 MATH OPERATIONMATH OPERATION SIEMENS SIEMENS
  • 2.
    September 28, 2018SIMATICS7 SIEMENS LTD EGYPT 2/12 SIEMENS Objectives - Understand The Math Operation & How To Use It In Different Language.
  • 3.
    September 28, 2018SIMATICS7 SIEMENS LTD EGYPT 3/12 MW2 ADD_I IN2 EN ENO IN1MW0 OUT MW4 SUB_I IN2 EN ENO IN1MW6 MW8 MW10OUT MD22 MD26 EN ENO IN1 IN2 MD30OUT DIV_R MD12 MD14 MUL_D EN ENO IN1 MD18 IN2 OUT MW2 ADD_I IN2 EN ENO OUT IN1MW0 MW4 MW8 SUB_I IN2 EN ENO OUT IN1MW6 MW10 MD26 DIV_R IN2 EN ENO OUT IN1MD22 MD30 MD14 MUL_D IN2 EN ENO OUT IN1MD12 MD18 L MW0 L MW2 + I T MW4 L MW6 L MW8 - I T MW10 L MD22 L MD26 / R T MD32 L MD12 L MD14 * D T MD18 Mathematical Operation EN The instruction is executed if RLO is =1 at Enable input EN. IN1, IN2 The value at IN1 is read in as the first address and the value at IN2 as the second. OUT The result of the mathematical operation is stored at the address at output OUT. LAD Diagram FBD Diagram STL SIEMENS