Language Reference
ACTDEF
A temporary variable called COUNT is created, and assigned the initial value. The variable is available for math operations.
The current value of the function (and of the temporary variable) is displayed in the active function readout. Number 5 is displayed initially.
The step keys, knob, and numeric keypad can change the function value.
In the preceding example, the
The following example creates an active
|
| 60 | OUTPUT | 723;"ACTDEF COUNT,500,NM,"; |
| Begin denition of active, | ||||||
|
|
|
|
|
|
|
| function, called COUNT, that has an | ||||
|
|
|
|
|
|
|
| initial value of 500 nm. | ||||
|
| 70 | OUTPUT | 723;"$MPY SP,2,COUNT;$" |
| Multiply the current value of COUNT | ||||||
|
|
|
|
|
|
|
| by 2, then set the span equal to the | ||||
|
|
|
|
|
|
|
| product. The \$" ends the denition. | ||||
|
| 80 | OUTPUT | 723;"KEYDEF 3,COUNT;" |
| Assign the function to a key. | ||||||
| To execute the COUNT function dened above, press 4 |
| 5, 4 |
| 5, NCOUNTNNNNNNNNNNNNN. | |||||||
| LOCAL | USER | ||||||||||
| Do not use existing | |||||||||||
| for | |||||||||||
| a command denition, be sure to use compatible terminators. Also, any | |||||||||||
| ||||||||||||
Units argument | In the syntax diagram, the units arguments determine | |||||||||||
| what unit keys are activated during | |||||||||||
| whether the temporary variable can be used in place of predened | |||||||||||
|
| variable during math operations. |
|
|
|
|
|
| ||||
|
|
|
|
|
| |||||||
| how the step functions, UP, 485, DN, and 495, change the value of the | |||||||||||
|
| temporary variable. |
|
|
|
|
|
|