Global Parameter Access Symbols Overview | Symbol List


Accessing Expressions

These Global Parameter Access Symbols (GPAs) are used to access expressions. The GPAs provide an alternative method to using the Retrieve and Store statements (REGF and STORE).

Each GPA symbol starts with an & and the letters REG, followed by a letter from A through L inclusive. The letters A through L are expression names. The actual expression names created in NX will be in lower case.

Operation

Symbol

Access Type

Data Type

Range

Access expression A

&REGA

RW

N

Any real number

Access expression B

&REGB

RW

N

Any real number

Access expression C

&REGC

RW

N

Any real number

Access expression D

&REGD

RW

N

Any real number

Access expression E

&REGE

RW

N

Any real number

Access expression F

&REGF

RW

N

Any real number

Access expression G

&REGG

RW

N

Any real number

Access expression H

&REGH

RW

N

Any real number

Access expression I

&REGI

RW

N

Any real number

Access expression J

&REGJ

RW

N

Any real number

Access expression K

&REGK

RW

N

Any real number

Access expression L

&REGL

RW

N

Any real number

Since the expression GPA symbols have both read and write capabilities, they may appear on either side of the equal sign (=). The expression GPAs may also be used in any mathematical function in place of a constant or arithmetic expression.

Statement

Assigned Value

&REGA=&PI

Expression "a" contains the value PI

ANS=&REGA

ANS equals 3.1415927...

Expressions can store the numerical value of a constant or a arithmetic expression. The following examples show how values may be stored in expressions:

&REGA=4

Where 4 is a numerical value.

&REGA=A+B

Where A and B are previously defined numerical variables.

&REGB=&REGA+1

Where the value of expression A was previously defined. (It could be the default of 0.)

&REG(RDS)=DIA/2

Where RDS is a predefined string variable containing the name of an expression, and DIA is a numerical variable with a value that was also previously defined.