Variable Minimum, Maximum And Range (Minval, Maxval And Bound) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.6
Variable minimum, maximum and range (MINVAL, MAXVAL and
1.6
BOUND)
Function
The MINVAL and MAXVAL commands can be used to compare the values of two variables.
The smaller value (in the case of MINVAL) or the larger value (in the case of MAXVAL)
respectively is delivered as a result.
The BOUND command can be used to test whether the value of a test variable falls within a
defined range of values.
Syntax
<smaller value>=MINVAL(<variable1>,<variable2>)
<larger value>=MAXVAL(<variable1>,<variable2>)
<return value>=<BOUND>(<minimum>,<maximum>,<test variable>)
Significance
MINVAL:
<smaller value>:
MAXVAL:
<larger value>:
BOUND:
<minimum>:
<maximum>:
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0

1.6 Variable minimum, maximum and range (MINVAL, MAXVAL and BOUND)

Obtains the smaller value of two variables (<variable1>,
<variable2>)
Result variable for the MINVAL command
Set to the smaller variable value.
Obtains the larger value of two variables (<variable1>,
<variable2>)
Result variable for the MAXVAL command
Set to the larger variable value.
Tests whether a variable (<test variable) is within a defined
range of values.
Variable which defines the minimum value of the range of values.
Variable which defines the maximum value of the range of
values.
Flexible NC programming
75

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents