Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 3

SIEMENS

MATH OPERATION

SIEMENS
SIMATIC S7 1/12 March 27, 2024
SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS

Objectives

- Understand The Math Operation & How To Use It In Different Language.

SIMATIC S7 2/12 March 27, 2024


SIEMENS LTD EGYPT 2007
All Rights Reserved
SIEMENS

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

ADD_I L MW0
ADD_I
EN ENO MW4 L MW2
EN OUT
MW0 IN1 OUT MW4 +I
MW0 IN1 T MW4
MW2 IN2
MW2 IN2 ENO

SUB_I L MW6
SUB_I L MW8
EN ENO MW10
EN OUT -I
MW6 IN1 OUT MW10 MW6 T MW10
IN1
MW8 IN2 IN2 ENO
MW8

MUL_D L MD12
MUL_D
EN ENO MD18 L MD14
EN OUT *D
MD12 IN1 OUT MD18 MD12 IN1 T MD18
MD14 IN2 IN2 ENO
MD14

DIV_R DIV_R L MD22


EN ENO EN OUT MD30 L MD26
MD22 IN1 OUT MD30 MD22 IN1 /R
IN2 T MD32
MD26 MD26 IN2 ENO

SIMATIC S7 3/12 March 27, 2024


SIEMENS LTD EGYPT 2007
All Rights Reserved

You might also like