550,143 active members*
2,990 visitors online*
Register for free
Login
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Jan 2022
    Posts
    0

    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-..0
    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. but when it jumps into the sub program it jumps up to z150. and starts from there.
    Anyone any advice for a mazatrol newbie?

  2. #2
    Registered
    Join Date
    Apr 2013
    Posts
    0

    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
    Posts
    4097

    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
    Join Date
    Jan 2022
    Posts
    0

    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
    Join Date
    Jan 2022
    Posts
    0

    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

    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
  •