Emulating lathe compound angle via manipulation of X & Z drives

More
1 year 4 months ago #330491 by slowpoke
Axis GUI for a lathe, using Mesa 
I have servos driving the X (cross slide), and Z (carriage) all working.
I also have MPG to manipulate X & Z.
I have removed my compound to make the lathe more rigid, with the rationale that I can emulate the compound via correct step pulse generation of the X & Z drives via the MPG.

Has someone done this?
HAL example?

Thank you

 

Please Log in to join the conversation.

More
1 year 4 months ago #330494 by Aciera

Please Log in to join the conversation.

More
1 year 4 months ago #330499 by slowpoke

For jogging there is the 'anglejog' component:
linuxcnc.org/docs/stable/html/man/man9/anglejog.9.html
 
Thank you, and this is what I love about LinuxCNC, it seems that whatever somewhat custom idea you dream up LinuxCNC has the handle to make it happen. It's a tinkerer's  candy store.

Please Log in to join the conversation.

More
1 year 4 months ago #330869 by slowpoke

For jogging there is the 'anglejog' component:
linuxcnc.org/docs/stable/html/man/man9/anglejog.9.html
 
Thank you, and this is what I love about LinuxCNC, it seems that whatever somewhat custom idea you dream up LinuxCNC has the handle to make it happen. It's a tinkerer's  candy store.
 
I need a little assistance with anglejog please.
I added anglejog to the real time thread so I can see the parameters in HAL.
I was hoping to just do a little test jog from HAL before connecting coscounts and sincounts to the servos in HAL.
However both those outputs seem to have really large numbers. Please see attached.
is there anything obvious that I'm doing wrong?
 

Attachment not found

 

Attachment not found


 

Please Log in to join the conversation.

More
1 year 4 months ago #330884 by Aciera
The most likely problem is that you have 'anglejog.current-scale' = '0'.

Note that the 'anglejog.scale-in' value is only sampled when 'anglejog.enable-in' is false. (See 'Notes' in the man page linked above)

You may want to have a look at the anglejog sim config :
configs/sim/axis/anglejog

 

Attachment not found

Please Log in to join the conversation.

More
1 year 4 months ago #330956 by slowpoke

The most likely problem is that you have 'anglejog.current-scale' = '0'.

Note that the 'anglejog.scale-in' value is only sampled when 'anglejog.enable-in' is false. (See 'Notes' in the man page linked above)

You may want to have a look at the anglejog sim config :
configs/sim/axis/anglejog

 

Attachment not found


 
I think I'm almost there...
I have motion, however I don't understand the scaling, at the moment with the attached settings, 1 click of the MPG, yields 7.040" of actual Z axis movement.

Changing the scale value, does not change the distance moved it does change how fast the carriage moves; with 1 it's very fast, with 10 it's fast, and with 100 it's a nice comfortable jog speed.

I'm not sure how to correct the actual scaling?
 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
1 year 4 months ago #330959 by Aciera
I have not used the anglejog component other than playing around with the sim config. As I understand it the 'scale' factor is used to avoid stair stepping in the tool path. Maybe the original discussion can give you some more clues:
forum.linuxcnc.org/38-general-linuxcnc-q...mode?start=10#253252

[edit]
I would tend to use the default values used in the sim config and adjust the
'max_vel',  'max_accel' pins (and possibly 'accel_fraction_in' for fine tuning) 

Please Log in to join the conversation.

More
1 year 4 months ago #330998 by slowpoke

I have not used the anglejog component other than playing around with the sim config. As I understand it the 'scale' factor is used to avoid stair stepping in the tool path. Maybe the original discussion can give you some more clues:
forum.linuxcnc.org/38-general-linuxcnc-q...mode?start=10#253252

[edit]
I would tend to use the default values used in the sim config and adjust the
'max_vel',  'max_accel' pins (and possibly 'accel_fraction_in' for fine tuning) 
Thanks for your help. I should play with the sim config, I'm not sure how to do that?

Please Log in to join the conversation.

More
1 year 4 months ago #331011 by slowpoke

I have not used the anglejog component other than playing around with the sim config. As I understand it the 'scale' factor is used to avoid stair stepping in the tool path. Maybe the original discussion can give you some more clues:
forum.linuxcnc.org/38-general-linuxcnc-q...mode?start=10#253252

[edit]
I would tend to use the default values used in the sim config and adjust the
'max_vel',  'max_accel' pins (and possibly 'accel_fraction_in' for fine tuning) 
Thanks for your help. I should play with the sim config, I'm not sure how to do that?
Okay, figured out what I was doing wrong (anglejog.N.iscale-factor), so I now have angle jogging working.

Thanks for all your help!

Please Log in to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum