Postprocessor development
  • Postprocessor development
v3.0.3
Search Results for

    Show / Hide Table of Contents

    OPSTOP - Auxiliary stop

    Command caption

    How the command appears in the CLData command list:

    OPSTOP
    

    OPSTOP command is used to form NC-commands of optional breaking of NC-program execution (commonly it's the M01 code). The CNC-system breaks execution on this command only if corresponding execution mode is set, otherwise the NC-program is not halted on this command.

    Access from sppx

    Handler: program OpStop

    Example (from the Fanuc (30i)_Mill postprocessor):

    program OpStop
      if M <> M@ then
        OutBlock
      M = 1      ! M01
      M@ = 0
    end
    

    Access from .NET

    Handler:

    public override void OnOpStop(ICLDOpStopCommand cmd, CLDArray cld)
    

    Inheritance: ICLDOpStopCommand : ICLDCommand.

    Read the parameters from the strongly-typed cmd object (recommended); the raw cld[i] array (same indices as in sppx) and the named cmd["..."] helpers are available too. The table lists the command's members, including those inherited from its base interfaces; the common ICLDCommand members (navigation, CLD, CLDFile, TechOperation, ...) are described in the CLData access model.

    Example - OnOpStop (from the Fanuc (30i)_Mill_DN postprocessor):

    public override void OnOpStop(ICLDOpStopCommand cmd, CLDArray cld)
    {
        nc.Block.Out();
        nc.M.Show(1);
        nc.Block.Out();
    }
    

    See also

    • CLData access model
    In this article