SET OP DATA: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=SET_OP_DATA <op number>, <parameter>, <value> |description=*DESCRPTION* |param1=<op number>|param1_desc= |param2=<parameter>|param2_desc= |param3=<value>|param3_desc= }} ... |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | [[Operations:Operation_Data|{{Up}}]] | ||
|param1=< | {{Command|syntax=SET_OP_DATA <operation number>, <parameter>, <value> | ||
|param2=<parameter>|param2_desc= | |description=:Set data to be associated with a given operation. | ||
|param3=< | |||
|param1=<operation number>|param1_desc={{op number}} | |||
|param2=<parameter>|param2_desc= One of the following list of [[operation parameter|parameters]] | |||
|param3=<variable>|param3_desc={{set data var}} | |||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :SET_OP_DATA 3, TOOL_NUM, 8 | ||
:SET_OP_DATA 4, COMMENT, "This is an operation" | |||
<br> | |||
:tnum = 14 | |||
:a$ = "My Op Comment" | |||
:SET_OP_DATA 12, TOOL_NUM, tnum | |||
:SET_OP_DATA 12, COMMENT, a$ | |||
[[Category: | [[Category:Operations]] |
Latest revision as of 23:37, 30 July 2010
Command
- SET_OP_DATA <operation number>, <parameter>, <value>
- Set data to be associated with a given operation.
Parameters
- <operation number>
- Operation number.
- <parameter>
- One of the following list of parameters
- <variable>
- A value to assign to the parameter.
- The type of value must match the data type of the parameter.
- If you are setting a text parameter, then the value must be text string or a string variable. Otherwise use a numeric value or a number variable.
Example
- SET_OP_DATA 3, TOOL_NUM, 8
- SET_OP_DATA 4, COMMENT, "This is an operation"
- tnum = 14
- a$ = "My Op Comment"
- SET_OP_DATA 12, TOOL_NUM, tnum
- SET_OP_DATA 12, COMMENT, a$