GetTargetNameValue

From Compost Wiki
Revision as of 10:42, 15 July 2024 by FabienT (talk | contribs)
Jump to navigation Jump to search

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