7.8.13.1.  Type " Value range variable"

The following explains how to create a value range variable [Value range variable].[90]

  1. Create the desired variable under Name.[91]

  2. Under Status, select the Value range variable option.

  3. Entry in the input field under Formula [Equation]:

    There are various subtypes of the value range variable [Value range variable] type. The following table shows the syntax to be used:

    1. Value range

      Kind

      Expression

      Explanation

      Range definition with included limits

      [10:100]

      square brackets

      A range from 10 to 100 is defined..

      Range definition without included limits

      ($A1.:90)

      round brackets

      A range from A1 to 90 is defined, where A1 is the variable name.

      Range definition with additional default value 100,[1:6000]

      A range from 1 to 6000 is defined. Default value is 100.

      The value range is displayed in PARTdataManager under Value ranges, the default value is also displayed under Discrete values.

      A range from 1 to 6000 is defined. Default value is 100.Example:

      IF( FORM1 .EQ. 1) THEN 
      L1 ='100,[1:6000]'
      ELSE L1 ='100,[1:2000]'
      ENDIF

      Dependent from another variable value, different value ranges can be specified. See Section 7.8.13.4, “Type "Value range variable " combined with IF condition (characteristic algorithm ) ”.

      Range definition with step width

      [100:300/50]

      square brackets

      no backslash!

      A range from 100 to 300 is defined. The step width is 50.

    2. Discrete values

      Kind

      Expression

      Explanation

      Enumeration

      1,3,5,7,9,$A2.

      Enumeration of discrete values

      The selected variable may only take the values 1,3,5,7,9 and the current value of the variable "A2".

      [Note]Note

      When using discrete values, you can alternatively select the methods with value range variable with designation [Value range variable with naming] and value range variable with graphics [Value range variable with graphics] under Status.

    [Note]Note

    If you use variables [Variables] within the value range expression, place a $ sign in front of the variable and a " . " (dot) after the variable!

    In the following you can see some exemplary figures.

    Example: Range from 100 to 300 with a specific step width (increment [Stepping] ) of 50

    Example: Range from 100 to 300 with a specific step width (increment [Stepping] ) of 50

    Example: Listing of values

    Example: Listing of values

  4. Test in the table, whether the function is as desired.

    For this, click into the value range field and select the desired value.

  5. You can test just as well in the PARTdataManager table view and value selection are identical to those in the PARTdesigner.

    Value range selection in PARTdataManager

    Value range selection in PARTdataManager




[90] You can find the appropriate examples in the training catalog in the directory \v11_news\value_ranges\value_ranges_standard\default.prj|default_and_max.prj|listing.prj|simple.prj|stepwise.prj. DIN 2395 was used as the basis for the examples.

[91] Basic information on the procedure can be found at Section 7.8.10, “ Variable manager - The individual parameters ”.