586,061 active members*
4,576 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > Writing offsets and reading coordinates in DNC mode?
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    25

    Writing offsets and reading coordinates in DNC mode?

    I'm new to G-code programming.

    My questions are:
    1) Can I write offsets to the machine memory using DNC? If so, what is the g-code command? For example, can I do the equivalent of G54(x)=1.23 G54(y)=1.52 G54(z)=1.72?

    2) Can I read positions in using g-code? Like can I query the machine what is xyz using DNC? If so, how?

    Thanks in advance for the answers!

  2. #2
    Join Date
    Jul 2005
    Posts
    12177
    You can write offsets using the G10 command; have a look in the Haas manual.

    G10 L12 G90 P1 R.5 will write the absolut value of 0.5 in to the tool comp table for tool 1.

    G10 L2 G90 P1 X-5. Y-4. Z-6. will write -5. for the X coordinate, -4. for the Y coordinate and -6. for the Z coordinate into the G54 line for the work offset table.

    As I suggest read the manual, it is a bit fuzzy at first but gradually gets clear.
    An open mind is a virtue...so long as all the common sense has not leaked out.

Similar Threads

  1. FANUC-OMC / PMC ROM WRITING
    By iNUC in forum Fanuc
    Replies: 3
    Last Post: 06-07-2013, 05:45 PM
  2. G31 uses machine coordinates?
    By kerryveenstra in forum Tormach Personal CNC Mill
    Replies: 1
    Last Post: 04-27-2007, 07:45 AM
  3. Artcam postprocessor writing
    By simonl in forum ArtCam Pro
    Replies: 3
    Last Post: 01-07-2007, 05:25 AM
  4. Writing words
    By JDARSNEK in forum G-Code Programing
    Replies: 1
    Last Post: 11-27-2006, 09:42 PM
  5. Okuma Work Coordinates
    By firedog in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 7
    Last Post: 06-10-2005, 12:43 AM

Posting Permissions

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