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:

Pause with Spindle Turning Until Cycle Start is Pressed?


Bill H
 Share

Recommended Posts

I'm working on a lathe with a Fanuc 30i control and am testing an experimental device.  While this device is pressurizing, I want to pause program execution until Cycle Start is pressed.  The spindle must remain turning while pressure is building.  Since the time it takes to pressurize is variable, I can't just use a G04 command.  If the device works as it should, we'll automate the cycle, but for testing purposes I just want to keep it simple.  Any ideas how I can do this?  A macro of some sort?

Link to comment
Share on other sites

M03S500

33=0        sets a variable 5o a value less than 1

 

WHILE[#33LT1]DO1. Starts a loop from DO1 to END1.  Executes the code between.  In this case a 5 second dwell every time the loop occurs

 

G4U5.(Build pressure while spindle turning)

 

/#33=1.  When block skip is on , this line is ignored.  This is the code that will cause the loop to be completed because #33 is no longer less than 1

 

END1.  End of the loop.  After the WHILE condition is made the code underneath END1 is executed 

You still need to have block skip on at the start of a cycle.  Then when you are ready to start after your pressure build you turn block skip off.  

 

  • Like 6
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...