586,551 active members*
3,284 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > 4th drive vs controller in code
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    40

    4th drive vs controller in code

    Hello,
    I am just getting started with g-code so bare with me. I have a Haas Mini Mill that we have been running an HRT-210 on with a external controller. The code for the indexer to move is an M21 command. Am upgrading to a VF-3 with 4th axis pre-wire, so I should be able to control the 4th directly from the code. Correct? Now, since I don't have the technical ability at this point to re-post the programs (we contract a guy to post the code for us) I was hoping I could just edit the M21 commands to A axis commands.

    So, as I understand it,

    N117 M21 (STEP 2 A0)

    would become

    N117 G90 G00 A0 M11
    N118 M10

    Also, do I need to specify the M11 & M10 commands or does the air brake automatically disengage and reengage when the A axis in put in motion?

    Thanks for the help with newbie stuff.

  2. #2
    Join Date
    Nov 2005
    Posts
    56
    Just tell it where you need it to go

    G00 A180.

    or

    G01 A25.25

    etc etc

    To get the proper feed rate make sure you set the diameter in the settings (can't remember where but it stikes out like a sore thumb)

  3. #3
    Join Date
    Feb 2009
    Posts
    40
    Thanks.

  4. #4
    Join Date
    Jul 2005
    Posts
    12177
    When you are using the rotary to make an indexing move it is nit necessary to unlock and relock the brake.

    When you are using the rotary in combination with the other axes to make an interpolated move you should unlock the brake a block ahead of the command for the interpolated move. The rotary will unlock automatically but that introduces a slight delay in the rotary motion compared to the other axis motion.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  5. #5
    Join Date
    Feb 2009
    Posts
    40
    Got it. Thank you for the reply.

Similar Threads

  1. FANUC 18T CONTROLLER G10 CODE
    By bkorte in forum Uncategorised MetalWorking Machines
    Replies: 2
    Last Post: 07-15-2010, 03:47 PM
  2. Replies: 6
    Last Post: 12-18-2009, 04:36 AM
  3. Floppy drive enable code
    By thouse in forum Cincinnati CNC
    Replies: 3
    Last Post: 05-27-2009, 05:52 AM
  4. g code controller
    By Mut designer in forum Servo Motors / Drives
    Replies: 10
    Last Post: 11-24-2006, 08:40 PM
  5. Controller Code Snippets
    By jhwatts in forum OpenSource Software
    Replies: 3
    Last Post: 10-10-2005, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •