The ACTDEF command creates a
Their current value is displayed in the
Their value can be changed with
Their value is expressed as a variable for operations with other OSA functions. For example, if ACTDEF creates a function called XXXX, the variable XXXX can be used wherever predened variable appears in the syntax charts.
Like the FUNCDEF command, ACTDEF consolidates a series of OSA commands into one function and gives it a name. Executing the function name is the same as executing the series of commands contained in the function.
In the following example, the function is assigned to a 4USER5 key. Pressing the key executes the function. Active
60 | OUTPUT 723;"ACTDEF | NEW_SPAN,10,NM"; | Begin denition | of NEW |
|
| SPAN, that | |||||
| ||||||||||||
|
|
| has an initial value of 10 nm. | |||||||||
70 | OUTPUT 723;"@MPY SP,2,NEW_SPAN@" | Multiply NEW |
| SPAN by 2, then set | ||||||||
| ||||||||||||
|
|
| span equal to the product. End de- | |||||||||
|
|
| nition and store | the function. | ||||||||
80 | OUTPUT 723;"KEYDEF 3,NEW_SPAN;" | Assign function | to a 4USER5 key. | |||||||||
90 | OUTPUT 723;"VARDEF | YY,0;" | Create a | |||||||||
100 OUTPUT 723;"MOV YY,NEW_SPAN;" | Set variable equal to NEW |
| SPAN. | |||||||||
| ||||||||||||
110 OUTPUT 723;"NEW_SPAN?" | Return value of NEW |
| SPAN to computer . | |||||||||
| ||||||||||||
120 ENTER 723;N |
| Assign value to computer variable . |
In addition to creating a
When using a string- or