Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Cycle time in SET file


Henk
 Share

Recommended Posts

My millplus post from inhouse supports a couple of custom drill cycles for 'circle milling', 'thread milling' and 'gun drilling'.

Now i want to add them in my setup sheet, an customized mill.set.

 

For the descriptoin of those operations i changed and added some lines:

 

 

 

 

 

#Select drill operation note

sdr00 : "G81 " #drill - no dwell

sdrd0 : "G81 " #drill - with dwell

sdr01 : "G83 " #peck drill - no dwell

sdrd1 : "G83 " #peck drill - with dwell

sdr02 : "G83 " #chip break - no dwell

sdrd2 : "G83 " #chip break - with dwell

sdr03 : "209 " #tap - right hand

sdrd3 : "209 " #tap - left hand

sdr04 : "G85 " #bore #1 - no dwell

sdrd4 : "G85 " #bore #1 - with dwell

sdr05 : "202 " #bore #2 - no dwell

sdrd5 : "202 " #bore #2 - with dwell

sdr06 : "208 Boorfrezen " #misc #1 - no dwell

sdrd6 : "208 Boorfrezen " #misc #1 - with dwell

sdr07 : "262 " #misc #2 - right hand

sdrd7 : "262 " #misc #2 - left hand

sdr08 : "241 " #drill cycle 9

sdrd8 : "241 " #drill cycle 9

sdrillcyc : "" #Target string

 

fstrsel sdr00 drlgsel sdrillcyc 18 -1

# --------------------------------------------------------------------------

 

The cycle description are OK, but the cycle time for the '241 - Gun Drill' give me '0.0'.

 

Any ideas where i can get the right cycle time??

Link to comment
Share on other sites

Adding them in for selection can be done at the bottom of the post in the control def section

 

 

With the cycle time, you can't with that kind of addition,

 

You've created what is essentially a point path with parameters you set in place.

 

there is nothing for Mastercam to calculate for cycle time

Link to comment
Share on other sites

Henk,

 

The Custom Drill cycles do not process like normal Drill Cycles in MP. You are not going to get any cycle time calculation for the custom cycles, unless you write your own logic in the .SET file to calculate the feed/rapid motion distances and then call the time calculation post blocks.

 

When the .SET file begins processing, the first post block to be called is 'pprep$' in this post block, you'll find the following code:

  usecandrill$ = no$   #Use canned cycle for drill
  usecanpeck$  = no$   #Use canned cycle for Peck
  usecanchip$  = no$   #Use canned cycle for Chip Break
  usecantap$   = no$   #Use canned cycle for Tap
  usecanbore1$ = no$   #Use canned cycle for Bore1
  usecanbore2$ = no$   #Use canned cycle for Bore2
  usecanmisc1$ = no$   #Use canned cycle for Misc1
  usecanmisc2$ = no$   #Use canned cycle for Misc2

 

You can see that in 'pprep$' we are disabling the canned cycle output. This causes MP to calculate the motion as 'G0/G1' motion. This motion is buffered internally by MP, and when the 'NCI gcode$ 81 line is encountered', the buffer is recalled and each motion block is output. Because the motion is broken into 'G0/G1' moves, each buffered piece of motion calls either 'prapid$' or 'plin$', which in turn calls 'ptime' to calculate the time.

 

That is the reason you aren't getting any cycle time, because MP cannot break up and buffer the motion. The reason is that the normal drill cycles use common variables, and the processing is well defined. Custom Drill Cycles are just that; custom. The post writer is responsible for doing all the calculations for motion.

 

In your case, adding code to properly calculate this motion and time is certainly possible, but it is also a fair amount of work.

 

To do it properly, you'll need to add 'pdrlcst$' and 'pdrlcst_2$' post blocks, and add the code in there to calculate the rapid and feed distances. Once you've calculated the distances, you can call 'ptime' and have the time output calculated.

 

Hope that helps,

 

Colin

Link to comment
Share on other sites
  • 2 months later...

If we take cycl 208 (milling a hole) or cycl 262 (milling a thread) and we choose to do these operations with a drilling cycl, Mastercam will not calculate the distance the mill is traveling. Only a straight line downwards and the feed rate it's programmed.

If we choose to program a circle mill toolpath (helix bore) (thread mill) would be the easiest way to get the actual time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...