EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.8 Math
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
261
Integer operations from the LAD example
IN1
IN2
OUT
Add data
40
+
60
=
100
Data address
AC1
AC0
AC0
Multiply data
40
*
20
=
800
Data address
AC1
VW100
VW100
Divide data
4000
/
40
=
100
Data address
W200
VW10
VW200
Example: Real math instructions
LAD
STL
Network 1
LD I0.0
+R AC1, AC0
*R AC1, VD100
/R VD10, VD200
Real number operations from the LAD example
IN1
IN2
OUT
Add data
4000.0
+
6000.0
=
10000.0
Data address
AC1
AC0
AC0
Multiply data
400.0
*
200.0
=
80000.0
Data address
AC1
VD100
VD100
Divide data
4000.0
/
41.0
=
97.5609
Data address
VD200
VD10
VD200

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals