585,741 active members*
5,325 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 26
  1. #1
    Join Date
    May 2008
    Posts
    266

    Lathe Diameter Mode.

    I can't seem to get TNG v2 to display in workpiece diameter (G07) mode, it always shows as a radius value for me.


    Martin.

    Sample Code:

    (PLANETCNC-TNG 2)
    (ECAM V4 ***LATHE*** )
    (CREATED ON 09/03/2020 AT 23:58)
    (PART DESCRIPTION: BRASS CONE/BALL)
    (PROG NUMBER: 1)
    (STOCK O/D: 19.000)
    (STOCK I/D: 0.000)
    (STOCK LENGTH: 20.000)

    (------------------ TOOL LIST ------------------)
    (TOOL:EXT GROOVE TOOL [L 2MM] [RN 0.1] )
    (TOOL:EXT TURN TOOL [RN 0.2] )
    (-----------------------------------------------)

    (SETUP 1)

    G07 G18 G21 G54 G61 G80 G90

    (EXTERNAL TURNING - ROUGHING)
    (EXT TURN TOOL [RN 0.2])
    (MAX Z TRAVEL: 0.702)
    (MIN Z TRAVEL: -19.300)
    (MAX X TRAVEL: 10.000)
    (MIN X TRAVEL: 3.372)

    G94 T25 G43 H25 M6
    G97 S1250 M3 M9
    G04 P2
    G0 X20.000 Z0.500
    Z0.702
    X17.800
    G1 Z-9.009 F130
    X18.800 Z-8.509
    G0 Z0.702
    X16.600
    G1 Z-8.000
    X17.600 Z-7.500
    G0 Z0.702
    X15.400
    G1 Z-6.991
    X16.400 Z-6.491
    G0 Z0.702
    X14.200
    G1 Z-5.982
    X15.200 Z-5.482
    G0 Z0.702
    X13.000
    G1 Z-4.973
    X14.000 Z-4.473
    G0 Z0.702
    X11.800
    G1 Z-3.965
    X12.800 Z-3.465
    G0 Z0.702
    X10.600
    G1 Z-2.956
    X11.600 Z-2.456
    G0 Z0.702
    X9.400
    G1 Z-1.947
    X10.400 Z-1.447
    G0 Z0.702
    X8.200
    G1 Z-0.938
    X9.200 Z-0.438
    G0 Z0.702
    X7.000
    G1 Z0.071
    X8.000 Z0.571
    G0 Z0.702
    G1 X6.844 Z0.202 F91
    X10.600 Z-2.956 F130
    X11.800 Z-3.965
    X14.200 Z-5.982
    X18.350 Z-9.471
    Z-12.568
    X18.317 Z-12.606
    G3 X17.800 Z-13.158 I-9.309 K4.024 F91
    G1 Z-19.041 F130
    X18.800 Z-18.541
    G0 Z-13.658
    G1 X17.800 Z-13.158 F91
    G3 X16.600 Z-14.189 I-9.050 K4.576
    G1 Z-18.828 F130
    X17.600 Z-18.328
    G0 Z-14.689
    G1 X16.600 Z-14.189 F91
    G3 X15.400 Z-15.002 I-8.450 K5.607
    G1 Z-18.616 F130
    X16.400 Z-18.116
    G0 Z-15.502
    G1 X15.400 Z-15.002 F91
    G3 X14.200 Z-15.673 I-7.850 K6.420
    G1 Z-18.403 F130
    X15.200 Z-17.903
    G0 Z-16.173
    G1 X14.200 Z-15.673 F91
    G3 X13.000 Z-16.238 I-7.250 K7.091
    G1 Z-18.191 F130
    X14.000 Z-17.691
    G0 Z-16.738
    G1 X13.000 Z-16.238 F91
    G3 X11.800 Z-16.721 I-6.650 K7.656
    G1 Z-17.978 F130
    X12.800 Z-17.478
    G0 Z-17.221
    G1 X11.800 Z-16.721 F91
    G3 X10.600 Z-17.134 I-6.050 K8.139
    G1 Z-17.766 F130
    X11.600 Z-17.634
    G0
    G1 X10.600 Z-17.134 F91
    G3 X10.350 Z-17.212 I-5.450 K8.552 F130
    G1 Z-17.722
    X18.700 Z-19.200
    G0 X20.000 Z-18.700
    Z0.602
    X7.744
    G1 X6.744 Z0.102
    X18.250 Z-9.571
    Z-12.468
    X18.217 Z-12.506
    G3 X10.250 Z-17.112 I-9.309 K4.024
    G1 Z-17.822
    X18.600 Z-19.300
    G0 X20.000 Z-18.800
    Z0.500
    G53 X30.000 Z110.000
    M5
    M9

    (CUT)
    (EXT GROOVE TOOL [L 2MM] [RN 0.1])
    (MAX Z TRAVEL: 0.500)
    (MIN Z TRAVEL: -19.000)
    (MAX X TRAVEL: 10.000)
    (MIN X TRAVEL: 2.900)

    G94 T12 G43 H12 M6
    G97 S1200 M3 M8
    G04 P2
    G0 X20.000 Z0.500
    Z-19.000
    X11.250
    G1 X5.800 F25
    G0 X20.000
    Z0.500
    G53 X30.000 Z110.000
    M5
    M9
    M2

  2. #2
    Join Date
    Mar 2017
    Posts
    1304

    Re: Lathe Diameter Mode.

    G07/G08 defines how input coordinates are interpreted. It does not affect display. Just like all other modal state Gcodes.

  3. #3
    Join Date
    May 2008
    Posts
    266

    Re: Lathe Diameter Mode.

    Oh OK. In that case I'd like to suggest having an option to show a diameter reading for lathe users, please.

  4. #4
    Join Date
    Mar 2017
    Posts
    1304

    Re: Lathe Diameter Mode.

    You can define your own expression in state file. For example:
    Code:
    expr "2*_hw_work_x" 3 "Diameter"

  5. #5
    Join Date
    May 2008
    Posts
    266

    Re: Lathe Diameter Mode.

    I'm trying, but I can't even gain access to change the Profiles folder.
    Even though only I use this computer, Windows 10 says I need Admin permission. :devious:

    Martin.

  6. #6
    Join Date
    Mar 2017
    Posts
    1304

    Re: Lathe Diameter Mode.

    Then do this as admin. Or install TNG somewhere else.

  7. #7
    Join Date
    Feb 2011
    Posts
    138

    Re: Lathe Diameter Mode.

    I am using TC for that, simply copy existing file to other (workable) folder, make changes, copy it back (TC will ask for replacing =yes) it wil also ask if using admin privileges = yes, that is....
    you must adjust TC to show "all" system files !

  8. #8
    Join Date
    May 2008
    Posts
    266

    Re: Lathe Diameter Mode.

    Thanks for your help. I've got it working now. :cheers:

    I uninstalled/reinstalled TNG in a different folder, but the Profile folder disappeared & I couldn't find it anywhere until TNG was put back in its default location.

    In the end, I created a State1.txt file on the Desktop and simply Copy & Pasted it into the Profile folder. I could find no way to gain permission to save straight to the Profile folder.

    Maki, what is TC?

    Thanks again. Martin.

  9. #9
    Join Date
    Feb 2011
    Posts
    138

    Re: Lathe Diameter Mode.

    TC - Total Commander, free tool

  10. #10
    Join Date
    Jun 2017
    Posts
    143

    Re: Lathe Diameter Mode.

    Quote Originally Posted by blowlamp View Post
    I could find no way to gain permission to save straight to the Profile folder.
    The best thing to do is to add modify permissions for All Users to the profiles folder. That way you can then just edit files at will. It would be nice if the TNG installer would do this (either for All Users or just the user that is doing the install).

    Simon

  11. #11
    Join Date
    Oct 2017
    Posts
    40

    Re: Lathe Diameter Mode.

    Quote Originally Posted by PlanetCNC View Post
    You can define your own expression in state file. For example:
    Code:
    expr "2*_hw_work_x" 3 "Diameter"
    I'm trying to solve the same problem and I can't find the file I need.

  12. #12
    Join Date
    Aug 2011
    Posts
    252

    Re: Lathe Diameter Mode.

    Quote Originally Posted by R2D3 View Post
    I'm trying to solve the same problem and I can't find the file I need.
    I think THIS was the solution.

  13. #13
    Join Date
    Oct 2017
    Posts
    40

    Re: Lathe Diameter Mode.

    I created a State.txt file in the profiles folder with the text expr "2*_hw_work_x" 3 "Diameter". Looks like it didn't work. I just don't understand what I'm doing and why....:tired:

    I need to: 1) Choose which axis I need to switch G07/G08 (X,Y....)
    2) The working coordinates of the selected axis were multiplied by two(Work coordinate is equal to the workpiece diameter when switching)

  14. #14
    Join Date
    Dec 2008
    Posts
    41

    Re: Lathe Diameter Mode.

    Has anyone found a working solution? I too would like, on TNG, to display the diameter on my lathe dro

  15. #15
    Join Date
    Jul 2023
    Posts
    5

    Re: Lathe Diameter Mode.

    It would be a helpful feature to get the X-Value of the Workpiece-Coordinate -System doubled. I have tried the the solution that mentioned above, but wasn't sucessfull.

    I have created a "expr_diameter.txt" file in the profile folder with the following text:

    expr "2*_hw_work_x" 3 "Diameter"

    Nothing happened. Then I have added a the text "onInit", but this also didn't work. I have read that the parameter "_hw_work_x" is a read-only Parameter. So how can it be possible to overwrite the shown value on the display of the workpiece coodinate system.
    Or was the above mentioned solution only for displaying the double X-Value to the output window?

    Can anyone please provide us us with a "ready to use" programming / code to show the x-Value double in the workpiece coordinate system?

    In lathe-mode, it is very confusing to see on WCS the radius values instead of diameter values.

    Thanks for a possible solution!
    Toni

  16. #16
    Join Date
    Dec 2008
    Posts
    41

    Re: Lathe Diameter Mode.

    @toni123: I completely agree. I really miss this feature too.
    Any lathe Dro offers diameter/radius switching.

  17. #17
    Join Date
    Mar 2017
    Posts
    1304

    Re: Lathe Diameter Mode.

    Here is state file example for lathe. Just copy this file to your profile folder

  18. #18
    Join Date
    Jul 2023
    Posts
    5

    Re: Lathe Diameter Mode.

    Thank you for the quick response!

    I have copied the file "State_Lathe.txt" in my Profile folder and restarted TNG. Machine Typ is Lathe.

    Sadly, nothing changed. When I run a g-code programm (with G7 definition) the values in WCS show unchanged radius values as before and not diameter values. Seems like the script isn't working.

  19. #19
    Join Date
    Mar 2017
    Posts
    1304

    Re: Lathe Diameter Mode.

    Yes, it is working. See "State" panel, tab "Lathe".

  20. #20
    Join Date
    Jul 2023
    Posts
    5

    Re: Lathe Diameter Mode.

    Ok, I thought it would be possible to change the original X-Value of the WCS (the red one in the picture)

    Switching between State tab and IO Tab isn't much comfortable.

Page 1 of 2 12

Similar Threads

  1. What is - Torque Mode? Position Mode? Speed/Velocity Mode?
    By sunmix in forum Servo Motors / Drives
    Replies: 48
    Last Post: 01-20-2024, 10:34 AM
  2. Replies: 2
    Last Post: 10-06-2015, 03:40 PM
  3. Lathe Diameter or Radius
    By davidperry3 in forum Tormach Personal CNC Mill
    Replies: 3
    Last Post: 12-24-2009, 06:18 PM
  4. turbocnc X Diameter mode
    By nuai in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 07-16-2009, 02:39 PM
  5. VisualTurn diameter v/s radius mode
    By whiteriver in forum Visual Mill
    Replies: 3
    Last Post: 05-10-2006, 05:56 PM

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
  •