Programming an angle using sub-program


Results 1 to 6 of 6

Thread: Programming an angle using sub-program

  1. #1
    Member pb2304's Avatar
    Join Date
    Jan 2022
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Programming an angle using sub-program

    I have a Mazak vtc-300c here using mazatrol and I am trying to program a 1.5degree angle over 50mm. As follows my program is

    UNIT 1

    MANU PRO FACEMILL 63
    G0 G40 X-60. Y-6.5 Z100. M3
    G0 Z10.
    G1 Z0. F500.

    UNIT 2

    SUB PRO 22E REPEAT 72

    END

    SUB PROGRAM IS:
    G91
    Y-.35 Z-.009 F6000.
    X120.
    Y-.35 Z-.009
    X-120
    G90
    M99
    %

    Now the sub program as it stands runs smoothly across the y z etc. Its the start point thats the issue, as shown I bring the cutter down to Z0. When it moves onto the sub program, the position changes and the Z moves to Z+150.141 and the the sub program begins from there.
    There is nothing in the program that I can see that would cause it to move there. Not been on this machine long so unsure of what I'm missing?
    thanks

    Last edited by pb2304; 01-14-2022 at 04:05 AM.


  2. #2
    Member
    Join Date
    Apr 2013
    Location
    France
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Programming an angle using sub-program

    There is no G54, G55.., nor tool call in this program. Maybe that's the cause.



  3. #3
    Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    4256
    Downloads
    4
    Uploads
    0

    Default Re: Programming an angle using sub-program

    You should NOT have the G91 in the subprogram. Never (unless you really know what you are doing).
    You could put it at the start of the main program.

    Cheers
    Roger



  4. #4
    Member pb2304's Avatar
    Join Date
    Jan 2022
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Programming an angle using sub-program

    The manu pro 63 is a tool call. The g54 came before unit 1, only added in what i felt was relevant.



  5. #5
    Member pb2304's Avatar
    Join Date
    Jan 2022
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: Programming an angle using sub-program

    Took out the unit 1, created a separate sub program to be called in first to bring tool to position and it worked fine. I worked with siemens controls for 14 years before moving jobs and always had G91 at the start of sub programs, same as the fanuc I'm also using in my new job, I've used G91 at the start of sub programs as its an increment movement. Out of curiosity why should G91's not be used?
    Thanks



  6. #6
    Member
    Join Date
    Jun 2018
    Location
    on my feet
    Posts
    980
    Downloads
    1
    Uploads
    0

    Default Re: Programming an angle using sub-program

    Quote Originally Posted by pb2304 View Post
    Out of curiosity why should G91's not be used?
    Thanks
    no reason why it can't or shouldn't be



Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Programming an angle using sub-program

Programming an angle using sub-program