Lathe Macros

More
11 years 10 months ago #54081 by drogge
Replied by drogge on topic Lathe Macros
Thanks again andy. I'll give it a shot tomorrow.

Drew

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #54089 by mariusl
Replied by mariusl on topic Lathe Macros

mariusl wrote: I have it under the sim directory of the 2.7.0. I am not sure if I put it there myself but I dont think so.


Ok it looks like I put it there myself but I see no reason why it cannot be placed in the distro. How do I go about voting to get it in the sim directory officially?

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #54114 by drogge
Replied by drogge on topic Lathe Macros
Hi andy,

It looks like there's a bug in all the .ngc files where variable #2 is used in the "G96 D1500 S#2 ; Constant Surface Speed" lines before it's set. The fix I tried was to move the setting of the #1 thru #8 vars to the beginning of the subroutines. That seems to work.

Drew

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #54119 by andypugh
Replied by andypugh on topic Lathe Macros

drogge wrote: It looks like there's a bug in all the .ngc files where variable #2 is used in the "G96 D1500 S#2 ; Constant Surface Speed" lines before it's set. The fix I tried was to move the setting of the #1 thru #8 vars to the beginning of the subroutines. That seems to work.


One change I made was to move them all to after the "setup" codes. This was to prevent tool crashes when the positions are read in before the tool offset was applied.

It looks like I need to have a more careful think about this.

I also may decide to send the numbers from the GUI to the subroutines as parameters, so that the NGC code does not have to use the "experimental" ability to read HAL pins directly.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #54149 by drogge
Replied by drogge on topic Lathe Macros

andypugh wrote: It looks like I need to have a more careful think about this.

I also may decide to send the numbers from the GUI to the subroutines as parameters, so that the NGC code does not have to use the "experimental" ability to read HAL pins directly.


Since only the variables 1 thru 8 have been moved above the setup code then the position code shouldn't be affected. It's not much different than passing things in as parameters.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #54199 by kjacobs
Replied by kjacobs on topic Lathe Macros

andypugh wrote: I have put an updated file in the first post.

For me, the zip file comes up with an empty "lathemacro.hal" file which is the POSTGUI_HALFILE according to the .ini file, and from what I know that file should contain the _hal[gladevcp.turn.z-f] ... definitions? linuxcnc complains.
Karl

Please Log in or Create an account to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum