powered by CADENAS

Manual

Manual

7.8.12.1.  Type "Value range variable"

In the following you can find details on how to create a Value range variable.[86]

  1. Under Name, create the desired variable.[87]

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

  3. Entry under Equation:

    The type Value range variable has different subtypes. The following table shows the specific syntax to be used.

    1. Value range

      Type

      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.

      In PARTdataManager the value range is displayed under Value ranges, the default value under Discrete values in addition.

      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.12.4, “Type "Value range variable" in combination with IF condition (Attribute 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

      Type

      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, as an alternative, you can select the methods Value range variable with naming and Value range variable with graphics under Status.

    [Note] Note

    If you use Variables within the value range expression, always enter a $ symbol in front of the variable and a " . " (period) after the variable!

    In the following you can see some exemplary figures.

    Example: Range from 100 to 300 with a Stepping of 50

    Example: Range from 100 to 300 with a Stepping of 50

    Example: Range from 1 to any value greater than 1 with a default value of 100

    Example: Range from 1 to any value greater than 1 with a default value of 100

    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. Just as well you can test in PARTdataManager. Table view and value selection are identical as in PARTdesigner.

    Value range selection in PARTdataManager

    Value range selection in PARTdataManager



[86] The adequate example can be found in the "Training" catalog under \v11_news\value_ranges\value_ranges_standard\default.prj|default_and_max.prj|listing.prj|simple.prj|stepwise.prj. For this example DIN 2395 has been used and adjusted.

[87] Basics on the procedure can be found under Section 7.8.9, “ Variable Manager - The individual parameters”.