586,114 active members*
3,199 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > want to write to work coord systems from within the program G10? Help
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2010
    Posts
    188

    want to write to work coord systems from within the program G10? Help

    i want to be able to 'zero' or 'set' my G54, G55, G56, ect. from within a single program. specifically my 4th axis 'zero'

    i am machining multiple features around the circumference of a part and want to just index the part incrementally, zero the 4th axis and continue to machine the feature in absolute

    please try to keep any help relatively simple as i am fairly new

    fanuc 31i

  2. #2
    Join Date
    Aug 2011
    Posts
    2517

    Re: want to write to work coord systems from within the program G10? Help

    you can set the workshift with macro using system variables
    to change the G54 of 4th axis all you do is #2801=#5024 (#5024 is machine coordinate of 4th axis)
    if you are setting G54 for X you just position it where you want X0 and then do #2501=#5021
    for Y it's #2601=#5022
    if the workshift value that gets auto-set is negative and you want positive use #2601=ABS(#5022)
    look here for all of the variables available....
    Fanuc system macro variables

  3. #3
    Join Date
    Aug 2010
    Posts
    188

    Re: want to write to work coord systems from within the program G10? Help

    so, excuse me if im being simple minded but i literally just type " #2801=#5024 " directly into the main program?

    edit: i tried to modify my program in the fashion listed above and it still isnt writing to my work offsets...

    my goal is this

    safety line
    4th axis to zero
    machine feature in absolute
    rotate 4th axis incrementally
    zero 4th axis
    machine feature in absolute
    rotate 4th axis incrementally
    zero 4th axis
    machine feature in absolute
    ect
    ect
    ect

  4. #4
    Join Date
    Dec 2009
    Posts
    953

    Re: want to write to work coord systems from within the program G10? Help

    after you rotate the 4th axis with G91 you have to write down in program #500=#5024
    when you write in the program #500=#5024---- in this moment the coordinate of 4th axis is being copied to macro #500
    from this moment in the machine feature you have to use the #500 value as 4th zero like G28 X0 Y0 Z0 A#500
    after you finish you put again the #500=#5024 in program and the value is overwrite.

  5. #5
    Join Date
    Aug 2010
    Posts
    188

    Re: want to write to work coord systems from within the program G10? Help

    i got it to work this morning finally, as it turns out, the G10 function is what i used, it took some playing but now works flawlessly.

    it ended up looking something like this

    G90
    X_ Y_A_
    Y_
    X_
    X_Z_
    A0.0
    G91 L2 P2 A45.0 <-- SETS G55 COORD TO 45 DEGREES FROM ORIGIONAL ZERO
    G90
    X_ Y_A0.0 <-- GOES TO THE NEW A ZERO
    Y_
    X_
    X_Z_
    ECT
    ECT
    ECT

  6. #6
    Join Date
    Feb 2006
    Posts
    1792

    Re: want to write to work coord systems from within the program G10? Help

    The system-variable method did not work because it was modifying G54 and you are working in G55.
    Change the variables suitably and it would modify G55 which you need.
    G10 is old school. People generally prefer system variable method.

    Edit: The formula assumes that you have all zeroes in Ext Offset.

  7. #7
    Join Date
    Aug 2011
    Posts
    2517

    Re: want to write to work coord systems from within the program G10? Help

    yeah using G10 is over complicated and long-winded. real programmers use macro ;-)

Similar Threads

  1. Okuma will not write program
    By 60sMoparGuy in forum Okuma
    Replies: 4
    Last Post: 01-12-2014, 06:24 PM
  2. Write work offsets
    By YV600 in forum LinuxCNC (formerly EMC2)
    Replies: 1
    Last Post: 03-31-2013, 02:22 AM
  3. Write program
    By mike sr1 in forum Tormach Personal CNC Mill
    Replies: 10
    Last Post: 02-11-2012, 11:17 PM
  4. Coord rotation and multiple coord systems
    By Shizzlemah in forum Fadal
    Replies: 2
    Last Post: 10-30-2007, 09:27 AM
  5. someone wanna write a program?
    By ljoe1969 in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 06-07-2004, 01:47 AM

Tags for this Thread

Posting Permissions

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