Siemens SIMATIC S7 System Manual page 116

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Programming instructions
6.1 Basic instructions
ENO status
Absolute Value instruction
Note
The IN and OUT parameters must be the same data type.
Parameter
IN
OUT
ENO status
MIN and MAX instructions
116
Description
1
No error
0
The resulting value is outside the valid number range of the selected data type.
Example for SInt: INC (127) results in -128 which exceeds the data type maximum.
You use the ABS instruction to get the absolute value of a signed integer
or real number at parameter IN and store the result in parameter OUT.
Click below the box name and select a data type from the drop-down
menu.
Data type
SInt, Int, DInt, Real, LReal
SInt, Int, DInt, Real, LReal
Description
1
No error
0
The math operation result value is outside the valid number range of the selected
data type.
Example for SInt: ABS (-128) results in +128 which exceeds the data type maximum.
You use the MIN (minimum) and MAX (maximum) instructions as follows:
 MIN compares the value of two parameters IN1 and IN2 and assigns
the minimum (lesser) value to parameter OUT.
 MAX compares the value of two parameters IN1 and IN2 and assigns
the maximum (greater) value to parameter OUT.
Click below the box name and select a data type from the drop-down
menu.
Description
Math operation input
Math operation output
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents