User Tools

Site Tools


mp:drilling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mp:drilling [2021/07/21 15:35] sonyamp:drilling [2021/07/21 19:21] (current) allan
Line 1: Line 1:
-Setting a check for drill ops can be a long line and apparently may not always catch all instances if you don't set it right, so I got this solution from Don Biore in the post team to set up a gobal variable called "drilling" and use that instead.  He also suggested using this method in other places like defining 5 axis motion, etc.+====== Grouping Drill Ops ====== 
 + 
 +Setting a check for drill ops can be a long line and apparently may not always catch all instances if you don't set it right, so I got this solution from Don Boire in the post team to set up a global variable called "drilling" and use that instead.  He also suggested using this method in other places like defining 5 axis motion, etc.
  
 Below are his instructions. Below are his instructions.
  
-The handy thing about opcode$ is capturing a group of operations rather than having to include many different tool_op$ values in your if statement. To handle that with tool_op$, see roughingfinishing, and drilling” in our 2017 Siemens 3x Mill post. (Download it form the Tech Exchange here: Siemens 3x Mill Post_2017.zip)+>The handy thing about ''opcode$'' is capturing a group of operations rather than having to include many different ''tool_op$'' values in your if statement. To handle that with ''tool_op$'', see ''roughing''''finishing'', and ''drilling'' in our //2017 Siemens 3x Mill// post. (Download it form the Tech Exchange here: //Siemens 3x Mill Post_2017.zip//) 
 +
 +>The technique works like this: 
 +
 +>Define a variable and a list of ''tool_op$'' codes to include:
  
-  +<code python>
- +
-The technique works like this: +
- +
-  +
- +
-Define a variable and a list of tool_op$ codes to include: +
- +
-<code>+
 #Define operations to include in the category Drilling #Define operations to include in the category Drilling
 drilling = drilling =
Line 26: Line 24:
 </code> </code>
  
-Then just use drilling” as your condition: +>Then just use ''drilling'' as your condition: 
- +<code python> 
-      if not(drilling) & cycle832_active = no$, pcycle832  # Output CYCLE832 +if not(drilling) & cycle832_active = no$, pcycle832  # Output CYCLE832 
 +</code>
mp/drilling.1626881751.txt.gz · Last modified: 2021/07/21 15:35 by sonya