- 
        In the Manage Subroutines panel that appears, click
            Add
           to create a new subroutine. to create a new subroutine.
- 
        Enter a name for the subroutine, such as Subroutine.X.
      
- 
        Click Edit
           to edit the subroutine with the Sequencing Editor. For more information, see About the Sequencing Editor. to edit the subroutine with the Sequencing Editor. For more information, see About the Sequencing Editor.
- 
        In the Sequencing Editor that appears, in the Useable In panel,
          add the required IO parameters. For more information, see Creating IOs.
        
      
- 
        In the Sequential toolbox, insert sequencing instructions. For
          more information, see Using the Sequencing Editor.
      
- 
        In the Machining toolbox, insert machining instructions:
        
      
You can now run the subroutine.