GetTargetNameValue: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
FabienT (talk | contribs)
No edit summary
FabienT (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
* ‘SUCCESS’, leading to a response when probing within tolerance
* ‘SUCCESS’, leading to a response when probing within tolerance


If no response is set for one of the events listed above, or if the event string does not exist, the function returns an empty string.
The function returns an empty string if:
* no response is set for the queried event,
* the queried event string does not exist,
* the current operation is not a probing operation


}}
}}
{{Stats|id=64|type=Command|class=All Machines|scope=|version=26.0.7}}
{{Stats|id=64|type=Command|class=All Machines|scope=|version=26.0.7}}

Latest revision as of 10:44, 15 July 2024

GetTargetNameValue#(‘T’, ‘N’)

Description

Returns the value# in the map slot ‘N’ for the target name ‘T’.

Target names can be one of the following 4 strings:

  • ‘THIS’ for the current destination op's target name (will throw if IsGoToTargetDestinationOp? is false)
  • ‘UNDERSIZE’ will look up the undercut target name when you are in a probing op where the undersize response is set to GoTo
  • ‘OVERSIZE’ will look up the oversize target name when you are in a probing op where the oversize response is set to GoTo
  • ‘SUCCESS’ will look up the success target name when you are in a probing op where the success response is set to GoTo


Stats

ID 216
Type Command
Class All Machines
Min Version 13.8.27


GetTargetNameValue$(‘T’)

Description

Returns the current probing operation's 'GOTO' target utility operation's name as a string value (if applicable). The argument 'T' is the probing operation event's type.

A probing operation event can be set to trigger a response such as a jump to a utility 'GOTO' operation. These events can be one of the 3 following strings:

  • ‘UNDERSIZE’, leading to a response when probing out of tolerance (undercut)
  • ‘OVERSIZE’, leading to a response when probing out of tolerance (overcut)
  • ‘SUCCESS’, leading to a response when probing within tolerance

The function returns an empty string if:

  • no response is set for the queried event,
  • the queried event string does not exist,
  • the current operation is not a probing operation


Stats

ID 64
Type Command
Class All Machines
Min Version 26.0.7