CurrentWFOIndex: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{Description|description=This command returns the current WFO index in memory (For example: 0 for "G54", 1 for "G55"...).}} {{Stats|id=577|type=Number|class=All Machines|scope=|version=26.1.5}}" |
No edit summary |
||
| (33 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Description|description= | ==CurrentWFOIndex#== | ||
{{Description|description=Returns the (zero-based) WFO index currently cached in the prog's memory. It corresponds to the index of the WFO last output (or applied) by the prog.<br><br> | |||
For example:<br> | |||
* -1 (no workfixture output or applied yet), | |||
* 0 (if for instance workfixture "G54" was output/applied), | |||
* 1 (if for instance workfixture "G55" was output/applied), | |||
etc.}} | |||
==Notes== | |||
The commands that update the cached index value are the ones explicitly outputting (or applying) a WFO, such as:<br> | |||
* [[OpWFOCode]], [[PartWFOCode]] or [[PartStationWFOCode]] (to <i>output</i> WFOs) | |||
* [[SetOpWFO]], [[SetPartWFO]] or [[SetPartStationWFO]] (to <i>apply</i> WFOs) | |||
<br>This command is therefore NOT a substitute for: [[OpWFOIndex#]], [[PartWFOIndex#]] or [[PartStationWFOIndex#]].<br><br> | |||
See also: [[InvalidateWFO]] (to reset the cached index value to 'none' i.e. -1).<br> | |||
{{Stats|id=577|type=Number|class=All Machines|scope=|version=26.1.5}} | {{Stats|id=577|type=Number|class=All Machines|scope=|version=26.1.5}} | ||
Latest revision as of 04:38, 8 May 2026
CurrentWFOIndex#
Description
Returns the (zero-based) WFO index currently cached in the prog's memory. It corresponds to the index of the WFO last output (or applied) by the prog.
For example:
- -1 (no workfixture output or applied yet),
- 0 (if for instance workfixture "G54" was output/applied),
- 1 (if for instance workfixture "G55" was output/applied),
etc.
Notes
The commands that update the cached index value are the ones explicitly outputting (or applying) a WFO, such as:
- OpWFOCode, PartWFOCode or PartStationWFOCode (to output WFOs)
- SetOpWFO, SetPartWFO or SetPartStationWFO (to apply WFOs)
This command is therefore NOT a substitute for: OpWFOIndex#, PartWFOIndex# or PartStationWFOIndex#.
See also: InvalidateWFO (to reset the cached index value to 'none' i.e. -1).
Stats
ID 577 Type Number Class All Machines Min Version 26.1.5