Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
21 Jan 2025 17:46
Replied by Aciera on topic Spindle location on the opposite side

Spindle location on the opposite side

Category: AXIS

Looks ok to me, the base of the pawn (ie the wider part) is on the left.
The green/blue X/Z indicator shows your current work offset origin.
X+ should move the tool away from the center line.
Z+ should move the tool away from the spindle.
  • spumco
  • spumco
21 Jan 2025 17:23

caxis.comp - How to freewheel axis/spindle?

Category: HAL

I'm using a component authored by Andy Pugh to control my lathe's main spindle as both a C-axis and spindle.  Comp attached, and I believe this was the last version Andy and NoJo worked out via the forum a few years ago.

NOTE - this component treats the spindle as an axis until a spindle command is issued.  This means absent a spindle command, the C-axis is active and trying to maintain a position.  Once the spindle command is done, C-axis re-engages and will return to the last position (within one turn) prior to the spindle command.

I want the ability to disconnect the spindle/axis so I can manually turn it (indicating part/chuck).  Because the spindle motor is a servo, if the drive is enabled and machine is on, the spindle is locked in position when the machine is at rest.

Right now I have a simple enable toggle in HAL that disables the drive directly.  This allows me to turn the spindle by hand for indicating or tightening the chuck.  I can jog the C-axis, but I find being able to manually move the spindle more convenient.

Unfortunately, because I haven't disconnected anything else in HAL, if I rotate the spindle more than about a turn I get a following error and LCNC turns the machine off.  I've had to set the ferror higher than I'd like just to be able to turn it a bit, and I'd really like to tighten it up.

I could use some help figuring out how to disable the motor in such a way that:
  • No following error while disabled, regardless of turns
  • No caxis.comp errors or accumulation of following error upon re-enable (which would result in a potentially violent attempt by the C-axis PID to eliminate the following error)

Is this something I could accomplish in HAL, or does caxis.comp need to be modified/edited in some way?
  • blazini36
  • blazini36
21 Jan 2025 17:22
Replied by blazini36 on topic Problem with toogle2nist component

Problem with toogle2nist component

Category: HAL

This should have been fixed now:
github.com/LinuxCNC/linuxcnc/commit/0bc9...000f4da3e4ba393b65c3

The new version is only in the development version of LinuxCNC at the moment.

You can install it on your own installation with:
1) Install LinuxCNC dev to get the "halcompile" tool.
sudo apt-get install linuxcnc-uspace-dev

2) Download this file and save it to your PC
https://raw.githubusercontent.com/LinuxCNC/linuxcnc/refs/heads/master/src/hal/components/toggle2nist.comp

3) Install it
[code]sudo halcompile --install toggle2nist.comp
[/code]
 

Problem with toggle2nist is the name of the is-on pin. Halui uses the is-on name as an output for lots of pins so it tripped me up expecting that to be an output pin. It's an input pin that absolutely must be connected to the is-on output or the component can't transition to the next state. They should have named it "on-state" or something.
  • Clive S
  • Clive S
21 Jan 2025 17:06
Replied by Clive S on topic Homing an axis moves away from home switch!

Homing an axis moves away from home switch!

Category: StepConf Wizard

Why is LinuxCNC so stupid?

You are not helping yourself with comments like this.

As said already. Post the ini and hal files
Displaying 19816 - 19819 out of 19819 results.
Time to create page: 0.613 seconds
Powered by Kunena Forum