Indirect parameters
In arithmetical expressions and assignments, indirect parameters are used in the same way as direct parameters.
Both direct (Pnn) and indirect programming (PPnn) is performed using the P word. When indirect parameters are used, the following applies:
PPnn points to the parameters Pnn. |
When a PPnn is initialised, the address of a Pnn is assigned. The use of PPP... is also possible.
Example
Indirect parameters
If P120=10, the value 10 is loaded to the parameter 120. However, the statement PP120=123.456 assigns this value to the parameter whose address exists in P120, i.e. P10. Accordingly, PP121=SQRT[2,0] produces the following result:

The use of indirect parameters permits the assignment of entire fields of parameters:
Programming Example
Indirect parameters