Expressions in Postprocessor Codes

<< Click to Display Table of Contents >>

Navigation:  Reference Section > Machines > Advanced Post Processor Settings >

Expressions in Postprocessor Codes

 

Available in Release 131

It is possible to add expressions in the postprocessor to allow for values like 'half the plate thickness', or to do unit conversions

 

Expressions are enclosed with the curly braces '{' and '}' and will be replaced with a value that is calculated.

 

Example:

  {0.5 * $Thickness$}

 

When the NC code is generated the thickness will be replaced with the thickness of the plate, and the expression will multiply by 0.5 thereby halving this value.

 

The supported operators are:

 * multiplication

 / division

 + addition

 -  subtraction

 ^ exponent

 ( ) brackets

 

 

Standard algebraic order of operations is observed:

 

1.Brackets

2.Exponents

3.Multiplication and Division

4.Addition and subtraction

 

No functions (eg sin() ) are available at this time.

 

Controlling Decimal Places in Expression Results

Often when an expression is evaluated it may return more decimal places than desired.  You may add a suffix :n , where n is the number of digits to include.

Example:

  {0.5 * $Thickness$}:3

(returns half the thickness, to 3 decimal places)