EasyManuals Logo

Siemens Simatic S7 Series System Manual

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
Page #266 background imageLoading...
Page #266 background image
Program instructions
7.8 Math
S7-200 SMART
266 System Manual, 09/2015, A5E03822230-AC
Non-fatal errors with ENO = 0
SM bits affected
0006H Indirect address
SM1.1 Overflow
SM1.0 Result of operation = zero
SM1.1 Overflow, illegal value generated during the operation, or illegal input
SM1.2 Negative result
Input / outputs
Data type
Operand
IN
REAL
1
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC, Constant
OUT
REAL
1
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
1
Real (or floating-point) numbers are represented in the format described in the ANSI/IEEE 754-1985 standard (single-
precision). Refer to that standard for more information.
7.8.4
Increment and decrement
LAD / FBD
STL
Description
INC_W
INC_DW
INCB OUT
INCW OUT
INCD OUT
The increment instructions add 1 to the input value IN and place the result into the
location at OUT.
LAD and FBD: IN + 1 = OUT
STL: OUT + 1 = OUT
Increment byte (INC_B) operations are unsigned. Increment word (INC_W) operations
are signed. Increment double word (INC_DW) operations are signed.
DEC_W
DEC_DW
DECB OUT
DECW OUT
DECD OUT
The decrement instructions subtract 1 from the input value IN and place the result into
the location at OUT.
LAD and FBD: IN - 1 = OUT
STL: OUT - 1= OUT
Decrement byte (DEC_B) operations are unsigned. Decrement Word (DEC_W) opera-
tions are signed. Decrement double Word (DEC_D) operations are signed.
Non-fatal errors with ENO = 0
SM bits affected
0006H Indirect address
SM1.1 Overflow
SM1.0 Result of operation = zero
SM1.1 Overflow, illegal value generated during the operation, or illegal input
SM1.2 Negative result

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals